mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-19 08:29:18 +02:00
pch migration to modules [wip]
This commit is contained in:
33
gl/postfx.cppm
Normal file
33
gl/postfx.cppm
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in New Issue
Block a user