mirror of
https://github.com/IllusionMan1212/C2048.git
synced 2026-10-24 02:12:31 +00:00
zephr/game: textures, icons, and buttons
- zephr: correctly set cursor when hovering button - zephr: added texture loading and displaying - zephr: added icon button - game: added help and settings icon buttons
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct Shader {
|
||||
int program;
|
||||
} Shader;
|
||||
@@ -9,6 +11,8 @@ Shader create_shader(const char *vertex_path, const char *fragment_path);
|
||||
void use_shader(Shader shader);
|
||||
void set_mat4f(Shader shader, const char *name, float *mat);
|
||||
void set_float(Shader shader, const char *name, float val);
|
||||
void set_int(Shader shader, const char *name, int val);
|
||||
void set_bool(Shader shader, const char *name, bool val);
|
||||
void set_vec2f(Shader shader, const char *name, float val1, float val2);
|
||||
void set_vec3f(Shader shader, const char *name, float val1, float val2, float val3);
|
||||
void set_vec4f(Shader shader, const char *name, float val1, float val2, float val3, float val4);
|
||||
|
||||
Reference in New Issue
Block a user