Class RenderSystem

Inheritance Relationships

Base Types

Class Documentation

class RenderSystem : public ari::System, public ari::EventSubscriber<events::OnComponentAssigned<BoxShape>>, public ari::EventSubscriber<events::OnFrameData>

Public Types

enum VertexType

Values:

Pos
Color
Count

Public Functions

RenderSystem()
~RenderSystem()
void Update(World *p_world, UpdateState state)

Update the system.

void Configure(World *p_world)

Configure the system after adding it to the world.

void Unconfigure(World *p_world)

Unconfigure the system before removing it from the world.

Type GetSystemType()

Returns the system type.

bool NeedUpdateOnState(UpdateState state)

Ask the system if needs update on different states.

void Receive(World *world, const events::OnComponentAssigned<BoxShape> &event)

Called when an event is emitted by the world.

void Receive(World *world, const events::OnFrameData &event)

Called when an event is emitted by the world.

bgfx::VertexDecl *GetVertexDecl(VertexType vertex_type) const
bgfx::ProgramHandle *GetProgram() const

Protected Attributes

bgfx::VertexDecl *m_pVertexDeclArray
bgfx::ProgramHandle *m_Program
FrameData *m_pFrameDataCurrent
FrameData *m_pFrameDataNext
uint16_t m_view_id = 0