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

Graphics


Modules

 2D
 3D

Classes

class  csBakeKeyColor
 Functions to bake keycolor into the alpha channel of images. More...
class  csColorQuantizer
 Color quantizer. More...
class  csImageBase
 Base class for iImage implementations. More...
class  csImageCubeMapMaker
 Wrapper class to create a cube map from a number of 2D images as the cube faces. More...
class  csImageManipulate
 Helper class to manipulate iImage objects. More...
class  csImageTools
 Some helper functions to deal with iImage objects. More...
class  csImageVolumeMaker
 Wrapper class to create a volume aka 3D texture from a number of 2D images as the volume slices. More...
struct  csInterleavedSubBufferOptions
 Structure describing the properties of the individual buffers to be interleaved. More...
struct  csInterleavedSubBufferOptions
 Structure describing the properties of the individual buffers to be interleaved. More...
class  csNormalMappingTools
 Some helpers for stuff related to normal maps. More...
class  csRenderBuffer
 Basic renderbuffer for OpenGL renderer. More...
struct  csRGBcolor
 An RGB color. More...
struct  csRGBpixel
 An RGB pixel. More...
class  csShaderExpressionAccessor
 Shader variable accessor that evaluates a shader expression when the SV value is queried. More...

Functions

csPtr< iImagecsCreateXORPatternImage (int width, int height, int recdepth, float red=1.0f, float green=1.0f, float blue=1.0f)
 Create an iImage with a nice XOR pattern with 2^recdepth shades of from white to black.
static csRef< iImagecsBakeKeyColor::Image (iImage *source, const csRGBpixel &transpColor)
 Set alpha of all pixels to 0 that match transpColor.

Function Documentation

csPtr<iImage> csCreateXORPatternImage int  width,
int  height,
int  recdepth,
float  red = 1.0f,
float  green = 1.0f,
float  blue = 1.0f
 

Create an iImage with a nice XOR pattern with 2^recdepth shades of from white to black.

Parameters:
width Width of the image to create
height Height of the image to create
recdepth "recursion depth", clamped to range 1-8.
red Maximum value of red component
green Maximum value of green component
blue Maximum value of blue component

static csRef<iImage> csBakeKeyColor::Image iImage source,
const csRGBpixel transpColor
[static, inherited]
 

Set alpha of all pixels to 0 that match transpColor.

The color of pixels made transparent is changed such that it has the average color of some near non-transparent pixels to prevent halos.

Remarks:
Intermediately uses a truecolor images, i.e. paletted images are not handled with maximum efficiency.


Generated for Crystal Space by doxygen 1.4.4