RunicVTT Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
Renderer Class Reference

#include <Renderer.h>

Collaboration diagram for Renderer:

Public Member Functions

void Draw (const VertexArray &va, const IndexBuffer &ib, const Shader &shader) const
 

Detailed Description

Definition at line 20 of file Renderer.h.

Member Function Documentation

◆ Draw()

void Renderer::Draw ( const VertexArray & va,
const IndexBuffer & ib,
const Shader & shader ) const

Definition at line 20 of file Renderer.cpp.

21{
22 shader.Bind();
23 va.Bind();
24 ib.Bind();
25 int count = ib.GetCount();
26 GLCall(glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_INT, nullptr));
27}
#define GLCall(x)
Definition Renderer.h:12

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