aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/graphicsdebug.h
blob: 9be33b4d012d55596d46b7804c16272240134ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <GL/glew.h>
#include <string>

#define GRAPHICS_DEBUG_LEVEL 0

void checkError(std::string prefix = "");
void printGLErrorCodeInEnglish(GLenum err);

void checkFramebufferStatus();
void printFramebufferErrorCodeInEnglish(GLenum err);

void checkShaderCompilationStatus(GLuint shaderID);
void checkShaderLinkStatus(GLuint shaderProgramID);