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
17void GLClearError();
18bool GLLogCall(const char* function, const char* file, int line);
19
21{
22
23public:
24 void Draw(const VertexArray& va, const IndexBuffer& ib, const Shader& shader) const;
25};
bool GLLogCall(const char *function, const char *file, int line)
Definition Renderer.cpp:10
void GLClearError()
Definition Renderer.cpp:4
void Draw(const VertexArray &va, const IndexBuffer &ib, const Shader &shader) const
Definition Renderer.cpp:20