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

src/video/renderer.h File Reference

#include <assert.h>

Go to the source code of this file.


Namespaces

namespace  DRAW

Classes

struct  CPrimitives
class  CRenderer< BPP, MASK >

Defines

#define BLEND16_50(d, s, mask)   ((((s & mask) + (d & mask)) >> 1) + (s & d & (~mask & 0xffff)))
#define BLEND2x16_50(d, s, mask)

Typedefs

typedef CRenderer< 2, 0xfbde > Primitive16_555_t
typedef CRenderer< 2, 0xf7de > Primitive16_565_t
typedef CRenderer< 4, 0 > Primitive32_t

Functions

template<const int BPP>
static Uint32 DRAW::GetPixel (const void *const pixels, unsigned int index)
template<const int BPP>
static void DRAW::PutPixel (void *const pixels, unsigned int index, Uint32 color)
template<const int BPP>
static void DRAW::PutPixelDouble (void *pixels, const unsigned int index, Uint32 color)
template<const int BPP>
static void DRAW::PutPixelQuatro (void *pixels, unsigned int index, Uint32 color)
template<const int BPP>
static void DRAW::DrawHLine (void *pixels, unsigned int index, int width, Uint32 color)

Define Documentation

#define BLEND16_50 ( d,
s,
mask   )     ((((s & mask) + (d & mask)) >> 1) + (s & d & (~mask & 0xffff)))

#define BLEND2x16_50 ( d,
s,
mask   ) 

Value:

(((s & (mask | mask << 16)) >> 1) + ((d & (mask | mask << 16)) >> 1) \
         + (s & d & (~(mask | mask << 16))))


Typedef Documentation

typedef CRenderer<2, 0xfbde> Primitive16_555_t

typedef CRenderer<2, 0xf7de> Primitive16_565_t

typedef CRenderer<4, 0> Primitive32_t

(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.