17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 14:29:20 +02:00
Files
maszyna/gl/postfx.cppm
2026-09-09 20:35:26 +02:00

34 lines
623 B
C++

module;
#include <vector>
#include <memory>
export module eu07.gl.postfx;
import eu07.gl.shader;
import eu07.gl.vao;
import eu07.gl.framebuffer;
import eu07.model.texture;
export {
namespace gl
{
class postfx
{
private:
gl::program program;
static std::shared_ptr<gl::shader> vertex;
static std::shared_ptr<gl::vao> vao;
public:
postfx(const std::string &s);
postfx(const shader &s);
void attach();
void apply(opengl_texture &src, framebuffer *dst);
void apply(std::vector<opengl_texture*> src, framebuffer *dst);
};
}
} // export