summaryrefslogtreecommitdiffhomepage
path: root/main
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 /main
parentb581b559fe426f39b1d548ca27f03cb22dd2ed22 (diff)
a
Diffstat (limited to 'main')
-rw-r--r--main/app.cpp4
-rw-r--r--main/app.hpp4
-rw-r--r--main/camera.cpp4
-rw-r--r--main/debug.cpp4
-rw-r--r--main/keyboard.cpp4
-rw-r--r--main/loader-impl.cpp4
-rw-r--r--main/main.cpp6
7 files changed, 15 insertions, 15 deletions
diff --git a/main/app.cpp b/main/app.cpp
index 6d2474b4..cc5dbe78 100644
--- a/main/app.cpp
+++ b/main/app.cpp
@@ -1,7 +1,7 @@
#include "app.hpp"
#include "compat/fpu.hpp"
-namespace Magnum::Examples {
+namespace floormat {
app::app(const Arguments& arguments):
Platform::Application{
@@ -28,4 +28,4 @@ void app::update(float dt)
Platform::Sdl2Application::exit(0);
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/main/app.hpp b/main/app.hpp
index 35fb9481..2303a8b8 100644
--- a/main/app.hpp
+++ b/main/app.hpp
@@ -14,7 +14,7 @@
#include <Magnum/GL/DebugOutput.h>
#include <memory>
-namespace Magnum::Examples {
+namespace floormat {
struct app final : Platform::Application
{
@@ -64,4 +64,4 @@ struct app final : Platform::Application
Magnum::Timeline timeline;
};
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/main/camera.cpp b/main/camera.cpp
index 2887d02f..c91a743e 100644
--- a/main/camera.cpp
+++ b/main/camera.cpp
@@ -1,7 +1,7 @@
#include "app.hpp"
#include <Magnum/GL/DefaultFramebuffer.h>
-namespace Magnum::Examples {
+namespace floormat {
void app::do_camera(float dt)
{
@@ -38,4 +38,4 @@ void app::viewportEvent(Platform::Sdl2Application::ViewportEvent& event)
GL::defaultFramebuffer.setViewport({{}, event.windowSize()});
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/main/debug.cpp b/main/debug.cpp
index 46340db8..ebf3c124 100644
--- a/main/debug.cpp
+++ b/main/debug.cpp
@@ -2,7 +2,7 @@
#include <chrono>
#include <Magnum/GL/Renderer.h>
-namespace Magnum::Examples {
+namespace floormat {
using Feature = GL::Renderer::Feature;
using Source = GL::DebugOutput::Source;
@@ -79,4 +79,4 @@ void* app::register_debug_callback()
return nullptr;
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/main/keyboard.cpp b/main/keyboard.cpp
index 14daa19c..50bc214a 100644
--- a/main/keyboard.cpp
+++ b/main/keyboard.cpp
@@ -1,5 +1,5 @@
#include "app.hpp"
-namespace Magnum::Examples {
+namespace floormat {
void app::do_key(KeyEvent::Key k, KeyEvent::Modifiers m, bool pressed, bool repeated)
{
@@ -40,4 +40,4 @@ void app::keyReleaseEvent(Platform::Sdl2Application::KeyEvent& event)
do_key(event.key(), event.modifiers(), false, false);
}
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/main/loader-impl.cpp b/main/loader-impl.cpp
index aeefd081..ff1bb08f 100644
--- a/main/loader-impl.cpp
+++ b/main/loader-impl.cpp
@@ -16,7 +16,7 @@
#include <Magnum/Trade/ImageData.h>
#include <Magnum/Trade/AbstractImageConverter.h>
-namespace Magnum::Examples {
+namespace floormat {
struct loader_impl final : loader_
{
@@ -117,4 +117,4 @@ static loader_& make_default_loader()
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
loader_& loader = make_default_loader();
-} // namespace Magnum::Examples
+} // namespace floormat
diff --git a/main/main.cpp b/main/main.cpp
index c0e894be..62dd687c 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -5,7 +5,7 @@
#include <Magnum/GL/Renderer.h>
#include <Magnum/Trade/AbstractImporter.h>
-namespace Magnum::Examples {
+namespace floormat {
chunk app::make_test_chunk()
{
@@ -82,9 +82,9 @@ void app::draw_wireframe_box()
_wireframe_box.draw(_shader, {center2, size, LINE_WIDTH});
}
-} // namespace Magnum::Examples
+} // namespace floormat
-MAGNUM_APPLICATION_MAIN(Magnum::Examples::app)
+MAGNUM_APPLICATION_MAIN(floormat::app)
#ifdef _MSC_VER
#include <cstdlib> // for __arg{c,v}