From 895c7f1a06de2d89347909d62da41be9d62f0d09 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 12 Apr 2023 00:05:57 +0300 Subject: glBlitFramebuffer. --- doc_parser.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc_parser.lua') diff --git a/doc_parser.lua b/doc_parser.lua index cdacb2c..52e9fe7 100644 --- a/doc_parser.lua +++ b/doc_parser.lua @@ -122,6 +122,7 @@ luaApiFile:write( local srcFile = io.open( "../src/lua_core.c", "r" ) local writing = false +local globalVariableCount = 0 repeat line = srcFile:read( "*l" ) @@ -144,6 +145,7 @@ repeat local value = RL[ globalName ] globalName = "RL."..globalName + globalVariableCount = globalVariableCount + 1 if value == nil then luaApiFile:write( globalName.."=nil\n" ) @@ -259,9 +261,12 @@ local sourceFiles = { "rgui", "lights", "rlgl", + "gl", "easings", } +local functionCount = 0 + for _, src in ipairs( sourceFiles ) do srcFile = io.open( "../src/"..src..".c", "r" ) local line = "" @@ -289,6 +294,7 @@ for _, src in ipairs( sourceFiles ) do luaApiFile:write( "-- "..line:sub( 4 ).."\n" ) elseif line:sub( 1, 1 ) == ">" then funcStr = parseFunction( line ) + functionCount = functionCount + 1 elseif line:sub( 1, 1 ) ~= "" then luaApiFile:write( "---"..line.."\n" ) end @@ -310,3 +316,5 @@ end if not separate then apiFile:close() end + +print( "Parsed:\n"..globalVariableCount.." Global variables\n"..functionCount.." Functions" ) \ No newline at end of file -- cgit v1.2.3