Classes | Namespaces | Defines | Typedefs | Enumerations

_src_gfx_rgba.hh File Reference

RGBA class. More...

#include "base/array_tiny.hh"
#include "base/clamp.hh"
#include "math/module.hh"
#include "gfx/osg.hh"
#include "gfx/defs.hh"

Go to the source code of this file.

Classes

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

Namespaces

namespace  gfx
 

Graphics library.


Defines

#define RGBA2VEC4F(RGBA)   osg::Vec4f(RGBA)
#define VEC4F2RGBA(V)   RGBA(V)
#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 )

Typedefs

typedef osg::Vec4Array gfx::Colors

Enumerations

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

Detailed Description

RGBA class.

LastChangedDate:
2010-01-22 18:02:35 -0500 (Fri, 22 Jan 2010)
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 RGBA2VEC4F (   RGBA  )     osg::Vec4f(RGBA)
#define RGBA8_LEN   4
#define RGBA_CAST (   RGBA  )     *reinterpret_cast<uint32*>( RGBA )
#define RGBA_LEN   4
#define VEC4F2RGBA (   V  )     RGBA(V)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10