From 5b8af05e96b33f2d032cc31a329b89e1231d5502 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 2 Jun 2025 20:49:51 +0300 Subject: Frustum math from raylib extras. --- examples/basic_lighting/main.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/basic_lighting') 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 -- cgit v1.2.3