2023-04-18 07:24:48 +10:00
|
|
|
#ifndef FX_FRAMEBUFFER_H
|
|
|
|
#define FX_FRAMEBUFFER_H
|
|
|
|
|
|
|
|
#include <GLES2/gl2.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <wlr/types/wlr_output.h>
|
|
|
|
|
|
|
|
#include "sway/desktop/fx_renderer/fx_texture.h"
|
|
|
|
|
|
|
|
struct fx_framebuffer {
|
|
|
|
struct fx_texture texture;
|
|
|
|
GLuint fb;
|
|
|
|
};
|
|
|
|
|
|
|
|
void fx_framebuffer_bind(struct fx_framebuffer *buffer, GLsizei width, GLsizei height);
|
|
|
|
|
2023-04-24 14:11:55 +10:00
|
|
|
void fx_framebuffer_create(struct fx_framebuffer *buffer, int width, int height, bool bind);
|
2023-04-18 07:24:48 +10:00
|
|
|
|
|
|
|
void fx_framebuffer_release(struct fx_framebuffer *buffer);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|