From 625e4e0e4df7d08b58d6ba5741b932e57a70f3dd Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 25 Feb 2024 21:02:11 +0200 Subject: EnableEventWaiting and DisableEventWaiting. --- API.md | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 64 insertions(+), 14 deletions(-) (limited to 'API.md') diff --git a/API.md b/API.md index 6995dd1..70305e2 100644 --- a/API.md +++ b/API.md @@ -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,6 +4146,22 @@ Set target FPS (maximum) --- +> delta = RL.GetFrameTime() + +Get time in seconds for last frame drawn (Delta time) + +- Success return float + +--- + +> time = RL.GetTime() + +Get elapsed time in seconds since InitWindow() + +- Success return float + +--- + > FPS = RL.GetFPS() Get current FPS @@ -4142,19 +4170,25 @@ Get current FPS --- -> delta = RL.GetFrameTime() +## Core - Custom frame control functions -Get time in seconds for last frame drawn (Delta time) +--- -- Success return float +> RL.SwapScreenBuffer() + +Swap back buffer with front buffer (screen drawing) --- -> time = RL.GetTime() +> RL.PollInputEvents() -Get elapsed time in seconds since InitWindow() +Register all input events -- Success return float +--- + +> RL.WaitTime( number seconds ) + +Wait for some time (halt program execution) --- @@ -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 --- -- cgit v1.2.3