uluaGet* pops lua stack correctly when userdata given in table.

This commit is contained in:
jussi
2025-06-11 17:00:25 +03:00
parent 5b8af05e96
commit a38e76873b
6 changed files with 177 additions and 64 deletions

View File

@@ -29,6 +29,7 @@ function RL.init()
RL.SetWindowPosition( { mPos[1] + mSize[1] / 2 - winSize[1] / 2, mPos[2] + mSize[2] / 2 - winSize[2] / 2 } )
RL.SetWindowTitle( "Instancing" )
RL.SetWindowState( RL.FLAG_VSYNC_HINT )
RL.SetGCUnload( false )
-- Define the camera to look into our 3d world
camera = RL.CreateCamera3D()
@@ -108,3 +109,8 @@ function RL.draw()
RL.DrawFPS( { 10, 10 } )
end
function RL.exit()
RL.UnloadMaterial( matInstances, true )
RL.UnloadMesh( cube )
end