redhand::drawing_event class

raise a new drawing event that is raised once every draw tick.

This event is independet form game loop events and should be used to draw the game_objects.

Base classes

template<class T>
class event<complex_world>
A general class for raising events, specific events types should be a subclass of this general event.

Constructors, destructors, conversion operators

drawing_event(complex_world* raiser, std::shared_ptr<shader> shade)
raise a new drawing event that is raised once every draw tick.

Public functions

auto getDefaultShader() -> std::shared_ptr<shader>
Get the Default Shader to render most objects.

Function documentation

redhand::drawing_event::drawing_event(complex_world* raiser, std::shared_ptr<shader> shade)

raise a new drawing event that is raised once every draw tick.

Parameters
raiser a pointer to the object that raised the event
shade

This event is independet form game loop events and should be used to draw the game_objects.

std::shared_ptr<shader> redhand::drawing_event::getDefaultShader()

Get the Default Shader to render most objects.

Returns std::shared_ptr<shader> A shared pointer to the default shader