From 01e28263be9869b28acae5cf1128472269626edb Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 14 Mar 2021 11:05:51 +0100 Subject: WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistency Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE --- examples/models/models_loading.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/models/models_loading.c') diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c index af9c5e39..951aee5d 100644 --- a/examples/models/models_loading.c +++ b/examples/models/models_loading.c @@ -39,7 +39,7 @@ int main(void) Model model = LoadModel("resources/models/castle.obj"); // Load model Texture2D 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 Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position @@ -76,7 +76,7 @@ int main(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]); @@ -87,7 +87,7 @@ int main(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; } } -- cgit v1.2.3