Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- theTextureMgr->addTexture("theScore", theFontMgr->getFont("digital")->createTextTexture(theRenderer, to_string(theScore).c_str(), SOLID, { 255, 0, 255, 0 }, { 0, 0, 0, 0 }));
- tempTextTexture = theTextureMgr->getTexture("theScore");
- pos = { 700, 10, tempTextTexture->getTextureRect().w, tempTextTexture->getTextureRect().h };
- scale = { 1, 1 };
- tempTextTexture->renderTexture(theRenderer, tempTextTexture->getTexture(), &tempTextTexture->getTextureRect(), &pos, scale);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement