X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=sandbox_effect.cpp;fp=sandbox_effect.cpp;h=85fa9001589a7356855acfcfdbc3d3fcadecd870;hp=0000000000000000000000000000000000000000;hb=0b4a4101426130d2b7037cdb219d5c05b8d4c3d3;hpb=60cc8cf581ceaac4eb7e636e85f9e6161005701d diff --git a/sandbox_effect.cpp b/sandbox_effect.cpp new file mode 100644 index 0000000..85fa900 --- /dev/null +++ b/sandbox_effect.cpp @@ -0,0 +1,27 @@ +#define GL_GLEXT_PROTOTYPES 1 + +#include +#include +#include +#include + +#include "sandbox_effect.h" +#include "util.h" + +SandboxEffect::SandboxEffect() + : parm(0.0f) +{ + register_float("parm", &parm); +} + +std::string SandboxEffect::output_fragment_shader() +{ + return read_file("sandbox_effect.frag"); +} + +void SandboxEffect::set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num) +{ + Effect::set_uniforms(glsl_program_num, prefix, sampler_num); + + // Any OpenGL state you might want to set, goes here. +}