aboutsummaryrefslogtreecommitdiff
path: root/examples/models_cubicmap.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-01-02 20:58:06 +0100
committerraysan5 <raysan5@gmail.com>2015-01-02 20:58:06 +0100
commit8847602061d964592c468757eb535770771af1f0 (patch)
treef9f38b6d214dc7981c20a749009d80fc948a2214 /examples/models_cubicmap.c
parente6bc655d6acf69daeff084829cfee08aba9a71a8 (diff)
downloadraylib-8847602061d964592c468757eb535770771af1f0.tar.gz
raylib-8847602061d964592c468757eb535770771af1f0.zip
Examples review...
Diffstat (limited to 'examples/models_cubicmap.c')
-rw-r--r--examples/models_cubicmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/models_cubicmap.c b/examples/models_cubicmap.c
index 08398ad4..60e93c6d 100644
--- a/examples/models_cubicmap.c
+++ b/examples/models_cubicmap.c
@@ -1,6 +1,6 @@
/*******************************************************************************************
*
-* raylib [models] example - Cubesmap loading and drawing
+* raylib [models] example - Cubicmap loading and drawing
*
* This example has been created using raylib 1.2 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
@@ -23,11 +23,11 @@ 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/cubesmap.png"); // Load cubesmap image (RAM)
- Texture2D texture = CreateTexture(img, false); // Convert image to texture (VRAM)
- Model map = LoadCubesmap(img); // Load cubesmap model
- SetModelTexture(&map, texture); // Bind texture to model
- Vector3 mapPosition = { -1, 0.0, -1 }; // Set model position
+ 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
+ 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