summaryrefslogtreecommitdiff
path: root/examples/basic_lighting/main.lua
diff options
context:
space:
mode:
authorjussi2025-06-02 20:49:51 +0300
committerjussi2025-06-02 20:49:51 +0300
commit5b8af05e96b33f2d032cc31a329b89e1231d5502 (patch)
tree9ea0f70bae6c77cfc0edeb3f4b0b11fa9fb6be94 /examples/basic_lighting/main.lua
parente26bb8603c5a4053f2790fc7d6ce02b3179f5289 (diff)
downloadreilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.tar.gz
reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.tar.bz2
reilua-enhanced-5b8af05e96b33f2d032cc31a329b89e1231d5502.zip
Frustum math from raylib extras.
Diffstat (limited to 'examples/basic_lighting/main.lua')
-rw-r--r--examples/basic_lighting/main.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/basic_lighting/main.lua b/examples/basic_lighting/main.lua
index 52552c3..8c5aed0 100644
--- a/examples/basic_lighting/main.lua
+++ b/examples/basic_lighting/main.lua
@@ -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