Advanced Strategic Command
Public Types | Public Member Functions | List of all members
ColorConverter< 1, 4 > Class Template Reference

#include <blitter.h>

Public Types

typedef PixelSize2Type
< 1 >::PixelType 
SourcePixelType
 
typedef PixelSize2Type
< 4 >::PixelType 
TargetPixelType
 

Public Member Functions

 ColorConverter (const Surface &sourceSurface, Surface &targetSurface)
 
TargetPixelType convert (SourcePixelType sp)
 

Detailed Description

template<>
class ColorConverter< 1, 4 >

Definition at line 255 of file blitter.h.

Member Typedef Documentation

typedef PixelSize2Type<1>::PixelType ColorConverter< 1, 4 >::SourcePixelType

Definition at line 258 of file blitter.h.

typedef PixelSize2Type<4>::PixelType ColorConverter< 1, 4 >::TargetPixelType

Definition at line 259 of file blitter.h.

Constructor & Destructor Documentation

ColorConverter< 1, 4 >::ColorConverter ( const Surface sourceSurface,
Surface targetSurface 
)
inline

Definition at line 267 of file blitter.h.

References getFirstBit().

Member Function Documentation

TargetPixelType ColorConverter< 1, 4 >::convert ( SourcePixelType  sp)
inline

Definition at line 288 of file blitter.h.

References Surface::opaque, and Surface::transparent.


The documentation for this class was generated from the following file: