Mana
|
A tileset, which is basically just an image set but it stores a firstgid. More...
#include <tileset.h>
Public Member Functions | |
Tileset (Image *img, int w, int h, unsigned firstGid, int margin, int spacing) | |
unsigned | getFirstGid () const |
Returns the first gid. | |
![]() | |
ImageSet (Image *img, int w, int h, int margin=0, int spacing=0) | |
Cuts the passed image in a grid of sub images. | |
ImageSet (const ImageSet &)=delete | |
ImageSet & | operator= (const ImageSet &)=delete |
~ImageSet () override | |
int | getWidth () const |
Returns the width of the images in the image set. | |
int | getHeight () const |
Returns the height of the images in the image set. | |
Image * | get (size_t i) const |
size_t | size () const |
int | getOffsetX () const |
void | setOffsetX (int n) |
int | getOffsetY () const |
void | setOffsetY (int n) |
![]() | |
Resource ()=default | |
void | incRef () |
Increments the internal reference count. | |
void | decRef (OrphanPolicy orphanPolicy=DeleteLater) |
Decrements the reference count. | |
const std::string & | getIdPath () const |
Return the path identifying this resource. | |
Private Attributes | |
unsigned | mFirstGid |
Additional Inherited Members | |
![]() | |
enum | OrphanPolicy { DeleteLater , DeleteImmediately } |
![]() | |
virtual | ~Resource ()=default |
A tileset, which is basically just an image set but it stores a firstgid.
|
inline |
|
inline |