51 m_r(_r), m_g(_g), m_b(_b), m_a(_a){;}
58 m_r(_c.m_r),m_g(_c.m_g), m_b(_c.m_b),m_a(_c.m_a){;}
70 m_r=_r; m_g=_g; m_b=_b; m_a=_a;
78 m_r = _c.m_r; m_g = _c.m_g; m_b= _c.m_b; m_a=_c.m_a;
128 void add(
const Colour& _src,
const Colour& _refl) noexcept;
146 friend class Material;
151 #ifndef BUILDING_DOCS 173 #ifndef BUILDING_DOCS 185 #ifndef BUILDING_DOCS simple class to hold colour information and set the basic opengl colour state. also has overloaded me...
Real m_r
red component of the colour tuple
main definition of types and namespace
Real m_b
blue component of the colour tuple
Colour(const Colour &_c) noexcept
copy constructor passing in a Colour
Real * openGL() noexcept
accesor method to return a pointer to the colour array
implementation files for RibExport class
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
Real m_g
green component of the colour tuple
Vec2 operator*(Real _k, const Vec2 &_v) noexcept
scalar * vector operator
Real m_a
alpha the transparent element
Colour(Real _r=0.0, Real _g=0.0, Real _b=0.0, Real _a=1.0) noexcept
constructor passing in r g b components