Definition at line 31 of file ColorGradient.h.
|
| typedef std::pair< Ogre::Vector3, Ogre::Real > | ColorFrame |
| |
◆ ColorFrame
Color frame type definition ColorFrame.first: Colour value ColorFrame.second: Position in the gradient [0,1] range.
Definition at line 38 of file ColorGradient.h.
◆ ColorGradient()
| SkyX::ColorGradient::ColorGradient |
( |
| ) |
|
◆ ~ColorGradient()
| SkyX::ColorGradient::~ColorGradient |
( |
| ) |
|
◆ _checkBounds()
| const bool SkyX::ColorGradient::_checkBounds |
( |
| ) |
const |
|
private |
Check bounds.
- Returns
- false if the Color gradient is mal-formed
Definition at line 86 of file ColorGradient.cpp.
◆ addCFrame()
| void SkyX::ColorGradient::addCFrame |
( |
const ColorFrame & |
CFrame | ) |
|
|
inline |
◆ clear()
| void SkyX::ColorGradient::clear |
( |
| ) |
|
|
inline |
◆ getColor()
| const Ogre::Vector3 SkyX::ColorGradient::getColor |
( |
const Ogre::Real & |
p | ) |
const |
Get color value.
- Parameters
-
| p | The gradient point in [0,1] range |
- Returns
- Color at the given gradient position
Definition at line 37 of file ColorGradient.cpp.
◆ CFrameVector
| std::vector<ColorFrame> SkyX::ColorGradient::CFrameVector |
|
private |
◆ mMalFormed
| bool SkyX::ColorGradient::mMalFormed |
|
private |
The documentation for this class was generated from the following files: