From 5639422e076613a33b9de1b66dfee0f7fcbd4359 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: 7f093d97c1dc0745adf24cdb18a5158655f60731 [formerly a02df9014928696f8ccbdc227fc21a0284bd8f09] [formerly 289a9528be967e1c2da499a5bf4561953e2ac419 [formerly 788d4ddfd4cb8aa135f4437b1792fd061beed5fd]] Former-commit-id: a988435b3336fbc459d6403d7cb5576f6c21a338 [formerly 76549542dfd1f801a7942f36352f7791f76ebf1b] Former-commit-id: 7defd9313e4ac9b782849153a850fadae1774624 --- 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()) {