summaryrefslogtreecommitdiffhomepage
path: root/examples/models_billboard.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-10-10 19:43:27 +0200
committerraysan5 <[email protected]>2016-10-10 19:43:27 +0200
commit648676f46b01327f0fbd6f017292a3159ea9ab2f (patch)
tree0abbf24e6c394472cad3290ef10f3b8d5bf8f87a /examples/models_billboard.c
parent5fecf5c088122dc409bd209b08627e671cbdc175 (diff)
downloadraylib-648676f46b01327f0fbd6f017292a3159ea9ab2f.tar.gz
raylib-648676f46b01327f0fbd6f017292a3159ea9ab2f.zip
Update examples to new camera system
Diffstat (limited to 'examples/models_billboard.c')
-rw-r--r--examples/models_billboard.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/models_billboard.c b/examples/models_billboard.c
index 654b3618..bca9faf8 100644
--- a/examples/models_billboard.c
+++ b/examples/models_billboard.c
@@ -26,20 +26,17 @@ int main()
Texture2D bill = LoadTexture("resources/billboard.png"); // Our texture billboard
Vector3 billPosition = { 0.0f, 2.0f, 0.0f }; // Position where draw billboard
- SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode
- SetCameraPosition(camera.position); // Set internal camera position to match our camera position
- SetCameraTarget(camera.target); // Set internal camera target to match our camera target
- SetCameraFovy(camera.fovy); // Set internal camera field-of-view Y
+ SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
// Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
+ while (!WindowShouldClose()) // Detect window close button or ESC key
{
// Update
//----------------------------------------------------------------------------------
- UpdateCamera(&camera); // Update internal camera and our camera
+ UpdateCamera(&camera); // Update camera
//----------------------------------------------------------------------------------
// Draw