_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Static Public Member Functions | List of all members
PixelModifier Class Reference

Class for modifiers for custom pixel manipulations. More...

#include <video.h>

Static Public Member Functions

static uint32_t CopyWithSrcAlphaKey (const uint32_t srcPixel, const uint32_t dstPixel, const uint32_t reqAlpha)
 

Detailed Description

Class for modifiers for custom pixel manipulations.

Member Function Documentation

◆ CopyWithSrcAlphaKey()

static uint32_t PixelModifier::CopyWithSrcAlphaKey ( const uint32_t  srcPixel,
const uint32_t  dstPixel,
const uint32_t  reqAlpha 
)
inlinestatic

This one returns srcRGB+A(modulated) only if srcA is present. Otherwise returns dstRGBA. Used to copy (without alpha modulating) those pixels which has alpha chanel values


The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.