blob: 9f48bb8cc75f0ddd8d00737cd04aa1c923136ced (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef GL_H
#define GL_H
#include <epoxy/gl.h>
struct color;
struct image;
struct gl {
GLuint vbo;
GLuint vao;
GLuint ebo;
GLuint texture;
GLuint shader;
};
void gl_initialise(struct gl *gl, struct image *texture);
void gl_clear(struct gl *gl, struct color *color);
void gl_draw_texture(
struct gl *gl,
struct image *texture,
int32_t x,
int32_t y,
int32_t width,
int32_t height);
#endif /* GL_H */
|