1 #ifndef VTESTBED_GRAPHICS_SLICESHADER_HH 2 #define VTESTBED_GRAPHICS_SLICESHADER_HH 4 #include <Magnum/GL/AbstractShaderProgram.h> 5 #include <Magnum/GL/Texture.h> 7 #include <vtestbed/graphics/types.hh> 16 typedef Magnum::GL::Attribute<0, Vector3> Position;
17 typedef Magnum::GL::Attribute<1, Vector2> Texture;
30 setTransformationProjectionMatrix(
const Matrix4& matrix) {
31 setUniform(MatrixLocation, matrix);
35 bindTexture(Texture2D& texture) {
36 texture.bind(TextureLocation);
45 #endif // vim:filetype=cpp