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
This commit is contained in:
Lynix 2016-08-28 18:26:35 +02:00
parent 11baa02ec3
commit c1835575c6
1 changed files with 4 additions and 0 deletions

View File

@ -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())
{