3#include "dependency_glad.h"
25#if FF_HAS(ENABLE_GL_DEBUG)
45 #define SET_DEBUG_LABEL(ID, FOR) set_gl_debug_label(FOR, ID, debug_label)
46 #define SET_DEBUG_LABEL_NAMED(ID, FOR, NAME) set_gl_debug_label(FOR, ID, NAME)
62 #define CONCAT_IMPL(x, y) x##y
63 #define CONCAT(x, y) CONCAT_IMPL(x, y)
64 #define SCOPED_DEBUG_GROUP(TEXT) [[maybe_unused]] const ScopedDebugGroup CONCAT(sc, __LINE__){TEXT}
71 #define SET_DEBUG_LABEL(ID, FOR) opengl_nop()
72 #define SET_DEBUG_LABEL_NAMED(ID, FOR, NAME) opengl_nop()
74 #define SCOPED_DEBUG_GROUP(TEXT) opengl_nop()
void setup_opengl_debug()
void destroy_vertex_array(u32 vao)
GLuint gluint_from_int(int i)
GLsizei glsizei_from_sizet(std::size_t t)
void set_gl_viewport(const Size &sz)
void destroy_buffer(u32 vbo)
GLsizeiptr glsizeiptr_from_sizet(std::size_t t)
u32 create_vertex_array()
GLenum glenum_from_int(int i)
constexpr void opengl_nop()
A (inclusive) range between two values.
"render to texture" feature