| Linderdaum Engine: clCVar Class Reference | ![]() |
OLEVariant-like untyped variable. More...
#include <CVars.h>
Public Member Functions | |
| clCVar () | |
| clCVar (const LString &VarName) | |
| scriptmethod LString | GetString () const |
| Get string representation. | |
| scriptmethod int | GetInt () const |
| Get int32 representation. | |
| scriptmethod double | GetDouble () const |
| Get double(64-bit) representation. | |
| scriptmethod float | GetFloat () const |
| Get float(32-bit) representation. | |
| scriptmethod bool | GetBool () const |
| Get boolean representation. | |
| scriptmethod const LVector2 & | GetVector2 () const |
| Get 2d-vector representation. | |
| scriptmethod const LVector3 & | GetVector3 () const |
| Get 3d-vector representation. | |
| scriptmethod const LVector4 & | GetVector4 () const |
| Get 4d-vector representation. | |
| scriptmethod const LMatrix3 & | GetMatrix3 () const |
| Get 3x3 matrix representation. | |
| scriptmethod const LMatrix4 & | GetMatrix4 () const |
| Get 4x4 matrix representation. | |
| scriptmethod void | SetString (const LString &S) |
| Set string value. | |
| scriptmethod void | SetInt (const int L) |
| Set int32 value. | |
| scriptmethod void | SetDouble (const double D) |
| Set double(64-bit) value. | |
| scriptmethod void | SetFloat (const float F) |
| Set float(32-bit) value. | |
| scriptmethod void | SetBool (const bool B) |
| Set boolean value. | |
| scriptmethod void | SetVector2 (const LVector2 &Vec) |
| Set 2d-vector value. | |
| scriptmethod void | SetVector3 (const LVector3 &Vec) |
| Set 3d-vector value. | |
| scriptmethod void | SetVector4 (const LVector4 &Vec) |
| Set 4d-vector value. | |
| scriptmethod void | SetMatrix3 (const LMatrix3 &Mat) |
| Set 3x3 matrix value. | |
| scriptmethod void | SetMatrix4 (const LMatrix4 &Mat) |
| Set 4x4 matrix value. | |
| scriptmethod void | AddInt (const int Val) |
| Increment all values. | |
Private Attributes | |
| LString | FString |
| string container | |
| int | FInt |
| int container | |
| double | FDouble |
| double/float container | |
| bool | FBoolean |
| boolean container | |
| LVector2 | FVector2 |
| vec2 container | |
| LVector3 | FVector3 |
| vec3 container | |
| LVector4 | FVector4 |
| vec4 container | |
| LMatrix3 | FMatrix3 |
| mtx3 container (just a wrapper for 3x3 submatrix of FMatrix4) | |
| LMatrix4 | FMatrix4 |
| mtx4 container | |
OLEVariant-like untyped variable.
Provides universal conversion routines between different engine's types. Used for Engine's configuration and Shading Language's uniform parameters passing
| clCVar::clCVar | ( | ) | [inline] |
| clCVar::clCVar | ( | const LString & | VarName | ) | [inline, explicit] |
| void clCVar::AddInt | ( | const int | Val | ) |
Increment all values.
| scriptmethod bool clCVar::GetBool | ( | ) | const [inline] |
Get boolean representation.
| scriptmethod double clCVar::GetDouble | ( | ) | const [inline] |
Get double(64-bit) representation.
| scriptmethod float clCVar::GetFloat | ( | ) | const [inline] |
Get float(32-bit) representation.
| scriptmethod int clCVar::GetInt | ( | ) | const [inline] |
Get int32 representation.
| const LMatrix3 & clCVar::GetMatrix3 | ( | ) | const |
Get 3x3 matrix representation.
| const LMatrix4 & clCVar::GetMatrix4 | ( | ) | const |
Get 4x4 matrix representation.
| scriptmethod LString clCVar::GetString | ( | ) | const [inline] |
Get string representation.
| const LVector2 & clCVar::GetVector2 | ( | ) | const |
Get 2d-vector representation.
| const LVector3 & clCVar::GetVector3 | ( | ) | const |
Get 3d-vector representation.
| const LVector4 & clCVar::GetVector4 | ( | ) | const |
Get 4d-vector representation.
| void clCVar::SetBool | ( | const bool | B | ) |
Set boolean value.
| void clCVar::SetDouble | ( | const double | D | ) |
Set double(64-bit) value.
| void clCVar::SetFloat | ( | const float | F | ) |
Set float(32-bit) value.
| void clCVar::SetInt | ( | const int | L | ) |
Set int32 value.
| void clCVar::SetMatrix3 | ( | const LMatrix3 & | Mat | ) |
Set 3x3 matrix value.
| void clCVar::SetMatrix4 | ( | const LMatrix4 & | Mat | ) |
Set 4x4 matrix value.
| void clCVar::SetString | ( | const LString & | S | ) |
Set string value.
| void clCVar::SetVector2 | ( | const LVector2 & | Vec | ) |
Set 2d-vector value.
| void clCVar::SetVector3 | ( | const LVector3 & | Vec | ) |
Set 3d-vector value.
| void clCVar::SetVector4 | ( | const LVector4 & | Vec | ) |
Set 4d-vector value.
bool clCVar::FBoolean [private] |
boolean container
double clCVar::FDouble [private] |
double/float container
int clCVar::FInt [private] |
int container
LMatrix3 clCVar::FMatrix3 [mutable, private] |
mtx3 container (just a wrapper for 3x3 submatrix of FMatrix4)
LMatrix4 clCVar::FMatrix4 [private] |
mtx4 container
LString clCVar::FString [private] |
string container
LVector2 clCVar::FVector2 [private] |
vec2 container
LVector3 clCVar::FVector3 [private] |
vec3 container
LVector4 clCVar::FVector4 [private] |
vec4 container