mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-22 22:33:29 +02:00
[raylib/en] Updated example (#4775)
This commit is contained in:
@@ -36,11 +36,11 @@ int main(void)
|
|||||||
// raylib defines two types of cameras: Camera3D and Camera2D
|
// raylib defines two types of cameras: Camera3D and Camera2D
|
||||||
// Camera is a typedef for Camera3D
|
// Camera is a typedef for Camera3D
|
||||||
Camera camera = {
|
Camera camera = {
|
||||||
.position = {0.0f, 0.0f, 0.0f},
|
.position = {0.0f, 0.0f, 0.0f},
|
||||||
.target = {0.0f, 0.0f, 1.0f},
|
.target = {0.0f, 0.0f, 1.0f},
|
||||||
.up = {0.0f, 1.0f, 0.0f},
|
.up = {0.0f, 1.0f, 0.0f},
|
||||||
.fovy = 70.0f,
|
.fovy = 70.0f,
|
||||||
.type = CAMERA_PERSPECTIVE
|
.projection = CAMERA_PERSPECTIVE
|
||||||
};
|
};
|
||||||
|
|
||||||
// raylib supports loading of models, animations, images and sounds
|
// raylib supports loading of models, animations, images and sounds
|
||||||
|
Reference in New Issue
Block a user