|
| | Color4f () |
| | Constructs a Color4f object, and initializes it to (1.0f, 1.0f, 1.0f, 1.0f).
|
| |
| | Color4f (float r, float g, float b, float a) |
| | Constructs a Color4f object, and set its elements to parameters (r, g, b, a).
|
| |
| | Color4f (const Color4f &other) |
| |
| | Color4f (const Color3f &other) |
| | Constructs a Color4f of (r, g, b, a) by copying the (r, g, b) of another Color3ub object and setting the 'a' as 1.0f.
|
| |
| | Color4f (const Color4ub &other) |
| | Constructs a Color4f of (r, g, b, a) by copying the values of another Color4ub object and dividing these values by 255.0f (converting from unsigned char (ub) range 0-255 to float range 0.0-1.0).
|
| |
| | Color4f (const Color3ub &other) |
| |
| | Color4 () |
| | Contructs a Color4 object with 4 elements.
|
| |
| void | set (float r, float g, float b, float a) |
| | Sets the (r, g, b, a) values of current Color4 object.
|
| |
| | Color (int size) |
| | Constructs a Color object with a specified number of elements.
|
| |
| const float & | operator[] (int index) const |
| | Provides read-only access to the element at a specific index(position) within the Color object.
|
| |
| float & | operator[] (int index) |
| | Provides read-write access to the element at a specific index(position) within the Color object.
|
| |
| const float & | operator[] (char key) const |
| | Provides read-only access to a element within the Color object using a character key.
|
| |
| float & | operator[] (char key) |
| | Provides read-write access to a element within the Color object using a character key.
|
| |
| | Tuple (int size) |
| | Constructs a Tuple object with a specified number of elements, and initialize all elements to 0.
|
| |
| virtual | ~Tuple () |
| |
| int | size () const |
| | Gets the number of elements of the Tuple.
|
| |
| float * | data () |
| | Gets the data array of the Tuple.
|
| |
| const float * | data () const |
| | Gets the data array of the Tuple, and the data could not be modified upon which this function is called.
|
| |
| void | setData (const float *data) |
| | Sets the data array of the Variant.
|
| |
| Tuple< float > & | operator= (const Tuple &other) |
| | Copys the data of another Tuple to the one on which the operator is invoked.
|
| |
| bool | operator== (const Tuple &other) const |
| | Compares the Tuple with another one, and returns true if they are equal, otherwise returns false.
|
| |
| bool | operator!= (const Tuple &other) const |
| | Compares the Tuple with another one, and returns false if they are equal, otherwise returns true.
|
| |
| | Variant () |
| |
| virtual | ~Variant () |
| |
| const std::string & | type () const |
| |
The Color4f class inherits from Color4, specilizing the template parameters to float for element type.