tmxparser  2.1.0
 All Classes Functions Variables Pages
Public Member Functions | List of all members
Tmx::TileOffset Class Reference

A class used for used to specify an offset in pixels, to be applied when drawing a tile from the related tileset. More...

#include <TmxTileOffset.h>

Public Member Functions

void Parse (const tinyxml2::XMLNode *tileOffsetNode)
 Parses a tileoffset element.
 
int GetX () const
 Get the value of the x attribute of the tile offset. Horizontal offset in pixels.
 
int GetY () const
 Get the value of the y attribute of the tile offset. Vertical offset in pixels (positive is down).
 

Detailed Description

A class used for used to specify an offset in pixels, to be applied when drawing a tile from the related tileset.

When not present, no offset is applied.


The documentation for this class was generated from the following files: