My Project
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
ParaEngine::CParaEngineCore Class Reference

It implements the IParaEngineCore interface, which exposes everything in ParaEngine to plug-in applications. More...

#include <ParaEngineCore.h>

Inheritance diagram for ParaEngine::CParaEngineCore:
ParaEngine::IParaEngineCore ParaEngine::BaseInterface

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 IParaEngineAppGetAppInterface ()
 get the ParaEngine app interface. More...
 
virtual IParaEngineAppCreateApp ()
 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 IParaEngineCoreGetStaticInterface ()
 
static CParaEngineCoreGetInstance ()
 
static IParaEngineCoreGetParaEngineCOREInterface ()
 

Static Protected Attributes

static WeakPtr m_pAppSingleton
 

Detailed Description

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");

Member Function Documentation

§ CreateApp()

IParaEngineApp * CParaEngineCore::CreateApp ( )
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.

§ Destroy()

void ParaEngine::CParaEngineCore::Destroy ( )
virtual

one should call this when you no longer need this application, usually as the last line of your code.

Reimplemented from ParaEngine::IParaEngineCore.

§ DestroySingleton()

void ParaEngine::CParaEngineCore::DestroySingleton ( )

it is recommended to call this function.

§ ForceRender()

bool CParaEngineCore::ForceRender ( )
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.

§ GetAppInterface()

IParaEngineApp * CParaEngineCore::GetAppInterface ( )
virtual

get the ParaEngine app interface.

Please note that this function may return NULL, if no app is created.

Implements ParaEngine::IParaEngineCore.

§ Sleep()

bool CParaEngineCore::Sleep ( float  fSeconds)
virtual

cause the main thread to sleep for the specified seconds.

Implements ParaEngine::IParaEngineCore.


The documentation for this class was generated from the following files: