Fix unfinished example
This commit is contained in:
parent
3ca1f18854
commit
8263ab4e59
1 changed files with 43 additions and 36 deletions
|
|
@ -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
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue