0 Members and 1 Guest are viewing this topic.
void Board::LoadContent(){ sf::Image boardImage; boardImage.LoadFromFile("data/board.png"); boardTexture = sf::Sprite(boardImage); tileSize = boardTexture.GetSize().x / BOARDSIZE; sf::Image pieceSetImage; pieceSetImage.LoadFromFile("data/jewels.png"); pieceSet.SetImage(pieceSetImage);}void Board::Draw(){ renderWindow.Draw(boardTexture); renderWindow.Draw(pieceSet);}
How do I make member variables in a class?