mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 12:32:09 +03:00
[raylib/en] Updated example (#4775)
This commit is contained in:
parent
0dbdc6dd28
commit
fb452907a3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user