mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-08-28 10:36:50 +03:00
TMP / compacted namespace declarations
This commit is contained in:
@@ -16,8 +16,7 @@
|
||||
#include "logging.h"
|
||||
using namespace progressia::main::logging;
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
std::unique_ptr<Primitive> cube1, cube2;
|
||||
std::unique_ptr<Texture> texture1, texture2;
|
||||
@@ -178,5 +177,4 @@ void shutdown() {
|
||||
debug("game shutdown complete");
|
||||
}
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -2,12 +2,10 @@
|
||||
|
||||
#include "rendering.h"
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
void initialize(GraphicsInterface &);
|
||||
void renderTick();
|
||||
void shutdown();
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -8,8 +8,7 @@
|
||||
#include <mutex>
|
||||
#include <sstream>
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -165,5 +164,4 @@ detail::LogSink fatal(const char *start) { return log(LogLevel::FATAL, start); }
|
||||
|
||||
} // namespace logging
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -3,8 +3,7 @@
|
||||
#include "util.h"
|
||||
#include <ostream>
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -60,5 +59,4 @@ detail::LogSink fatal(const char *start = nullptr);
|
||||
void initializeLogging();
|
||||
void shutdownLogging();
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -3,8 +3,7 @@
|
||||
#include <config.h>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
namespace meta {
|
||||
|
||||
namespace detail {
|
||||
@@ -37,5 +36,4 @@ constexpr uint32_t VERSION_MINOR = (VERSION_NUMBER & 0x00FF00) >> 8;
|
||||
constexpr uint32_t VERSION_PATCH = (VERSION_NUMBER & 0x0000FF) >> 0;
|
||||
|
||||
} // namespace meta
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -3,6 +3,4 @@
|
||||
#include "rendering/graphics_interface.h"
|
||||
#include "rendering/image.h"
|
||||
|
||||
namespace progressia {
|
||||
namespace main {} // namespace main
|
||||
} // namespace progressia
|
||||
namespace progressia::main {} // namespace progressia::main
|
||||
|
@@ -12,8 +12,7 @@
|
||||
|
||||
#include "image.h"
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
struct Vertex {
|
||||
|
||||
@@ -119,5 +118,4 @@ class GraphicsInterface : private progressia::main::NonCopyable {
|
||||
uint64_t getLastStartedFrame();
|
||||
};
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -13,8 +13,7 @@
|
||||
#include "../logging.h"
|
||||
using namespace progressia::main::logging;
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
std::size_t Image::getSize() const { return data.size(); }
|
||||
|
||||
@@ -59,5 +58,4 @@ Image loadImage(const std::string &path) {
|
||||
data};
|
||||
}
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -3,8 +3,7 @@
|
||||
#include <filesystem>
|
||||
#include <vector>
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
class Image {
|
||||
public:
|
||||
@@ -21,5 +20,4 @@ class Image {
|
||||
|
||||
Image loadImage(const std::string &);
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
@@ -29,8 +29,7 @@
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
namespace progressia {
|
||||
namespace main {
|
||||
namespace progressia::main {
|
||||
|
||||
struct NonCopyable {
|
||||
NonCopyable &operator=(const NonCopyable &) = delete;
|
||||
@@ -38,5 +37,4 @@ struct NonCopyable {
|
||||
NonCopyable() = default;
|
||||
};
|
||||
|
||||
} // namespace main
|
||||
} // namespace progressia
|
||||
} // namespace progressia::main
|
||||
|
Reference in New Issue
Block a user