A collection of small test programs for the miniquad graphics engine. Note that these are mostly AI generated, so I can't take much credit for them.
Each test is a standalone binary executable.
| Binary | Description |
|---|---|
window |
Tests basic window creation and lifecycle management. Verifies that a window can be created, displayed, and properly responds to close events. |
input |
Tests keyboard and mouse input handling. Verifies that key presses, mouse movement, and clicks are detected and processed correctly. |
graphics |
Tests basic graphics rendering. Draws simple shapes to verify that the rendering pipeline works correctly. |
mouse |
Tests mouse input by drawing white pixels while the left mouse button is held down and moved across the window. |
wireframe |
Renders a rotating 3D wireframe cube using PrimitiveType::Lines. You should see a green wireframe cube rotating on a black background. |
starfield |
Renders an animated starfield using PrimitiveType::Points with dynamic vertex buffer updates (BufferUsage::Stream). You should see white stars streaming toward you on a dark background. |
viewport |
Renders a colour-shaded triangle inside a restricted viewport centred in the window using apply_viewport. A light grey rectangle is drawn around the viewport border so its bounds are clearly visible. |
scrolltext |
Renders white text scrolling smoothly from right to left on a black background. Demonstrates texture creation from raw pixel data, a bitmap font, and delta-time animation. |
files_dropped |
Demonstrates the files_dropped_event callback. Drag one or more files onto the window to see their paths displayed in white on a black background using a scaled bitmap font. |
Run any test with:
cargo run --bin <binary_name>