gfx_rgba.hh File Reference

RGBA class and named RGB definitions. More...

Go to the source code of this file.

Namespaces

namespace  gfx

Classes

class  gfx::RGBA
 RGBA class. Based on uint8[4]. Can output/convert to fp[4]. More...

Defines

#define GFX_RGBA_HH   1
#define RGBA_LEN   4
#define RGBA8_LEN   4
#define BGRA_LEN   4
#define BGRA8_LEN   4
#define RGBA_CAST(RGBA)   *reinterpret_cast<uint32*>( RGBA )
#define CONST_RGBA_CAST(RGBA)   *reinterpret_cast<const uint32*>( RGBA )
#define RGB_BROWN   0.7, 0.35, 0.2
#define RGB_GRAY   0.55, 0.55, 0.55
#define RGB_GREEN   0.05, 0.9, 0.05
#define RGB_DARK_GREEN   0.05, 0.5, 0.05
#define RGB_DARK_GREEN2   0.05, 0.45, 0.05
#define RGB_PURPLE   0.6, 0.1, 0.6
#define RGB_RED   0.8, 0.1, 0.1
#define RGB_BLUE   0.1, 0.1, 0.8
#define RGB_SKY_BLUE   0.468, 0.684, 0.922
#define RGB_SKY_BLUE2   0.2, 0.6, 0.99
#define RGB_SHADOW   0.35, 0.35, 0.35
#define RGB_WHITE   0.95, 0.95, 0.95
#define RGB_YELLOW   1.0, 1.0, 0.0

Enumerations

enum  { gfx::RR, gfx::GG, gfx::BB, gfx::AA }

Functions

RGBA gfx::Interpolate (const RGBA rgba0, const RGBA rgba1, const fp factor)
INLINE ostream & gfx::operator<< (ostream &strm, const RGBA rgba)


Detailed Description

RGBA class and named RGB definitions.

Id
LastChangedDate

Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define BGRA8_LEN   4

#define BGRA_LEN   4

#define CONST_RGBA_CAST ( RGBA   )     *reinterpret_cast<const uint32*>( RGBA )

#define GFX_RGBA_HH   1

#define RGB_BLUE   0.1, 0.1, 0.8

#define RGB_BROWN   0.7, 0.35, 0.2

#define RGB_DARK_GREEN   0.05, 0.5, 0.05

#define RGB_DARK_GREEN2   0.05, 0.45, 0.05

#define RGB_GRAY   0.55, 0.55, 0.55

#define RGB_GREEN   0.05, 0.9, 0.05

#define RGB_PURPLE   0.6, 0.1, 0.6

#define RGB_RED   0.8, 0.1, 0.1

#define RGB_SHADOW   0.35, 0.35, 0.35

#define RGB_SKY_BLUE   0.468, 0.684, 0.922

#define RGB_SKY_BLUE2   0.2, 0.6, 0.99

#define RGB_WHITE   0.95, 0.95, 0.95

#define RGB_YELLOW   1.0, 1.0, 0.0

#define RGBA8_LEN   4

#define RGBA_CAST ( RGBA   )     *reinterpret_cast<uint32*>( RGBA )

#define RGBA_LEN   4

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:15 2007