CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

2D
[Graphics]


Classes

struct  csImageArea
 This structure is used for saving/restoring areas of screen. More...
struct  csImageIOFileFormatDescription
 Description for a file format supported by an image loader. More...
struct  csPixelCoord
 Simple 2D pixel coordinate. More...
struct  csPixelFormat
 Structure describing the pixel format. More...
struct  iAnimatedImage
 If an image file has animation capabilities, this interface is exhibited. More...
struct  iAnimatedImage
 If an image file has animation capabilities, this interface is exhibited. More...
struct  iGraphics2D
 This is the interface for 2D renderer. More...
struct  iImage
 The iImage interface is used to work with image objects. More...
struct  iImage
 The iImage interface is used to work with image objects. More...
struct  iImageIO
 The iImageIO interface is used to save and load graphic files. More...
struct  iOffscreenCanvasCallback
 When you create an offscreen canvas (CreateOffscreenCanvas()) then you can use this callback to get informed when the texture has been modified (FinishDraw() called) or a palette entry is modified. More...
struct  iOffscreenCanvasCallback
 When you create an offscreen canvas (CreateOffscreenCanvas()) then you can use this callback to get informed when the texture has been modified (FinishDraw() called) or a palette entry is modified. More...

Defines

#define CS_IMAGEIO_LOAD   1
#define CS_IMAGEIO_SAVE   2

Typedefs

typedef csArray< csImageIOFileFormatDescription
const * > 
csImageIOFileFormatDescriptions
 Description for the array of file formats.
typedef enum _csMouseCursorID csMouseCursorID
 Standard mouse cursor IDs.

Enumerations

enum  { CS_WRITE_BASELINE = (1 << 0), CS_WRITE_NOANTIALIAS = (1 << 1) }
 iGraphics2D::Write() flags. More...
enum  {
  CS_IMGFMT_MASK = 0x0000ffff, CS_IMGFMT_NONE = 0x00000000, CS_IMGFMT_TRUECOLOR = 0x00000001, CS_IMGFMT_PALETTED8 = 0x00000002,
  CS_IMGFMT_ANY = CS_IMGFMT_MASK, CS_IMGFMT_ALPHA = 0x00010000, CS_IMGFMT_INVALID = 0x80000000
}
enum  _csMouseCursorID {
  csmcNone = -1, csmcArrow = 0, csmcLens, csmcCross,
  csmcPen, csmcMove, csmcSizeNWSE, csmcSizeNESW,
  csmcSizeNS, csmcSizeEW, csmcStop, csmcWait
}
 Standard mouse cursor IDs. More...
enum  csImageType { csimg2D = 0, csimg3D, csimgCube }
 Type of an image. More...

Typedef Documentation

typedef csArray<csImageIOFileFormatDescription const*> csImageIOFileFormatDescriptions
 

Description for the array of file formats.

Definition at line 61 of file imageio.h.

typedef enum _csMouseCursorID csMouseCursorID
 

Standard mouse cursor IDs.


Enumeration Type Documentation

anonymous enum
 

iGraphics2D::Write() flags.

Enumerator:
CS_WRITE_BASELINE  Write by baseline, x and y are treated as the pen position on a baseline.
CS_WRITE_NOANTIALIAS  Don't use anti-aliased glyphs.

Definition at line 45 of file graph2d.h.

anonymous enum
 

Enumerator:
CS_IMGFMT_MASK  The mask to separate the image format apart.
CS_IMGFMT_NONE  We don't want the pixels at all, just (possibly) the alphamap.
CS_IMGFMT_TRUECOLOR  Truecolor format (r/g/b/unused per each pixel).
CS_IMGFMT_PALETTED8  8-bit indexed paletted image
CS_IMGFMT_ANY  Autodetect: use whatever format the file is in. Use ONLY for loading.
CS_IMGFMT_ALPHA  Do we need alpha channel or not.
CS_IMGFMT_INVALID  This flag indicates an invalid image format.

No image may have this set, and you may not load images with this flag set.

Definition at line 43 of file image.h.

enum _csMouseCursorID
 

Standard mouse cursor IDs.

Enumerator:
csmcNone  No cursor.
csmcArrow  Arrow cursor.
csmcLens  Lens cursor.
csmcCross  Cross-hatch cursor.
csmcPen  Pen cursor.
csmcMove  Window move cursor.
csmcSizeNWSE  Diagonal (\) resizing cursor.
csmcSizeNESW  Diagonal (/) resizing cursor.
csmcSizeNS  Vertical sizing cursor.
csmcSizeEW  Horizontal sizing cursor.
csmcStop  Invalid operation cursor.
csmcWait  Wait (longplay operation) cursor.

Definition at line 40 of file cursor.h.

enum csImageType
 

Type of an image.

Enumerator:
csimg2D  2D image. Nothing special.
csimg3D  3D image.

The depth slices are arranged consecutively.

csimgCube  Cube map.

The cube faces are stored as sub images, the indices are the CS_TEXTURE_CUBE_XXX values.

See also:
CS_TEXTURE_CUBE_POS_X

Definition at line 65 of file image.h.


Generated for Crystal Space by doxygen 1.4.4