Accessing pointer from scripts
by Scott Fortner · in Torque Game Engine · 01/02/2004 (1:21 pm) · 1 replies
I created a small class (SplashScreen) with just a few functions to create and destroy a dialog box. In winWindow.cc, just before WinMain, I added:
static SplashScreen* m_pSplash;
In WinMain, I added:
m_pSplash = new SplashScreen(hInstance);
m_pSplash->Load();
Everything works fine up to this point. As soon as the app starts, the dialog box pops up. How do I call my functions for this object from the scripts? I want to call 'm_pSplash->Unload();' from within the scripts, but am not sure how. Thanks.
static SplashScreen* m_pSplash;
In WinMain, I added:
m_pSplash = new SplashScreen(hInstance);
m_pSplash->Load();
Everything works fine up to this point. As soon as the app starts, the dialog box pops up. How do I call my functions for this object from the scripts? I want to call 'm_pSplash->Unload();' from within the scripts, but am not sure how. Thanks.
About the author
Associate Kyle Carter