From 47cd8a592ecad52c1b01f27d23476c0a5afeb7f1 Mon Sep 17 00:00:00 2001 From: Sebastian Park Date: Wed, 10 Apr 2024 02:45:04 -0400 Subject: initial --- wave-sim/src/graphics/graphicsdebug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wave-sim/src/graphics/graphicsdebug.h (limited to 'wave-sim/src/graphics/graphicsdebug.h') diff --git a/wave-sim/src/graphics/graphicsdebug.h b/wave-sim/src/graphics/graphicsdebug.h new file mode 100644 index 0000000..9be33b4 --- /dev/null +++ b/wave-sim/src/graphics/graphicsdebug.h @@ -0,0 +1,15 @@ +#pragma once + +#include +#include + +#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); -- cgit v1.2.3-70-g09d2