diff options
| author | jussi | 2024-02-25 14:06:59 +0200 |
|---|---|---|
| committer | jussi | 2024-02-25 14:06:59 +0200 |
| commit | 47ed28b006db71d823cfaa24fa143ab5cfcf279b (patch) | |
| tree | adf35906662b0646a14adfa6a37260c797cd325a /API.md | |
| parent | 631cea6aa7510ba53d4f14b5537e1719a72976b9 (diff) | |
| download | reilua-enhanced-47ed28b006db71d823cfaa24fa143ab5cfcf279b.tar.gz reilua-enhanced-47ed28b006db71d823cfaa24fa143ab5cfcf279b.tar.bz2 reilua-enhanced-47ed28b006db71d823cfaa24fa143ab5cfcf279b.zip | |
Added various missing functions.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 94 |
1 files changed, 91 insertions, 3 deletions
@@ -4494,6 +4494,14 @@ Detect if a key has been pressed once --- +> pressed = RL.IsKeyPressedRepeat( int key ) + +Check if a key has been pressed again (Only PLATFORM_DESKTOP) + +- Success return bool + +--- + > pressed = RL.IsKeyDown( int key ) Detect if a key is being pressed @@ -4584,6 +4592,22 @@ Detect if a gamepad button has been released once --- +> notPressed = RL.IsGamepadButtonUp( int gamepad, int button ) + +Check if a gamepad button is NOT being pressed + +- Success return bool + +--- + +> button = RL.GetGamepadButtonPressed() + +Get the last gamepad button pressed + +- Success return int + +--- + > count = RL.GetGamepadAxisCount( int gamepad ) Return gamepad axis count for a gamepad @@ -4680,12 +4704,20 @@ Set mouse scaling > movement = RL.GetMouseWheelMove() -Returns mouse wheel movement Y +Get mouse wheel movement for X or Y, whichever is larger - Success return float --- +> movement = RL.GetMouseWheelMoveV() + +Get mouse wheel movement for both X and Y + +- Success return Vector2 + +--- + > RL.SetMouseCursor( int cursor ) Set mouse cursor @@ -5705,7 +5737,15 @@ Create an image from another image piece --- -> image = RL.ImageText( Font font, string text, float fontSize, float spacing, Color tint ) +> image = RL.ImageText( string text, int fontSize, Color tint ) + +Create an image from text (default font) + +- Success return Image + +--- + +> image = RL.ImageTextEx( Font font, string text, float fontSize, float spacing, Color tint ) Create an image from text (custom sprite font) @@ -5977,6 +6017,12 @@ Draw a source image within a destination image (Tint applied to source) --- +> RL.ImageDrawText( Image dst, string text, Vector2 position, float fontSize, Color tint ) + +Draw text (using default font) within an image (destination) + +--- + > RL.ImageDrawTextEx( Image dst, Font font, string text, Vector2 position, float fontSize, float spacing, Color tint ) Draw text (Custom sprite font) within an image (Destination) @@ -6150,6 +6196,12 @@ Draw a Texture2D --- +> RL.DrawTextureEx( Texture texture, Vector2 position, float rotation, float scale, Color tint ) + +Draw a Texture2D with extended parameters + +--- + > RL.DrawTextureRec( Texture texture, Rectangle source, Vector2 position, Color tint ) Draw a part of a texture defined by a rectangle @@ -6476,7 +6528,15 @@ Set vertical line spacing when drawing with line-breaks --- -> size = RL.MeasureText( Font font, string text, float fontSize, float spacing ) +> width = RL.MeasureText( string text, int fontSize ) + +Measure string width for default font + +- Success return int + +--- + +> size = RL.MeasureTextEx( Font font, string text, float fontSize, float spacing ) Measure string size for Font @@ -6748,6 +6808,12 @@ Draw a color-filled triangle (Vertex in counter-clockwise order!) --- +> RL.DrawTriangleStrip3D( Vector3{} points, Color color ) + +Draw a triangle strip defined by points + +--- + > RL.DrawCube( Vector3 position, Vector3 size, Color color ) Draw cube @@ -7146,6 +7212,14 @@ Generate sphere mesh (Standard sphere) --- +> mesh = RL.GenMeshHemiSphere( float radius, int rings, int slices ) + +Generate half-sphere mesh (no bottom cap) + +- Success return Mesh + +--- + > mesh = RL.GenMeshCylinder( float radius, float height, int slices ) Generate cylinder mesh @@ -7595,6 +7669,12 @@ Checks if a sound is ready --- +> RL.UpdateSound( Sound sound, Buffer data, int sampleCount ) + +Update sound buffer with new data + +--- + > RL.UnloadWave( Wave wave ) Unload wave data @@ -7689,6 +7769,14 @@ Convert wave data to desired format --- +> samples = RL.LoadWaveSamples( Wave wave ) + +Load samples data from wave as a 32bit float data array + +- Success return float{} + +--- + > wave = RL.WaveCopy( Wave wave ) Copy a wave to a new wave |
