aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 15:49:59 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 15:49:59 +0100
commita47b981c2254e1d49f58ebd4244c1be4624ba998 (patch)
treed5ca1f37f0e2d93f241721b13abacc5123bfe92a /src/example
parent5f75bdbf3d38c94baeae52f4c4889f147ec6885e (diff)
remove util and api namespaces
Diffstat (limited to 'src/example')
-rw-r--r--src/example/asset_manager.cpp2
-rw-r--r--src/example/audio_internal.cpp5
-rw-r--r--src/example/components_internal.cpp1
-rw-r--r--src/example/log.cpp5
-rw-r--r--src/example/particle.cpp1
-rw-r--r--src/example/physics.cpp1
-rw-r--r--src/example/rendering.cpp1
-rw-r--r--src/example/script.cpp5
8 files changed, 7 insertions, 14 deletions
diff --git a/src/example/asset_manager.cpp b/src/example/asset_manager.cpp
index 3d68ec0..f0d4575 100644
--- a/src/example/asset_manager.cpp
+++ b/src/example/asset_manager.cpp
@@ -3,7 +3,7 @@
#include <crepe/api/Texture.h>
using namespace crepe;
-using namespace crepe::api;
+
int main() {
// this needs to be called before the asset manager otherwise the destructor
diff --git a/src/example/audio_internal.cpp b/src/example/audio_internal.cpp
index c7dd163..7586441 100644
--- a/src/example/audio_internal.cpp
+++ b/src/example/audio_internal.cpp
@@ -10,7 +10,6 @@
#include <thread>
using namespace crepe;
-using namespace crepe::api;
using namespace std;
using namespace std::chrono_literals;
using std::make_unique;
@@ -18,8 +17,8 @@ using std::make_unique;
// Unrelated stuff that is not part of this POC
int _ = []() {
// Show dbg_trace() output
- auto & cfg = api::Config::get_instance();
- cfg.log.level = util::LogLevel::TRACE;
+ auto & cfg = Config::get_instance();
+ cfg.log.level = LogLevel::TRACE;
return 0; // satisfy compiler
}();
diff --git a/src/example/components_internal.cpp b/src/example/components_internal.cpp
index 3c68974..ea1eaad 100644
--- a/src/example/components_internal.cpp
+++ b/src/example/components_internal.cpp
@@ -15,7 +15,6 @@
#include <crepe/util/log.h>
-using namespace crepe::api;
using namespace crepe;
using namespace std;
diff --git a/src/example/log.cpp b/src/example/log.cpp
index 75f133c..db8aa48 100644
--- a/src/example/log.cpp
+++ b/src/example/log.cpp
@@ -7,13 +7,12 @@
#include <crepe/util/log.h>
using namespace crepe;
-using namespace crepe::util;
// unrelated setup code
int _ = []() {
// make sure all log messages get printed
- auto & cfg = api::Config::get_instance();
- cfg.log.level = util::LogLevel::TRACE;
+ auto & cfg = Config::get_instance();
+ cfg.log.level = LogLevel::TRACE;
return 0; // satisfy compiler
}();
diff --git a/src/example/particle.cpp b/src/example/particle.cpp
index fb72b9b..38cff25 100644
--- a/src/example/particle.cpp
+++ b/src/example/particle.cpp
@@ -10,7 +10,6 @@
#include <crepe/api/ParticleEmitter.h>
#include <crepe/system/ParticleSystem.h>
-using namespace crepe::api;
using namespace crepe;
using namespace std;
diff --git a/src/example/physics.cpp b/src/example/physics.cpp
index ae8d4ca..d3a0f32 100644
--- a/src/example/physics.cpp
+++ b/src/example/physics.cpp
@@ -10,7 +10,6 @@
#include <crepe/api/Rigidbody.h>
#include <crepe/api/Transform.h>
-using namespace crepe::api;
using namespace crepe;
using namespace std;
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp
index 0bc222a..9c8d60c 100644
--- a/src/example/rendering.cpp
+++ b/src/example/rendering.cpp
@@ -15,7 +15,6 @@
using namespace std;
using namespace crepe;
-using namespace crepe::api;
int main() {
diff --git a/src/example/script.cpp b/src/example/script.cpp
index 1901078..dac7af3 100644
--- a/src/example/script.cpp
+++ b/src/example/script.cpp
@@ -14,14 +14,13 @@
#include <crepe/api/Transform.h>
using namespace crepe;
-using namespace crepe::api;
using namespace std;
// Unrelated stuff that is not part of this POC
int _ = []() {
// Show dbg_trace() output
- auto & cfg = api::Config::get_instance();
- cfg.log.level = util::LogLevel::TRACE;
+ auto & cfg = Config::get_instance();
+ cfg.log.level = LogLevel::TRACE;
return 0; // satisfy compiler
}();