From c1835575c62e179e8e6d21b615dfca5219621811 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 28 Aug 2016 18:26:35 +0200 Subject: [PATCH] Example/FirstScene: Setup Spaceship and World lua variables Former-commit-id: c113b91b5b13018cecab3e54fd74a92f728745eb [formerly ee0a0b6d6bfe0a1b66a85bf00700bbd2665a71b1] [formerly 626c1b3e83cf5c1d6fb381c75a93da461c2fcdbc [formerly 70589bc22f397ac5e3e3981e1e6963dafaf498f6]] Former-commit-id: 86c08c93a0f18ef60d9cc2d73f229ce6988c81c9 [formerly e9a73b6e5d65a109fe92e13c81625d9a3e54b2a1] Former-commit-id: 567a523fd81ac349eb7268299e928396d20dedca --- examples/FirstScene/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/FirstScene/main.cpp b/examples/FirstScene/main.cpp index b1e7e2a64..e7c5b2c90 100644 --- a/examples/FirstScene/main.cpp +++ b/examples/FirstScene/main.cpp @@ -269,6 +269,10 @@ int main() application.EnableConsole(true); application.EnableFPSCounter(true); + Ndk::Application::ConsoleOverlay& consoleOverlay = application.GetConsoleOverlay(); + consoleOverlay.lua.PushGlobal("Spaceship", spaceship->CreateHandle()); + consoleOverlay.lua.PushGlobal("World", world->CreateHandle()); + // Début de la boucle de rendu du programme (s'occupant par exemple de mettre à jour le monde) while (application.Run()) {