OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Static Public Member Functions | List of all members
OpenXcom::ColorReplace Struct Reference

help class used for Surface::blitNShade More...

Static Public Member Functions

static void func (Uint8 &dest, const Uint8 &src, const int &shade, const int &newColor, const int &)
 Function used by ShaderDraw in Surface::blitNShade set shade and replace color in that surface. More...
 

Detailed Description

help class used for Surface::blitNShade

Member Function Documentation

static void OpenXcom::ColorReplace::func ( Uint8 &  dest,
const Uint8 &  src,
const int &  shade,
const int &  newColor,
const int &   
)
inlinestatic

Function used by ShaderDraw in Surface::blitNShade set shade and replace color in that surface.

Parameters
destdestination pixel
srcsource pixel
shadevalue of shade of this surface
newColornew color to set (it should be offseted by 4)

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