aboutsummaryrefslogtreecommitdiff
path: root/examples/models_obj_loading.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_obj_loading.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_obj_loading.c')
-rw-r--r--examples/models_obj_loading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models_obj_loading.c b/examples/models_obj_loading.c
index e8dd0adc..a6969f70 100644
--- a/examples/models_obj_loading.c
+++ b/examples/models_obj_loading.c
@@ -25,7 +25,7 @@ int main()
Model dwarf = LoadModel("resources/model/dwarf.obj"); // Load OBJ model
Texture2D texture = LoadTexture("resources/model/dwarf_diffuse.png"); // Load model texture
- SetModelTexture(&dwarf, texture); // Bind texture to model
+ dwarf.material.texDiffuse = texture; // Set dwarf model diffuse texture
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
SetTargetFPS(60); // Set our game to run at 60 frames-per-second