Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. theTextureMgr->addTexture("theScore", theFontMgr->getFont("digital")->createTextTexture(theRenderer, to_string(theScore).c_str(), SOLID, { 255, 0, 255, 0 }, { 0, 0, 0, 0 }));
  2. tempTextTexture = theTextureMgr->getTexture("theScore");
  3. pos = { 700, 10, tempTextTexture->getTextureRect().w, tempTextTexture->getTextureRect().h };
  4. scale = { 1, 1 };
  5. tempTextTexture->renderTexture(theRenderer, tempTextTexture->getTexture(), &tempTextTexture->getTextureRect(), &pos, scale);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement