swayfx/include/sway/desktop/fx_renderer/fx_framebuffer.h
Erik Reider cbfb7af7fd
Add kawase blur (#120)
Co-authored-by: Erik Reider <erik.reider@protonmail.com>
Co-authored-by: Will McKinnon <contact@willmckinnon.com>
2023-04-17 23:24:48 +02:00

24 lines
506 B
C

#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);
void fx_framebuffer_create(struct wlr_output *output, struct fx_framebuffer *buffer,
bool bind);
void fx_framebuffer_release(struct fx_framebuffer *buffer);
#endif