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 /include | |
| 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 'include')
| -rw-r--r-- | include/lrlgl.h | 19 | ||||
| -rw-r--r-- | include/state.h | 2 | ||||
| -rw-r--r-- | include/textures.h | 2 |
3 files changed, 22 insertions, 1 deletions
diff --git a/include/lrlgl.h b/include/lrlgl.h index e638dc6..40df95c 100644 --- a/include/lrlgl.h +++ b/include/lrlgl.h @@ -22,6 +22,15 @@ int lrlglNormal3f( lua_State *L ); int lrlglColor4ub( lua_State *L ); int lrlglColor3f( lua_State *L ); int lrlglColor4f( lua_State *L ); +/* Vertex buffers state */ +int lrlglEnableVertexArray( lua_State *L ); +int lrlglDisableVertexArray( lua_State *L ); +int lrlglEnableVertexBuffer( lua_State *L ); +int lrlglDisableVertexBuffer( lua_State *L ); +int lrlglEnableVertexBufferElement( lua_State *L ); +int lrlglDisableVertexBufferElement( lua_State *L ); +int lrlglEnableVertexAttribute( lua_State *L ); +int lrlglDisableVertexAttribute( lua_State *L ); /* Textures state */ int lrlglActiveTextureSlot( lua_State *L ); int lrlglEnableTexture( lua_State *L ); @@ -30,6 +39,9 @@ int lrlglEnableTextureCubemap( lua_State *L ); int lrlglDisableTextureCubemap( lua_State *L ); int lrlglTextureParameters( lua_State *L ); int lrlglCubemapParameters( lua_State *L ); +/* Shader state. */ +int lrlglEnableShader( lua_State *L ); +int lrlglDisableShader( lua_State *L ); /* Framebuffer state. */ int lrlglEnableFramebuffer( lua_State *L ); int lrlglDisableFramebuffer( lua_State *L ); @@ -68,6 +80,13 @@ int lrlglGetVersion( lua_State *L ); int lrlglDrawRenderBatchActive( lua_State *L ); int lrlglCheckRenderBatchLimit( lua_State *L ); int lrlglSetTexture( lua_State *L ); +/* Vertex buffers management */ +int lrlglLoadVertexArray( lua_State *L ); +int lrlglLoadVertexBuffer( lua_State *L ); +int lrlglUnloadVertexArray( lua_State *L ); +int lrlglUnloadVertexBuffer( lua_State *L ); +int lrlglSetVertexAttribute( lua_State *L ); +int lrlglDrawVertexArray( lua_State *L ); /* Textures management */ int lrlglLoadTexture( lua_State *L ); int lrlglLoadTextureDepth( lua_State *L ); diff --git a/include/state.h b/include/state.h index 7a2dd95..2082005 100644 --- a/include/state.h +++ b/include/state.h @@ -84,5 +84,5 @@ typedef struct { extern State *state; bool stateInit( const char *exePath ); -bool stateInitInterpret(); +void stateInitInterpret(); void stateFree(); diff --git a/include/textures.h b/include/textures.h index e46c7d9..9bfc512 100644 --- a/include/textures.h +++ b/include/textures.h @@ -37,6 +37,7 @@ int ltexturesImageAlphaCrop( lua_State *L ); int ltexturesImageAlphaClear( lua_State *L ); int ltexturesImageAlphaMask( lua_State *L ); int ltexturesImageAlphaPremultiply( lua_State *L ); +int ltexturesImageBlurGaussian( lua_State *L ); int ltexturesImageResize( lua_State *L ); int ltexturesImageResizeNN( lua_State *L ); int ltexturesImageResizeCanvas( lua_State *L ); @@ -61,6 +62,7 @@ int ltexturesImageClearBackground( lua_State *L ); int ltexturesImageDrawPixel( lua_State *L ); int ltexturesImageDrawLine( lua_State *L ); int ltexturesImageDrawCircle( lua_State *L ); +int ltexturesImageDrawCircleLines( lua_State *L ); int ltexturesImageDrawRectangle( lua_State *L ); int ltexturesImageDrawRectangleLines( lua_State *L ); int ltexturesImageDraw( lua_State *L ); |
