forked from Dynamitos/Seele
some things work, others dont
This commit is contained in:
1 parent
a2f1e0bd8c
commit
9f9663fb47
5 files changed
+11
-9
No files matched your search
@@ -292,10 +292,10 @@ void Window::createSwapChain() {
|
||||
}
|
||||
|
||||
Viewport::Viewport(PWindow owner, const ViewportCreateInfo& viewportInfo) : Gfx::Viewport(owner, viewportInfo) {
|
||||
handle.width = static_cast<float>(sizeX);
|
||||
handle.height = static_cast<float>(sizeY);
|
||||
handle.x = static_cast<float>(offsetX);
|
||||
handle.y = static_cast<float>(offsetY);
|
||||
handle.y = static_cast<float>(offsetY + sizeY);
|
||||
handle.width = static_cast<float>(sizeX);
|
||||
handle.height = -static_cast<float>(sizeY);
|
||||
handle.minDepth = 1.f;
|
||||
handle.maxDepth = 0.f;
|
||||
}
|
||||
@@ -306,12 +306,12 @@ void Viewport::resize(uint32 newX, uint32 newY) {
|
||||
sizeX = newX;
|
||||
sizeY = newY;
|
||||
handle.width = static_cast<float>(sizeX);
|
||||
handle.height = static_cast<float>(sizeY);
|
||||
handle.height = -static_cast<float>(sizeY);
|
||||
}
|
||||
|
||||
void Viewport::move(uint32 newOffsetX, uint32 newOffsetY) {
|
||||
offsetX = newOffsetX;
|
||||
offsetY = newOffsetY;
|
||||
handle.x = static_cast<float>(offsetX);
|
||||
handle.y = static_cast<float>(offsetY);
|
||||
handle.y = static_cast<float>(offsetY + sizeY);
|
||||
}
|
||||
Reference in new issue
Block a user