File: sandbox_effect.cpp

package info (click to toggle)
movit 1.7.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,248 kB
  • sloc: cpp: 16,677; sh: 3,940; makefile: 167
file content (28 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <epoxy/gl.h>

#include "sandbox_effect.h"
#include "util.h"

using namespace std;

namespace movit {

SandboxEffect::SandboxEffect()
	: parm(0.0f)
{
	register_float("parm", &parm);
}

string SandboxEffect::output_fragment_shader()
{
	return read_file("sandbox_effect.frag");
}

void SandboxEffect::set_gl_state(GLuint glsl_program_num, const string &prefix, unsigned *sampler_num)
{
	Effect::set_gl_state(glsl_program_num, prefix, sampler_num);

	// Any OpenGL state you might want to set, goes here.
}

}  // namespace movit