Manip8to16 Class Reference

Imagescl.cc - Methods to blit with scaling. More...

Inheritance diagram for Manip8to16:

Inheritance graph
[legend]
Collaboration diagram for Manip8to16:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Manip8to16 (SDL_Color *c, SDL_PixelFormat *f)
uint16 rgb (unsigned int r, unsigned int g, unsigned int b) const
void copy (uint16 &dest, unsigned char src) const
void split_source (unsigned char pix, unsigned int &r, unsigned int &g, unsigned int &b) const
void split_dest (uint16 pix, unsigned int &r, unsigned int &g, unsigned int &b) const

Protected Attributes

SDL_Color * colors
SDL_PixelFormat * fmt

Detailed Description

Imagescl.cc - Methods to blit with scaling.

Written: 6/16/2000 - JSF

Definition at line 40 of file imagescl.cc.


Constructor & Destructor Documentation

Manip8to16::Manip8to16 ( SDL_Color *  c,
SDL_PixelFormat *  f 
) [inline]

Definition at line 46 of file imagescl.cc.


Member Function Documentation

uint16 Manip8to16::rgb ( unsigned int  r,
unsigned int  g,
unsigned int  b 
) const [inline]

Reimplemented in Manip8to555, and Manip8to565.

Definition at line 49 of file imagescl.cc.

References fmt.

Referenced by copy().

void Manip8to16::copy ( uint16 dest,
unsigned char  src 
) const [inline]

Reimplemented in Manip8to555, and Manip8to565.

Definition at line 56 of file imagescl.cc.

References colors, and rgb().

Here is the call graph for this function:

void Manip8to16::split_source ( unsigned char  pix,
unsigned int &  r,
unsigned int &  g,
unsigned int &  b 
) const [inline]

Definition at line 61 of file imagescl.cc.

References colors.

void Manip8to16::split_dest ( uint16  pix,
unsigned int &  r,
unsigned int &  g,
unsigned int &  b 
) const [inline]

Reimplemented in Manip8to555, and Manip8to565.

Definition at line 69 of file imagescl.cc.

References fmt.


Member Data Documentation

SDL_Color* Manip8to16::colors [protected]

Definition at line 43 of file imagescl.cc.

Referenced by Manip8to565::copy(), Manip8to555::copy(), copy(), and split_source().

SDL_PixelFormat* Manip8to16::fmt [protected]

Definition at line 44 of file imagescl.cc.

Referenced by rgb(), and split_dest().


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 14:57:16 2007 for ExultEngine by  doxygen 1.5.1