xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
typedef.hpp
浏览该文件的文档.
1#pragma once
2#if defined(GL_BACKEND_GLBINDING) && defined(GL_BACKEND_GLAD)
3# error "Cannot define both GL_BACKEND_GLBINDING and GL_BACKEND_GLAD"
4#endif
5
6typedef struct GLFWwindow GLFWwindow;
7namespace gl {
8#ifdef GL_BACKEND_GLBINDING
9enum class GLenum : unsigned int;
10#elif defined(GL_BACKEND_GLAD)
11typedef unsigned char GLboolean;
12typedef unsigned int GLenum;
13#endif
14typedef unsigned int GLbitfield;
15typedef signed char GLbyte;
16typedef short GLshort;
17typedef int GLint;
18typedef int GLsizei;
19typedef unsigned char GLubyte;
20typedef unsigned short GLushort;
21typedef unsigned int GLuint;
22typedef float GLfloat;
23typedef float GLclampf;
24typedef double GLdouble;
25typedef double GLclampd;
26typedef void GLvoid;
27} // namespace gl
28
29#ifdef GL_BACKEND_GLBINDING
30namespace glbinding {
31class GLboolean;
32};
33#elif defined(GL_BACKEND_GLAD)
34#endif
35
37class Object;
38}
40class Shader;
41class ShaderProgram;
42class VertexArrayObject;
43class Buffer;
44} // namespace xcal::render::opengl::GL
Definition typedef.hpp:7
short GLshort
Definition typedef.hpp:16
float GLfloat
Definition typedef.hpp:22
signed char GLbyte
Definition typedef.hpp:15
float GLclampf
Definition typedef.hpp:23
int GLint
Definition typedef.hpp:17
unsigned char GLubyte
Definition typedef.hpp:19
int GLsizei
Definition typedef.hpp:18
double GLdouble
Definition typedef.hpp:24
unsigned int GLbitfield
Definition typedef.hpp:14
unsigned short GLushort
Definition typedef.hpp:20
unsigned int GLuint
Definition typedef.hpp:21
double GLclampd
Definition typedef.hpp:25
void GLvoid
Definition typedef.hpp:26
struct GLFWwindow GLFWwindow
Definition typedef.hpp:6