From 56c365c8cc88455d69df42e7842c986e760c776e Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 26 Oct 2023 20:09:16 +0300 Subject: Buffer userdata object and rlgl Vertex buffers management. --- docgen.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docgen.lua') diff --git a/docgen.lua b/docgen.lua index 1927633..d3fc047 100644 --- a/docgen.lua +++ b/docgen.lua @@ -155,18 +155,18 @@ repeat globalVariableCount = globalVariableCount + 1 if value == nil then - apiFile:write( "\n"..globalName.." = nil\n" ) + apiFile:write( "\n"..globalName.." = nil\n\n" ) luaApiFile:write( "RL."..globalName.."=nil\n" ) elseif type( value ) == "table" then -- All tables are colors. apiFile:write( globalName.." = { " ..math.tointeger( value[1] )..", "..math.tointeger( value[2] )..", " - ..math.tointeger( value[3] )..", "..math.tointeger( value[4] ).." }\n" ) + ..math.tointeger( value[3] )..", "..math.tointeger( value[4] ).." }\n\n" ) luaApiFile:write( "RL."..globalName.."={" ..math.tointeger( value[1] )..","..math.tointeger( value[2] ).."," ..math.tointeger( value[3] )..","..math.tointeger( value[4] ).."}\n" ) else - apiFile:write( globalName.." = "..value.."\n" ) + apiFile:write( globalName.." = "..value.."\n\n" ) luaApiFile:write( "RL."..globalName.."="..value.."\n" ) end end @@ -257,6 +257,8 @@ apiFile:write( "\n> NPatchInfo = { { 0, 0, 24, 24 }, 8, 8, 8, 8, NPATCH_NINE_PAT { Texture source rectangle, Left border offset, Top border offset, Right border offset, Bottom border offset, Layout of the n-patch: 3x3, 1x3 or 3x1 }\n\n---\n" ) apiFile:write( "\n> ModelAnimations = ModelAnimationsId\n\ int id. ModelAnimations\n\n---\n" ) +apiFile:write( "\n> Buffer = Buffer userdata\n\ +Userdata.\n\n---\n" ) -- Events. -- cgit v1.2.3