Template
mirror of
https://gitlab.com/raylibtemplates/rt.git
synced 2026-10-11 20:00:08 -04:00
Changed GameLoop Structure
This commit is contained in:
1 parent
e6c3ec5406
commit
1809136c5c
9 files changed
+318
-2223
No files matched your search
+5
-4
@@ -39,15 +39,16 @@ int main(void) {
|
||||
float scale = MIN((float)GetScreenWidth() / SCREEN_WIDTH,
|
||||
(float)GetScreenHeight() / SCREEN_HEIGHT);
|
||||
|
||||
cube.transform =
|
||||
MatrixMultiply(MatrixRotateXYZ(Vector3Scale((Vector3){1.0f, 1.5f, 2.5f},
|
||||
GetFrameTime())),
|
||||
cube.transform);
|
||||
|
||||
BeginTextureMode(target);
|
||||
{
|
||||
ClearBackground(BLACK);
|
||||
BeginMode3D(camera);
|
||||
{
|
||||
cube.transform =
|
||||
MatrixMultiply(MatrixRotateXYZ(Vector3Scale(
|
||||
(Vector3){1.0f, 1.5f, 2.5f}, GetFrameTime())),
|
||||
cube.transform);
|
||||
DrawModel(cube, Vector3Zero(), 1.0f, WHITE);
|
||||
}
|
||||
EndMode3D();
|
||||
|
||||
Reference in new issue
Block a user