mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 14:24:10 +08:00
refactor: switch piece rendering from direct draws to texture system
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "graphics/texture/TextureManager.h"
|
||||
struct PlayerColors {
|
||||
SDL_Color P1 = {255, 0, 0, 255}; // 红色
|
||||
SDL_Color P2 = {0, 0, 255, 255}; // 蓝色
|
||||
@@ -34,8 +34,10 @@ private:
|
||||
|
||||
GameState m_gameState = GameState::GAME_RUNING;
|
||||
|
||||
TextureManager* m_textureManager;
|
||||
|
||||
public:
|
||||
BoardRenderer(int WIDTH, int HEIGHT, SDL_Renderer* renderer);
|
||||
BoardRenderer(int WIDTH, int HEIGHT, SDL_Renderer* renderer, TextureManager* textureManager);
|
||||
|
||||
~BoardRenderer();
|
||||
// 渲染画面
|
||||
|
||||
Reference in New Issue
Block a user