Blender V2.27
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 (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.

Id:
Color.h 26841 2010-02-12 13:34:04Z campbellbarton

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Contributors: Amorilia (amorilia@gamebox.net)

***** END GPL LICENSE BLOCK *****

Definition at line 38 of file Color.h.


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