![]() |
Pixel Dust Game Engine
v0.9.5
|
Public Member Functions | |
virtual long | getWidth () |
long | getFrameWidth () |
int | getNumFrames () |
void | setFrameWidth (long wid) |
void | setNumFrames (int num) |
virtual Rect | getImageBounds () |
virtual Rect | getImageBounds (Point &at) |
virtual Image * | getFrame (int frame)=0 |
return a frame of the image an image which can be passed to port draw calls | |
![]() | |
virtual long | getHeight () |
virtual void | setTransparentColor (Color rgb)=0 |
virtual Color | getTransparentColor ()=0 |
virtual void | setOpacity (uint8 opacity)=0 |
virtual uint8 | getOpacity () const =0 |
virtual void | setEdgeClamping (bool inUseEdgeClamp)=0 |
virtual void | retainData ()=0 |
virtual void | retainAlpha ()=0 |
Retain the alpha channel even after the image has been prepared for rasterization. | |
virtual void | prepareToRasterize ()=0 |
virtual void * | getData ()=0 |
virtual uint8 | getAlphaValue (int32 x, int32 y) const =0 |
virtual Color | getPixel (int32 x, int32 y) const =0 |
return the full color info, including alpha channel, for the pixel at the given location | |
virtual Image * | getSubsection (Rect &r)=0 |
create a new image from a rectangular subsection of the current one | |
Image * | getSubsection (RotatedRect &rr) |
create a new image from a rectangular subsection of the current one | |
virtual Image * | getSubsection (Quad &quad)=0 |
create a new image from an Quad subsection of the current one | |
virtual Image * | createImageScaled (float xscale, float yscale, FilterType filterType=filter_Best)=0 |
create a new image by scaling the current one by a specific scaling factor | |
virtual Image * | createImageScaledToFit (Rect r, FitType fitType=fit_Fill, FilterType filterType=filter_Best)=0 |
create a new image by scaling the current one to fit a new bounding rectangle | |
virtual Port * | setPort (Port *newPort) |
control which port this image draws into | |
![]() | |
virtual uint32 | getSerializedSize (ISerializer *serializer) const =0 |
Get number of bytes needed to hold serialized state. | |
virtual void | serialize (ISerializer *serializer) const =0 |
Write self out to a serializer. | |
virtual void | deserialize (IDeserializer *deserializer)=0 |
Read self from a deserializer. | |
virtual uint32 | getMyClassTag () const =0 |
Get a tag value that uniquely represents this class. | |
ISerializable () | |
virtual | ~ISerializable () |
![]() | |
virtual void | addRef () const throw () |
virtual void | release () const throw () |
Static Public Member Functions | |
static ImageStrip * | createImageStripFromData (const char *imageName, char *imageData, long imageDataLen) |
static ImageStrip * | createImageStripFromFile (const char *imageFileName) |
![]() | |
static Image * | createImageFromData (const char *imageName, char *imageData, long imageDataLen) |
static Image * | createImageFromFile (const char *imageFileName) |
static int | registerImageForSerialization (Image *img) |
static bool | setImageSerializationMode (ImageSerializationMode mode) |
Friends | |
class | Sprite |
Additional Inherited Members | |
![]() | |
enum | FitType { fit_None, fit_Height, fit_Width, fit_Inside, fit_Fill, fit_FillKeepProportions } |
enum | FilterType { filter_Box, filter_Normal, filter_Triangle, filter_Bell, filter_BSpline, filter_Mitchell, filter_Lanczos3, filter_Best = filter_Lanczos3 } |
enum | ImageSerializationMode { ser_Nothing, ser_ByReference } |
ImageStrip A bit image that can be blitted onto the screen You cannot create images directly, they must be loaded by the Graphics Manager
|
static |
|
static |
|
pure virtual |
return a frame of the image an image which can be passed to port draw calls
|
inline |
|
inlinevirtual |
convenient shortcuts to get the bounds of the image as a rectangle, offset by a point if desired if the image has multiple frames, it returns the bounds as the frame width, not the total width
Reimplemented from Image.
|
inline |
|
inlinevirtual |
Reimplemented from Image.
|
inline |
|
inline |
|
friend |