mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 06:19:19 +02:00
34 lines
623 B
C++
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
|