summaryrefslogtreecommitdiffhomepage
path: root/tile-shader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tile-shader.hpp')
-rw-r--r--tile-shader.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tile-shader.hpp b/tile-shader.hpp
index 3a2b6d37..147444a3 100644
--- a/tile-shader.hpp
+++ b/tile-shader.hpp
@@ -13,15 +13,13 @@ struct tile_shader : GL::AbstractShaderProgram
typedef GL::Attribute<1, Vector2> TextureCoordinates;
explicit tile_shader();
-
- tile_shader& set_projection(const Math::Matrix4<float>& mat, float y_scale);
-
+ tile_shader& set_projection(const Vector2& mat, float y_scale);
tile_shader& bindTexture(GL::Texture2D& texture);
private:
enum: Int { TextureUnit = 0 };
- Int _projection_uniform, _y_scale_uniform;
+ enum { _projection_uniform = 0, _y_scale_uniform = 1 };
};
} // namespace Magnum::Examples