SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::Color4f Class Reference

Color class implementation. More...

#include <Color4f.h>

Public Member Functions

 Color4f (void)
 
 Color4f (float r, float g, float b, float a=1.f)
 
 Color4f (const ColorRGBA &rhs)
 
Color4f operator+ (float w) const
 
Color4f operator- (float w) const
 
Color4foperator+= (float w)
 
Color4foperator-= (float w)
 
float & operator[] (int index)
 
const float & operator[] (int index) const
 

Static Public Member Functions

static Color4f fromByte (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
 

Friends

std::ostream & operator<< (std::ostream &stream, const Color4f &rhs)
 

Detailed Description

Color class implementation.

Constructor & Destructor Documentation

scv::Color4f::Color4f ( void  )
explicit
scv::Color4f::Color4f ( float  r,
float  g,
float  b,
float  a = 1.f 
)
scv::Color4f::Color4f ( const ColorRGBA rhs)

Member Function Documentation

static Color4f scv::Color4f::fromByte ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 255 
)
inlinestatic
scv::Color4f scv::Color4f::operator+ ( float  w) const
Color4f & scv::Color4f::operator+= ( float  w)
scv::Color4f scv::Color4f::operator- ( float  w) const
Color4f & scv::Color4f::operator-= ( float  w)
float & scv::Color4f::operator[] ( int  index)
inline
const float & scv::Color4f::operator[] ( int  index) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Color4f rhs 
)
friend

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