struct cogs::Color3f
Holds three color channels in float format in range 0-1.
#include <Color.h> struct Color3f { // fields float r = 0.0f; float g = 0.0f; float b = 0.0f; // construction Color3f(); 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); // methods 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; };