2D
[Graphics]
Classes | |
struct | csBitmapMetrics |
Metrics for a glyph that are dependent from whether a simple or antialiased image is used. More... | |
struct | csGlyphMetrics |
Metrics for a glyph that are independent from whether a simple or antialiased image is used. More... | |
struct | csImageIOFileFormatDescription |
Description for a file format supported by an image loader. More... | |
struct | csPixelCoord |
Simple 2D pixel coordinate. More... | |
struct | iAnimatedImage |
If an image file has animation capabilities, then this interface is exhibited. More... | |
struct | iFont |
A font object. More... | |
struct | iFontDeleteNotify |
Called before a font is deleted. More... | |
struct | iFontServer |
A font server interface. 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 | iImageIO |
The iImageIO interface is used to save and load graphic files. More... | |
struct | iNativeWindow |
This interface represents a native window. More... | |
struct | iNativeWindowManager |
This interface represents the native window manager system. More... | |
Namespaces | |
namespace | CS |
Main namespace for CrystalSpace. | |
Defines | |
#define | CS_FONT_DEFAULT_GLYPH 0xffff |
The default char, drawn in case a glyph wasn't present in the font. | |
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 | _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... | |
Alert types | |
| |
#define | CS_ALERT_ERROR 1 |
Display an error. | |
#define | CS_ALERT_NOTE 3 |
Display a note. | |
#define | CS_ALERT_WARNING 2 |
Display a warning. | |
Image format masks | |
We can request csImageLoader to load an image in several formats. The format we should use depends on what we want to do with the image; usually if we're going to use the image as a texture, the format we should use is determined by querying the 3D rasterizer for the preferred image format. | |
#define | CS_IMGFMT_ALPHA (0x00010000) |
Do we need alpha channel or not. | |
#define | CS_IMGFMT_ANY (CS_IMGFMT_MASK) |
Autodetect: use whatever format the file is in. Use ONLY for loading. | |
#define | CS_IMGFMT_INVALID (0x80000000) |
This flag indicates an invalid image format. | |
#define | CS_IMGFMT_MASK (0x0000ffff) |
The mask to separate the image format apart. | |
#define | CS_IMGFMT_NONE (0x00000000) |
We don't want the pixels at all, just (possibly) the alphamap. | |
#define | CS_IMGFMT_PALETTED8 (0x00000002) |
8-bit indexed paletted image | |
#define | CS_IMGFMT_TRUECOLOR (0x00000001) |
Truecolor format (r/g/b/unused resp. | |
Basic fonts alias names | |
Any font server should provide these fonts, since most programs expect they to be available. Other fonts may or may be not available but these should be always available. Default font names always start with "*" to avoid confusion with real file names. | |
#define | CSFONT_COURIER "*courier" |
Thin courier-like relatively large font. | |
#define | CSFONT_ITALIC "*italic" |
Thick italic relatively large font. | |
#define | CSFONT_LARGE "*large" |
Thick and relatively large font. | |
#define | CSFONT_SMALL "*small" |
Very small font (smallest font that is still readable). |
Define Documentation
#define CS_FONT_DEFAULT_GLYPH 0xffff |
The default char, drawn in case a glyph wasn't present in the font.
The Unicode standard says that this will never be a valid code point - so we just take as the "replacer" char.
Definition at line 56 of file fontserv.h.
#define CS_IMGFMT_ALPHA (0x00010000) |
#define CS_IMGFMT_ANY (CS_IMGFMT_MASK) |
#define CS_IMGFMT_INVALID (0x80000000) |
#define CS_IMGFMT_MASK (0x0000ffff) |
#define CS_IMGFMT_NONE (0x00000000) |
#define CS_IMGFMT_PALETTED8 (0x00000002) |
#define CS_IMGFMT_TRUECOLOR (0x00000001) |
#define CSFONT_COURIER "*courier" |
Thin courier-like relatively large font.
Definition at line 46 of file fontserv.h.
#define CSFONT_ITALIC "*italic" |
Thick italic relatively large font.
Definition at line 44 of file fontserv.h.
#define CSFONT_LARGE "*large" |
Thick and relatively large font.
Definition at line 42 of file fontserv.h.
#define CSFONT_SMALL "*small" |
Very small font (smallest font that is still readable).
Definition at line 48 of file fontserv.h.
Typedef Documentation
typedef csArray<csImageIOFileFormatDescription const*> csImageIOFileFormatDescriptions |
typedef enum _csMouseCursorID csMouseCursorID |
Standard mouse cursor IDs.
Enumeration Type Documentation
anonymous enum |
iGraphics2D::Write() flags.
enum _csMouseCursorID |
Standard mouse cursor IDs.
- Enumerator:
enum csImageType |
Generated for Crystal Space 2.0 by doxygen 1.6.1