Class Renderer

Class Documentation

class Renderer

Makes the rendering draw call and set viewport, instrumental in seperating Game and HUD rendering.

Public Functions

Renderer(const Renderer&)
Renderer &operator=(const Renderer&)
virtual ~Renderer()
void setViewport(Viewport &viewport)
void resetCurrentShader()
void bind(MaterialResourceFile *newMaterial, MaterialResourceFile *oldMaterial)
void bind(MaterialResourceFile *Material)
void draw(const VertexBuffer *vertexBuffer, const IndexBuffer *indexBuffer) const
void drawInstanced(const VertexBuffer *vertexBuffer, const IndexBuffer *indexBuffer, const VertexBuffer *instanceBuffer, unsigned int instances) const