My Project
|
It implements the IParaEngineCore interface, which exposes everything in ParaEngine to plug-in applications. More...
#include <ParaEngineCore.h>
Public Member Functions | |
virtual DWORD | GetVersion () |
virtual bool | Sleep (float fSeconds) |
cause the main thread to sleep for the specified seconds. More... | |
virtual HWND | GetParaEngineHWnd () |
return invalid | |
virtual bool | ForceRender () |
render the current frame and does not return until everything is presented to screen. More... | |
virtual IParaEngineApp * | GetAppInterface () |
get the ParaEngine app interface. More... | |
virtual IParaEngineApp * | CreateApp () |
create an ParaEngine application. More... | |
virtual void | Destroy () |
one should call this when you no longer need this application, usually as the last line of your code. More... | |
void | DestroySingleton () |
it is recommended to call this function. More... | |
Static Public Member Functions | |
static IParaEngineCore * | GetStaticInterface () |
static CParaEngineCore * | GetInstance () |
static IParaEngineCore * | GetParaEngineCOREInterface () |
Static Protected Attributes | |
static WeakPtr | m_pAppSingleton |
It implements the IParaEngineCore interface, which exposes everything in ParaEngine to plug-in applications.
this class is only used in ParaEngine dll plugins to call main exe functions from the loaded DLL The dll no need to actually link to the executable.
It uses GetProcAddress in win32. Under linux, it just calls GetCOREInterface() directly. usage: ParaEngine::CParaEngineCore::GetParaEngineCOREInterface()->WriteToLog("hello %s\n", "world");
|
virtual |
create an ParaEngine application.
Each application is associated with a win32 window. this function is mostly called from host application to create the application object.
Implements ParaEngine::IParaEngineCore.
|
virtual |
one should call this when you no longer need this application, usually as the last line of your code.
Reimplemented from ParaEngine::IParaEngineCore.
void ParaEngine::CParaEngineCore::DestroySingleton | ( | ) |
it is recommended to call this function.
|
virtual |
render the current frame and does not return until everything is presented to screen.
this function is usually used to draw the animated loading screen.
Implements ParaEngine::IParaEngineCore.
|
virtual |
get the ParaEngine app interface.
Please note that this function may return NULL, if no app is created.
Implements ParaEngine::IParaEngineCore.
|
virtual |
cause the main thread to sleep for the specified seconds.
Implements ParaEngine::IParaEngineCore.