Skip to content

Conversation

Jopestpe
Copy link
Contributor

Description

Adds a basic 3D cube example with texture mapping, showing:

  • A cube model generated from a mesh
  • Texture applied from a cropped image
  • Continuous rotation

Changelog

  • Added examples/models/models_geometry_textures_cube.c - example code
  • Added examples/models/models_geometry_textures_cube.png - Screenshot
  • Updated Makefile, README.md, and examples_list.txt

Tested it compiles successfully on Linux.

@raysan5 raysan5 changed the title ADDED: example: models_geometry_textures_cube [examples] Add models_geometry_textures_cube Oct 1, 2025
@raysan5 raysan5 merged commit 1cdf1dc into raysan5:master Oct 1, 2025
17 checks passed
@raysan5
Copy link
Owner

raysan5 commented Oct 1, 2025

@Jopestpe Thanks for the addition but note this example somewhat overlaps with already existing models_textured_cube... I'll check both examples in case they can be merged or maybe renamed for consistency...

psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Oct 5, 2025
* ADDED: example:  models_geometry_textures_cube

* FIXED: example: models_geometry_textures_cube - removed leftover TODO and aligned title with header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants