mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-26 00:33:45 +02:00

Since portablegl.h defines OpenGL types and Khronos's OpenGL headers also define OpenGL types, and we use both of these headers, this define is necessary to make sure the Khronos headers don't try to define the OpenGL types again.
24 lines
416 B
C
24 lines
416 B
C
#include <portablegl.h>
|
|
#define MKXPZ_NO_GL_TYPES
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct FlatColorUniforms
|
|
{
|
|
pgl_mat4 projMat;
|
|
pgl_vec4 color;
|
|
};
|
|
|
|
struct FlatColorAttribs
|
|
{
|
|
pgl_vec2 position;
|
|
};
|
|
|
|
void mkxpFlatColorVS(float *_output, pgl_vec4 *attribs, Shader_Builtins *builtins, void *uniforms);
|
|
void mkxpFlatColorFS(float *input, Shader_Builtins *builtins, void *uniforms);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|