0 Members and 2 Guests 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?