diff options
| author | Ray <[email protected]> | 2019-05-27 00:18:15 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-05-27 00:18:15 +0200 |
| commit | 87774a0a21f8d2998b4dc13e989005270476ae92 (patch) | |
| tree | 4228376c752b1760be44cc8582725ecac522939b /examples/models/models_mesh_generation.c | |
| parent | 241c4c8d14225bdf30c168802d4b16b59d5043e0 (diff) | |
| download | raylib-87774a0a21f8d2998b4dc13e989005270476ae92.tar.gz raylib-87774a0a21f8d2998b4dc13e989005270476ae92.zip | |
Review variables initialization
Diffstat (limited to 'examples/models/models_mesh_generation.c')
| -rw-r--r-- | examples/models/models_mesh_generation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/models/models_mesh_generation.c b/examples/models/models_mesh_generation.c index cfc3bdd6..6c0ae653 100644 --- a/examples/models/models_mesh_generation.c +++ b/examples/models/models_mesh_generation.c @@ -27,7 +27,7 @@ int main(void) Texture2D texture = LoadTextureFromImage(checked); UnloadImage(checked); - Model models[NUM_MODELS]; + Model models[NUM_MODELS] = { 0 }; models[0] = LoadModelFromMesh(GenMeshPlane(2, 2, 5, 5)); models[1] = LoadModelFromMesh(GenMeshCube(2.0f, 1.0f, 2.0f)); @@ -42,7 +42,7 @@ int main(void) for (int i = 0; i < NUM_MODELS; i++) models[i].materials[0].maps[MAP_DIFFUSE].texture = texture; // Define the camera to look into our 3d world - Camera camera = {{ 5.0f, 5.0f, 5.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 }; + Camera camera = { { 5.0f, 5.0f, 5.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 }; // Model drawing position Vector3 position = { 0.0f, 0.0f, 0.0f }; |
