RgbaHDR Struct Reference

Standard 128- or 256-bit RGBA pixel with floating-point red, green, blue, and alpha channels. More...

#include <Rgba.h>

List of all members.

Public Member Functions

 RgbaHDR (real_t r_=0, real_t g_=0, real_t b_=0, real_t a_=1)
 operator Vector3 () const
 operator Rgba32 () const
real_t luminance () const
RgbaHDR operator* (real_t scalar) const
RgbaHDRoperator*= (real_t scalar)
 sets this rgba to { r * s, g * s, b * s, a }

Static Public Member Functions

static RgbaHDR fromVector (const Vector3 &v)

Public Attributes

union {
   struct {
      real_t   r
      real_t   g
      real_t   b
      real_t   a
   } 
   real_t   data [4]
}; 


Detailed Description

Standard 128- or 256-bit RGBA pixel with floating-point red, green, blue, and alpha channels.

Definition at line 60 of file Rgba.h.


Constructor & Destructor Documentation

RgbaHDR::RgbaHDR ( real_t  r_ = 0,
real_t  g_ = 0,
real_t  b_ = 0,
real_t  a_ = 1 
) [inline, explicit]

Definition at line 35 of file Rgba.inl.


Member Function Documentation

static RgbaHDR RgbaHDR::fromVector ( const Vector3 v  )  [inline, static]

Definition at line 70 of file Rgba.h.

RgbaHDR::operator Vector3 (  )  const [inline]

Returns:
this RgbaHDR as a Vector3 (implicit conversion) for convenience purposes

Definition at line 40 of file Rgba.inl.

RgbaHDR::operator Rgba32 (  )  const [inline]

Returns:
this RgbaHDR as a 32-bit Rgba32

Definition at line 44 of file Rgba.inl.

real_t RgbaHDR::luminance (  )  const [inline]

Returns:
the luminance of this Rgba

Definition at line 48 of file Rgba.inl.

RgbaHDR RgbaHDR::operator* ( real_t  scalar  )  const [inline]

Returns:
{ r * s, g * s, b * s, a }

Definition at line 52 of file Rgba.inl.

RgbaHDR & RgbaHDR::operator*= ( real_t  scalar  )  [inline]

sets this rgba to { r * s, g * s, b * s, a }

Definition at line 56 of file Rgba.inl.


Member Data Documentation

Definition at line 62 of file Rgba.h.

Definition at line 62 of file Rgba.h.

Definition at line 62 of file Rgba.h.

Definition at line 62 of file Rgba.h.

Definition at line 64 of file Rgba.h.

union { ... }


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

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6