Added a lots of the file to write the pixel game but due to some problem ,i dicide to change sdl3 to sfml,a more modern lib

This commit is contained in:
2025-12-21 14:58:33 +08:00
parent 96b005e2ef
commit 86dce63e74
15 changed files with 443 additions and 51 deletions

View File

@@ -23,7 +23,13 @@ public:
private:
SDL_Window* m_window;
SDL_Renderer* m_renderer;
int m_width;
int m_height;
int m_logicalWidth;
int m_logicalHeight;
int m_windowWidth;
int m_windowHeight;
bool m_isFullscreen = false;
SDL_Texture* m_logicalTexture = nullptr;
// 计算缩放后的目标矩形
void calculateDstRect(SDL_FRect& dstRect);
};