omegalib  13.1
omega::EngineModule Class Reference

Base class for engine modules Engine modules are classes that can be attached to the engine and receive update, event and command calls. More...

#include <ModuleServices.h>

Public Types

enum  Priority {
  PriorityLowest = 0, PriorityLow = 1, PriorityNormal = 2, PriorityHigh = 3,
  PriorityHighest = 4
}
 
enum  OpenGLProfile { CoreProfile, CompatibilityProfile, UnspecifiedProfile }
 

Public Member Functions

 EngineModule (const String &name)
 
 EngineModule ()
 
virtual ~EngineModule ()
 
void requestOpenGLProfile (OpenGLProfile profile)
 This method can be used within an engine module ctor or initialization to test for module compatibility. More...
 
void enableSharedData ()
 
void disableSharedData ()
 
virtual void initialize ()
 
virtual void dispose ()
 
virtual void update (const UpdateContext &context)
 
virtual void handleEvent (const Event &evt)
 
virtual bool handleCommand (const String &cmd)
 
virtual void commitSharedData (SharedOStream &out)
 
virtual void updateSharedData (SharedIStream &in)
 
virtual void initializeRenderer (Renderer *)
 
void doInitialize (Engine *server)
 
void doDispose ()
 
virtual bool isInitialized ()
 
EnginegetEngine ()
 
Priority getPriority ()
 
void setPriority (Priority value)
 
const StringgetName ()
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Friends

class ModuleServices
 

Additional Inherited Members

- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 

Detailed Description

Base class for engine modules Engine modules are classes that can be attached to the engine and receive update, event and command calls.

+ Inheritance diagram for omega::EngineModule:

Member Enumeration Documentation

Enumerator
CoreProfile 
CompatibilityProfile 
UnspecifiedProfile 
Enumerator
PriorityLowest 
PriorityLow 
PriorityNormal 
PriorityHigh 
PriorityHighest 

Constructor & Destructor Documentation

omega::EngineModule::EngineModule ( const String name)
inline
omega::EngineModule::EngineModule ( )
inline
virtual omega::EngineModule::~EngineModule ( )
virtual

Member Function Documentation

virtual void omega::EngineModule::commitSharedData ( SharedOStream out)
inlinevirtual
void omega::EngineModule::disableSharedData ( )
virtual void omega::EngineModule::dispose ( )
inlinevirtual
void omega::EngineModule::doDispose ( )
void omega::EngineModule::doInitialize ( Engine server)
void omega::EngineModule::enableSharedData ( )
Engine* omega::EngineModule::getEngine ( )
inline
const String& omega::EngineModule::getName ( )
inline
Priority omega::EngineModule::getPriority ( )
inline
virtual bool omega::EngineModule::handleCommand ( const String cmd)
inlinevirtual
virtual void omega::EngineModule::initializeRenderer ( Renderer )
inlinevirtual

Reimplemented in omegaToolkit::UiModule, and omega::Console.

virtual bool omega::EngineModule::isInitialized ( )
inlinevirtual
void omega::EngineModule::requestOpenGLProfile ( OpenGLProfile  profile)

This method can be used within an engine module ctor or initialization to test for module compatibility.

After initialization, the module will test requested profile against what the display system is running.

void omega::EngineModule::setPriority ( Priority  value)
inline
virtual void omega::EngineModule::updateSharedData ( SharedIStream in)
inlinevirtual

Friends And Related Function Documentation

friend class ModuleServices
friend

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