human_render/src/RHI/OpenglDrv/gl.h

16 lines
339 B
C
Raw Normal View History

2024-11-28 17:09:00 +00:00
#pragma once
//#include <glad/glad.h>
2024-12-01 17:31:51 +00:00
#include "Core/Logger.h"
2024-11-28 17:09:00 +00:00
#define GLEW_STATIC
#include <GL/glew.h>
#include <glfw/glfw3.h>
2024-12-01 17:31:51 +00:00
#define __CHECK_GL_ERROR__ { \
auto gl_error_code=glGetError();\
if(gl_error_code!=GL_NO_ERROR){\
ERRORLOG("gl_error_code: {}", static_cast<int>(gl_error_code));\
}\
}