Untitled Game engine no.5  1.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
Engine::Renderer Class Referenceabstract

#include <Renderer.hpp>

Inheritance diagram for Engine::Renderer:
Inheritance graph
[legend]

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< RendererCreate ()
 Create the render API.
 

Friends

struct Transform
 

Detailed Description

Mesh struct definition wrapper for a rendering system

Member Function Documentation

◆ AddTag()

virtual void Engine::Renderer::AddTag ( const std::string &  name,
RenderTag  tag,
ViewProjection  projection = PROJECTION 
)
pure virtual

Add a tag to render with

Parameters
nameof this tag
tagto be added

Implemented in Engine::GLRenderer.

◆ SetClearColor()

virtual void Engine::Renderer::SetClearColor ( unsigned int  c)
pure virtual

Set the color for the background whenever the color is cleared.

Parameters
ccolor of the background as hex

◆ Submit()

virtual void Engine::Renderer::Submit ( const std::string &  tag,
const Ref< Transform > &  transform,
const Ref< MeshRenderer > &  renderer 
)
pure virtual

Submit an object to the render queue

Parameters
meshto draw
transformlocation to draw at

Implemented in Engine::GLRenderer.


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