blob: 62e635e6aa652eea38420d6b8f39ed2b0be1185f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef FX_TEXTURE_H
#define FX_TEXTURE_H
#include <GLES2/gl2.h>
#include <stdbool.h>
#include <wlr/render/wlr_texture.h>
struct fx_texture {
GLuint target;
GLuint id;
bool has_alpha;
int width;
int height;
};
struct fx_texture fx_texture_create();
struct fx_texture fx_texture_from_wlr_texture(struct wlr_texture *tex);
void fx_texture_release(struct fx_texture *texture);
#endif
|