ScummVM API documentation
Twp::Color Struct Reference

Public Member Functions

 Color (float red=1.0f, float green=1.0f, float blue=1.0f, float alpha=1.0f)
 
Common::String toStr ()
 
Color operator- (const Color &c)
 
Color operator+ (const Color &c)
 
Color operator* (float f)
 
int toInt () const
 

Static Public Member Functions

static Color withAlpha (const Color &c, float alpha=1.0f)
 
static Color rgb (int c)
 
static Color fromRgba (int c)
 
static Color create (uint8 red, uint8 green, uint8 blue, uint8 alpha=0xFF)
 

Public Attributes

union {
   float   v [4]
 
   struct {
      float   r
 
      float   g
 
      float   b
 
      float   a
 
   }   rgba
 
}; 
 

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