Drag[en]gine Game Engine
1.21
|
Sky controller. More...
#include <deSkyController.h>
Public Member Functions | |
Constructors and Destructors | |
deSkyController () | |
Create controller. More... | |
deSkyController (const deSkyController &controller) | |
Create copy of controller. More... | |
~deSkyController () | |
Clean up animator. More... | |
Management | |
const decString & | GetName () const |
Name. More... | |
void | SetName (const char *name) |
Set name. More... | |
float | GetMinimumValue () const |
Minimum value. More... | |
float | GetMaximumValue () const |
Maximum value. More... | |
void | SetValueRange (float minValue, float maxValue) |
Set value range. More... | |
float | GetCurrentValue () const |
Current value. More... | |
void | SetCurrentValue (float value) |
Set current value. More... | |
void | IncrementCurrentValue (float incrementBy) |
Increment current value. More... | |
bool | GetClamp () const |
Clamp current value to range instead of wrapping around at the end points. More... | |
void | SetClamp (bool clamp) |
Set if current value is clamped to range instead of wrapping around at the end points. More... | |
bool | GetFrozen () const |
Controller is frozen. More... | |
void | SetFrozen (bool frozen) |
Set if controller is frozen. More... | |
Operators | |
deSkyController & | operator= (const deSkyController &controller) |
Copy controller to this controller. More... | |
Sky controller.
Controllers provide the user with control over how the individual layers of a sky. Controllers are written in a way that you can use them without having to do scaling or transformation on your own. You can provide a minimum and maximum value matching your setup. The controller takes care of transforming the current value into the proper 0 to 1 range required for sounds to work with.
deSkyController::deSkyController | ( | ) |
Create controller.
deSkyController::deSkyController | ( | const deSkyController & | controller | ) |
Create copy of controller.
deSkyController::~deSkyController | ( | ) |
Clean up animator.
|
inline |
Clamp current value to range instead of wrapping around at the end points.
|
inline |
Current value.
|
inline |
Controller is frozen.
|
inline |
Maximum value.
|
inline |
Minimum value.
|
inline |
Name.
void deSkyController::IncrementCurrentValue | ( | float | incrementBy | ) |
Increment current value.
deSkyController& deSkyController::operator= | ( | const deSkyController & | controller | ) |
Copy controller to this controller.
void deSkyController::SetClamp | ( | bool | clamp | ) |
Set if current value is clamped to range instead of wrapping around at the end points.
void deSkyController::SetCurrentValue | ( | float | value | ) |
Set current value.
void deSkyController::SetFrozen | ( | bool | frozen | ) |
Set if controller is frozen.
void deSkyController::SetName | ( | const char * | name | ) |
Set name.
void deSkyController::SetValueRange | ( | float | minValue, |
float | maxValue | ||
) |
Set value range.