diff options
| author | raysan5 <raysan5@gmail.com> | 2015-01-02 20:58:06 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-01-02 20:58:06 +0100 |
| commit | 8847602061d964592c468757eb535770771af1f0 (patch) | |
| tree | f9f38b6d214dc7981c20a749009d80fc948a2214 /examples/models_heightmap.c | |
| parent | e6bc655d6acf69daeff084829cfee08aba9a71a8 (diff) | |
| download | raylib-8847602061d964592c468757eb535770771af1f0.tar.gz raylib-8847602061d964592c468757eb535770771af1f0.zip | |
Examples review...
Diffstat (limited to 'examples/models_heightmap.c')
| -rw-r--r-- | examples/models_heightmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/models_heightmap.c b/examples/models_heightmap.c index 6e807b8c..7121c261 100644 --- a/examples/models_heightmap.c +++ b/examples/models_heightmap.c @@ -23,11 +23,11 @@ int main() // Define the camera to look into our 3d world Camera camera = {{ 10.0, 12.0, 10.0 }, { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }}; - Image img = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM) - Texture2D texture = CreateTexture(img, false); // Convert image to texture (VRAM) - Model map = LoadHeightmap(img, 4); // Load heightmap model - SetModelTexture(&map, texture); // Bind texture to model - Vector3 mapPosition = { -4, 0.0, -4 }; // Set model position + Image img = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM) + Texture2D texture = LoadTextureFromImage(img, false); // Convert image to texture (VRAM) + Model map = LoadHeightmap(img, 4); // Load heightmap model + SetModelTexture(&map, texture); // Bind texture to model + Vector3 mapPosition = { -4, 0.0, -4 }; // Set model position UnloadImage(img); // Unload heightmap image from RAM, already uploaded to VRAM |
