|
| | Color3ub () |
| | Constructs a Color3ub object, and initializes it to (255, 255, 255).
|
| |
| | Color3ub (unsigned char r, unsigned char g, unsigned char b) |
| | Constructs a Color3ub object, and set its elements to parameters (r, g, b).
|
| |
| | Color3ub (const Color3ub &other) |
| |
| | Color3ub (const Color3f &other) |
| | Constructs a Color3f of (r, g, b) by copying the values of another Color3ub object and multiplying these values by 255.0f (converting from float range 0.0-1.0 to unsigned char (ub) range 0-255 ).
|
| |
| | Color3ub (const Color4ub &other) |
| |
| | Color3ub (const Color4f &other) |
| |
| | Color3 () |
| | Contructs a Color3 object with 3 elements.
|
| |
| void | set (unsigned char r, unsigned char g, unsigned char b) |
| | Sets the (r,g,b) values of current Color3 object.
|
| |
| | Color (int size) |
| | Constructs a Color object with a specified number of elements.
|
| |
| const unsigned char & | operator[] (int index) const |
| | Provides read-only access to the element at a specific index(position) within the Color object.
|
| |
| unsigned char & | operator[] (int index) |
| | Provides read-write access to the element at a specific index(position) within the Color object.
|
| |
| const unsigned char & | operator[] (char key) const |
| | Provides read-only access to a element within the Color object using a character key.
|
| |
| unsigned char & | 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.
|
| |
| unsigned char * | data () |
| | Gets the data array of the Tuple.
|
| |
| const unsigned char * | 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 unsigned char *data) |
| | Sets the data array of the Variant.
|
| |
| Tuple< unsigned char > & | 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 Color3ub class inherits from Color3, specilizing the template parameters to unsigned char for element type.