diff --git a/openVulkanoCpp/IO/Archive/ArchiveReader.cpp b/openVulkanoCpp/IO/Archive/ArchiveReader.cpp index ee58ad5..fb57ccb 100644 --- a/openVulkanoCpp/IO/Archive/ArchiveReader.cpp +++ b/openVulkanoCpp/IO/Archive/ArchiveReader.cpp @@ -34,6 +34,7 @@ namespace openVulkanoCpp : ArchiveBase(archive_read_new(), nullptr, logger) { ChkErr(archive_read_support_filter_all(m_archive)); + ChkErr(archive_read_support_format_all(m_archive)); ChkErr(archive_read_open_memory(m_archive, archiveBuffer, size)); ReadNextHeader(); } diff --git a/openVulkanoCpp/Math/CameraIntrinsic.hpp b/openVulkanoCpp/Math/CameraIntrinsic.hpp index 17a730d..0e580a5 100644 --- a/openVulkanoCpp/Math/CameraIntrinsic.hpp +++ b/openVulkanoCpp/Math/CameraIntrinsic.hpp @@ -13,7 +13,9 @@ namespace openVulkanoCpp::Math class CameraIntrinsic { public: - const Math::Matrix3f cameraMatrix; + Math::Matrix3f cameraMatrix; + + CameraIntrinsic() : CameraIntrinsic(Math::Matrix3f(0)) {} CameraIntrinsic(const Math::Matrix3f& camMat) : cameraMatrix(camMat) {} diff --git a/openVulkanoCpp/Math/Timestamp.hpp b/openVulkanoCpp/Math/Timestamp.hpp index b99fb95..e8fdb97 100644 --- a/openVulkanoCpp/Math/Timestamp.hpp +++ b/openVulkanoCpp/Math/Timestamp.hpp @@ -35,6 +35,18 @@ namespace openVulkanoCpp::Math timestamp -= rhs.timestamp; return *this; } + + Timestamp& operator =(double time) + { + timestamp = Timestamp(time).timestamp; + return *this; + } + + Timestamp& operator =(uint64_t time) + { + timestamp = time; + return *this; + } }; inline bool operator==(const Timestamp& lhs, const Timestamp& rhs)