Buffer userdata object and rlgl Vertex buffers management.
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user