EnableEventWaiting and DisableEventWaiting.

This commit is contained in:
jussi
2024-02-25 21:02:11 +02:00
parent 47ed28b006
commit 625e4e0e4d
10 changed files with 148 additions and 37 deletions

82
API.md
View File

@@ -3824,6 +3824,18 @@ Get clipboard text content
---
> RL.EnableEventWaiting()
Enable waiting for events on EndDrawing(), no automatic event polling
---
> RL.DisableEventWaiting()
Disable waiting for events on EndDrawing(), automatic events polling
---
## Core - Cursor-related functions
---
@@ -4134,14 +4146,6 @@ Set target FPS (maximum)
---
> FPS = RL.GetFPS()
Get current FPS
- Success return int
---
> delta = RL.GetFrameTime()
Get time in seconds for last frame drawn (Delta time)
@@ -4158,6 +4162,36 @@ Get elapsed time in seconds since InitWindow()
---
> FPS = RL.GetFPS()
Get current FPS
- Success return int
---
## Core - Custom frame control functions
---
> RL.SwapScreenBuffer()
Swap back buffer with front buffer (screen drawing)
---
> RL.PollInputEvents()
Register all input events
---
> RL.WaitTime( number seconds )
Wait for some time (halt program execution)
---
## Core - Random values generation functions
---
@@ -6354,14 +6388,6 @@ Get Color structure from hexadecimal value
---
> color = RL.GetPixelColor( Texture texture, Vector2 position )
Get pixel color from source texture
- Success return Color
---
> size = RL.GetPixelDataSize( int width, int height, int format )
Get pixel data size in bytes for certain format
@@ -6756,6 +6782,22 @@ Encode one codepoint into UTF-8 byte array
---
> text = RL.TextSubtext( string text, int position, int length )
Get a piece of a text string
- Success return string
---
> text = RL.TextReplace( string text, string replace, string by )
Replace text string
- Success return string
---
> text = RL.TextInsert( string text, string insert, int position )
Insert text in a specific position, moves all text forward
@@ -6780,6 +6822,14 @@ Find first text occurrence within a string
---
> text = RL.TextToPascal( string text )
Get Pascal case notation version of provided string
- Success return string
---
## Models - Basic geometric 3D shapes drawing functions
---