Blender  V2.59
Public Member Functions | Public Attributes
Color32 Class Reference

32 bit color stored as BGRA. More...

#include <Color.h>

List of all members.

Public Member Functions

 Color32 ()
 Color32 (const Color32 &c)
 Color32 (unsigned char R, unsigned char G, unsigned char B)
 Color32 (unsigned char R, unsigned char G, unsigned char B, unsigned char A)
 Color32 (unsigned int U)
void setRGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A)
void setBGRA (unsigned char B, unsigned char G, unsigned char R, unsigned char A=0xFF)
 operator unsigned int () const

Public Attributes

union {
   struct {
      unsigned char   b
      unsigned char   g
      unsigned char   r
      unsigned char   a
   } 
   unsigned int   u
}; 

Detailed Description

32 bit color stored as BGRA.

Definition at line 43 of file Color.h.


Constructor & Destructor Documentation

Color32::Color32 ( ) [inline]

Definition at line 46 of file Color.h.

Color32::Color32 ( const Color32 c) [inline]

Definition at line 47 of file Color.h.

Color32::Color32 ( unsigned char  R,
unsigned char  G,
unsigned char  B 
) [inline]

Definition at line 48 of file Color.h.

References setRGBA().

Color32::Color32 ( unsigned char  R,
unsigned char  G,
unsigned char  B,
unsigned char  A 
) [inline]

Definition at line 49 of file Color.h.

References setRGBA().

Color32::Color32 ( unsigned int  U) [inline]

Definition at line 53 of file Color.h.


Member Function Documentation

Color32::operator unsigned int ( ) const [inline]

Definition at line 71 of file Color.h.

References u.

void Color32::setBGRA ( unsigned char  B,
unsigned char  G,
unsigned char  R,
unsigned char  A = 0xFF 
) [inline]

Definition at line 63 of file Color.h.

References a, A, b, B, g, G, r, and R.

void Color32::setRGBA ( unsigned char  R,
unsigned char  G,
unsigned char  B,
unsigned char  A 
) [inline]

Definition at line 55 of file Color.h.

References a, b, B, g, G, r, and R.

Referenced by Color32().


Member Data Documentation

union { ... }
unsigned char Color32::a
unsigned char Color32::b
unsigned char Color32::g
unsigned char Color32::r
unsigned int Color32::u

Definition at line 79 of file Color.h.

Referenced by ColorBlock::init(), ColorBlock::isSingleColor(), and operator unsigned int().


The documentation for this class was generated from the following file: