SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     // taking tileset
  2.     TiXmlElement* tilesetElement;
  3.     tilesetElement = map->FirstChildElement("source");
  4.     TiXmlElement* tileset;
  5.     tileset = map->FirstChildElement("tileset");
  6.     firstTileID = atoi(tileset->Attribute("firstgid"));
  7.  
  8.     // source - path to image
  9.     TiXmlElement* image;
  10.     image = tilesetElement->FirstChildElement("image");
  11.     std::string imagepath = image->Attribute("source");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top