Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::PhysicsExtension Struct Reference
Inheritance diagram for Cogs::Core::PhysicsExtension:
Cogs::Core::Extension

Public Member Functions

bool initializeStatic () override final
 Initialize extension statically.
 
bool initialize (Context *context) override final
 Initialize extension for the given context.
 
const char * getExtensionKey () const final
 Get the extensions unique key, used to check for extension presence and retrieve extension specific data from the context.
 
- Public Member Functions inherited from Cogs::Core::Extension
virtual bool initializeStatic ()
 Initialize extension statically.
 
virtual bool initialize (Context *)
 Initialize extension for the given context.
 
virtual void cleanup (Context *)
 Cleanup context bound extension content.
 
virtual const char * getExtensionKey () const =0
 Get the extensions unique key, used to check for extension presence and retrieve extension specific data from the context.
 
virtual void * getSymbolPointer (const char *) const
 Get pointer to symbol defined by extension.
 
virtual const void * getPublicAPI () const
 Retrieve a pointer to a struct containing all publicly available function pointers.
 

Public Attributes

PhysicsManagermanager
 

Detailed Description

Definition at line 19 of file PhysicsExtension.cpp.

Constructor & Destructor Documentation

◆ PhysicsExtension()

Cogs::Core::PhysicsExtension::PhysicsExtension ( )
inline

Definition at line 21 of file PhysicsExtension.cpp.

Member Function Documentation

◆ getExtensionKey()

const char * Cogs::Core::PhysicsExtension::getExtensionKey ( ) const
inlinefinalvirtual

Get the extensions unique key, used to check for extension presence and retrieve extension specific data from the context.

Returns
Pointer to a null-terminated string containing the name of the extension.

Implements Cogs::Core::Extension.

Definition at line 74 of file PhysicsExtension.cpp.

◆ initialize()

bool Cogs::Core::PhysicsExtension::initialize ( Context )
inlinefinaloverridevirtual

Initialize extension for the given context.

Override this method to provide context bound initialization. This can for example be registering entity definitions in the entity store, creating component systems in the context, or other per context tasks.

Parameters
contextContext currently being initialized.

Reimplemented from Cogs::Core::Extension.

Definition at line 50 of file PhysicsExtension.cpp.

References Cogs::Core::SystemPriority::PreTransform.

◆ initializeStatic()

bool Cogs::Core::PhysicsExtension::initializeStatic ( )
inlinefinaloverridevirtual

Initialize extension statically.

Override this method to provide static initialization code. This can for example be filling data tables for later use, registering types in the static type system or other tasks that are only necessary to perform once per application run.

Reimplemented from Cogs::Core::Extension.

Definition at line 23 of file PhysicsExtension.cpp.

References Cogs::Core::GhostComponent::registerType(), Cogs::Core::RigidBodyComponent::registerType(), and Cogs::Core::TriggerComponent::registerType().

Member Data Documentation

◆ manager

PhysicsManager* Cogs::Core::PhysicsExtension::manager

Definition at line 76 of file PhysicsExtension.cpp.


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