Vivid
Loading...
Searching...
No Matches
Vivid::Renderer Class Reference

Handles all the rendering of the vertices. More...

#include <Renderer.h>

Static Public Member Functions

static void Draw (Ref< VertexArray > va, unsigned int indexCount, unsigned int instanceCount=1)
 Initializes the Renderer.
 
static void DrawLine (Ref< VertexArray > va, unsigned int vertexCount)
 
static void Clear ()
 

Detailed Description

Handles all the rendering of the vertices.

Renderer is a class that contains the functions to draw the vertices of a mesh.

Definition at line 17 of file Renderer.h.

Member Function Documentation

◆ Clear()

void Vivid::Renderer::Clear ( )
static

Definition at line 12 of file Renderer.cpp.

◆ Draw()

void Vivid::Renderer::Draw ( Ref< VertexArray va,
unsigned int  indexCount,
unsigned int  instanceCount = 1 
)
static

Initializes the Renderer.

Initializes the Renderer by enabling the depth test and the blending.

Parameters
vaThe VertexArray to draw.
indexCountThe number of indices to draw.
instanceCountThe number of instances to draw. Default is 1.

Definition at line 5 of file Renderer.cpp.


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