Global variable descriptions for API.
This commit is contained in:
@@ -22,8 +22,6 @@ List of some MISSING features that are planned to be included. For specific func
|
|||||||
|
|
||||||
* Core
|
* Core
|
||||||
* VR stereo config functions for VR simulator
|
* VR stereo config functions for VR simulator
|
||||||
* Text
|
|
||||||
* GlyphInfo
|
|
||||||
* Audio
|
* Audio
|
||||||
* AudioStream management functions
|
* AudioStream management functions
|
||||||
|
|
||||||
|
|||||||
473
ReiLua_API.lua
473
ReiLua_API.lua
File diff suppressed because it is too large
Load Diff
@@ -15,6 +15,7 @@ KEY CHANGES:
|
|||||||
- ADDED: GlyphInfo type.
|
- ADDED: GlyphInfo type.
|
||||||
- ADDED: DrawTextEx.
|
- ADDED: DrawTextEx.
|
||||||
- CHANGED: DrawText is now DrawTextEx like in Raylib.
|
- CHANGED: DrawText is now DrawTextEx like in Raylib.
|
||||||
|
- ADDED: Global variable descriptions for API.
|
||||||
|
|
||||||
DETAILED CHANGES:
|
DETAILED CHANGES:
|
||||||
- CHANGED: GenImageColor now takes Vector2 as size.
|
- CHANGED: GenImageColor now takes Vector2 as size.
|
||||||
|
|||||||
1
devnotes
1
devnotes
@@ -16,7 +16,6 @@ Backlog {
|
|||||||
* Shader buffer storage object management (ssbo)
|
* Shader buffer storage object management (ssbo)
|
||||||
|
|
||||||
* Extend color lib functionality.
|
* Extend color lib functionality.
|
||||||
* Global variable descriptions for API.
|
|
||||||
|
|
||||||
* Examples
|
* Examples
|
||||||
* Improve Dungeon crawler example by generating custom mesh instead of drawing 3D quads.
|
* Improve Dungeon crawler example by generating custom mesh instead of drawing 3D quads.
|
||||||
|
|||||||
20
docgen.lua
20
docgen.lua
@@ -271,8 +271,18 @@ repeat
|
|||||||
else
|
else
|
||||||
-- Remove comma from the end.
|
-- Remove comma from the end.
|
||||||
local globalName = lineSplit[2]:sub( 1, -2 )
|
local globalName = lineSplit[2]:sub( 1, -2 )
|
||||||
|
|
||||||
local value = RL[ globalName ]
|
local value = RL[ globalName ]
|
||||||
|
local comment = lineSplit[6] -- First split after //
|
||||||
|
|
||||||
|
if comment ~= nil then
|
||||||
|
local i = 7
|
||||||
|
|
||||||
|
while lineSplit[i] ~= nil do
|
||||||
|
comment = comment.." "..lineSplit[i]
|
||||||
|
i = i + 1
|
||||||
|
end
|
||||||
|
luaApiFile:write( "---"..comment.."\n" )
|
||||||
|
end
|
||||||
|
|
||||||
globalVariableCount = globalVariableCount + 1
|
globalVariableCount = globalVariableCount + 1
|
||||||
|
|
||||||
@@ -288,9 +298,15 @@ repeat
|
|||||||
..math.tointeger( value[1] )..","..math.tointeger( value[2] )..","
|
..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" )
|
||||||
else
|
else
|
||||||
apiFile:write( globalName.." = "..value.."\n\n" )
|
apiFile:write( "> "..globalName.." = "..value.."\n\n" )
|
||||||
luaApiFile:write( "RL."..globalName.."="..value.."\n" )
|
luaApiFile:write( "RL."..globalName.."="..value.."\n" )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if comment ~= nil then
|
||||||
|
apiFile:write( comment.."\n\n" )
|
||||||
|
end
|
||||||
|
|
||||||
|
apiFile:write( "---\n\n" )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
944
src/lua_core.c
944
src/lua_core.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user