Minor fixes and extensions

This commit is contained in:
2020-12-14 21:21:21 +01:00
parent 39ae50a2c4
commit 85cc8abb7b
3 changed files with 16 additions and 1 deletions

View File

@@ -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();
}

View File

@@ -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)
{}

View File

@@ -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)