Torque2D Reference
Loading...
Searching...
No Matches
ColorI Class Reference

#include <gColor.h>

Inheritance diagram for ColorI:

Public Member Functions

 ColorI ()
 ColorI (const ColorI &in_rCopy)
 ColorI (const U8 in_r, const U8 in_g, const U8 in_b, const U8 in_a=U8(255))
 ColorI (const char *pStockColorName)
void set (const U8 in_r, const U8 in_g, const U8 in_b, const U8 in_a=U8(255))
void set (const char *pStockColorName)
StringTableEntry StockColor (void)
ColorIoperator*= (const F32 in_mul)
ColorI operator* (const F32 in_mul) const
 operator ColorF () const
 operator const U32 () const
bool operator== (const ColorI &) const
bool operator!= (const ColorI &) const
const U8 * address (void) const
void interpolate (const ColorI &in_rC1, const ColorI &in_rC2, const F32 in_factor)
U32 getARGBPack () const
U32 getRGBAPack () const
U32 getABGRPack () const
U32 getBGRPack () const
U32 getRGBPack () const
U32 getRGBEndian () const
U32 getARGBEndian () const
U16 get565 () const
U16 get4444 () const
void clamp ()
StringTableEntry stringThis (void) const
const char * scriptThis (void) const

Static Public Member Functions

static const ColorIStockColor (const char *pStockColorName)

Public Attributes

U8 red
U8 green
U8 blue
U8 alpha

Constructor & Destructor Documentation

◆ ColorI() [1/4]

ColorI ( )
inline

◆ ColorI() [2/4]

ColorI ( const ColorI & in_rCopy)
inline

◆ ColorI() [3/4]

ColorI ( const U8 in_r,
const U8 in_g,
const U8 in_b,
const U8 in_a = U8(255) )
inline

◆ ColorI() [4/4]

ColorI ( const char * pStockColorName)

Member Function Documentation

◆ address()

const U8 * address ( void ) const
inline

◆ clamp()

void clamp ( )
inline

◆ get4444()

U16 get4444 ( ) const
inline

◆ get565()

U16 get565 ( ) const
inline

◆ getABGRPack()

U32 getABGRPack ( ) const
inline

◆ getARGBEndian()

U32 getARGBEndian ( ) const
inline

◆ getARGBPack()

U32 getARGBPack ( ) const
inline

◆ getBGRPack()

U32 getBGRPack ( ) const
inline

◆ getRGBAPack()

U32 getRGBAPack ( ) const
inline

◆ getRGBEndian()

U32 getRGBEndian ( ) const
inline

◆ getRGBPack()

U32 getRGBPack ( ) const
inline

◆ interpolate()

void interpolate ( const ColorI & in_rC1,
const ColorI & in_rC2,
const F32 in_factor )
inline

◆ operator ColorF()

operator ColorF ( ) const
inline

◆ operator const U32()

operator const U32 ( ) const
inline

◆ operator!=()

bool operator!= ( const ColorI & in_Cmp) const
inline

◆ operator*()

ColorI operator* ( const F32 in_mul) const
inline

◆ operator*=()

ColorI & operator*= ( const F32 in_mul)
inline

◆ operator==()

bool operator== ( const ColorI & in_Cmp) const
inline

◆ scriptThis()

const char * scriptThis ( void ) const
inline

◆ set() [1/2]

void set ( const char * pStockColorName)

◆ set() [2/2]

void set ( const U8 in_r,
const U8 in_g,
const U8 in_b,
const U8 in_a = U8(255) )
inline

◆ StockColor() [1/2]

const ColorI & StockColor ( const char * pStockColorName)
static

◆ StockColor() [2/2]

StringTableEntry StockColor ( void )

◆ stringThis()

StringTableEntry stringThis ( void ) const
inline

Member Data Documentation

◆ alpha

U8 alpha

◆ blue

U8 blue

◆ green

U8 green

◆ red

U8 red

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