OSDLFromGfx.cc File Reference

#include "OSDLFromGfx.h"
#include "Ceylan.h"
#include "SDL.h"

Include dependency graph for OSDLFromGfx.cc:

Go to the source code of this file.

Defines

#define clip_xmin(surface)   surface->clip_rect.x
#define clip_xmax(surface)   surface->clip_rect.x+surface->clip_rect.w-1
#define clip_ymin(surface)   surface->clip_rect.y
#define clip_ymax(surface)   surface->clip_rect.y+surface->clip_rect.h-1

Functions

int filledCircleColorNotBlended (SDL_Surface *dst, Ceylan::Sint16 x, Ceylan::Sint16 y, Ceylan::Sint16 r, OSDL::Video::Pixels::ColorDefinition)
int putPixelAlpha (SDL_Surface *surface, Ceylan::Sint16 x, Ceylan::Sint16 y, OSDL::Video::Pixels::PixelColor color, OSDL::Video::Pixels::ColorElement alpha)
 OSDL's version of putPixelAlpha.
int filledCircleRGBANotBlended (SDL_Surface *dst, Ceylan::Sint16 x, Ceylan::Sint16 y, Ceylan::Sint16 rad, Ceylan::Uint8 r, Ceylan::Uint8 g, Ceylan::Uint8 b, Ceylan::Uint8 a)
int filledCircleColorNotBlended (SDL_Surface *dst, Ceylan::Sint16 x, Ceylan::Sint16 y, Ceylan::Sint16 r, Pixels::ColorDefinition color)
int hlineColorStore (SDL_Surface *dst, Ceylan::Sint16 x1, Ceylan::Sint16 x2, Ceylan::Sint16 y, Pixels::PixelColor color)
int fastPixelColor (SDL_Surface *dst, Ceylan::Sint16 x, Ceylan::Sint16 y, Ceylan::Uint32 color)
int fastPixelColorNolock (SDL_Surface *dst, Ceylan::Sint16 x, Ceylan::Sint16 y, Pixels::PixelColor color)


Define Documentation

#define clip_xmax ( surface   )     surface->clip_rect.x+surface->clip_rect.w-1

Definition at line 36 of file OSDLFromGfx.cc.

Referenced by fastPixelColorNolock(), and putPixelAlpha().

#define clip_xmin ( surface   )     surface->clip_rect.x

Definition at line 35 of file OSDLFromGfx.cc.

Referenced by fastPixelColorNolock(), and putPixelAlpha().

#define clip_ymax ( surface   )     surface->clip_rect.y+surface->clip_rect.h-1

Definition at line 38 of file OSDLFromGfx.cc.

Referenced by fastPixelColorNolock(), and putPixelAlpha().

#define clip_ymin ( surface   )     surface->clip_rect.y

Definition at line 37 of file OSDLFromGfx.cc.

Referenced by fastPixelColorNolock(), and putPixelAlpha().


Function Documentation

int fastPixelColor ( SDL_Surface *  dst,
Ceylan::Sint16  x,
Ceylan::Sint16  y,
Ceylan::Uint32  color 
)

Definition at line 637 of file OSDLFromGfx.cc.

References fastPixelColorNolock().

Referenced by filledCircleColorNotBlended().

int fastPixelColorNolock ( SDL_Surface *  dst,
Ceylan::Sint16  x,
Ceylan::Sint16  y,
Pixels::PixelColor  color 
)

Definition at line 672 of file OSDLFromGfx.cc.

References clip_xmax, clip_xmin, clip_ymax, and clip_ymin.

Referenced by fastPixelColor(), and OSDL::Video::Pixels::putPixelColor().

int filledCircleColorNotBlended ( SDL_Surface *  dst,
Ceylan::Sint16  x,
Ceylan::Sint16  y,
Ceylan::Sint16  r,
Pixels::ColorDefinition  color 
)

Definition at line 354 of file OSDLFromGfx.cc.

References fastPixelColor(), hlineColorStore(), and OSDL::Video::Pixels::toString().

int filledCircleColorNotBlended ( SDL_Surface *  dst,
Ceylan::Sint16  x,
Ceylan::Sint16  y,
Ceylan::Sint16  r,
OSDL::Video::Pixels::ColorDefinition   
)

Referenced by filledCircleRGBANotBlended().

int filledCircleRGBANotBlended ( SDL_Surface *  dst,
Ceylan::Sint16  x,
Ceylan::Sint16  y,
Ceylan::Sint16  rad,
Ceylan::Uint8  r,
Ceylan::Uint8  g,
Ceylan::Uint8  b,
Ceylan::Uint8  a 
)

Definition at line 296 of file OSDLFromGfx.cc.

References OSDL::Video::Pixels::convertRGBAToColorDefinition(), and filledCircleColorNotBlended().

Referenced by OSDL::Video::TwoDimensional::drawCircle().

int hlineColorStore ( SDL_Surface *  dst,
Ceylan::Sint16  x1,
Ceylan::Sint16  x2,
Ceylan::Sint16  y,
Pixels::PixelColor  color 
)

Definition at line 504 of file OSDLFromGfx.cc.

Referenced by OSDL::Video::TwoDimensional::Line::drawHorizontal(), and filledCircleColorNotBlended().

int putPixelAlpha ( SDL_Surface *  surface,
Ceylan::Sint16  x,
Ceylan::Sint16  y,
OSDL::Video::Pixels::PixelColor  color,
OSDL::Video::Pixels::ColorElement  alpha 
)

OSDL's version of putPixelAlpha.

Parameters:
color this color is not a color definition, it is a pixel color already converted to the pixel format of the target surface.
the full precision alpha coordinate of the pixel to put.
The greater the 'alpha' parameter is, the closer to the alpha of put pixel the alpha of the final pixel will be (for a null 'alpha', final pixel alpha will not be modified, for a maximum 'alpha' the alpha of the resulting pixel will be the alpha of put pixel.

Note:
the alpha color element has to be specified, since it cannot reliably be deduced from the 'color' parameter, which is already encoded to a specific pixel format.

Definition at line 80 of file OSDLFromGfx.cc.

References clip_xmax, clip_xmin, clip_ymax, clip_ymin, OSDL::Video::Pixels::convertPixelColorToColorDefinition(), and OSDL::Video::Pixels::toString().

Referenced by OSDL::Video::Pixels::putPixelColor().


Generated on Fri Mar 30 14:47:09 2007 for OSDL by  doxygen 1.5.1