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