summaryrefslogtreecommitdiffhomepage
path: root/examples/web/models/models_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-14 13:10:05 +0100
committerRay <[email protected]>2021-03-14 13:10:05 +0100
commit06c815f05810fb2a72356d19f9cac218ca977892 (patch)
treeb8e08779a8374cb641c5246c55475f88e263704a /examples/web/models/models_loading.c
parent421c4e4cd85310bef3a8f79f89d23e3a1eac9668 (diff)
downloadraylib.com-06c815f05810fb2a72356d19f9cac218ca977892.tar.gz
raylib.com-06c815f05810fb2a72356d19f9cac218ca977892.zip
Updated examples after enum values rename
Diffstat (limited to 'examples/web/models/models_loading.c')
-rw-r--r--examples/web/models/models_loading.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/web/models/models_loading.c b/examples/web/models/models_loading.c
index d438d1f..54ebcd9 100644
--- a/examples/web/models/models_loading.c
+++ b/examples/web/models/models_loading.c
@@ -66,7 +66,7 @@ int main(void)
model = LoadModel("resources/models/castle.obj"); // Load model
texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture
- model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture
+ model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
bounds = MeshBoundingBox(model.meshes[0]); // Set model bounds
@@ -122,7 +122,7 @@ void UpdateDrawFrame(void)
{
UnloadModel(model); // Unload previous model
model = LoadModel(droppedFiles[0]); // Load new model
- model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set current map diffuse texture
+ model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set current map diffuse texture
bounds = MeshBoundingBox(model.meshes[0]);
@@ -133,7 +133,7 @@ void UpdateDrawFrame(void)
// Unload current model texture and load new one
UnloadTexture(texture);
texture = LoadTexture(droppedFiles[0]);
- model.materials[0].maps[MAP_DIFFUSE].texture = texture;
+ model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture;
}
}