|
| | Color () |
| | Constructs a color.
|
| |
| | Color (const Colorf &) |
| |
| | Color (const std::string &hexstr) |
| | Constructs a color.
|
| |
| | Color (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) |
| | Constructs a color.
|
| |
| unsigned int | get_abgr8 () const |
| | Returns the color in ABGR8888 format.
|
| |
| unsigned char | get_alpha () const |
| | Returns the alpha color component, in the range 0-255.
|
| |
| float | get_alpha_f () const |
| | Returns the alpha color component, in the range 0-1.
|
| |
| unsigned int | get_argb8 () const |
| | Returns the color in ARGB8888 format.
|
| |
| unsigned int | get_bgr8 () const |
| | Returns the color in 0BGR8888 format.
|
| |
| unsigned int | get_bgra8 () const |
| | Returns the color in BGRA8888 format.
|
| |
| unsigned char | get_blue () const |
| | Returns the blue color component, in the range 0-255.
|
| |
| float | get_blue_f () const |
| | Returns the blue color component, in the range 0-1.
|
| |
| unsigned char | get_green () const |
| | Returns the green color component, in the range 0-255.
|
| |
| float | get_green_f () const |
| | Returns the green color component, in the range 0-1.
|
| |
| unsigned char | get_red () const |
| | Returns the red color component, in the range 0-255.
|
| |
| float | get_red_f () const |
| | Returns the red color component, in the range 0-1.
|
| |
| unsigned int | get_rgba8 () const |
| | Returns the color in RGBA8888 format.
|
| |
| bool | operator!= (const Color &c) const |
| | Color != Color operator (deep compare)
|
| |
| bool | operator== (const Color &c) const |
| | Color == Color operator (deep compare)
|
| |
| void | set_alpha (unsigned char value) |
| | Set alpha color component, in the range 0-255.
|
| |
| void | set_alpha_f (float value) |
| | Set alpha color component, in the range 0-1.
|
| |
| void | set_argb8 (unsigned int color) |
| | Set color based on argb color components.
|
| |
| void | set_bgra8 (unsigned int color) |
| | Set color based on rgba color components.
|
| |
| void | set_blue (unsigned char value) |
| | Set blue color component, in the range 0-255.
|
| |
| void | set_blue_f (float value) |
| | Set blue color component, in the range 0-1.
|
| |
| void | set_color (unsigned char new_red, unsigned char new_green, unsigned char new_blue, unsigned char new_alpha=255) |
| | Set color based on rgba color components in the range 0-255.
|
| |
| void | set_colorf (float new_red, float new_green, float new_blue, float new_alpha=1.0f) |
| | Set color based on rgba color components in the range 0-1.
|
| |
| void | set_green (unsigned char value) |
| | Set green color component, in the range 0-255.
|
| |
| void | set_green_f (float value) |
| | Set green color component, in the range 0-1.
|
| |
| void | set_red (unsigned char value) |
| | Set red color component, in the range 0-255.
|
| |
| void | set_red_f (float value) |
| | Set red color component, in the range 0-1.
|
| |
| void | set_rgb8 (unsigned int color) |
| | Set color based on rgb color components. Alpha is set to 255.
|
| |
| void | set_rgba8 (unsigned int color) |
| | Set color based on rgba color components.
|
| |
| | Vec4 () |
| |
| | Vec4 () |
| |
| | Vec4 (const unsigned char &p1, const unsigned char &p2, const unsigned char &p3, const unsigned char &p4) |
| |
| | Vec4 (const unsigned char &p1, const unsigned char &p2, const unsigned char &p3, const unsigned char &p4) |
| |
| | Vec4 (const unsigned char &p1, const unsigned char &p2, const Vec2< unsigned char > ©34) |
| |
| | Vec4 (const unsigned char &p1, const unsigned char &p2, const Vec2< unsigned char > ©34) |
| |
| | Vec4 (const unsigned char &scalar) |
| |
| | Vec4 (const unsigned char &scalar) |
| |
| | Vec4 (const unsigned char *array_xyzw) |
| |
| | Vec4 (const unsigned char *array_xyzw) |
| |
| | Vec4 (const Vec2< unsigned char > ©, const unsigned char &p3, const unsigned char &p4) |
| |
| | Vec4 (const Vec2< unsigned char > ©, const unsigned char &p3, const unsigned char &p4) |
| |
| | Vec4 (const Vec2< unsigned char > ©, const Vec2< unsigned char > ©34) |
| |
| | Vec4 (const Vec2< unsigned char > ©, const Vec2< unsigned char > ©34) |
| |
| | Vec4 (const Vec3< unsigned char > ©, const unsigned char &p4) |
| |
| | Vec4 (const Vec3< unsigned char > ©, const unsigned char &p4) |
| |
| | Vec4 (const Vec4< OtherType > ©) |
| |
| | Vec4 (const Vec4< OtherType > ©) |
| |
| | Vec4 (const Vec4< OtherType > ©) |
| |
| | Vec4 (const Vec4< OtherType > ©) |
| |
| | Vec4 (const Vec4< unsigned char > ©)=default |
| |
| | Vec4 (const Vec4< unsigned char > ©)=default |
| |
| Angle | angle3 (const Vec4< unsigned char > &vector) const |
| | Calculate the angle between this vector and an other vector (not taking into account the w ordinate).
|
| |
| Angle | angle3 (const Vec4< unsigned char > &vector) const |
| | Calculate the angle between this vector and an other vector (not taking into account the w ordinate).
|
| |
| Vec4< unsigned char > & | cross3 (const Vec4< unsigned char > &vector) |
| | Calculate the cross product between this vector and an other vector (not taking into account the w ordinate).
|
| |
| Vec4< unsigned char > & | cross3 (const Vec4< unsigned char > &vector) |
| | Calculate the cross product between this vector and an other vector (not taking into account the w ordinate).
|
| |
| unsigned char | distance3 (const Vec4< unsigned char > &vector) const |
| | Calculate the distance between this vector and an other vector (not taking into account the w ordinate).
|
| |
| unsigned char | distance3 (const Vec4< unsigned char > &vector) const |
| | Calculate the distance between this vector and an other vector (not taking into account the w ordinate).
|
| |
| unsigned char | distance4 (const Vec4< unsigned char > &vector) const |
| | Calculate the distance between this vector and an other vector (taking into account the w ordinate).
|
| |
| unsigned char | distance4 (const Vec4< unsigned char > &vector) const |
| | Calculate the distance between this vector and an other vector (taking into account the w ordinate).
|
| |
| unsigned char | dot3 (const Vec4< unsigned char > &vector) const |
| | Dot products this vector with an other vector (not taking into account the w ordinate).
|
| |
| unsigned char | dot3 (const Vec4< unsigned char > &vector) const |
| | Dot products this vector with an other vector (not taking into account the w ordinate).
|
| |
| unsigned char | dot4 (const Vec4< unsigned char > &vector) const |
| | Dot products this vector with an other vector (taking into account the w ordinate).
|
| |
| unsigned char | dot4 (const Vec4< unsigned char > &vector) const |
| | Dot products this vector with an other vector (taking into account the w ordinate).
|
| |
| bool | is_equal (const Vec4< unsigned char > &other, unsigned char epsilon) const |
| | Returns true if equal within the bounds of an epsilon.
|
| |
| bool | is_equal (const Vec4< unsigned char > &other, unsigned char epsilon) const |
| | Returns true if equal within the bounds of an epsilon.
|
| |
| unsigned char | length3 () const |
| | Returns the length (magnitude) of this vector (not taking into account the w ordinate).
|
| |
| unsigned char | length3 () const |
| | Returns the length (magnitude) of this vector (not taking into account the w ordinate).
|
| |
| double | length3 () const |
| |
| double | length3 () const |
| |
| float | length3 () const |
| |
| float | length3 () const |
| |
| unsigned char | length4 () const |
| | Returns the length (magnitude) of this vector (taking into account the w ordinate).
|
| |
| unsigned char | length4 () const |
| | Returns the length (magnitude) of this vector (taking into account the w ordinate).
|
| |
| double | length4 () const |
| |
| double | length4 () const |
| |
| float | length4 () const |
| |
| float | length4 () const |
| |
| Vec4< unsigned char > & | normalize3 () |
| | Normalizes this vector (not taking into account the w ordinate)
|
| |
| Vec4< unsigned char > & | normalize3 () |
| | Normalizes this vector (not taking into account the w ordinate)
|
| |
| Vec4< unsigned char > & | normalize4 () |
| | Normalizes this vector (taking into account the w ordinate)
|
| |
| Vec4< unsigned char > & | normalize4 () |
| | Normalizes this vector (taking into account the w ordinate)
|
| |
| bool | operator!= (const Vec4< unsigned char > &vector) const |
| | != operator.
|
| |
| bool | operator!= (const Vec4< unsigned char > &vector) const |
| | != operator.
|
| |
| void | operator*= (const Vec4< unsigned char > &vector) |
| | *= operator.
|
| |
| void | operator*= (const Vec4< unsigned char > &vector) |
| | *= operator.
|
| |
| void | operator*= (unsigned char value) |
| | *= operator.
|
| |
| void | operator*= (unsigned char value) |
| | *= operator.
|
| |
| void | operator+= (const Vec4< unsigned char > &vector) |
| | += operator.
|
| |
| void | operator+= (const Vec4< unsigned char > &vector) |
| | += operator.
|
| |
| void | operator+= (unsigned char value) |
| | += operator.
|
| |
| void | operator+= (unsigned char value) |
| | += operator.
|
| |
| Vec4< unsigned char > | operator- () const |
| |
|
| |
| Vec4< unsigned char > | operator- () const |
| |
|
| |
| void | operator-= (const Vec4< unsigned char > &vector) |
| | -= operator.
|
| |
| void | operator-= (const Vec4< unsigned char > &vector) |
| | -= operator.
|
| |
| void | operator-= (unsigned char value) |
| | -= operator.
|
| |
| void | operator-= (unsigned char value) |
| | -= operator.
|
| |
| void | operator/= (const Vec4< unsigned char > &vector) |
| | /= operator.
|
| |
| void | operator/= (const Vec4< unsigned char > &vector) |
| | /= operator.
|
| |
| void | operator/= (unsigned char value) |
| | /= operator.
|
| |
| void | operator/= (unsigned char value) |
| | /= operator.
|
| |
| bool | operator< (const Vec4< unsigned char > &vector) const |
| | < operator.
|
| |
| bool | operator< (const Vec4< unsigned char > &vector) const |
| | < operator.
|
| |
| Vec4< unsigned char > & | operator= (const Vec4< unsigned char > &vector)=default |
| | = operator.
|
| |
| Vec4< unsigned char > & | operator= (const Vec4< unsigned char > &vector)=default |
| | = operator.
|
| |
| bool | operator== (const Vec4< unsigned char > &vector) const |
| | == operator.
|
| |
| bool | operator== (const Vec4< unsigned char > &vector) const |
| | == operator.
|
| |
| Vec4< unsigned char > & | rotate3 (const Angle &angle, const Vec4< unsigned char > &axis) |
| | Rotate this vector around an axis. Same as glRotate[f|d](angle, a);.
|
| |
| Vec4< unsigned char > & | rotate3 (const Angle &angle, const Vec4< unsigned char > &axis) |
| | Rotate this vector around an axis. Same as glRotate[f|d](angle, a);.
|
| |
| Vec4< unsigned char > & | round () |
| | Rounds all components on this vector.
|
| |
| Vec4< unsigned char > & | round () |
| | Rounds all components on this vector.
|
| |
| void | set_xy (const Vec2< unsigned char > &new_v) |
| |
| void | set_xy (const Vec2< unsigned char > &new_v) |
| |
| void | set_zw (const Vec2< unsigned char > &new_v) |
| |
| void | set_zw (const Vec2< unsigned char > &new_v) |
| |
|
| typedef unsigned char | datatype |
| |
| static Vec4< unsigned char > | cross3 (const Vec4< unsigned char > &vector1, const Vec4< unsigned char > &vector2) |
| | Calculate the cross product between two vectors (not taking into account the w ordinate).
|
| |
| static Vec4< unsigned char > | cross3 (const Vec4< unsigned char > &vector1, const Vec4< unsigned char > &vector2) |
| | Calculate the cross product between two vectors (not taking into account the w ordinate).
|
| |
| static unsigned char | dot3 (const Vec4< unsigned char > &vector1, const Vec4< unsigned char > &vector2) |
| | Dot products between two vectors (not taking into account the w ordinate).
|
| |
| static unsigned char | dot3 (const Vec4< unsigned char > &vector1, const Vec4< unsigned char > &vector2) |
| | Dot products between two vectors (not taking into account the w ordinate).
|
| |
| static unsigned char | dot4 (const Vec4< unsigned char > &vector1, const Vec4< unsigned char > &vector2) |
| | Dot products between two vectors (taking into account the w ordinate).
|
| |
| static unsigned char | dot4 (const Vec4< unsigned char > &vector1, const Vec4< unsigned char > &vector2) |
| | Dot products between two vectors (taking into account the w ordinate).
|
| |
| static bool | is_equal (const Vec4< unsigned char > &first, const Vec4< unsigned char > &second, unsigned char epsilon) |
| | Returns true if equal within the bounds of an epsilon.
|
| |
| static bool | is_equal (const Vec4< unsigned char > &first, const Vec4< unsigned char > &second, unsigned char epsilon) |
| | Returns true if equal within the bounds of an epsilon.
|
| |
| static Vec4< unsigned char > | normalize3 (const Vec4< unsigned char > &vector) |
| | Normalizes a vector (not taking into account the w ordinate)
|
| |
| static Vec4< unsigned char > | normalize3 (const Vec4< unsigned char > &vector) |
| | Normalizes a vector (not taking into account the w ordinate)
|
| |
| static Vec4< unsigned char > | normalize4 (const Vec4< unsigned char > &vector) |
| | Normalizes a vector (taking into account the w ordinate)
|
| |
| static Vec4< unsigned char > | normalize4 (const Vec4< unsigned char > &vector) |
| | Normalizes a vector (taking into account the w ordinate)
|
| |
| static Vec4< unsigned char > | rotate3 (const Vec4< unsigned char > &vector, const Angle &angle, const Vec4< unsigned char > &axis) |
| | Rotate a vector around an axis. Same as glRotate[f|d](angle, a);.
|
| |
| static Vec4< unsigned char > | rotate3 (const Vec4< unsigned char > &vector, const Angle &angle, const Vec4< unsigned char > &axis) |
| | Rotate a vector around an axis. Same as glRotate[f|d](angle, a);.
|
| |
| static Vec4< unsigned char > | round (const Vec4< unsigned char > &vector) |
| | Rounds all components on a vector.
|
| |
| static Vec4< unsigned char > | round (const Vec4< unsigned char > &vector) |
| | Rounds all components on a vector.
|
| |
| union { | |
| |
| Type b | |
| |
| Type u | |
| |
| Type z | |
| |
| }; | | |
| |
| union { | |
| |
| Type b | |
| |
| Type u | |
| |
| Type z | |
| |
| }; | | |
| |
| union { | |
| |
| Type a | |
| |
| Type v | |
| |
| Type w | |
| |
| }; | | |
| |
| union { | |
| |
| Type a | |
| |
| Type v | |
| |
| Type w | |
| |
| }; | | |
| |
| union { | |
| |
| Type g | |
| |
| Type t | |
| |
| Type y | |
| |
| }; | | |
| |
| union { | |
| |
| Type g | |
| |
| Type t | |
| |
| Type y | |
| |
| }; | | |
| |
| union { | |
| |
| Type r | |
| |
| Type s | |
| |
| Type x | |
| |
| }; | | |
| |
| union { | |
| |
| Type r | |
| |
| Type s | |
| |
| Type x | |
| |
| }; | | |
| |
| unsigned char | a |
| |
| unsigned char | a |
| |
| unsigned char | b |
| |
| unsigned char | b |
| |
| unsigned char | g |
| |
| unsigned char | g |
| |
| unsigned char | r |
| |
| unsigned char | r |
| |
| unsigned char | s |
| |
| unsigned char | s |
| |
| unsigned char | t |
| |
| unsigned char | t |
| |
| unsigned char | u |
| |
| unsigned char | u |
| |
| unsigned char | v |
| |
| unsigned char | v |
| |
| unsigned char | w |
| |
| unsigned char | w |
| |
| unsigned char | x |
| |
| unsigned char | x |
| |
| unsigned char | y |
| |
| unsigned char | y |
| |
| unsigned char | z |
| |
| unsigned char | z |
| |