diff options
| author | jussi | 2023-08-17 18:33:50 +0300 |
|---|---|---|
| committer | jussi | 2023-08-17 18:33:50 +0300 |
| commit | b7b46ada041ad56b1bc84fea3062464b702135c5 (patch) | |
| tree | 6453e7100bdb7c5353d0eb4f5227c0c571533d45 /API.md | |
| parent | 5438a70b0a5aac72c071c90650b509cf46e557cb (diff) | |
| download | reilua-enhanced-b7b46ada041ad56b1bc84fea3062464b702135c5.tar.gz reilua-enhanced-b7b46ada041ad56b1bc84fea3062464b702135c5.tar.bz2 reilua-enhanced-b7b46ada041ad56b1bc84fea3062464b702135c5.zip | |
Vertex buffers state and Shader state functions. Vertex buffers management WIP.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 161 |
1 files changed, 161 insertions, 0 deletions
@@ -3482,6 +3482,15 @@ Premultiply alpha channel --- +> success = RL.ImageBlurGaussian( Image image, int blurSize ) + +Apply Gaussian blur using a box blur approximation + +- Failure return false +- Success return true + +--- + > success = RL.ImageResize( Image image, Vector2 size ) Resize image ( Bicubic scaling algorithm ) @@ -3693,6 +3702,15 @@ Draw circle within an image --- +> success = RL.ImageDrawCircleLines( Image dst, Vector2 center, int radius, Color color ) + +Draw circle outline within an image + +- Failure return false +- Success return true + +--- + > success = RL.ImageDrawRectangle( Image dst, Rectangle rec, Color color ) Draw rectangle within an image @@ -7027,6 +7045,73 @@ Define one vertex ( color ) - 4 float --- +## RLGL - Vertex buffers state + +--- + +> supported = RL.rlEnableVertexArray( int vaoId ) + +Enable vertex array ( VAO, if supported ) + +- Failure return nil +- Success return bool + +--- + +> RL.rlDisableVertexArray() + +Disable vertex array ( VAO, if supported ) + +--- + +> success = RL.rlEnableVertexBuffer( int id ) + +Enable vertex buffer ( VBO ) + +- Failure return false +- Success return true + +--- + +> RL.rlDisableVertexBuffer() + +Disable vertex buffer ( VBO ) + +--- + +> success = RL.rlEnableVertexBufferElement( int id ) + +Enable vertex buffer element ( VBO element ) + +- Failure return false +- Success return true + +--- + +> RL.rlDisableVertexBufferElement() + +Disable vertex buffer element ( VBO element ) + +--- + +> success = RL.rlEnableVertexAttribute( int index ) + +Enable vertex attribute index + +- Failure return false +- Success return true + +--- + +> success = RL.rlDisableVertexAttribute( int index ) + +Disable vertex attribute index + +- Failure return false +- Success return true + +--- + ## RLGL - Textures state --- @@ -7088,6 +7173,25 @@ Set cubemap parameters ( filter, wrap ) --- +## RLGL - Shader state + +--- + +> success = RL.rlEnableShader( int id ) + +Enable shader program + +- Failure return false +- Success return true + +--- + +> RL.rlDisableShader() + +Disable shader program + +--- + ## RLGL - Framebuffer state --- @@ -7347,6 +7451,63 @@ Set current texture for render batch and check buffers limits --- +## RLGL - Vertex buffers management + +--- + +> vaoId = RL.rlLoadVertexArray() + +Load vertex array (vao) if supported + +- Success return int + +--- + +> vboId = RL.rlLoadVertexBuffer( Buffer{} buffer, int type, bool dynamic ) + +Load a vertex buffer attribute. Type should be RL_UNSIGNED_BYTE or RL_FLOAT + +- Failure return -1 +- Success return int + +--- + +> success = RL.rlUnloadVertexArray( int vaoId ) + +Unload vertex array object (VAO) + +- Failure return false +- Success return true + +--- + +> success = RL.rlUnloadVertexBuffer( int vboId ) + +Unload vertex buffer (VBO) + +- Failure return false +- Success return true + +--- + +> success = RL.rlSetVertexAttribute( int index, int compSize, int type, bool normalized, int stride, int pointer ) + +Set vertex attribute + +- Failure return false +- Success return true + +--- + +> success = RL.rlDrawVertexArray( int offset, int count ) + +Draw vertex array + +- Failure return false +- Success return true + +--- + ## RLGL - Textures management --- |
