|
|
LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
n2l::cColour Class ReferenceA representation of a colour which may or may not have an alpha channel.
More...
#include <cColour.h>
Collaboration diagram for n2l::cColour:
[legend]List of all members.Public Member Functions
- cColour ()
- cColour (const cColour &iColour)
- cColour (const cDynVar &iDef)
- cColour (const tFloat &iR, const tFloat &iG, const tFloat &iB, const tFloat &iA=1.0f)
- void r (const tFloat &iR)
- void g (const tFloat &iG)
- void b (const tFloat &iB)
- void a (const tFloat &iA)
- cColour & set (const tFloat &iR, const tFloat &iG, const tFloat &iB, const tFloat &iA=1.0f)
- void normalize ()
- I have no idea if this is correct, but after combining colours, we need to bring the magnitude of each of the components to under 1.0.
- const tFloat & r () const
- const tFloat & g () const
- const tFloat & b () const
- const tFloat & a () const
- void get (tFloat &oR, tFloat &oG, tFloat &oB) const
- void get (tFloat &oR, tFloat &oG, tFloat &oB, tFloat &oA) const
- void operator+= (const cColour &iColour)
- void operator *= (const cColour &iColour)
- const cColour operator- (const cColour &iColour) const
- const cColour operator+ (const cColour &iColour) const
- const cColour operator * (const tFloat &iScaler) const
- void operator *= (const tFloat &iScaler)
- void operator-= (const cColour &iColour)
- cColour & operator= (const cDynVar &iDef)
- void clampToZeroOne ()
- const tString dump () const
- void glColor4fv () const
- void glColor4f () const
- void glColor3fv () const
- void glColor3f () const
- void glColour3 () const
- void glColour4 () const
- void glMaterialfv (const GLenum iFace, const GLenum iPName) const
- void glLightfv (const GLenum iLight, const GLenum iProp) const
Static Public Attributes
Detailed Description
A representation of a colour which may or may not have an alpha channel.
Definition at line 38 of file cColour.h.
Constructor & Destructor Documentation
| n2l::cColour::cColour |
( |
|
) |
[inline] |
|
| n2l::cColour::cColour |
( |
const cColour & |
iColour |
) |
[inline] |
|
| n2l::cColour::cColour |
( |
const cDynVar & |
iDef |
) |
[inline] |
|
Member Function Documentation
| const tFloat& n2l::cColour::a |
( |
|
) |
const [inline] |
|
| void n2l::cColour::a |
( |
const tFloat & |
iA |
) |
[inline] |
|
| const tFloat& n2l::cColour::b |
( |
|
) |
const [inline] |
|
| void n2l::cColour::b |
( |
const tFloat & |
iB |
) |
[inline] |
|
| void n2l::cColour::clampToZeroOne |
( |
|
) |
[inline] |
|
| const tString n2l::cColour::dump |
( |
|
) |
const [inline] |
|
| const tFloat& n2l::cColour::g |
( |
|
) |
const [inline] |
|
| void n2l::cColour::g |
( |
const tFloat & |
iG |
) |
[inline] |
|
| void n2l::cColour::glColor3f |
( |
|
) |
const [inline] |
|
| void n2l::cColour::glColor3fv |
( |
|
) |
const [inline] |
|
| void n2l::cColour::glColor4f |
( |
|
) |
const [inline] |
|
| void n2l::cColour::glColor4fv |
( |
|
) |
const [inline] |
|
| void n2l::cColour::glColour3 |
( |
|
) |
const [inline] |
|
| void n2l::cColour::glColour4 |
( |
|
) |
const [inline] |
|
| void n2l::cColour::glLightfv |
( |
const GLenum |
iLight, |
|
|
const GLenum |
iProp |
|
) |
const [inline] |
|
| void n2l::cColour::glMaterialfv |
( |
const GLenum |
iFace, |
|
|
const GLenum |
iPName |
|
) |
const [inline] |
|
| void n2l::cColour::normalize |
( |
|
) |
[inline] |
|
|
|
I have no idea if this is correct, but after combining colours, we need to bring the magnitude of each of the components to under 1.0.
Since I have no idea how to do this correctly. I'm going to make something up. Enjoy.
Definition at line 109 of file cColour.h. |
| const cColour n2l::cColour::operator * |
( |
const tFloat & |
iScaler |
) |
const [inline] |
|
| void n2l::cColour::operator *= |
( |
const tFloat & |
iScaler |
) |
[inline] |
|
| void n2l::cColour::operator *= |
( |
const cColour & |
iColour |
) |
[inline] |
|
| const cColour n2l::cColour::operator+ |
( |
const cColour & |
iColour |
) |
const [inline] |
|
| void n2l::cColour::operator+= |
( |
const cColour & |
iColour |
) |
[inline] |
|
| const cColour n2l::cColour::operator- |
( |
const cColour & |
iColour |
) |
const [inline] |
|
| void n2l::cColour::operator-= |
( |
const cColour & |
iColour |
) |
[inline] |
|
| const tFloat& n2l::cColour::r |
( |
|
) |
const [inline] |
|
| void n2l::cColour::r |
( |
const tFloat & |
iR |
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|