Change namespace name
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "Math/Math.hpp"
|
||||
#include "Math/Range.hpp"
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
class ArConstants final
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <magic_enum.hpp>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
class ArDepthFormat final
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "ArSession.hpp"
|
||||
#include "ArRecorder.hpp"
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
float ArFrame::GetConfidenceNormalisationFactor() const
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
class ArSession;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <yaml-cpp/yaml.h>
|
||||
#include <sstream>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Math/CameraIntrinsic.hpp"
|
||||
#include "Math/Timestamp.hpp"
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
struct ArFrameMetadata
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define TURBO_JPEG
|
||||
//#endif
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <optional>
|
||||
#include <future>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
class ArSession;
|
||||
class ArFrame;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
ArSessionMetadata ArSessionMetadata::FromXML(const std::string& filePath)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "AR/ArDepthFormat.hpp"
|
||||
#include "Math/Range.hpp"
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
struct ArSessionMetadata
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <magic_enum.hpp>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
class ArTrackingState final
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <magic_enum.hpp>
|
||||
|
||||
namespace openVulkanoCpp::AR
|
||||
namespace OpenVulkano::AR
|
||||
{
|
||||
class ArType final
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "ArSessionArCore.h"
|
||||
|
||||
namespace openVulkanoCpp::AR::ArCore
|
||||
namespace OpenVulkano::AR::ArCore
|
||||
{
|
||||
std::shared_ptr<ArSession> ArSessionArCore::Create(const ArSessionConfig& config)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#import <ARKit/ARFrame.h>
|
||||
|
||||
namespace openVulkanoCpp::AR::ArKit
|
||||
namespace OpenVulkano::AR::ArKit
|
||||
{
|
||||
class ArSessionArKitInternal;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#import <ARKit/ARPointCloud.h>
|
||||
#import <CoreVideo/CoreVideo.h>
|
||||
|
||||
namespace openVulkanoCpp::AR::ArKit
|
||||
namespace OpenVulkano::AR::ArKit
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "ArSessionArKit.h"
|
||||
#include "ArSessionArKitInternal.h"
|
||||
|
||||
namespace openVulkanoCpp::AR::ArKit
|
||||
namespace OpenVulkano::AR::ArKit
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#import <ARKit/ARCamera.h>
|
||||
|
||||
namespace openVulkanoCpp::AR::ArKit
|
||||
namespace OpenVulkano::AR::ArKit
|
||||
{
|
||||
inline ArTrackingState GetArTrackingState(ARCamera* camera)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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({})
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "AR/ArSession.hpp"
|
||||
|
||||
namespace openVulkanoCpp::AR::Network
|
||||
namespace OpenVulkano::AR::Network
|
||||
{
|
||||
class ArSessionStream final : public ArSession
|
||||
{
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "AR/ArFrame.hpp"
|
||||
#include "ArPlaybackReader.hpp"
|
||||
|
||||
namespace openVulkanoCpp::AR::Playback
|
||||
namespace OpenVulkano::AR::Playback
|
||||
{
|
||||
class ArSessionPlayback;
|
||||
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
namespace openVulkanoCpp::AR::Playback
|
||||
namespace OpenVulkano::AR::Playback
|
||||
{
|
||||
struct DepthImage
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "AppEvents.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
Event<> AppEvents::OnWillResignActive;
|
||||
Event<> AppEvents::OnDidEnterBackground;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "Event.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
struct AppEvents
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "Logger.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class BlockProfiler final
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <algorithm>
|
||||
#undef max
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace openVulkano
|
||||
{
|
||||
class EngineConfiguration
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "Event.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
std::vector<INamedEventProcessor*> INamedEventProcessor::processors;
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IEventHandler
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class FrameMetadata final
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class ICloseable
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Version.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IGraphicsAppManager;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <cstdint>
|
||||
#include "PlatformEnums.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IWindow;
|
||||
class IGraphicsApp;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "ICloseable.hpp"
|
||||
#include "UI/IWindow.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class PlatformInitFailedException : public std::runtime_error
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class ITickable
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <spdlog/sinks/msvc_sink.h>
|
||||
#endif
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
|
||||
constexpr size_t MAX_LOG_FILE_SIZE = 512_MiB;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class Logger
|
||||
{ //TODO add custom sink for in game/engine console
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <magic_enum.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class RenderAPI
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "Scene/UI/UI.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IWindow;
|
||||
class IGraphicsAppManager;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "Logger.hpp"
|
||||
#include "AppEvents.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
ThreadBackgroundSleep ThreadBackgroundSleep::INSTANCE;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <mutex>
|
||||
#include <string_view>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IEventHandler;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
/**
|
||||
* \brief High-res timer
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "IWindow.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class BaseWindow : virtual public IWindow
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "IWindow.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IOpenGlWindow : virtual public IWindow
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IVulkanWindow : virtual public IWindow
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
enum WindowMode
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#endif
|
||||
#include <fstream>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
void Utils::SetThreadName(const std::string& name)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <cassert>
|
||||
#include "Data/Containers/Array.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class Utils
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class Version
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Base/Logger.hpp"
|
||||
#include "Scene/Camera.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
ArCameraController::ArCameraController() = default;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <mutex>
|
||||
#include <atomic>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace AR
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Base/ITickable.hpp"
|
||||
#include "Base/ICloseable.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace Scene
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "Input/InputManager.hpp"
|
||||
#include "Input/InputKey.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
FreeCamCameraController::FreeCamCameraController(Scene::Camera* camera) : CameraController(camera)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "CameraController.hpp"
|
||||
#include "Math/Math.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace Input
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <optional>
|
||||
#include "Data/Concurent/MutexProtectedObject.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
template<typename KEY, typename VALUE>
|
||||
class ThreadSafeMap
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <mutex>
|
||||
#include <shared_mutex>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
template<typename T, typename MUTEX = std::mutex>
|
||||
class MutexProtectedObject
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <thread>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class Spintex
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
template<typename T>
|
||||
class ChunkedArrayList
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace Data
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "Base/Logger.hpp"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace openVulkanoCpp::GLFW
|
||||
namespace OpenVulkano::GLFW
|
||||
{
|
||||
void ControllerGLFW::Init(int joystickId)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Input/InputDeviceMouse.hpp"
|
||||
#include "Input/InputDeviceController.hpp"
|
||||
|
||||
namespace openVulkanoCpp::GLFW
|
||||
namespace OpenVulkano::GLFW
|
||||
{
|
||||
class KeyboardGLFW final : public Input::InputDeviceKeyboard
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Input/InputKey.hpp"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace openVulkanoCpp::GLFW
|
||||
namespace OpenVulkano::GLFW
|
||||
{
|
||||
struct KeyboardInputMapping
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "InputDeviceGLFW.hpp"
|
||||
#include <array>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace GLFW
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Host/PlatformProducer.hpp"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace openVulkanoCpp::GLFW
|
||||
namespace OpenVulkano::GLFW
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IWindow;
|
||||
|
||||
|
||||
@@ -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)
|
||||
{}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IPlatform;
|
||||
|
||||
|
||||
@@ -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!");
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "Base/UI/IWindow.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class ImGuiImplOpenVulkano
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <sys/resource.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <stdexcept>
|
||||
#include <map>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Base/PlatformEnums.hpp"
|
||||
#include <functional>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class IPlatform;
|
||||
class IRenderer;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "Base/Event.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
struct OsVersion
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <Winsock.h>
|
||||
#include <Winbase.h>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "Base/Event.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
class NamedEventProcessor final : public INamedEventProcessor
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <objc/runtime.h>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "Host/SystemInfo.hpp"
|
||||
#include "Math/ByteSize.hpp"
|
||||
|
||||
using namespace openVulkanoCpp;
|
||||
using namespace OpenVulkano;
|
||||
|
||||
@interface OpenVulkanoAppDelegate ()
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#pragma mark -
|
||||
#pragma mark OpenVulkanoViewController
|
||||
|
||||
using namespace openVulkanoCpp;
|
||||
using namespace OpenVulkano;
|
||||
|
||||
class ViewWindow final : public IVulkanWindow
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#import <UIKit/UIDevice.h>
|
||||
#import <UIKit/UIWindowScene.h>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
namespace OpenVulkano
|
||||
{
|
||||
Event<> SystemInfo::OnLowPowerModeChanged;
|
||||
Event<> SystemInfo::OnBatteryStateChanged;
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user