Merge branch 'master' into master

This commit is contained in:
Jon Daniel 2025-04-13 23:59:57 +02:00 committed by GitHub
commit db4efbce74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 113 additions and 81 deletions

View file

@ -74,9 +74,8 @@ int main(void)
// Draw
//----------------------------------------------------------------------------------
UnloadRenderTexture(target);
target = LoadRenderTextureDepthTex(GetScreenWidth(), GetScreenHeight());
target = LoadRenderTextureDepthTex(GetScreenWidth(), GetScreenHeight());
// Draw into our custom render texture (framebuffer)
BeginTextureMode(target);
ClearBackground(WHITE);
@ -94,8 +93,7 @@ int main(void)
// Draw into screen our custom render texture
BeginDrawing();
ClearBackground(RAYWHITE);
ClearBackground(RAYWHITE);
DrawTextureRec(target.texture, (Rectangle) { 0, 0, (float)GetScreenWidth(), (float)-GetScreenHeight() }, (Vector2) { 0, 0 }, WHITE);
DrawFPS(10, 10);
EndDrawing();