summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-09 12:22:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-09 12:22:14 +0200
commitcf6c5668f1d41a0fe02f97351a522ccfb3f245d4 (patch)
tree2dd795feb2b735773ca936effa57884986196aca /draw
parentb581b559fe426f39b1d548ca27f03cb22dd2ed22 (diff)
a
Diffstat (limited to 'draw')
-rw-r--r--draw/floor-mesh.cpp4
-rw-r--r--draw/floor-mesh.hpp4
-rw-r--r--draw/wall-mesh.cpp4
-rw-r--r--draw/wall-mesh.hpp4
-rw-r--r--draw/wireframe-box.cpp4
-rw-r--r--draw/wireframe-box.hpp4
-rw-r--r--draw/wireframe-mesh.cpp4
-rw-r--r--draw/wireframe-mesh.hpp4
-rw-r--r--draw/wireframe-quad.cpp4
-rw-r--r--draw/wireframe-quad.hpp4
10 files changed, 20 insertions, 20 deletions
diff --git a/draw/floor-mesh.cpp b/draw/floor-mesh.cpp
index 3698bc6e..da8fe7f2 100644
--- a/draw/floor-mesh.cpp
+++ b/draw/floor-mesh.cpp
@@ -5,7 +5,7 @@
#include "tile-atlas.hpp"
#include <Magnum/GL/MeshView.h>
-namespace Magnum::Examples {
+namespace floormat {
constexpr auto quad_index_count = 6;
@@ -75,4 +75,4 @@ std::array<std::array<Vector3, 4>, TILE_COUNT> floor_mesh::make_position_array()
return array;
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/draw/floor-mesh.hpp b/draw/floor-mesh.hpp
index fed5867c..f81a7593 100644
--- a/draw/floor-mesh.hpp
+++ b/draw/floor-mesh.hpp
@@ -8,7 +8,7 @@
#include <Magnum/GL/Mesh.h>
#include <Magnum/GL/Buffer.h>
-namespace Magnum::Examples {
+namespace floormat {
struct tile_shader;
struct chunk;
@@ -36,4 +36,4 @@ private:
static void set_tile(quad_data& data, tile& x);
};
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/draw/wall-mesh.cpp b/draw/wall-mesh.cpp
index d698b508..acd4ac75 100644
--- a/draw/wall-mesh.cpp
+++ b/draw/wall-mesh.cpp
@@ -5,7 +5,7 @@
#include <Magnum/GL/RectangleTexture.h>
#include <Magnum/GL/MeshView.h>
-namespace Magnum::Examples {
+namespace floormat {
constexpr auto quad_index_count = 6;
@@ -90,4 +90,4 @@ std::array<std::array<Vector3, 4>, wall_mesh::COUNT> wall_mesh::make_position_ar
return array;
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/draw/wall-mesh.hpp b/draw/wall-mesh.hpp
index 4a4e9615..364f3831 100644
--- a/draw/wall-mesh.hpp
+++ b/draw/wall-mesh.hpp
@@ -8,7 +8,7 @@
#include <Magnum/GL/Mesh.h>
#include <Magnum/GL/Buffer.h>
-namespace Magnum::Examples {
+namespace floormat {
struct tile_shader;
struct chunk;
@@ -40,4 +40,4 @@ private:
static std::array<std::array<Vector3, 4>, COUNT> make_position_array();
};
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/draw/wireframe-box.cpp b/draw/wireframe-box.cpp
index c5e4d9ac..49606bd8 100644
--- a/draw/wireframe-box.cpp
+++ b/draw/wireframe-box.cpp
@@ -3,7 +3,7 @@
#include <Magnum/Math/Vector3.h>
#include <Magnum/GL/Renderer.h>
-namespace Magnum::Examples::wireframe {
+namespace floormat::wireframe {
box::box(Vector3 center, Vector3 size, float line_width) :
center{center}, size{size}, line_width{line_width}
@@ -50,4 +50,4 @@ box::index_array box::make_index_array()
}};
}
-} // namespace Magnum::Examples::wireframe
+} // namespace floormat::wireframe
diff --git a/draw/wireframe-box.hpp b/draw/wireframe-box.hpp
index b5cc1688..998ad92c 100644
--- a/draw/wireframe-box.hpp
+++ b/draw/wireframe-box.hpp
@@ -2,7 +2,7 @@
#include <Magnum/Math/Vector3.h>
#include <Magnum/GL/Mesh.h>
-namespace Magnum::Examples::wireframe {
+namespace floormat::wireframe {
struct box final
{
@@ -24,4 +24,4 @@ private:
float line_width = 2;
};
-} // namespace Magnum::Examples::wireframe
+} // namespace floormat::wireframe
diff --git a/draw/wireframe-mesh.cpp b/draw/wireframe-mesh.cpp
index 35103055..32aa72aa 100644
--- a/draw/wireframe-mesh.cpp
+++ b/draw/wireframe-mesh.cpp
@@ -9,7 +9,7 @@
#include <Magnum/PixelStorage.h>
#include <Magnum/Trade/ImageData.h>
-namespace Magnum::Examples::wireframe
+namespace floormat::wireframe
{
GL::RectangleTexture mesh_base::make_constant_texture()
@@ -48,4 +48,4 @@ void mesh_base::draw(tile_shader& shader)
}
-} // namespace Magnum::Examples::wireframe
+} // namespace floormat::wireframe
diff --git a/draw/wireframe-mesh.hpp b/draw/wireframe-mesh.hpp
index f9c5e369..3c0deb37 100644
--- a/draw/wireframe-mesh.hpp
+++ b/draw/wireframe-mesh.hpp
@@ -9,7 +9,7 @@
#include <Magnum/GL/Mesh.h>
#include "Magnum/GL/RectangleTexture.h"
-namespace Magnum::Examples {
+namespace floormat {
struct tile_shader;
@@ -60,4 +60,4 @@ template <wireframe::traits T> void wireframe_mesh<T>::draw(tile_shader& shader,
mesh_base::draw(shader);
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/draw/wireframe-quad.cpp b/draw/wireframe-quad.cpp
index e167a074..56aa0845 100644
--- a/draw/wireframe-quad.cpp
+++ b/draw/wireframe-quad.cpp
@@ -2,7 +2,7 @@
#include <array>
#include <Magnum/GL/Renderer.h>
-namespace Magnum::Examples::wireframe {
+namespace floormat::wireframe {
quad::vertex_array quad::make_vertex_array() const
{
@@ -22,4 +22,4 @@ void quad::on_draw() const
GL::Renderer::setLineWidth(line_width);
}
-} // namespace Magnum::Examples::wireframe
+} // namespace floormat::wireframe
diff --git a/draw/wireframe-quad.hpp b/draw/wireframe-quad.hpp
index 28ab651a..c2679781 100644
--- a/draw/wireframe-quad.hpp
+++ b/draw/wireframe-quad.hpp
@@ -4,7 +4,7 @@
#include <Magnum/Math/Vector3.h>
#include <Magnum/GL/Mesh.h>
-namespace Magnum::Examples::wireframe {
+namespace floormat::wireframe {
struct quad final
{
@@ -25,4 +25,4 @@ private:
float line_width;
};
-} // namespace Magnum::Examples::wireframe
+} // namespace floormat::wireframe