#ifndef FX_FRAMEBUFFER_H #define FX_FRAMEBUFFER_H #include #include #include #include "sway/desktop/fx_renderer/fx_texture.h" struct fx_framebuffer { struct fx_texture texture; GLuint fb; GLuint stencil_buffer; }; struct fx_framebuffer fx_framebuffer_create(); void fx_framebuffer_bind(struct fx_framebuffer *buffer); void fx_framebuffer_update(struct fx_framebuffer *buffer, int width, int height); void fx_framebuffer_add_stencil_buffer(struct fx_framebuffer *buffer, int width, int height); void fx_framebuffer_release(struct fx_framebuffer *buffer); #endif