diff options
| author | Ray <[email protected]> | 2021-06-17 12:17:50 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-06-17 12:17:50 +0200 |
| commit | 19b71f5f13ee6e343836732a80f56d241e6f1659 (patch) | |
| tree | 658f1073082ffac71b7ea3d8d3b28d0f09353d49 /src/raylib.h | |
| parent | ab032919df7fbc2c6f9e61dbd5a1b6765690dde2 (diff) | |
| download | raylib-19b71f5f13ee6e343836732a80f56d241e6f1659.tar.gz raylib-19b71f5f13ee6e343836732a80f56d241e6f1659.zip | |
WARNING: Exposed `SUPPORT_CUSTOM_FRAME_CONTROL` #1729
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 661c4c09..2559a9c0 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -960,6 +960,15 @@ RLAPI const char *GetMonitorName(int monitor); // Get the hum RLAPI void SetClipboardText(const char *text); // Set clipboard text content RLAPI const char *GetClipboardText(void); // Get clipboard text content +// Custom frame control functions +// NOTE: Those functions are intended for advance users that want full control over the frame processing +// By default EndDrawing() does this job: draws everything + SwapBuffers() + manage frame timming + PollInputEvents() +// To avoid that behaviour and control frame processes manually, enable in config.h: SUPPORT_CUSTOM_FRAME_CONTROL +RLAPI void InitTimer(void); // Initialize timer (hi-resolution if available) +RLAPI void WaitTime(float ms); // Wait for some milliseconds (halt program execution) +RLAPI void SwapBuffers(void); // Swap back buffer with front buffer (screen drawing) +RLAPI void PollInputEvents(void); // Register all input events + // Cursor-related functions RLAPI void ShowCursor(void); // Shows cursor RLAPI void HideCursor(void); // Hides cursor |
