mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-03 13:56:19 +12:00
SDL/Qt: Better resizing & fullscreen support
This commit is contained in:
parent
bfeee04d3e
commit
630952f36b
6 changed files with 85 additions and 7 deletions
|
@ -88,6 +88,16 @@ class RendererMTL final : public Renderer {
|
|||
MTL::Texture* lastColorTexture = nullptr;
|
||||
MTL::Texture* lastDepthTexture = nullptr;
|
||||
|
||||
// Information about the final 3DS screen -> Window blit, accounting for things like scaling and shifting the output based on
|
||||
// the window's dimensions.
|
||||
struct {
|
||||
float topScreenX = 0;
|
||||
float topScreenY = 0;
|
||||
float bottomScreenX = 40;
|
||||
float bottomScreenY = 240;
|
||||
float scale = 1.0;
|
||||
} blitInfo;
|
||||
|
||||
// Debug
|
||||
std::string nextRenderPassName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue