Add helper methods
This commit is contained in:
@@ -34,6 +34,11 @@ namespace openVulkanoCpp
|
||||
old.m_size = 0;
|
||||
}
|
||||
|
||||
void Clear()
|
||||
{
|
||||
m_chunks.clear();
|
||||
}
|
||||
|
||||
template<typename ...ARGS>
|
||||
T& EmplaceBack(ARGS&&... args)
|
||||
{
|
||||
|
||||
@@ -133,6 +133,8 @@ namespace openVulkanoCpp::Scene
|
||||
* @return reference to the custom data array
|
||||
*/
|
||||
[[nodiscard]] std::array<uint8_t, 16>& GetUserData() { return m_userData; }
|
||||
|
||||
[[nodiscard]] float GetPixelScaleFactor() const { return m_perPixelScaleFactor; }
|
||||
};
|
||||
|
||||
class PerspectiveCamera : public Camera
|
||||
|
||||
Reference in New Issue
Block a user