Minor fixes and extensions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user