Awesome
<a id="readme-top"></a>
<div align="center"> <br /> <h3 align="center">ProjectM</h3> <p align="center"> Reference projectM application in Rust, utilizing the <a href="https://crates.io/crates/projectm" target="_blank">projectM</a> crate <br /> <br /> <a href="https://github.com/projectM-visualizer/frontend-sdl-rust/issues" target="_blank">Report Bug</a> · <a href="https://github.com/projectM-visualizer/frontend-sdl-rust/issues" target="_blank">Request Feature</a> </p> </div> <br /> <!-- TABLE OF CONTENTS --> <details> <summary>Table of Contents</summary> <ol> <li> <a href="#getting-started">Getting Started</a> <ul> <li><a href="#prerequisites">Prerequisites</a></li> </ul> </li> <li><a href="#usage">Usage</a></li> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> <li><a href="#support">Support</a></li> <li><a href="#contact">Contact</a></li> </ol> </details> <br /> <!-- GETTING STARTED -->Getting Started
To get this crate up and running properly, you'll need to install some prerequisites.
Prerequisites
Depending on the OS/distribution and packaging system, libraries might be split into separate packages with binaries and development files. To build projectM, both binaries and development files need to be installed.
General build dependencies for all platforms:
- Rust
- A working build toolchain.
- CMake: Used to generate platform-specific build files.
- OpenGL: 3D graphics library. Used to render the visualizations.
- or GLES3: OpenGL libraries for embedded systems, version 3. Required to build projectM on Android devices, Raspberry Pi, Emscripten and the Universal Windows Platform.
- glm: OpenGL Mathematics library. Optional, will use a bundled version with autotools or if not installed.
- SDL3: Simple Directmedia Layer >= 3. Provided by sdl3-rs. the test UI.
- LLVM: Low-Level Virtual Machine. Optional and experimental, used to speed up preset execution by leveraging the LLVM JIT compiler.
Only relevant for Windows:
- vcpkg: C++ Library Manager for Windows. Optional, but recommended to install the aforementioned library dependencies.
- GLEW: The OpenGL Extension Wrangler Library. Only required if using CMake to configure the build, the pre-created solutions use a bundled copy of GLEW.
Usage
// run app
cargo run
// build app
cargo build
If using SDL installed via Homebrew
RUSTFLAGS="-L$(brew --prefix sdl3)/lib" cargo build
RUSTFLAGS="-L$(brew --prefix sdl3)/lib" cargo run
Optimized build
cargo run --release
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- CONTRIBUTING -->
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the LGPL-2.1 license. See LICENSE
for more information.
Support
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTACT -->Contact
Blaquewithaq (Discord: SoFloppy#1289) - @anomievision - anomievision@gmail.com
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- MARKDOWN LINKS & IMAGES --> <!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->