#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "VertexArray.h"
#include "IndexBuffer.h"
#include "Shader.h"
Go to the source code of this file.
◆ ASSERT
Value: if (!(x)) \
__debugbreak();
Definition at line 9 of file Renderer.h.
9#define ASSERT(x) \
10 if (!(x)) \
11 __debugbreak();
◆ GLCall
Value:
x; \
bool GLLogCall(const char *function, const char *file, int line)
Definition at line 12 of file Renderer.h.
12#define GLCall(x) \
13 GLClearError(); \
14 x; \
15 ASSERT(GLLogCall(#x, __FILE__, __LINE__));
◆ GLClearError()
Definition at line 4 of file Renderer.cpp.
5{
6 while (glGetError() != GL_NO_ERROR)
7 ;
8}
◆ GLLogCall()
| bool GLLogCall |
( |
const char * | function, |
|
|
const char * | file, |
|
|
int | line ) |
Definition at line 10 of file Renderer.cpp.
11{
12 while (GLenum error = glGetError())
13 {
14 std::cout << "[OpenGl Error] (" << error << "): " << function << " " << file << ":" << line << std::endl;
15 return false;
16 }
17 return true;
18}