aboutsummaryrefslogtreecommitdiff
path: root/examples/models_cubicmap.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-06-24 19:49:36 +0200
committerraysan5 <raysan5@gmail.com>2016-06-24 19:49:36 +0200
commit5f7ac64c44543383b10ec6a56e5ec1db5706276e (patch)
tree5605c0dcad2432f84494deaa527012c5e26eedb4 /examples/models_cubicmap.c
parentb358402cb39d2b06a69be28e64b086a0f44b42f1 (diff)
downloadraylib-5f7ac64c44543383b10ec6a56e5ec1db5706276e.tar.gz
raylib-5f7ac64c44543383b10ec6a56e5ec1db5706276e.zip
Removed function SetModelTexture()
It's more educational to go through new material system, so, I decide to remove this function to avoid students confusion...
Diffstat (limited to 'examples/models_cubicmap.c')
-rw-r--r--examples/models_cubicmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models_cubicmap.c b/examples/models_cubicmap.c
index 1ca27dfd..89bc75cf 100644
--- a/examples/models_cubicmap.c
+++ b/examples/models_cubicmap.c
@@ -29,7 +29,7 @@ int main()
// NOTE: By default each cube is mapped to one part of texture atlas
Texture2D texture = LoadTexture("resources/cubicmap_atlas.png"); // Load map texture
- SetModelTexture(&map, texture); // Bind texture to map model
+ map.material.texDiffuse = texture; // Set map diffuse texture
Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position