ManaPlus
mgl.hpp
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2012-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #define MGL_DEFINE
23 
24 defName(glGenRenderbuffers);
25 defName(glBindRenderbuffer);
26 defName(glRenderbufferStorage);
27 defName(glGenFramebuffers);
28 defName(glBindFramebuffer);
29 defName(glFramebufferTexture2D);
30 defName(glFramebufferRenderbuffer);
31 defName(glDeleteFramebuffers);
32 defName(glDeleteRenderbuffers);
33 defName(glGetStringi);
34 defName(glGenSamplers);
35 defName(glDeleteSamplers);
36 defName(glBindSampler);
37 defName(glSamplerParameteri);
38 defName(glDebugMessageControl);
39 defName(glDebugMessageCallback);
40 defName(glFrameTerminator);
41 defName(glLabelObject);
42 defName(glGetObjectLabel);
43 defName(glInsertEventMarker);
44 defName(glPushGroupMarker);
45 defName(glPopGroupMarker);
46 defName(glGenVertexArrays);
47 defName(glBindVertexArray);
48 defName(glDeleteVertexArrays);
49 defName(glDisableVertexAttribArray);
50 defName(glDeleteShader);
51 defName(glGetShaderInfoLog);
52 defName(glGetShaderSource);
53 defName(glDetachShader);
54 defName(glGetAttachedShaders);
55 defName(glGetActiveUniform);
56 defName(glBindFragDataLocation);
57 #ifndef __native_client__
58 defName(glDeleteProgram);
59 defName(glCreateProgram);
60 defName(glGetProgramiv);
61 defName(glLinkProgram);
62 defName(glAttachShader);
63 defName(glGetShaderiv);
64 defName(glCompileShader);
65 defName(glShaderSource);
66 defName(glCreateShader);
67 defName(glGetUniformLocation);
68 defName(glGenBuffers);
69 defName(glDeleteBuffers);
70 defName(glBindBuffer);
71 defName(glBufferData);
72 defName(glEnableVertexAttribArray);
73 defName(glVertexAttribPointer);
74 defName(glUseProgram);
75 defName(glUniform1f);
76 defName(glUniform2f);
77 defName(glUniform4f);
78 defName(glValidateProgram);
79 defName(glGetProgramInfoLog);
80 defName(glBindAttribLocation);
81 defName(glActiveTexture);
82 
83 #define mglDrawArrays(...) \
84  glDrawArrays(__VA_ARGS__)
85 #define mglDisable(...) \
86  glDisable(__VA_ARGS__)
87 #define mglHint(...) \
88  glHint(__VA_ARGS__)
89 #define mglScissor(...) \
90  glScissor(__VA_ARGS__)
91 #define mglEnable(...) \
92  glEnable(__VA_ARGS__)
93 #define mglBindTexture(...) \
94  glBindTexture(__VA_ARGS__)
95 #define mglGetIntegerv(...) \
96  glGetIntegerv(__VA_ARGS__)
97 #define mglClear(...) \
98  glClear(__VA_ARGS__)
99 #define mglGetString(...) \
100  glGetString(__VA_ARGS__)
101 #define mglTexParameteri(...) \
102  glTexParameteri(__VA_ARGS__)
103 #define mglTexImage2D(...) \
104  glTexImage2D(__VA_ARGS__)
105 #define mglGenTextures(...) \
106  glGenTextures(__VA_ARGS__)
107 #define mglPixelStorei(...) \
108  glPixelStorei(__VA_ARGS__)
109 #define mglReadPixels(...) \
110  glReadPixels(__VA_ARGS__)
111 
112 #endif
113 defName(glGetAttribLocation);
114 defName(glUniform3f);
115 defName(glCheckFramebufferStatus);
116 defName(glProgramUniform1f);
117 defName(glProgramUniform2f);
118 defName(glProgramUniform3f);
119 defName(glProgramUniform4f);
120 defName(glBindVertexBuffer);
121 defName(glVertexAttribBinding);
122 defName(glVertexAttribFormat);
123 defName(glBindVertexBuffers);
124 defName(glIsBuffer);
125 defName(glVertexAttribIFormat);
126 defName(glVertexAttribIPointer);
127 defName(glInvalidateTexImage);
128 defName(glCopyImageSubData);
129 defName(glPushDebugGroup);
130 defName(glPopDebugGroup);
131 defName(glObjectLabel);
132 defName(glTexStorage2D);
133 defName(glGenQueries);
134 defName(glBeginQuery);
135 defName(glEndQuery);
136 defName(glDeleteQueries);
137 defName(glGetQueryObjectiv);
138 defName(glGetQueryObjectui64v);
139 defName(glTextureSubImage2D);
140 defName(glTextureSubImage2DEXT);
141 defName(glClearTexImage);
142 defName(glClearTexSubImage);
143 #ifdef WIN32
144 defName(wglGetExtensionsString);
145 #endif
defName(glGenRenderbuffers)