Frustum math from raylib extras.
This commit is contained in:
@@ -22,6 +22,7 @@ function RL.init()
|
||||
local mSize = Vec2:newT( RL.GetMonitorSize( monitor ) )
|
||||
local winSize = Vec2:new( 1028, 720 )
|
||||
|
||||
RL.SetGCUnload( false )
|
||||
RL.SetWindowTitle( "Simple Lighting" )
|
||||
RL.SetWindowState( RL.FLAG_WINDOW_RESIZABLE )
|
||||
RL.SetWindowState( RL.FLAG_VSYNC_HINT )
|
||||
@@ -138,3 +139,9 @@ function RL.draw()
|
||||
|
||||
RL.DrawText( "Use keys [Y][R][G][B] to toggle lights", { 10, 10 }, 20, RL.DARKGRAY )
|
||||
end
|
||||
|
||||
function RL.exit()
|
||||
RL.UnloadMaterial( material, true )
|
||||
RL.UnloadMesh( plane )
|
||||
RL.UnloadMesh( cube )
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user