Skip to content
modkitv0.2

Single rotating cube with perspective camera

← All examples06_cube

Demonstrates: - mk_layout for vertex layout - mk_vbuf/mk_ibuf for buffers - mk_camera for perspective projection - mk_transform for model matrix - mk_pipeline_create() + mk_pass_draw() submission spine - Touch controls: drag to rotate, pinch to zoom - Tracy profiler integration (when built with --profiler) - Debug mode hotkeys: - W: Wireframe toggle - F1: FPS counter toggle - F2: Console toggle - F3: Debug text overlay toggle - F4: Profiler status toggle (when available)

Single rotating cube with perspective camera

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
6
Tags
debugprofilingshaders3duilayout
Source
examples/06_cube/main.c

Build and run

./scripts/build-linux.sh release --target=06_cube --run