Watch
2
0
Fork
You've already forked raylib-cs
0

Fix unfinished example

This commit is contained in:
Rgebee 2024-06-20 17:40:24 +01:00
commit 8263ab4e59

View file

@ -48,11 +48,17 @@ public class WriteDepth
SetTargetFPS(60);
//--------------------------------------------------------------------------------------
// Main game loop
while (!WindowShouldClose())
{
// Update
//----------------------------------------------------------------------------------
UpdateCamera(ref camera, CameraMode.Orbital);
//----------------------------------------------------------------------------------
// Draw
//----------------------------------------------------------------------------------
// Draw into our custom render texture (framebuffer)
BeginTextureMode(target);
ClearBackground(Color.White);
@ -84,6 +90,7 @@ public class WriteDepth
EndDrawing();
//----------------------------------------------------------------------------------
}
// De-Initialization
//--------------------------------------------------------------------------------------