Initial environment loading (not working)

This commit is contained in:
Dynamitos committed 2025-04-04 14:44:53 +02:00
1 parent 4a34220cd7
commit aa1f037cb5
41 files changed
+553 -208

No files matched your search

+6
View File
@@ -53,6 +53,12 @@ class Viewport {
constexpr float getContentScaleX() const { return owner->getContentScaleX(); }
constexpr float getContentScaleY() const { return owner->getContentScaleY(); }
Matrix4 getProjectionMatrix() const;
URect getRenderArea() const {
return URect{
.size = {sizeX, sizeY},
.offset = {offsetX, offsetY},
};
}
protected:
uint32 sizeX;