mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-24 15:53:45 +02:00
38 lines
676 B
C
38 lines
676 B
C
#include <portablegl.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct SimpleSpriteUniforms
|
|
{
|
|
pgl_mat4 projMat;
|
|
pgl_mat4 spriteMat;
|
|
pgl_vec2 texSizeInv;
|
|
pgl_vec2 patternSizeInv;
|
|
pgl_vec2 patternScroll;
|
|
pgl_vec2 patternZoom;
|
|
bool renderPattern;
|
|
bool patternTile;
|
|
GLuint texture;
|
|
};
|
|
|
|
struct SimpleSpriteAttribs
|
|
{
|
|
pgl_vec2 position;
|
|
pgl_vec2 texCoord;
|
|
};
|
|
|
|
struct SimpleSpriteVarying
|
|
{
|
|
pgl_vec2 v_texCoord;
|
|
pgl_vec2 v_patCoord;
|
|
};
|
|
|
|
void mkxpSimpleSpriteVS(float *output, pgl_vec4 *attribs, Shader_Builtins *builtins, void *uniforms);
|
|
void mkxpSimpleSpriteFS(float *input, Shader_Builtins *builtins, void *uniforms);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|