Untitled Game engine no.5
1.0
|
#include <Renderer.hpp>
Public Types | |
enum | API { None = 0, OpenGL = 1 } |
Rendering system api enumeration. | |
Public Member Functions | |
virtual void | Init ()=0 |
Initialize the render api. | |
virtual void | Shutdown ()=0 |
Shutdown the render api. | |
virtual void | SetClearColor (unsigned int c)=0 |
virtual void | Clear ()=0 |
Clear the screen. | |
virtual void | AddTag (const std::string &name, RenderTag tag, ViewProjection projection=PROJECTION)=0 |
virtual void | Submit (const std::string &tag, const Ref< Transform > &transform, const Ref< MeshRenderer > &renderer)=0 |
virtual void | Flush ()=0 |
Render all content in the render queue now! | |
Static Public Member Functions | |
static API | GetAPI () |
Get the current api we are using. | |
static Uni< Renderer > | Create () |
Create the render API. | |
Friends | |
struct | Transform |
Mesh struct definition wrapper for a rendering system
|
pure virtual |
Add a tag to render with
name | of this tag |
tag | to be added |
Implemented in Engine::GLRenderer.
|
pure virtual |
Set the color for the background whenever the color is cleared.
c | color of the background as hex |
|
pure virtual |
Submit an object to the render queue
mesh | to draw |
transform | location to draw at |
Implemented in Engine::GLRenderer.