wsp Namespace Reference

libwiisprite namespace More...


Classes

class  GameWindow
 Basic rendering unit. More...
class  Image
 Stores imagedata and is capable of loading pngs. More...
class  Layer
 Drawable objects should derive from this class. Layers can be managed by LayerManagers. More...
class  LayerManager
 Groups layers into one block in which they can be managed. More...
class  Quad
 Capable of drawing a rectangle on screen. More...
struct  Rectangle
 Basic data for a rectangle. More...
class  Sprite
 A basic drawable object with animation support. More...
class  TiledLayer
 Capable of drawing a grid of cells with tiles from an image. More...

Enumerations

enum  IMG_LOAD_ERROR {
  IMG_LOAD_ERROR_NONE = 0, IMG_LOAD_ERROR_NOT_FOUND, IMG_LOAD_ERROR_INV_PNG, IMG_LOAD_ERROR_PNG_FAIL,
  IMG_LOAD_ERROR_WRONG_SIZE, IMG_LOAD_ERROR_ALREADY_INIT
}
 Error codes when loading images. More...
enum  IMG_LOAD_TYPE { IMG_LOAD_TYPE_PATH = 0, IMG_LOAD_TYPE_BUFFER }
 Specifies how to load the image. More...
enum  TRANSFORM { TRANS_NONE = 0, TRANS_MIRROR = 1, TRANS_BILINEAR_OFF = 2, TRANS_ADDITIVE_BLENDING = 4 }
 Texture transformation. More...
enum  REFPIXEL_POSITIONING { REFPIXEL_POS_TOPLEFT = 0, REFPIXEL_POS_PIXEL }
 Changes how the position gets calculated for the sprite. More...


Detailed Description

libwiisprite namespace

Enumeration Type Documentation

Error codes when loading images.

Enumerator:
IMG_LOAD_ERROR_NONE  Image successfully loaded.
IMG_LOAD_ERROR_NOT_FOUND  File was not found.
IMG_LOAD_ERROR_INV_PNG  Invalid PNG header.
IMG_LOAD_ERROR_PNG_FAIL  Invalid PNG data.
IMG_LOAD_ERROR_WRONG_SIZE  The images width and height should both be a multiple of 4.
IMG_LOAD_ERROR_ALREADY_INIT  Returns this if the image was already initialized.

Specifies how to load the image.

Enumerator:
IMG_LOAD_TYPE_PATH  Loads the image from a path on the filesystem.
IMG_LOAD_TYPE_BUFFER  Loads the image from the provided buffer.

Changes how the position gets calculated for the sprite.

Enumerator:
REFPIXEL_POS_TOPLEFT  Default. Sprite position is based on topleft corner.
REFPIXEL_POS_PIXEL  The reference pixel is placed at the X and Y coordinates.

Texture transformation.

Enumerator:
TRANS_NONE  No transformation.
TRANS_MIRROR  Texture is mirrored.
TRANS_BILINEAR_OFF  Turns off bilinear filtering for this texture.
TRANS_ADDITIVE_BLENDING  Turns on additive blending. Useful for particle effects.


Generated on Sun Aug 10 20:36:15 2008 for libwiisprite by  doxygen 1.5.5