A simple OpenGL project written in Rust that renders 3D models, cubes with textures. This project demonstrates the fundamentals of setting up an OpenGL context, compiling shaders, loading textures, and rendering textured cubes in 3D space.
- OpenGL 3.3+ core profile
- 3D textured cube rendering
- Basic camera movement and rotation
- Perspective projection and transformation matrices
- Texture loading using
imagecrate - GLFW window management and input handling
- Language: Rust
- Windowing & Input:
glfw - OpenGL Bindings:
gl - Image Loading:
image - Math Library:
cgmath
Before building, make sure you have:
- Rust toolchain (latest stable)
- OpenGL 3.3+ drivers installed
- CMake and a C++ compiler (required by
glfwbindings) - On Linux:
sudo apt install libglfw3-dev libgl1-mesa-dev libxinerama-dev libxcursor-dev libxi-dev