38 inline const string toString(
float value)
const {
39 string floatString = to_string(value);
40 return floatString.substr(0, floatString.length() - 3);
206 for (
auto i = 0; i < 2; i++) {
207 if (i != 0) result+=
",";
215 for (
auto i = 0; i < 3; i++) {
216 if (i != 0) result+=
",";
225 for (
auto i = 0; i < 4; i++) {
226 if (i != 0) result+=
",";
Color 4 definition class.
Shader parameter model class.
ShaderParameter(const Vector2 &vector2Value)
Public constructor for Vector2 value.
ShaderParameter(float floatValue)
Public constructor for float value.
ShaderParameter()
Public default constructor.
const Color4 getColor4Value() const
const array< float, 3 > getColor3ValueArray() const
const Vector3 getVector3Value() const
const array< float, 4 > getColor4ValueArray() const
const string getValueAsString() const
const Vector4 getVector4Value() const
ShaderParameter(bool booleanValue)
Public constructor for boolean value.
ShaderParameter(int integerValue)
Public constructor for int value.
bool getBooleanValue() const
const array< float, 4 > getVector4ValueArray() const
float getFloatValue() const
const array< float, 3 > getVector3ValueArray() const
const string toString(float value) const
ShaderParameter(const Vector3 &vector3Value)
Public constructor for Vector3 value.
const array< float, 2 > getVector2ValueArray() const
ShaderParameter(const Color4 &color4Value)
Public constructor for Color4 value.
array< float, 4 > floatValues
float getIntegerValue() const
ShaderParameter(const Vector4 &vector4Value)
Public constructor for Vector4 value.
const Vector2 getVector2Value() const
Vector2 class representing vector2 mathematical structure and operations with x, y components.
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Vector4 class representing vector4 mathematical structure and operations with x, y,...