feat: add texture destory function

This commit is contained in:
2026-01-15 20:49:11 +08:00
parent 4ae99a44a3
commit 562599b8b4
8 changed files with 65 additions and 3 deletions

View File

@@ -71,7 +71,12 @@ void GameScene::onEnter(SDL_Renderer* renderer, int WIDTH, int HEIGHT, UIRendere
m_boardRenderer->setBoard(m_gameSession->getBoard());
m_gameSession->setGamePieceEventCallback(
[this](GamePieceEvent evnet, int row, int col) {
std::cout << "GameScene: recevie the event piece at " << row << " " << col << "\n";
m_boardRenderer->handleGamePieceEvent(evnet, row, col);
}
);
}