summaryrefslogtreecommitdiffhomepage
path: root/tile-shader.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-18 06:14:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-18 06:14:39 +0100
commit0a49fb9df26c1a7b5a8a156b32f5ff2bf771e6ac (patch)
tree419c72f372b02af1ab9aab324b1e22324e0f8767 /tile-shader.hpp
parente6a030dfc955bd50adf9d55ab29861586a0777cf (diff)
rename types
Diffstat (limited to 'tile-shader.hpp')
-rw-r--r--tile-shader.hpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/tile-shader.hpp b/tile-shader.hpp
index de7b5c04..68a2c0e5 100644
--- a/tile-shader.hpp
+++ b/tile-shader.hpp
@@ -1,5 +1,4 @@
-#ifndef Magnum_Examples_TexturedQuad_TexturedQuadShader_h
-#define Magnum_Examples_TexturedQuad_TexturedQuadShader_h
+#pragma once
/*
This file is part of Magnum.
@@ -35,19 +34,19 @@
namespace Magnum::Examples {
-class TexturedQuadShader: public GL::AbstractShaderProgram {
+class tile_shader : public GL::AbstractShaderProgram {
public:
typedef GL::Attribute<0, Vector3> Position;
typedef GL::Attribute<1, Vector2> TextureCoordinates;
- explicit TexturedQuadShader();
+ explicit tile_shader();
- TexturedQuadShader& setColor(const Color3& color) {
+ tile_shader& setColor(const Color3& color) {
setUniform(_colorUniform, color);
return *this;
}
- TexturedQuadShader& bindTexture(GL::Texture2D& texture) {
+ tile_shader& bindTexture(GL::Texture2D& texture) {
texture.bind(TextureUnit);
return *this;
}
@@ -59,5 +58,3 @@ private:
};
} // namespace Magnum::Examples
-
-#endif