Blitter_32bppSimple Class Reference

Inheritance diagram for Blitter_32bppSimple:

Blitter_32bppBase Blitter Blitter_32bppOptimized Blitter_32bppAnim

Public Member Functions

void Draw (Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom)
 Draw an image to the screen, given an amount of params defined above.
void DrawColorMappingRect (void *dst, int width, int height, int pal)
 Draw a colortable to the screen.
SpriteEncode (SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator)
 Convert a sprite from the loader to our own format.
const char * GetName ()
 Get the name of the blitter, the same as the Factory-instance returns.

Detailed Description

Definition at line 11 of file 32bpp_simple.hpp.


Member Function Documentation

void Blitter_32bppSimple::DrawColorMappingRect ( void *  dst,
int  width,
int  height,
int  pal 
) [virtual]

Draw a colortable to the screen.

This is: the color of the screen is read and is looked-up in the palette to match a new color, which then is put on the screen again.

Parameters:
dst the destination pointer (video-buffer).
width the width of the buffer.
height the height of the buffer.
pal the palette to use.

Implements Blitter.

Reimplemented in Blitter_32bppAnim.

Definition at line 61 of file 32bpp_simple.cpp.

References _screen, DEBUG, Blitter_32bppBase::MakeGrey(), Blitter_32bppBase::MakeTransparent(), and DrawPixelInfo::pitch.

Referenced by Blitter_32bppAnim::DrawColorMappingRect().


The documentation for this class was generated from the following files:
Generated on Sat Sep 6 20:15:59 2008 for openttd by  doxygen 1.4.7