diff options
| author | raysan5 <[email protected]> | 2015-07-18 19:26:13 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2015-07-18 19:26:13 +0200 |
| commit | 067b884f395b7b6d4c179cb3d58b0d17a02950ec (patch) | |
| tree | b6075ae3689cb345c27f0358bc814b48596b3877 /examples/models_cubicmap.c | |
| parent | a98578c91db7d51233ae56e599dd4a3b2244cd0c (diff) | |
| download | raylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.tar.gz raylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.zip | |
Updated examples for next raylib version
Diffstat (limited to 'examples/models_cubicmap.c')
| -rw-r--r-- | examples/models_cubicmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/models_cubicmap.c b/examples/models_cubicmap.c index 60e93c6d..62f7b076 100644 --- a/examples/models_cubicmap.c +++ b/examples/models_cubicmap.c @@ -23,13 +23,13 @@ int main() // Define the camera to look into our 3d world Camera camera = {{ 7.0, 7.0, 7.0 }, { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }}; - Image img = LoadImage("resources/cubicmap.png"); // Load cubesmap image (RAM) - Texture2D texture = LoadTextureFromImage(img, false); // Convert image to texture (VRAM) - Model map = LoadCubicmap(img); // Load cubicmap model + Image image = LoadImage("resources/cubicmap.png"); // Load cubesmap image (RAM) + Texture2D texture = LoadTextureFromImage(image); // Convert image to texture (VRAM) + Model map = LoadCubicmap(image); // Load cubicmap model (generate model from image) SetModelTexture(&map, texture); // Bind texture to model Vector3 mapPosition = { -1, 0.0, -1 }; // Set model position - UnloadImage(img); // Unload cubesmap image from RAM, already uploaded to VRAM + UnloadImage(image); // Unload cubesmap image from RAM, already uploaded to VRAM SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- |
