/* * Copyright (C) 2018 Tomasz Kramkowski * SPDX-License-Identifier: MIT */ #ifndef GL_H #define GL_H #include typedef void *gl_loadfunc(const char *name); void gl_load(gl_loadfunc *load); const char *gl_strerror(GLenum error); #define _GL_FUNC(rtype, name, type, ...) \ typedef rtype type(__VA_ARGS__); \ extern type *name; #define GL_FUNC(glname, rtype, name, ...) _GL_FUNC(rtype, name, name##_func, __VA_ARGS__) #include "glfunc.h" #undef GL_FUNC #undef _GL_FUNC #endif // GL_H