Add frame functions for platforms
This commit is contained in:
parent
d04c75d0f8
commit
8798d13352
1 changed files with 77 additions and 2118 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue