Change namespace name

This commit is contained in:
2023-10-03 19:52:23 +02:00
parent 7538c82772
commit e0f24153d3
208 changed files with 246 additions and 246 deletions

View File

@@ -9,7 +9,7 @@
#include "Math/Math.hpp"
#include "Math/Range.hpp"
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArConstants final
{

View File

@@ -8,7 +8,7 @@
#include <magic_enum.hpp>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArDepthFormat final
{

View File

@@ -8,7 +8,7 @@
#include "ArSession.hpp"
#include "ArRecorder.hpp"
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
float ArFrame::GetConfidenceNormalisationFactor() const
{

View File

@@ -16,7 +16,7 @@
#include <memory>
#include <functional>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArSession;

View File

@@ -9,7 +9,7 @@
#include <yaml-cpp/yaml.h>
#include <sstream>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
namespace
{

View File

@@ -10,7 +10,7 @@
#include "Math/CameraIntrinsic.hpp"
#include "Math/Timestamp.hpp"
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
struct ArFrameMetadata
{

View File

@@ -21,7 +21,7 @@
#define TURBO_JPEG
//#endif
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
namespace
{

View File

@@ -16,13 +16,13 @@
#include <thread>
#include <queue>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IEventHandler;
class MultiPartArchiveWriter;
}
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArSession;
class ArFrame;

View File

@@ -17,7 +17,7 @@
#endif
#endif
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
std::vector<std::weak_ptr<ArSession>> ArSession::sessions;
std::weak_ptr<ArSession> ArSession::nativeSession;

View File

@@ -19,7 +19,7 @@
#include <optional>
#include <future>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArSession;
class ArFrame;

View File

@@ -10,7 +10,7 @@
#include <sstream>
#include <filesystem>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
ArSessionMetadata ArSessionMetadata::FromXML(const std::string& filePath)
{

View File

@@ -10,7 +10,7 @@
#include "AR/ArDepthFormat.hpp"
#include "Math/Range.hpp"
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
struct ArSessionMetadata
{

View File

@@ -8,7 +8,7 @@
#include <magic_enum.hpp>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArTrackingState final
{

View File

@@ -8,7 +8,7 @@
#include <magic_enum.hpp>
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
class ArType final
{

View File

@@ -6,7 +6,7 @@
#include "ArSessionArCore.h"
namespace openVulkanoCpp::AR::ArCore
namespace OpenVulkano::AR::ArCore
{
std::shared_ptr<ArSession> ArSessionArCore::Create(const ArSessionConfig& config)
{

View File

@@ -11,7 +11,7 @@
// Define the class of the native AR session to be used
#define NATIVE_AR_SESSION_CLASS ArCore::ArSessionArCore
namespace openVulkanoCpp::AR::ArCore
namespace OpenVulkano::AR::ArCore
{
class ArSessionArCore : public ArSession
{

View File

@@ -10,7 +10,7 @@
#import <ARKit/ARFrame.h>
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
class ArSessionArKitInternal;

View File

@@ -14,7 +14,7 @@
#import <ARKit/ARPointCloud.h>
#import <CoreVideo/CoreVideo.h>
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
namespace
{

View File

@@ -11,7 +11,7 @@
#include "ArSessionArKitInternal.h"
@interface ArKitDelegate : NSObject <ARSessionDelegate>
- (id)initWithFrameHandler:(openVulkanoCpp::AR::ArKit::ArSessionArKitInternal*)session;
- (id)initWithFrameHandler:(OpenVulkano::AR::ArKit::ArSessionArKitInternal*)session;
- (void)session:(ARSession *)session didUpdateFrame:(ARFrame *)frame;
- (void)sessionWasInterrupted:(ARSession *)session;
- (void)sessionInterruptionEnded:(ARSession *)session;

View File

@@ -8,10 +8,10 @@
@implementation ArKitDelegate
{
openVulkanoCpp::AR::ArKit::ArSessionArKitInternal* m_arSession;
OpenVulkano::AR::ArKit::ArSessionArKitInternal* m_arSession;
}
- (id)initWithFrameHandler:(openVulkanoCpp::AR::ArKit::ArSessionArKitInternal*)session
- (id)initWithFrameHandler:(OpenVulkano::AR::ArKit::ArSessionArKitInternal*)session
{
m_arSession = session;
return self;

View File

@@ -11,7 +11,7 @@
// Define the class of the native AR session to be used
#define NATIVE_AR_SESSION_CLASS ArKit::ArSessionArKit
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
/**
* This is just a helper intermediate class.

View File

@@ -7,7 +7,7 @@
#include "ArSessionArKit.h"
#include "ArSessionArKitInternal.h"
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
namespace
{

View File

@@ -15,7 +15,7 @@
@class ArKitDelegate;
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
class ArSessionArKitInternal final : public ArSessionArKit, public std::enable_shared_from_this<ArSessionArKitInternal>
{

View File

@@ -21,7 +21,7 @@
#define VALIDATE_SESSION(s) if(s != m_arSession) { Logger::AR->warn("ARSession does not match."); return; }
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
namespace
{

View File

@@ -10,7 +10,7 @@
#import <ARKit/ARCamera.h>
namespace openVulkanoCpp::AR::ArKit
namespace OpenVulkano::AR::ArKit
{
inline ArTrackingState GetArTrackingState(ARCamera* camera)
{

View File

@@ -11,7 +11,7 @@
// Define the class of the native AR session to be used
#define NATIVE_AR_SESSION_CLASS ArSessionNull
namespace openVulkanoCpp::AR
namespace OpenVulkano::AR
{
struct ArSessionNull final
{

View File

@@ -6,7 +6,7 @@
#include "ArSessionStream.h"
namespace openVulkanoCpp::AR::Network
namespace OpenVulkano::AR::Network
{
ArSessionStream::ArSessionStream(const std::string& serverAddress, std::optional<ArSessionConfig> requestConfig)
: ArSession({})

View File

@@ -8,7 +8,7 @@
#include "AR/ArSession.hpp"
namespace openVulkanoCpp::AR::Network
namespace OpenVulkano::AR::Network
{
class ArSessionStream final : public ArSession
{

View File

@@ -8,7 +8,7 @@
#include "ArSessionPlayback.hpp"
#include "Base/BlockProfiler.hpp"
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
ArFramePlayback::ArFramePlayback(const std::shared_ptr<ArSessionPlayback>& session, ArPlaybackReader& frameReader)
: ArFrame(session, frameReader.GetNextFrameId())

View File

@@ -9,7 +9,7 @@
#include "AR/ArFrame.hpp"
#include "ArPlaybackReader.hpp"
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
class ArSessionPlayback;

View File

@@ -9,7 +9,7 @@
#if __has_include("turbojpeg.h")
#include <turbojpeg.h>
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
ColorImg ArPlaybackReader::ReadColorImage()
{
@@ -44,7 +44,7 @@ namespace openVulkanoCpp::AR::Playback
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
ColorImg ArPlaybackReader::ReadColorImage()
{

View File

@@ -12,7 +12,7 @@
#include <string>
#include <fstream>
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
struct DepthImage
{

View File

@@ -9,7 +9,7 @@
#include "Base/Logger.hpp"
#include <filesystem>
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
ArSessionPlayback::ArSessionPlayback(const std::string& recordingPath, bool autoAdvance)
: ArSession(ArSessionMetadata(recordingPath)), recordingPath(recordingPath), autoAdvance(autoAdvance), playbackReader(recordingPath)

View File

@@ -10,7 +10,7 @@
#include "ArPlaybackReader.hpp"
#include "Math/Timestamp.hpp"
namespace openVulkanoCpp::AR::Playback
namespace OpenVulkano::AR::Playback
{
class ArSessionPlayback final : public ArSession, public std::enable_shared_from_this<ArSessionPlayback>
{

View File

@@ -6,7 +6,7 @@
#include "AppEvents.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
Event<> AppEvents::OnWillResignActive;
Event<> AppEvents::OnDidEnterBackground;

View File

@@ -8,7 +8,7 @@
#include "Event.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
struct AppEvents
{

View File

@@ -8,7 +8,7 @@
#include "Logger.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class BlockProfiler final
{

View File

@@ -10,7 +10,7 @@
#include <algorithm>
#undef max
namespace openVulkanoCpp
namespace openVulkano
{
class EngineConfiguration
{

View File

@@ -2,9 +2,9 @@
#include <string>
#include <spdlog/fmt/fmt.h> //TODO replace with external fmt
namespace openVulkanoCpp
namespace openVulkano
{
inline const char* ENGINE_NAME = "openVulkanoCpp";
inline const char* ENGINE_NAME = "OpenVulkano";
struct EngineVersion
{

View File

@@ -6,7 +6,7 @@
#include "Event.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
std::vector<INamedEventProcessor*> INamedEventProcessor::processors;
}

View File

@@ -14,7 +14,7 @@
#include <variant>
#include <vector>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IEventHandler
{

View File

@@ -8,7 +8,7 @@
#include <cinttypes>
namespace openVulkanoCpp
namespace OpenVulkano
{
class FrameMetadata final
{

View File

@@ -1,6 +1,6 @@
#pragma once
namespace openVulkanoCpp
namespace OpenVulkano
{
class ICloseable
{

View File

@@ -11,7 +11,7 @@
#include "Version.hpp"
#include <string>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IGraphicsAppManager;

View File

@@ -2,7 +2,7 @@
#include <cstdint>
#include "PlatformEnums.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class IWindow;
class IGraphicsApp;

View File

@@ -4,7 +4,7 @@
#include "ICloseable.hpp"
#include "UI/IWindow.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class PlatformInitFailedException : public std::runtime_error
{

View File

@@ -1,6 +1,6 @@
#pragma once
namespace openVulkanoCpp
namespace OpenVulkano
{
class ITickable
{

View File

@@ -18,7 +18,7 @@
#include <spdlog/sinks/msvc_sink.h>
#endif
namespace openVulkanoCpp
namespace OpenVulkano
{
constexpr size_t MAX_LOG_FILE_SIZE = 512_MiB;

View File

@@ -11,7 +11,7 @@
#include <spdlog/spdlog.h>
namespace openVulkanoCpp
namespace OpenVulkano
{
class Logger
{ //TODO add custom sink for in game/engine console

View File

@@ -9,7 +9,7 @@
#include <magic_enum.hpp>
#include <string>
namespace openVulkanoCpp
namespace OpenVulkano
{
class RenderAPI
{

View File

@@ -12,7 +12,7 @@
#include "Scene/UI/UI.hpp"
#include <string>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IWindow;
class IGraphicsAppManager;

View File

@@ -8,7 +8,7 @@
#include "Logger.hpp"
#include "AppEvents.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
ThreadBackgroundSleep ThreadBackgroundSleep::INSTANCE;

View File

@@ -10,7 +10,7 @@
#include <mutex>
#include <string_view>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IEventHandler;

View File

@@ -2,7 +2,7 @@
#include <chrono>
#include <cstdint>
namespace openVulkanoCpp
namespace OpenVulkano
{
/**
* \brief High-res timer

View File

@@ -8,7 +8,7 @@
#include "IWindow.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class BaseWindow : virtual public IWindow
{

View File

@@ -8,7 +8,7 @@
#include "IWindow.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class IOpenGlWindow : virtual public IWindow
{

View File

@@ -10,7 +10,7 @@
#include <vector>
#include <vulkan/vulkan.hpp>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IVulkanWindow : virtual public IWindow
{

View File

@@ -12,7 +12,7 @@
#include <string>
#include <stdexcept>
namespace openVulkanoCpp
namespace OpenVulkano
{
enum WindowMode
{

View File

@@ -13,7 +13,7 @@
#endif
#include <fstream>
namespace openVulkanoCpp
namespace OpenVulkano
{
void Utils::SetThreadName(const std::string& name)
{

View File

@@ -13,7 +13,7 @@
#include <cassert>
#include "Data/Containers/Array.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class Utils
{

View File

@@ -13,7 +13,7 @@
#include <format>
#endif
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace
{
@@ -134,7 +134,7 @@ namespace openVulkanoCpp
}
//region Compare functions
int Version::CompareBuildNr(const openVulkanoCpp::Version& other) const
int Version::CompareBuildNr(const OpenVulkano::Version& other) const
{
if (m_buildNumber == 0 || other.m_buildNumber == 0) return 0;
if (m_buildNumber > other.m_buildNumber) return 1;
@@ -169,7 +169,7 @@ namespace openVulkanoCpp
return 0;
}
int Version::Compare(const openVulkanoCpp::Version& other)
int Version::Compare(const OpenVulkano::Version& other)
{
int comp;
if ((comp = CompareComponents(other)) != 0) return comp;

View File

@@ -10,7 +10,7 @@
#include <string>
#include <vector>
namespace openVulkanoCpp
namespace OpenVulkano
{
class Version
{

View File

@@ -9,7 +9,7 @@
#include "Base/Logger.hpp"
#include "Scene/Camera.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
ArCameraController::ArCameraController() = default;

View File

@@ -12,7 +12,7 @@
#include <mutex>
#include <atomic>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace AR
{

View File

@@ -9,7 +9,7 @@
#include "Base/ITickable.hpp"
#include "Base/ICloseable.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace Scene
{

View File

@@ -10,7 +10,7 @@
#include "Input/InputManager.hpp"
#include "Input/InputKey.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
FreeCamCameraController::FreeCamCameraController(Scene::Camera* camera) : CameraController(camera)
{

View File

@@ -9,7 +9,7 @@
#include "CameraController.hpp"
#include "Math/Math.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace Input
{

View File

@@ -10,7 +10,7 @@
#include <optional>
#include "Data/Concurent/MutexProtectedObject.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
template<typename KEY, typename VALUE>
class ThreadSafeMap

View File

@@ -10,7 +10,7 @@
#include <mutex>
#include <shared_mutex>
namespace openVulkanoCpp
namespace OpenVulkano
{
template<typename T, typename MUTEX = std::mutex>
class MutexProtectedObject

View File

@@ -10,7 +10,7 @@
#include <thread>
#include <stdexcept>
namespace openVulkanoCpp
namespace OpenVulkano
{
class Spintex
{

View File

@@ -12,7 +12,7 @@
#include <cstddef>
#include <vector>
namespace openVulkanoCpp
namespace OpenVulkano
{
/**
* Heap allocated array. For all these times you need a fixed size data structure, but don't know the size at compile time.

View File

@@ -8,7 +8,7 @@
#include <vector>
namespace openVulkanoCpp
namespace OpenVulkano
{
template<typename T>
class ChunkedArrayList

View File

@@ -10,7 +10,7 @@
#include <ostream>
#include <istream>
namespace openVulkanoCpp
namespace OpenVulkano
{
template<typename FRONT_TYPE, typename BACK_TYPE, typename = std::enable_if<!std::is_same_v<FRONT_TYPE, BACK_TYPE>>>
class SharedDualTypeBuffer

View File

@@ -9,7 +9,7 @@
#include <atomic>
#include <vector>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace Data
{

View File

@@ -21,9 +21,9 @@
#pragma ide diagnostic ignored "cert-msc50-cpp"
#pragma ide diagnostic ignored "cppcoreguidelines-narrowing-conversions"
using namespace openVulkanoCpp::Scene;
using namespace openVulkanoCpp::Input;
using namespace openVulkanoCpp::Math;
using namespace OpenVulkano::Scene;
using namespace OpenVulkano::Input;
using namespace OpenVulkano::Math;
uint32_t GEOS = 3000, OBJECTS = 10000, DYNAMIC = 1000;
@@ -31,7 +31,7 @@ class CubesExampleAppImpl final : public CubesExampleApp
{
Scene scene;
PerspectiveCamera cam;
openVulkanoCpp::FreeCamCameraController camController;
OpenVulkano::FreeCamCameraController camController;
Material mat;
Shader shader;
std::vector<SimpleDrawable> drawablesPool;
@@ -40,11 +40,11 @@ class CubesExampleAppImpl final : public CubesExampleApp
public:
std::string GetAppName() override { return "ExampleApp"; }
openVulkanoCpp::Version GetAppVersion() override { return {"v1.0"}; }
OpenVulkano::Version GetAppVersion() override { return {"v1.0"}; }
void Init() override
{
auto engineConfig = openVulkanoCpp::EngineConfiguration::GetEngineConfiguration();
auto engineConfig = OpenVulkano::EngineConfiguration::GetEngineConfiguration();
engineConfig->SetNumThreads(4);
engineConfig->SetPreferFramebufferFormatSRGB(false);
@@ -53,9 +53,9 @@ public:
cam.Init(70, 16, 9, 0.1f, 100);
scene.SetCamera(&cam);
cam.SetMatrix(Utils::translate(Matrix4f(1), Vector3f_SIMD(0,0,-10)));
shader.AddShaderProgram(openVulkanoCpp::ShaderProgramType::VERTEX, "Shader/basic");
shader.AddShaderProgram(openVulkanoCpp::ShaderProgramType::FRAGMENT, "Shader/basic");
shader.AddVertexInputDescription(openVulkanoCpp::Vertex::GetVertexInputDescription());
shader.AddShaderProgram(OpenVulkano::ShaderProgramType::VERTEX, "Shader/basic");
shader.AddShaderProgram(OpenVulkano::ShaderProgramType::FRAGMENT, "Shader/basic");
shader.AddVertexInputDescription(OpenVulkano::Vertex::GetVertexInputDescription());
drawablesPool.resize(GEOS);
for(uint32_t i = 0; i < GEOS; i++)
{
@@ -92,12 +92,12 @@ public:
void Close() override{}
};
openVulkanoCpp::IGraphicsApp* CubesExampleApp::Create()
OpenVulkano::IGraphicsApp* CubesExampleApp::Create()
{
return new CubesExampleAppImpl();
}
std::unique_ptr<openVulkanoCpp::IGraphicsApp> CubesExampleApp::CreateUnique()
std::unique_ptr<OpenVulkano::IGraphicsApp> CubesExampleApp::CreateUnique()
{
return std::make_unique<CubesExampleAppImpl>();
}

View File

@@ -9,10 +9,10 @@
#include "Base/IGraphicsApp.hpp"
#include <memory>
class CubesExampleApp : public openVulkanoCpp::IGraphicsApp
class CubesExampleApp : public OpenVulkano::IGraphicsApp
{
public:
static openVulkanoCpp::IGraphicsApp* Create();
static OpenVulkano::IGraphicsApp* Create();
static std::unique_ptr<openVulkanoCpp::IGraphicsApp> CreateUnique();
static std::unique_ptr<OpenVulkano::IGraphicsApp> CreateUnique();
};

View File

@@ -8,7 +8,7 @@
#include "Base/Logger.hpp"
#include <GLFW/glfw3.h>
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
void ControllerGLFW::Init(int joystickId)
{

View File

@@ -11,7 +11,7 @@
#include "Input/InputDeviceMouse.hpp"
#include "Input/InputDeviceController.hpp"
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
class KeyboardGLFW final : public Input::InputDeviceKeyboard
{

View File

@@ -9,7 +9,7 @@
#include "Input/InputKey.hpp"
#include <GLFW/glfw3.h>
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
struct KeyboardInputMapping
{

View File

@@ -12,7 +12,7 @@
static_assert(GLFW_JOYSTICK_LAST == 15); // if this fails, please update it and resize the controllers array accordingly as GLFW_JOYSTICK_LAST + 1
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
constexpr KeyboardInputMapping keyboardMapping = KeyboardInputMapping();

View File

@@ -12,7 +12,7 @@
#include "InputDeviceGLFW.hpp"
#include <array>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace GLFW
{

View File

@@ -11,7 +11,7 @@
#include "Host/PlatformProducer.hpp"
#include <GLFW/glfw3.h>
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
namespace
{

View File

@@ -11,7 +11,7 @@
#include <memory>
#include <vector>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IWindow;

View File

@@ -8,9 +8,9 @@
#include "Base/Logger.hpp"
#include <GLFW/glfw3.h>
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
WindowGLFW::WindowGLFW(openVulkanoCpp::GLFW::InputProviderGLFW& inputProvider)
WindowGLFW::WindowGLFW(OpenVulkano::GLFW::InputProviderGLFW& inputProvider)
: inputProvider(inputProvider)
{}

View File

@@ -15,7 +15,7 @@
struct GLFWmonitor;
struct GLFWwindow;
namespace openVulkanoCpp::GLFW
namespace OpenVulkano::GLFW
{
class WindowGLFW final : virtual public BaseWindow, virtual public IVulkanWindow, virtual public IOpenGlWindow
{

View File

@@ -13,9 +13,9 @@
#include <thread>
#include <stdexcept>
namespace openVulkanoCpp
namespace OpenVulkano
{
GraphicsAppManager::GraphicsAppManager(openVulkanoCpp::IGraphicsApp* app, RenderAPI::RenderApi renderApi)
GraphicsAppManager::GraphicsAppManager(OpenVulkano::IGraphicsApp* app, RenderAPI::RenderApi renderApi)
: app(app), renderApi(renderApi)
{
Utils::SetThreadName("Main");
@@ -165,13 +165,13 @@ namespace openVulkanoCpp
}
}
void GraphicsAppManager::OnWindowMinimize(openVulkanoCpp::IWindow* window)
void GraphicsAppManager::OnWindowMinimize(OpenVulkano::IWindow* window)
{
if (window != this->window) return;
Pause();
}
void GraphicsAppManager::OnWindowRestore(openVulkanoCpp::IWindow* window)
void GraphicsAppManager::OnWindowRestore(OpenVulkano::IWindow* window)
{
if (window != this->window) return;
Resume();
@@ -188,14 +188,14 @@ namespace openVulkanoCpp
//TODO save window pos
}
void GraphicsAppManager::OnWindowResize(openVulkanoCpp::IWindow* window, const uint32_t newWidth, const uint32_t newHeight)
void GraphicsAppManager::OnWindowResize(OpenVulkano::IWindow* window, const uint32_t newWidth, const uint32_t newHeight)
{
if(window != this->window) return;
if (window->GetWidth() != newWidth || window->GetHeight() != newHeight) window->SetSize(newWidth, newHeight);
renderer->Resize(newWidth, newHeight);
}
void GraphicsAppManager::OnWindowClose(openVulkanoCpp::IWindow* window)
void GraphicsAppManager::OnWindowClose(OpenVulkano::IWindow* window)
{
window->SetWindowHasBeenDestroyed();
if (window != this->window) return;

View File

@@ -15,7 +15,7 @@
#include <string>
#include <memory>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IPlatform;

View File

@@ -8,11 +8,11 @@
#include "Base/FrameMetadata.hpp"
#include <imgui.h>
namespace openVulkanoCpp
namespace OpenVulkano
{
ImGuiImplOpenVulkano ImGuiImplOpenVulkano::INSTANCE{};
void ImGuiImplOpenVulkano::Init(openVulkanoCpp::IWindow* window)
void ImGuiImplOpenVulkano::Init(OpenVulkano::IWindow* window)
{
ImGuiIO& io = ImGui::GetIO();
IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!");

View File

@@ -8,7 +8,7 @@
#include "Base/UI/IWindow.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class ImGuiImplOpenVulkano
{

View File

@@ -15,7 +15,7 @@
#include <sys/resource.h>
#include <sys/utsname.h>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace
{

View File

@@ -9,7 +9,7 @@
#include <stdexcept>
#include <map>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace
{

View File

@@ -9,7 +9,7 @@
#include "Base/PlatformEnums.hpp"
#include <functional>
namespace openVulkanoCpp
namespace OpenVulkano
{
class IPlatform;
class IRenderer;

View File

@@ -9,7 +9,7 @@
#include "Base/Event.hpp"
#include <string>
namespace openVulkanoCpp
namespace OpenVulkano
{
struct OsVersion
{

View File

@@ -13,7 +13,7 @@
#include <Winsock.h>
#include <Winbase.h>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace
{

View File

@@ -8,7 +8,7 @@
#include "Base/Event.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
class NamedEventProcessor final : public INamedEventProcessor
{

View File

@@ -12,7 +12,7 @@
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
namespace openVulkanoCpp
namespace OpenVulkano
{
namespace
{

View File

@@ -11,7 +11,7 @@
#include "Host/SystemInfo.hpp"
#include "Math/ByteSize.hpp"
using namespace openVulkanoCpp;
using namespace OpenVulkano;
@interface OpenVulkanoAppDelegate ()

View File

@@ -15,7 +15,7 @@
#pragma mark -
#pragma mark OpenVulkanoViewController
using namespace openVulkanoCpp;
using namespace OpenVulkano;
class ViewWindow final : public IVulkanWindow
{

View File

@@ -16,7 +16,7 @@
#import <UIKit/UIDevice.h>
#import <UIKit/UIWindowScene.h>
namespace openVulkanoCpp
namespace OpenVulkano
{
Event<> SystemInfo::OnLowPowerModeChanged;
Event<> SystemInfo::OnBatteryStateChanged;

View File

@@ -7,7 +7,7 @@
#include "AppFolders.hpp"
#include "PlatformFolders.hpp"
namespace openVulkanoCpp
namespace OpenVulkano
{
#ifdef __APPLE__
AppFolders AppFolders::INSTANCE = AppFolders("");

Some files were not shown because too many files have changed in this diff Show More