2023-04-18 07:24:48 +10:00
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
2023-06-03 08:53:41 +10:00
|
|
|
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);
|
2023-04-18 07:24:48 +10:00
|
|
|
|
|
|
|
#endif
|