summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-18 03:10:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-18 03:10:56 +0200
commitcf14af7dc7b6ffa3ef899a57079bafc5a8d63c68 (patch)
treeae7af858c6e3c2743047cc68fa942deffc3e290c /shaders
parent1a95ead477a0bebbb7017b6b0423ce82cca3ea78 (diff)
a
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile-shader.cpp2
-rw-r--r--shaders/tile-shader.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/shaders/tile-shader.cpp b/shaders/tile-shader.cpp
index 93c6a5c8..2218d463 100644
--- a/shaders/tile-shader.cpp
+++ b/shaders/tile-shader.cpp
@@ -54,7 +54,7 @@ tile_shader& tile_shader::set_tint(const Vector4& tint)
return *this;
}
-void tile_shader::on_draw()
+void tile_shader::_draw()
{
if (const auto offset = Vector2i{(std::int32_t)_camera_offset[0], (std::int32_t)_camera_offset[1]};
offset != _real_camera_offset)
diff --git a/shaders/tile-shader.hpp b/shaders/tile-shader.hpp
index 1856f63b..c8d609f3 100644
--- a/shaders/tile-shader.hpp
+++ b/shaders/tile-shader.hpp
@@ -28,7 +28,7 @@ struct tile_shader : GL::AbstractShaderProgram
decltype(GL::AbstractShaderProgram::draw(std::forward<T>(mesh), std::forward<Xs>(xs)...));
private:
- void on_draw();
+ void _draw();
Vector2d _camera_offset;
Vector4 _tint;
@@ -42,7 +42,7 @@ template<typename T, typename... Xs>
auto tile_shader::draw(T&& mesh, Xs&&... xs) ->
decltype(GL::AbstractShaderProgram::draw(std::forward<T>(mesh), std::forward<Xs>(xs)...))
{
- on_draw();
+ _draw();
return GL::AbstractShaderProgram::draw(std::forward<T>(mesh), std::forward<Xs>(xs)...);
}