Add frame functions for platforms

This commit is contained in:
zap8600 2024-01-18 22:46:37 -06:00 • committed by GitHub
commit 8798d13352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -815,6 +815,7 @@ void ClearBackground(Color color)
// Setup canvas (framebuffer) to start drawing
void BeginDrawing(void)
{
StartFrame();
// WARNING: Previously to BeginDrawing() other render textures drawing could happen,
// consequently the measure for update vs draw is not accurate (only the total frame time is accurate)
@ -933,6 +934,8 @@ void EndDrawing(void)
#endif // SUPPORT_SCREEN_CAPTURE
CORE.Time.frameCounter++;
EndFrame();
}
// Initialize 2D mode with custom camera (2D)