mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 14:23:12 +00:00
Update models_first_person_maze.c
This commit is contained in:
parent
96db787657
commit
aebcd9b551
@ -35,7 +35,7 @@ int main(void)
|
|||||||
model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture
|
model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture
|
||||||
|
|
||||||
// Get map image data to be used for collision detection
|
// Get map image data to be used for collision detection
|
||||||
Color *mapPixels = GetImageData(imMap);
|
Color *mapPixels = LoadImageColors(imMap);
|
||||||
UnloadImage(imMap); // Unload image from RAM
|
UnloadImage(imMap); // Unload image from RAM
|
||||||
|
|
||||||
Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position
|
Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position
|
||||||
@ -113,7 +113,7 @@ int main(void)
|
|||||||
|
|
||||||
// De-Initialization
|
// De-Initialization
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
free(mapPixels); // Unload color array
|
UnloadImageColors(mapPixels); // Unload color array
|
||||||
|
|
||||||
UnloadTexture(cubicmap); // Unload cubicmap texture
|
UnloadTexture(cubicmap); // Unload cubicmap texture
|
||||||
UnloadTexture(texture); // Unload map texture
|
UnloadTexture(texture); // Unload map texture
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user