diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/core.h | 1 | ||||
| -rw-r--r-- | include/lrlgl.h | 8 | ||||
| -rw-r--r-- | include/lua_core.h | 14 |
3 files changed, 23 insertions, 0 deletions
diff --git a/include/core.h b/include/core.h index bfedf81..bc3a0e0 100644 --- a/include/core.h +++ b/include/core.h @@ -46,6 +46,7 @@ int lcoreSetTraceLogLevel( lua_State *L ); int lcoreSetLogLevelInvalid( lua_State *L ); int lcoreGetLogLevelInvalid( lua_State *L ); int lcoreOpenURL( lua_State *L ); +int lcoreLoadBuffer( lua_State *L ); /* Cursor. */ int lcoreShowCursor( lua_State *L ); int lcoreHideCursor( lua_State *L ); diff --git a/include/lrlgl.h b/include/lrlgl.h index 7ca2740..e414215 100644 --- a/include/lrlgl.h +++ b/include/lrlgl.h @@ -83,10 +83,18 @@ int lrlglSetTexture( lua_State *L ); /* Vertex buffers management */ int lrlglLoadVertexArray( lua_State *L ); int lrlglLoadVertexBuffer( lua_State *L ); +int lrlglLoadVertexBufferElement( lua_State *L ); +int lrlglUpdateVertexBuffer( lua_State *L ); +int lrlglUpdateVertexBufferElements( lua_State *L ); int lrlglUnloadVertexArray( lua_State *L ); int lrlglUnloadVertexBuffer( lua_State *L ); int lrlglSetVertexAttribute( lua_State *L ); +int lrlglSetVertexAttributeDivisor( lua_State *L ); +int lrlglSetVertexAttributeDefault( lua_State *L ); int lrlglDrawVertexArray( lua_State *L ); +int lrlglDrawVertexArrayElements( lua_State *L ); +int lrlglDrawVertexArrayInstanced( lua_State *L ); +int lrlglDrawVertexArrayElementsInstanced( lua_State *L ); /* Textures management */ int lrlglLoadTexture( lua_State *L ); int lrlglLoadTextureDepth( lua_State *L ); diff --git a/include/lua_core.h b/include/lua_core.h index ed5fb7d..32c809c 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -14,6 +14,20 @@ enum EventType { EVENT_CURSOR_ENTER }; +enum BufferType { + BUFFER_UNSIGNED_CHAR, + BUFFER_UNSIGNED_SHORT, + BUFFER_UNSIGNED_INT, + BUFFER_FLOAT, +}; + +typedef struct { + size_t size; + void *data; + int x; + int y; +} Buffer; + bool luaInit( int argn, const char **argc ); int luaTraceback( lua_State *L ); bool luaCallMain(); |
