cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Atlas.h File Reference

Classes

struct  spAtlasPage
 
struct  spAtlasRegion
 
struct  spAtlas
 

Enumerations

enum  spAtlasFormat {
  SP_ATLAS_ALPHA, SP_ATLAS_INTENSITY, SP_ATLAS_LUMINANCE_ALPHA, SP_ATLAS_RGB565,
  SP_ATLAS_RGBA4444, SP_ATLAS_RGB888, SP_ATLAS_RGBA8888
}
 
enum  spAtlasFilter {
  SP_ATLAS_NEAREST, SP_ATLAS_LINEAR, SP_ATLAS_MIPMAP, SP_ATLAS_MIPMAP_NEAREST_NEAREST,
  SP_ATLAS_MIPMAP_LINEAR_NEAREST, SP_ATLAS_MIPMAP_NEAREST_LINEAR, SP_ATLAS_MIPMAP_LINEAR_LINEAR
}
 
enum  spAtlasWrap { SP_ATLAS_MIRROREDREPEAT, SP_ATLAS_CLAMPTOEDGE, SP_ATLAS_REPEAT }
 

Functions

spAtlasPagespAtlasPage_create (spAtlas *atlas, const char *name)
 
void spAtlasPage_dispose (spAtlasPage *self)
 
spAtlasRegionspAtlasRegion_create ()
 
void spAtlasRegion_dispose (spAtlasRegion *self)
 
spAtlasspAtlas_create (const char *data, int length, const char *dir, void *rendererObject)
 
spAtlasspAtlas_createFromFile (const char *path, void *rendererObject)
 
void spAtlas_dispose (spAtlas *atlas)
 
spAtlasRegionspAtlas_findRegion (const spAtlas *self, const char *name)
 

Enumeration Type Documentation

Enumerator
SP_ATLAS_NEAREST 
SP_ATLAS_LINEAR 
SP_ATLAS_MIPMAP 
SP_ATLAS_MIPMAP_NEAREST_NEAREST 
SP_ATLAS_MIPMAP_LINEAR_NEAREST 
SP_ATLAS_MIPMAP_NEAREST_LINEAR 
SP_ATLAS_MIPMAP_LINEAR_LINEAR 
Enumerator
SP_ATLAS_ALPHA 
SP_ATLAS_INTENSITY 
SP_ATLAS_LUMINANCE_ALPHA 
SP_ATLAS_RGB565 
SP_ATLAS_RGBA4444 
SP_ATLAS_RGB888 
SP_ATLAS_RGBA8888 
Enumerator
SP_ATLAS_MIRROREDREPEAT 
SP_ATLAS_CLAMPTOEDGE 
SP_ATLAS_REPEAT 

Function Documentation

spAtlas* spAtlas_create ( const char *  data,
int  length,
const char *  dir,
void *  rendererObject 
)
spAtlas* spAtlas_createFromFile ( const char *  path,
void *  rendererObject 
)
void spAtlas_dispose ( spAtlas atlas)
spAtlasRegion* spAtlas_findRegion ( const spAtlas self,
const char *  name 
)
spAtlasPage* spAtlasPage_create ( spAtlas atlas,
const char *  name 
)
void spAtlasPage_dispose ( spAtlasPage self)
spAtlasRegion* spAtlasRegion_create ( )
void spAtlasRegion_dispose ( spAtlasRegion self)