summaryrefslogtreecommitdiffhomepage
path: root/examples/web/models
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-19 13:57:24 +0100
committerRay <[email protected]>2021-03-19 13:57:24 +0100
commita3a26dd470338605d1ecee7e39f0f5e93d6948d3 (patch)
treec9a13533e041ab82a1555bef0c1759371bcf1fec /examples/web/models
parent4a387acc36af8b6a54883894d1d70779e6ddb457 (diff)
downloadraylib.com-a3a26dd470338605d1ecee7e39f0f5e93d6948d3.tar.gz
raylib.com-a3a26dd470338605d1ecee7e39f0f5e93d6948d3.zip
RENAMED: camera.type to camera.projection
Diffstat (limited to 'examples/web/models')
-rw-r--r--examples/web/models/models_animation.c2
-rw-r--r--examples/web/models/models_billboard.c2
-rw-r--r--examples/web/models/models_geometric_shapes.c2
-rw-r--r--examples/web/models/models_loading.c2
-rw-r--r--examples/web/models/models_mesh_picking.c2
-rw-r--r--examples/web/models/models_orthographic_projection.c10
6 files changed, 10 insertions, 10 deletions
diff --git a/examples/web/models/models_animation.c b/examples/web/models/models_animation.c
index 506b89a..1c7bd02 100644
--- a/examples/web/models/models_animation.c
+++ b/examples/web/models/models_animation.c
@@ -56,7 +56,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
camera.fovy = 45.0f; // Camera field-of-view Y
- camera.type = CAMERA_PERSPECTIVE; // Camera mode type
+ camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
model = LoadModel("resources/guy/guy.iqm"); // Load the animated model mesh and basic data
texture = LoadTexture("resources/guy/guytex.png"); // Load model texture and set material
diff --git a/examples/web/models/models_billboard.c b/examples/web/models/models_billboard.c
index 569ccd8..af96569 100644
--- a/examples/web/models/models_billboard.c
+++ b/examples/web/models/models_billboard.c
@@ -45,7 +45,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 2.0f, 0.0f };
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f };
camera.fovy = 45.0f;
- camera.type = CAMERA_PERSPECTIVE;
+ camera.projection = CAMERA_PERSPECTIVE;
bill = LoadTexture("resources/billboard.png"); // Our texture billboard
diff --git a/examples/web/models/models_geometric_shapes.c b/examples/web/models/models_geometric_shapes.c
index 3ce7b2d..612a19c 100644
--- a/examples/web/models/models_geometric_shapes.c
+++ b/examples/web/models/models_geometric_shapes.c
@@ -42,7 +42,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f };
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f };
camera.fovy = 45.0f;
- camera.type = CAMERA_PERSPECTIVE;
+ camera.projection = CAMERA_PERSPECTIVE;
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 60, 1);
diff --git a/examples/web/models/models_loading.c b/examples/web/models/models_loading.c
index 54ebcd9..e88c902 100644
--- a/examples/web/models/models_loading.c
+++ b/examples/web/models/models_loading.c
@@ -62,7 +62,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 10.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
camera.fovy = 45.0f; // Camera field-of-view Y
- camera.type = CAMERA_PERSPECTIVE; // Camera mode type
+ camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
model = LoadModel("resources/models/castle.obj"); // Load model
texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture
diff --git a/examples/web/models/models_mesh_picking.c b/examples/web/models/models_mesh_picking.c
index c73701b..2751918 100644
--- a/examples/web/models/models_mesh_picking.c
+++ b/examples/web/models/models_mesh_picking.c
@@ -66,7 +66,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 2.3f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.6f, 0.0f }; // Camera up vector (rotation towards target)
camera.fovy = 45.0f; // Camera field-of-view Y
- camera.type = CAMERA_PERSPECTIVE; // Camera mode type
+ camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
tower = LoadModel("resources/models/turret.obj"); // Load OBJ model
texture = LoadTexture("resources/models/turret_diffuse.png"); // Load model texture
diff --git a/examples/web/models/models_orthographic_projection.c b/examples/web/models/models_orthographic_projection.c
index 75dfb75..ec21b8d 100644
--- a/examples/web/models/models_orthographic_projection.c
+++ b/examples/web/models/models_orthographic_projection.c
@@ -79,15 +79,15 @@ void UpdateDrawFrame(void)
//----------------------------------------------------------------------------------
if (IsKeyPressed(KEY_SPACE))
{
- if (camera.type == CAMERA_PERSPECTIVE)
+ if (camera.projection == CAMERA_PERSPECTIVE)
{
camera.fovy = WIDTH_ORTHOGRAPHIC;
- camera.type = CAMERA_ORTHOGRAPHIC;
+ camera.projection = CAMERA_ORTHOGRAPHIC;
}
else
{
camera.fovy = FOVY_PERSPECTIVE;
- camera.type = CAMERA_PERSPECTIVE;
+ camera.projection = CAMERA_PERSPECTIVE;
}
}
//----------------------------------------------------------------------------------
@@ -120,8 +120,8 @@ void UpdateDrawFrame(void)
DrawText("Press Spacebar to switch camera type", 10, GetScreenHeight() - 30, 20, DARKGRAY);
- if (camera.type == CAMERA_ORTHOGRAPHIC) DrawText("ORTHOGRAPHIC", 10, 40, 20, BLACK);
- else if (camera.type == CAMERA_PERSPECTIVE) DrawText("PERSPECTIVE", 10, 40, 20, BLACK);
+ if (camera.projection == CAMERA_ORTHOGRAPHIC) DrawText("ORTHOGRAPHIC", 10, 40, 20, BLACK);
+ else if (camera.projection == CAMERA_PERSPECTIVE) DrawText("PERSPECTIVE", 10, 40, 20, BLACK);
DrawFPS(10, 10);