RunicVTT
Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
Renderer.h
Go to the documentation of this file.
1
#pragma once
2
#include <GL/glew.h>
3
#include <GLFW/glfw3.h>
4
5
#include "
VertexArray.h
"
6
#include "
IndexBuffer.h
"
7
#include "
Shader.h
"
8
9
#define ASSERT(x) \
10
if (!(x)) \
11
__debugbreak();
12
#define GLCall(x) \
13
GLClearError(); \
14
x; \
15
ASSERT(GLLogCall(#x, __FILE__, __LINE__));
16
17
void
GLClearError
();
18
bool
GLLogCall
(
const
char
* function,
const
char
* file,
int
line);
19
20
class
Renderer
21
{
22
23
public
:
24
void
Draw
(
const
VertexArray
& va,
const
IndexBuffer
& ib,
const
Shader
& shader)
const
;
25
};
IndexBuffer.h
GLLogCall
bool GLLogCall(const char *function, const char *file, int line)
Definition
Renderer.cpp:10
GLClearError
void GLClearError()
Definition
Renderer.cpp:4
Shader.h
VertexArray.h
IndexBuffer
Definition
IndexBuffer.h:3
Renderer
Definition
Renderer.h:21
Renderer::Draw
void Draw(const VertexArray &va, const IndexBuffer &ib, const Shader &shader) const
Definition
Renderer.cpp:20
Shader
Definition
Shader.h:16
VertexArray
Definition
VertexArray.h:7
include
renderer
Renderer.h
Generated by
1.10.0