COGS
Computer Graphics Structures library
cogs::Color3f Struct Reference

Holds three color channels in float format in range 0-1. More...

Public Member Functions

 Color3f (float red, float green, float blue)
 
 Color3f (const Color3b &col)
 
 Color3f (const Color4b &col)
 
 Color3f (const Color4f &col)
 
 Color3f (const Color3hex &col)
 
 Color3f (const Color4hex &col)
 
float * GetPtr ()
 
const float * GetPtr () const
 
Color3f operator+ (const Color3f &col) const
 
Color3f & operator+= (const Color3f &col)
 
Color3f & operator*= (float multiplier)
 
cogs::Color3f Mix (const Color3f &col, float weight) const
 

Data Fields

float r = 0.0f
 
float g = 0.0f
 
float b = 0.0f
 

Detailed Description

Holds three color channels in float format in range 0-1.