Added UI RenderTexture

This commit is contained in:
2025-12-25 13:06:30 +08:00
parent 03cd5d83d1
commit 10d9988f99
3 changed files with 50 additions and 12 deletions

View File

@@ -29,6 +29,10 @@ public:
SDL_Renderer* GetRenderer();
SDL_Window* GetWindow();
// 计算缩放后的目标矩形
//void calculateDstRect(SDL_FRect& dstRect);
void onWindowResize();
private:
SDL_Window* m_window;
@@ -40,8 +44,5 @@ private:
//int m_windowHeight;
bool m_isFullscreen = false;
SDL_Texture* m_logicalTexture = nullptr;
// 计算缩放后的目标矩形
//void calculateDstRect(SDL_FRect& dstRect);
void onWindowResize();
SDL_Texture* m_textTexture = nullptr;
};