Public Member Functions | Static Public Member Functions | Public Attributes

BMM_Color_fl Struct Reference

This reference page is linked to from the following overview topics: High Dynamic Range Bitmaps.


Search for all occurrences

Detailed Description

High Dynamic Range bitmaps make use of this class to store color information using floating point values.

See also:
Class Bitmap, Class BitmapStorage, Class BitmapManager, Working with Bitmaps.

#include <maxtypes.h>

Inheritance diagram for BMM_Color_fl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  BMM_Color_fl (float vr=0.0f, float vg=0.0f, float vb=0.0f, float va=0.0f)
  operator float * ()
  operator const float * () const

Static Public Member Functions

static WORD  clipColor (float c)

Public Attributes

float  r
  Storage for the floating point color information.
float  g
float  b
float  a

Constructor & Destructor Documentation

BMM_Color_fl ( float  vr = 0.0f,
float  vg = 0.0f,
float  vb = 0.0f,
float  va = 0.0f 
) [inline]
: r(vr), g(vg), b(vb), a(va) {}

Member Function Documentation

operator float * ( ) [inline]
Remarks:
Returns the address of the floating point values.
{ return &r; }
operator const float * ( ) const [inline]
Remarks:
Returns the address of the floating point values.
{ return &r; }
static WORD clipColor ( float  c ) [inline, static]
Remarks:
Returns the specified color c clipped (limited to) the range 0 to 65535.
    {
        return c <= 0.0f ? 0 : c >= 1.0f ? 65535 : (WORD)(c * 65535.0);
    }

Member Data Documentation

float r

Storage for the floating point color information.

float g
float b
float a