Thrive
Classes | Public Member Functions | Static Public Member Functions | List of all members
thrive::MembraneSystem Class Reference

Spawns compound particles for CompoundEmitterComponent. More...

#include <membrane_system.h>

Inheritance diagram for thrive::MembraneSystem:
thrive::System

Classes

struct  Implementation
 

Public Member Functions

 MembraneSystem ()
 Constructor.
 
 ~MembraneSystem ()
 Destructor.
 
void init (GameState *gameState) override
 Initializes the system. More...
 
void shutdown () override
 Shuts the system down.
 
void update (int, int) override
 Updates the system. More...
 
- Public Member Functions inherited from thrive::System
 System ()
 Constructor.
 
virtual ~System ()=0
 Destructor.
 
virtual void activate ()
 Called by GameState::activate() More...
 
virtual void deactivate ()
 Called by GameState::deactivate() More...
 
bool enabled () const
 Whether this system is enabled. More...
 
Engine * engine () const
 The system's engine. More...
 
EntityManager * entityManager () const
 Returns the system's entity manager. More...
 
GameState * gameState () const
 Returns the system's game state. More...
 
virtual void initNamed (std::string name, GameState *gameState)
 Initializes the system and gives it a name. More...
 
std::string getName ()
 Returns system name.
 
void setEnabled (bool enabled)
 Sets the enabled status of this system. More...
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 
- Static Public Member Functions inherited from thrive::System
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Detailed Description

Spawns compound particles for CompoundEmitterComponent.

Member Function Documentation

void MembraneSystem::init ( GameState *  gameState)
overridevirtual

Initializes the system.

Parameters
gameState

Reimplemented from thrive::System.

luabind::scope MembraneSystem::luaBindings ( )
static

Lua bindings.

Exposes:

Returns
void MembraneSystem::update ( int  ,
int   
)
overridevirtual

Updates the system.

Create declaration (memory format) of vertex data

Allocate vertex buffer of the requested number of vertices (vertexCount) and bytes per vertex (offset)

Upload the vertex data to the card

Set vertex buffer binding so buffer 0 is bound to our vertex buffer

Allocate index buffer of the requested number of vertices (ibufCount)

Upload the index data to the card

Set parameters of the submesh

Set bounding information (for culling)

Notify -Mesh object that it has been loaded

Implements thrive::System.


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