diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-06-11 23:16:37 +0200 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-06-11 23:16:37 +0200 |
commit | e1f27e3fa0841beee491948ab1572e2cd894dbd8 (patch) | |
tree | b492cb2ffc0f1f8dca2a76ce701678ed6871cf88 | |
parent | set clang++ and fix build issue (diff) | |
download | yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.gz yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.bz2 yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.xz yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.zst yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.zip |
mouse is captured again, pretty gud
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 94e3f97..0ec23c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,15 @@ int main(void) { // setup camera SetTargetFPS(60); + SetCameraMode(sc3d.camera, CAMERA_FIRST_PERSON); + sc3d.camera.position = (Vector3){50.0f, 1.0f, 50.0f}; + sc3d.camera.target = (Vector3){50.0f, 1.0f, 50.0f}; + sc3d.camera.up = (Vector3){0.0f, 1.0f, 0.0f}; + sc3d.camera.fovy = 90.0f; + sc3d.camera.projection = CAMERA_PERSPECTIVE; + + sc3d.rotation = (Vector3){0.0f, 0.0f, 0.0f}; + sc3d.lastMousePos = GetMousePosition(); // game loop while (!WindowShouldClose()) { switch (game_state) { |