From 0f8d0e3cfdbd9b11b2357ed3e1a11375e7af8e80 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 02:01:17 +0000 Subject: Initial commit --- src/graphics/graphicsdebug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/graphics/graphicsdebug.h (limited to 'src/graphics/graphicsdebug.h') diff --git a/src/graphics/graphicsdebug.h b/src/graphics/graphicsdebug.h new file mode 100644 index 0000000..9be33b4 --- /dev/null +++ b/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