1 #ifndef VTESTBED_GRAPHICS_SURFACESHADER_HH 2 #define VTESTBED_GRAPHICS_SURFACESHADER_HH 5 #include <vtestbed/graphics/types.hh> 14 typedef Magnum::GL::Attribute<0, Vector3> Position;
15 typedef Magnum::GL::Attribute<1, Vector2> Texture;
31 setTransformationProjectionMatrix(
const Matrix4& matrix) {
32 setUniform(Matrix, matrix);
36 bindTexture(Texture2D& texture) {
37 texture.bind(TextureLocation);
41 setSlice(
const Vector2& vect) {
42 setUniform(Slice, vect);
46 showSlice(
bool value) {
47 setUniform(ShowSlice, value);
51 setMaxWave(
float maxWave) {
52 setUniform(MaxWave, maxWave);
61 #endif // vim:filetype=cpp