Texture example - loading and displaying textures
← All examples04_texture
Demonstrates: - mk_texture_t for texture management - mk_layout/mk_vbuf/mk_ibuf for geometry - Asset search paths + mk_assets_load_texture - mk_shader_load_desc(): sampler declared with the shader - mk_pipeline_create() bakes shader + layout + state once - mk_pass_draw() submits geometry + the texture binding each frame

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.
- Number
- 4
- Tags
- Source
examples/04_texture/main.c
Build and run
./scripts/build-linux.sh release --target=04_texture --run