Change namespace name
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
#include "Math/Math.hpp"
|
#include "Math/Math.hpp"
|
||||||
#include "Math/Range.hpp"
|
#include "Math/Range.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArConstants final
|
class ArConstants final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArDepthFormat final
|
class ArDepthFormat final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include "ArSession.hpp"
|
#include "ArSession.hpp"
|
||||||
#include "ArRecorder.hpp"
|
#include "ArRecorder.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
float ArFrame::GetConfidenceNormalisationFactor() const
|
float ArFrame::GetConfidenceNormalisationFactor() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArSession;
|
class ArSession;
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include <yaml-cpp/yaml.h>
|
#include <yaml-cpp/yaml.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "Math/CameraIntrinsic.hpp"
|
#include "Math/CameraIntrinsic.hpp"
|
||||||
#include "Math/Timestamp.hpp"
|
#include "Math/Timestamp.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
struct ArFrameMetadata
|
struct ArFrameMetadata
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#define TURBO_JPEG
|
#define TURBO_JPEG
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IEventHandler;
|
class IEventHandler;
|
||||||
class MultiPartArchiveWriter;
|
class MultiPartArchiveWriter;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArSession;
|
class ArSession;
|
||||||
class ArFrame;
|
class ArFrame;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
std::vector<std::weak_ptr<ArSession>> ArSession::sessions;
|
std::vector<std::weak_ptr<ArSession>> ArSession::sessions;
|
||||||
std::weak_ptr<ArSession> ArSession::nativeSession;
|
std::weak_ptr<ArSession> ArSession::nativeSession;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArSession;
|
class ArSession;
|
||||||
class ArFrame;
|
class ArFrame;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
ArSessionMetadata ArSessionMetadata::FromXML(const std::string& filePath)
|
ArSessionMetadata ArSessionMetadata::FromXML(const std::string& filePath)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "AR/ArDepthFormat.hpp"
|
#include "AR/ArDepthFormat.hpp"
|
||||||
#include "Math/Range.hpp"
|
#include "Math/Range.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
struct ArSessionMetadata
|
struct ArSessionMetadata
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArTrackingState final
|
class ArTrackingState final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
class ArType final
|
class ArType final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "ArSessionArCore.h"
|
#include "ArSessionArCore.h"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArCore
|
namespace OpenVulkano::AR::ArCore
|
||||||
{
|
{
|
||||||
std::shared_ptr<ArSession> ArSessionArCore::Create(const ArSessionConfig& config)
|
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 the class of the native AR session to be used
|
||||||
#define NATIVE_AR_SESSION_CLASS ArCore::ArSessionArCore
|
#define NATIVE_AR_SESSION_CLASS ArCore::ArSessionArCore
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArCore
|
namespace OpenVulkano::AR::ArCore
|
||||||
{
|
{
|
||||||
class ArSessionArCore : public ArSession
|
class ArSessionArCore : public ArSession
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#import <ARKit/ARFrame.h>
|
#import <ARKit/ARFrame.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArKit
|
namespace OpenVulkano::AR::ArKit
|
||||||
{
|
{
|
||||||
class ArSessionArKitInternal;
|
class ArSessionArKitInternal;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#import <ARKit/ARPointCloud.h>
|
#import <ARKit/ARPointCloud.h>
|
||||||
#import <CoreVideo/CoreVideo.h>
|
#import <CoreVideo/CoreVideo.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArKit
|
namespace OpenVulkano::AR::ArKit
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "ArSessionArKitInternal.h"
|
#include "ArSessionArKitInternal.h"
|
||||||
|
|
||||||
@interface ArKitDelegate : NSObject <ARSessionDelegate>
|
@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)session:(ARSession *)session didUpdateFrame:(ARFrame *)frame;
|
||||||
- (void)sessionWasInterrupted:(ARSession *)session;
|
- (void)sessionWasInterrupted:(ARSession *)session;
|
||||||
- (void)sessionInterruptionEnded:(ARSession *)session;
|
- (void)sessionInterruptionEnded:(ARSession *)session;
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
@implementation ArKitDelegate
|
@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;
|
m_arSession = session;
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
// Define the class of the native AR session to be used
|
// Define the class of the native AR session to be used
|
||||||
#define NATIVE_AR_SESSION_CLASS ArKit::ArSessionArKit
|
#define NATIVE_AR_SESSION_CLASS ArKit::ArSessionArKit
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArKit
|
namespace OpenVulkano::AR::ArKit
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* This is just a helper intermediate class.
|
* This is just a helper intermediate class.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "ArSessionArKit.h"
|
#include "ArSessionArKit.h"
|
||||||
#include "ArSessionArKitInternal.h"
|
#include "ArSessionArKitInternal.h"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArKit
|
namespace OpenVulkano::AR::ArKit
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
@class ArKitDelegate;
|
@class ArKitDelegate;
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArKit
|
namespace OpenVulkano::AR::ArKit
|
||||||
{
|
{
|
||||||
class ArSessionArKitInternal final : public ArSessionArKit, public std::enable_shared_from_this<ArSessionArKitInternal>
|
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; }
|
#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
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#import <ARKit/ARCamera.h>
|
#import <ARKit/ARCamera.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::ArKit
|
namespace OpenVulkano::AR::ArKit
|
||||||
{
|
{
|
||||||
inline ArTrackingState GetArTrackingState(ARCamera* camera)
|
inline ArTrackingState GetArTrackingState(ARCamera* camera)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
// Define the class of the native AR session to be used
|
// Define the class of the native AR session to be used
|
||||||
#define NATIVE_AR_SESSION_CLASS ArSessionNull
|
#define NATIVE_AR_SESSION_CLASS ArSessionNull
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR
|
namespace OpenVulkano::AR
|
||||||
{
|
{
|
||||||
struct ArSessionNull final
|
struct ArSessionNull final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "ArSessionStream.h"
|
#include "ArSessionStream.h"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Network
|
namespace OpenVulkano::AR::Network
|
||||||
{
|
{
|
||||||
ArSessionStream::ArSessionStream(const std::string& serverAddress, std::optional<ArSessionConfig> requestConfig)
|
ArSessionStream::ArSessionStream(const std::string& serverAddress, std::optional<ArSessionConfig> requestConfig)
|
||||||
: ArSession({})
|
: ArSession({})
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "AR/ArSession.hpp"
|
#include "AR/ArSession.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Network
|
namespace OpenVulkano::AR::Network
|
||||||
{
|
{
|
||||||
class ArSessionStream final : public ArSession
|
class ArSessionStream final : public ArSession
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include "ArSessionPlayback.hpp"
|
#include "ArSessionPlayback.hpp"
|
||||||
#include "Base/BlockProfiler.hpp"
|
#include "Base/BlockProfiler.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Playback
|
namespace OpenVulkano::AR::Playback
|
||||||
{
|
{
|
||||||
ArFramePlayback::ArFramePlayback(const std::shared_ptr<ArSessionPlayback>& session, ArPlaybackReader& frameReader)
|
ArFramePlayback::ArFramePlayback(const std::shared_ptr<ArSessionPlayback>& session, ArPlaybackReader& frameReader)
|
||||||
: ArFrame(session, frameReader.GetNextFrameId())
|
: ArFrame(session, frameReader.GetNextFrameId())
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "AR/ArFrame.hpp"
|
#include "AR/ArFrame.hpp"
|
||||||
#include "ArPlaybackReader.hpp"
|
#include "ArPlaybackReader.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Playback
|
namespace OpenVulkano::AR::Playback
|
||||||
{
|
{
|
||||||
class ArSessionPlayback;
|
class ArSessionPlayback;
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#if __has_include("turbojpeg.h")
|
#if __has_include("turbojpeg.h")
|
||||||
#include <turbojpeg.h>
|
#include <turbojpeg.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Playback
|
namespace OpenVulkano::AR::Playback
|
||||||
{
|
{
|
||||||
ColorImg ArPlaybackReader::ReadColorImage()
|
ColorImg ArPlaybackReader::ReadColorImage()
|
||||||
{
|
{
|
||||||
@@ -44,7 +44,7 @@ namespace openVulkanoCpp::AR::Playback
|
|||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include <stb_image.h>
|
#include <stb_image.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Playback
|
namespace OpenVulkano::AR::Playback
|
||||||
{
|
{
|
||||||
ColorImg ArPlaybackReader::ReadColorImage()
|
ColorImg ArPlaybackReader::ReadColorImage()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Playback
|
namespace OpenVulkano::AR::Playback
|
||||||
{
|
{
|
||||||
struct DepthImage
|
struct DepthImage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "Base/Logger.hpp"
|
#include "Base/Logger.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
namespace openVulkanoCpp::AR::Playback
|
namespace OpenVulkano::AR::Playback
|
||||||
{
|
{
|
||||||
ArSessionPlayback::ArSessionPlayback(const std::string& recordingPath, bool autoAdvance)
|
ArSessionPlayback::ArSessionPlayback(const std::string& recordingPath, bool autoAdvance)
|
||||||
: ArSession(ArSessionMetadata(recordingPath)), recordingPath(recordingPath), autoAdvance(autoAdvance), playbackReader(recordingPath)
|
: ArSession(ArSessionMetadata(recordingPath)), recordingPath(recordingPath), autoAdvance(autoAdvance), playbackReader(recordingPath)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "ArPlaybackReader.hpp"
|
#include "ArPlaybackReader.hpp"
|
||||||
#include "Math/Timestamp.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>
|
class ArSessionPlayback final : public ArSession, public std::enable_shared_from_this<ArSessionPlayback>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "AppEvents.hpp"
|
#include "AppEvents.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
Event<> AppEvents::OnWillResignActive;
|
Event<> AppEvents::OnWillResignActive;
|
||||||
Event<> AppEvents::OnDidEnterBackground;
|
Event<> AppEvents::OnDidEnterBackground;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "Event.hpp"
|
#include "Event.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
struct AppEvents
|
struct AppEvents
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "Logger.hpp"
|
#include "Logger.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class BlockProfiler final
|
class BlockProfiler final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#undef max
|
#undef max
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace openVulkano
|
||||||
{
|
{
|
||||||
class EngineConfiguration
|
class EngineConfiguration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <spdlog/fmt/fmt.h> //TODO replace with external fmt
|
#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
|
struct EngineVersion
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "Event.hpp"
|
#include "Event.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
std::vector<INamedEventProcessor*> INamedEventProcessor::processors;
|
std::vector<INamedEventProcessor*> INamedEventProcessor::processors;
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
#include <variant>
|
#include <variant>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IEventHandler
|
class IEventHandler
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class FrameMetadata final
|
class FrameMetadata final
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class ICloseable
|
class ICloseable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "Version.hpp"
|
#include "Version.hpp"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IGraphicsAppManager;
|
class IGraphicsAppManager;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "PlatformEnums.hpp"
|
#include "PlatformEnums.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IWindow;
|
class IWindow;
|
||||||
class IGraphicsApp;
|
class IGraphicsApp;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include "ICloseable.hpp"
|
#include "ICloseable.hpp"
|
||||||
#include "UI/IWindow.hpp"
|
#include "UI/IWindow.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class PlatformInitFailedException : public std::runtime_error
|
class PlatformInitFailedException : public std::runtime_error
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class ITickable
|
class ITickable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include <spdlog/sinks/msvc_sink.h>
|
#include <spdlog/sinks/msvc_sink.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
|
|
||||||
constexpr size_t MAX_LOG_FILE_SIZE = 512_MiB;
|
constexpr size_t MAX_LOG_FILE_SIZE = 512_MiB;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class Logger
|
class Logger
|
||||||
{ //TODO add custom sink for in game/engine console
|
{ //TODO add custom sink for in game/engine console
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class RenderAPI
|
class RenderAPI
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "Scene/UI/UI.hpp"
|
#include "Scene/UI/UI.hpp"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IWindow;
|
class IWindow;
|
||||||
class IGraphicsAppManager;
|
class IGraphicsAppManager;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include "Logger.hpp"
|
#include "Logger.hpp"
|
||||||
#include "AppEvents.hpp"
|
#include "AppEvents.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
ThreadBackgroundSleep ThreadBackgroundSleep::INSTANCE;
|
ThreadBackgroundSleep ThreadBackgroundSleep::INSTANCE;
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IEventHandler;
|
class IEventHandler;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* \brief High-res timer
|
* \brief High-res timer
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "IWindow.hpp"
|
#include "IWindow.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class BaseWindow : virtual public IWindow
|
class BaseWindow : virtual public IWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "IWindow.hpp"
|
#include "IWindow.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IOpenGlWindow : virtual public IWindow
|
class IOpenGlWindow : virtual public IWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <vulkan/vulkan.hpp>
|
#include <vulkan/vulkan.hpp>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IVulkanWindow : virtual public IWindow
|
class IVulkanWindow : virtual public IWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
enum WindowMode
|
enum WindowMode
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
void Utils::SetThreadName(const std::string& name)
|
void Utils::SetThreadName(const std::string& name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include "Data/Containers/Array.hpp"
|
#include "Data/Containers/Array.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class Utils
|
class Utils
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <format>
|
#include <format>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
@@ -134,7 +134,7 @@ namespace openVulkanoCpp
|
|||||||
}
|
}
|
||||||
|
|
||||||
//region Compare functions
|
//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 == 0 || other.m_buildNumber == 0) return 0;
|
||||||
if (m_buildNumber > other.m_buildNumber) return 1;
|
if (m_buildNumber > other.m_buildNumber) return 1;
|
||||||
@@ -169,7 +169,7 @@ namespace openVulkanoCpp
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Version::Compare(const openVulkanoCpp::Version& other)
|
int Version::Compare(const OpenVulkano::Version& other)
|
||||||
{
|
{
|
||||||
int comp;
|
int comp;
|
||||||
if ((comp = CompareComponents(other)) != 0) return comp;
|
if ((comp = CompareComponents(other)) != 0) return comp;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class Version
|
class Version
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "Base/Logger.hpp"
|
#include "Base/Logger.hpp"
|
||||||
#include "Scene/Camera.hpp"
|
#include "Scene/Camera.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
ArCameraController::ArCameraController() = default;
|
ArCameraController::ArCameraController() = default;
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace AR
|
namespace AR
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "Base/ITickable.hpp"
|
#include "Base/ITickable.hpp"
|
||||||
#include "Base/ICloseable.hpp"
|
#include "Base/ICloseable.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace Scene
|
namespace Scene
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "Input/InputManager.hpp"
|
#include "Input/InputManager.hpp"
|
||||||
#include "Input/InputKey.hpp"
|
#include "Input/InputKey.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
FreeCamCameraController::FreeCamCameraController(Scene::Camera* camera) : CameraController(camera)
|
FreeCamCameraController::FreeCamCameraController(Scene::Camera* camera) : CameraController(camera)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "CameraController.hpp"
|
#include "CameraController.hpp"
|
||||||
#include "Math/Math.hpp"
|
#include "Math/Math.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace Input
|
namespace Input
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include "Data/Concurent/MutexProtectedObject.hpp"
|
#include "Data/Concurent/MutexProtectedObject.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
template<typename KEY, typename VALUE>
|
template<typename KEY, typename VALUE>
|
||||||
class ThreadSafeMap
|
class ThreadSafeMap
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <shared_mutex>
|
#include <shared_mutex>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
template<typename T, typename MUTEX = std::mutex>
|
template<typename T, typename MUTEX = std::mutex>
|
||||||
class MutexProtectedObject
|
class MutexProtectedObject
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class Spintex
|
class Spintex
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <vector>
|
#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.
|
* 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>
|
#include <vector>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class ChunkedArrayList
|
class ChunkedArrayList
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <istream>
|
#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>>>
|
template<typename FRONT_TYPE, typename BACK_TYPE, typename = std::enable_if<!std::is_same_v<FRONT_TYPE, BACK_TYPE>>>
|
||||||
class SharedDualTypeBuffer
|
class SharedDualTypeBuffer
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace Data
|
namespace Data
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
#pragma ide diagnostic ignored "cert-msc50-cpp"
|
#pragma ide diagnostic ignored "cert-msc50-cpp"
|
||||||
#pragma ide diagnostic ignored "cppcoreguidelines-narrowing-conversions"
|
#pragma ide diagnostic ignored "cppcoreguidelines-narrowing-conversions"
|
||||||
|
|
||||||
using namespace openVulkanoCpp::Scene;
|
using namespace OpenVulkano::Scene;
|
||||||
using namespace openVulkanoCpp::Input;
|
using namespace OpenVulkano::Input;
|
||||||
using namespace openVulkanoCpp::Math;
|
using namespace OpenVulkano::Math;
|
||||||
|
|
||||||
uint32_t GEOS = 3000, OBJECTS = 10000, DYNAMIC = 1000;
|
uint32_t GEOS = 3000, OBJECTS = 10000, DYNAMIC = 1000;
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ class CubesExampleAppImpl final : public CubesExampleApp
|
|||||||
{
|
{
|
||||||
Scene scene;
|
Scene scene;
|
||||||
PerspectiveCamera cam;
|
PerspectiveCamera cam;
|
||||||
openVulkanoCpp::FreeCamCameraController camController;
|
OpenVulkano::FreeCamCameraController camController;
|
||||||
Material mat;
|
Material mat;
|
||||||
Shader shader;
|
Shader shader;
|
||||||
std::vector<SimpleDrawable> drawablesPool;
|
std::vector<SimpleDrawable> drawablesPool;
|
||||||
@@ -40,11 +40,11 @@ class CubesExampleAppImpl final : public CubesExampleApp
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
std::string GetAppName() override { return "ExampleApp"; }
|
std::string GetAppName() override { return "ExampleApp"; }
|
||||||
openVulkanoCpp::Version GetAppVersion() override { return {"v1.0"}; }
|
OpenVulkano::Version GetAppVersion() override { return {"v1.0"}; }
|
||||||
|
|
||||||
void Init() override
|
void Init() override
|
||||||
{
|
{
|
||||||
auto engineConfig = openVulkanoCpp::EngineConfiguration::GetEngineConfiguration();
|
auto engineConfig = OpenVulkano::EngineConfiguration::GetEngineConfiguration();
|
||||||
engineConfig->SetNumThreads(4);
|
engineConfig->SetNumThreads(4);
|
||||||
engineConfig->SetPreferFramebufferFormatSRGB(false);
|
engineConfig->SetPreferFramebufferFormatSRGB(false);
|
||||||
|
|
||||||
@@ -53,9 +53,9 @@ public:
|
|||||||
cam.Init(70, 16, 9, 0.1f, 100);
|
cam.Init(70, 16, 9, 0.1f, 100);
|
||||||
scene.SetCamera(&cam);
|
scene.SetCamera(&cam);
|
||||||
cam.SetMatrix(Utils::translate(Matrix4f(1), Vector3f_SIMD(0,0,-10)));
|
cam.SetMatrix(Utils::translate(Matrix4f(1), Vector3f_SIMD(0,0,-10)));
|
||||||
shader.AddShaderProgram(openVulkanoCpp::ShaderProgramType::VERTEX, "Shader/basic");
|
shader.AddShaderProgram(OpenVulkano::ShaderProgramType::VERTEX, "Shader/basic");
|
||||||
shader.AddShaderProgram(openVulkanoCpp::ShaderProgramType::FRAGMENT, "Shader/basic");
|
shader.AddShaderProgram(OpenVulkano::ShaderProgramType::FRAGMENT, "Shader/basic");
|
||||||
shader.AddVertexInputDescription(openVulkanoCpp::Vertex::GetVertexInputDescription());
|
shader.AddVertexInputDescription(OpenVulkano::Vertex::GetVertexInputDescription());
|
||||||
drawablesPool.resize(GEOS);
|
drawablesPool.resize(GEOS);
|
||||||
for(uint32_t i = 0; i < GEOS; i++)
|
for(uint32_t i = 0; i < GEOS; i++)
|
||||||
{
|
{
|
||||||
@@ -92,12 +92,12 @@ public:
|
|||||||
void Close() override{}
|
void Close() override{}
|
||||||
};
|
};
|
||||||
|
|
||||||
openVulkanoCpp::IGraphicsApp* CubesExampleApp::Create()
|
OpenVulkano::IGraphicsApp* CubesExampleApp::Create()
|
||||||
{
|
{
|
||||||
return new CubesExampleAppImpl();
|
return new CubesExampleAppImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<openVulkanoCpp::IGraphicsApp> CubesExampleApp::CreateUnique()
|
std::unique_ptr<OpenVulkano::IGraphicsApp> CubesExampleApp::CreateUnique()
|
||||||
{
|
{
|
||||||
return std::make_unique<CubesExampleAppImpl>();
|
return std::make_unique<CubesExampleAppImpl>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
#include "Base/IGraphicsApp.hpp"
|
#include "Base/IGraphicsApp.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
class CubesExampleApp : public openVulkanoCpp::IGraphicsApp
|
class CubesExampleApp : public OpenVulkano::IGraphicsApp
|
||||||
{
|
{
|
||||||
public:
|
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 "Base/Logger.hpp"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::GLFW
|
namespace OpenVulkano::GLFW
|
||||||
{
|
{
|
||||||
void ControllerGLFW::Init(int joystickId)
|
void ControllerGLFW::Init(int joystickId)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "Input/InputDeviceMouse.hpp"
|
#include "Input/InputDeviceMouse.hpp"
|
||||||
#include "Input/InputDeviceController.hpp"
|
#include "Input/InputDeviceController.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp::GLFW
|
namespace OpenVulkano::GLFW
|
||||||
{
|
{
|
||||||
class KeyboardGLFW final : public Input::InputDeviceKeyboard
|
class KeyboardGLFW final : public Input::InputDeviceKeyboard
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "Input/InputKey.hpp"
|
#include "Input/InputKey.hpp"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::GLFW
|
namespace OpenVulkano::GLFW
|
||||||
{
|
{
|
||||||
struct KeyboardInputMapping
|
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
|
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();
|
constexpr KeyboardInputMapping keyboardMapping = KeyboardInputMapping();
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "InputDeviceGLFW.hpp"
|
#include "InputDeviceGLFW.hpp"
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace GLFW
|
namespace GLFW
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "Host/PlatformProducer.hpp"
|
#include "Host/PlatformProducer.hpp"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::GLFW
|
namespace OpenVulkano::GLFW
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IWindow;
|
class IWindow;
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
#include "Base/Logger.hpp"
|
#include "Base/Logger.hpp"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp::GLFW
|
namespace OpenVulkano::GLFW
|
||||||
{
|
{
|
||||||
WindowGLFW::WindowGLFW(openVulkanoCpp::GLFW::InputProviderGLFW& inputProvider)
|
WindowGLFW::WindowGLFW(OpenVulkano::GLFW::InputProviderGLFW& inputProvider)
|
||||||
: inputProvider(inputProvider)
|
: inputProvider(inputProvider)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
struct GLFWmonitor;
|
struct GLFWmonitor;
|
||||||
struct GLFWwindow;
|
struct GLFWwindow;
|
||||||
|
|
||||||
namespace openVulkanoCpp::GLFW
|
namespace OpenVulkano::GLFW
|
||||||
{
|
{
|
||||||
class WindowGLFW final : virtual public BaseWindow, virtual public IVulkanWindow, virtual public IOpenGlWindow
|
class WindowGLFW final : virtual public BaseWindow, virtual public IVulkanWindow, virtual public IOpenGlWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <stdexcept>
|
#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)
|
: app(app), renderApi(renderApi)
|
||||||
{
|
{
|
||||||
Utils::SetThreadName("Main");
|
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;
|
if (window != this->window) return;
|
||||||
Pause();
|
Pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsAppManager::OnWindowRestore(openVulkanoCpp::IWindow* window)
|
void GraphicsAppManager::OnWindowRestore(OpenVulkano::IWindow* window)
|
||||||
{
|
{
|
||||||
if (window != this->window) return;
|
if (window != this->window) return;
|
||||||
Resume();
|
Resume();
|
||||||
@@ -188,14 +188,14 @@ namespace openVulkanoCpp
|
|||||||
//TODO save window pos
|
//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 != this->window) return;
|
||||||
if (window->GetWidth() != newWidth || window->GetHeight() != newHeight) window->SetSize(newWidth, newHeight);
|
if (window->GetWidth() != newWidth || window->GetHeight() != newHeight) window->SetSize(newWidth, newHeight);
|
||||||
renderer->Resize(newWidth, newHeight);
|
renderer->Resize(newWidth, newHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsAppManager::OnWindowClose(openVulkanoCpp::IWindow* window)
|
void GraphicsAppManager::OnWindowClose(OpenVulkano::IWindow* window)
|
||||||
{
|
{
|
||||||
window->SetWindowHasBeenDestroyed();
|
window->SetWindowHasBeenDestroyed();
|
||||||
if (window != this->window) return;
|
if (window != this->window) return;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IPlatform;
|
class IPlatform;
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
#include "Base/FrameMetadata.hpp"
|
#include "Base/FrameMetadata.hpp"
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
ImGuiImplOpenVulkano ImGuiImplOpenVulkano::INSTANCE{};
|
ImGuiImplOpenVulkano ImGuiImplOpenVulkano::INSTANCE{};
|
||||||
|
|
||||||
void ImGuiImplOpenVulkano::Init(openVulkanoCpp::IWindow* window)
|
void ImGuiImplOpenVulkano::Init(OpenVulkano::IWindow* window)
|
||||||
{
|
{
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!");
|
IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!");
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "Base/UI/IWindow.hpp"
|
#include "Base/UI/IWindow.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class ImGuiImplOpenVulkano
|
class ImGuiImplOpenVulkano
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "Base/PlatformEnums.hpp"
|
#include "Base/PlatformEnums.hpp"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class IPlatform;
|
class IPlatform;
|
||||||
class IRenderer;
|
class IRenderer;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "Base/Event.hpp"
|
#include "Base/Event.hpp"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
struct OsVersion
|
struct OsVersion
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <Winsock.h>
|
#include <Winsock.h>
|
||||||
#include <Winbase.h>
|
#include <Winbase.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "Base/Event.hpp"
|
#include "Base/Event.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class NamedEventProcessor final : public INamedEventProcessor
|
class NamedEventProcessor final : public INamedEventProcessor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <objc/runtime.h>
|
#import <objc/runtime.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "Host/SystemInfo.hpp"
|
#include "Host/SystemInfo.hpp"
|
||||||
#include "Math/ByteSize.hpp"
|
#include "Math/ByteSize.hpp"
|
||||||
|
|
||||||
using namespace openVulkanoCpp;
|
using namespace OpenVulkano;
|
||||||
|
|
||||||
@interface OpenVulkanoAppDelegate ()
|
@interface OpenVulkanoAppDelegate ()
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#pragma mark -
|
#pragma mark -
|
||||||
#pragma mark OpenVulkanoViewController
|
#pragma mark OpenVulkanoViewController
|
||||||
|
|
||||||
using namespace openVulkanoCpp;
|
using namespace OpenVulkano;
|
||||||
|
|
||||||
class ViewWindow final : public IVulkanWindow
|
class ViewWindow final : public IVulkanWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#import <UIKit/UIDevice.h>
|
#import <UIKit/UIDevice.h>
|
||||||
#import <UIKit/UIWindowScene.h>
|
#import <UIKit/UIWindowScene.h>
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
Event<> SystemInfo::OnLowPowerModeChanged;
|
Event<> SystemInfo::OnLowPowerModeChanged;
|
||||||
Event<> SystemInfo::OnBatteryStateChanged;
|
Event<> SystemInfo::OnBatteryStateChanged;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "AppFolders.hpp"
|
#include "AppFolders.hpp"
|
||||||
#include "PlatformFolders.hpp"
|
#include "PlatformFolders.hpp"
|
||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
AppFolders AppFolders::INSTANCE = AppFolders("");
|
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