Unigine.bvec4 Struct
This class represents a vector of 4 byte (unsigned char) components. This vector is used for vertex color parameters.
bvec4 Class
Members
bvec4 ( ) #
Default constructor. Produces a zero vector.bvec4 ( const bvec4 & v ) #
Constructor. Initializes the vector by copying a given source vector.Arguments
- const bvec4 & v - Source vector.
bvec4 ( unsigned char x, unsigned char y, unsigned char z, unsigned char w ) #
Constructor. Initializes the vector using given unsigned char values.Arguments
- unsigned char x - X component of the vector.
- unsigned char y - Y component of the vector.
- unsigned char z - Z component of the vector.
- unsigned char w - W component of the vector.
bvec4 ( const vec4 & v, float scale ) #
Constructor. Initializes the vector using a given vec4 source vector and a scale multiplier.Arguments
- const vec4 & v - Source vector.
- float scale - Scale.
explicit bvec4 ( unsigned char v ) #
Constructor. Initializes the vector using a given scalar value: x=v, y=v, z=v, w=v.Arguments
- unsigned char v - Scalar.
explicit bvec4 ( const vec4 & v ) #
Constructor. Initializes the vector using a given vec4 source vector.Arguments
- const vec4 & v - Source vector.
explicit bvec4 ( const dvec4 & v ) #
Constructor. Initializes the vector using a given dvec4 source vector.Arguments
- const dvec4 & v - Source vector.
explicit bvec4 ( const ivec4 & v ) #
Constructor. Initializes the vector using a given ivec4 source vector.Arguments
- const ivec4 & v - Source vector.
explicit bvec4 ( const unsigned char * v ) #
Constructor. Initializes the vector using a given pointer to the array of unsigned char elements: x=v[0], y=v[1], z=v[2], w=v[3].Arguments
- const unsigned char * v - Pointer to the array of unsigned char elements.
unsigned char & Operator[] ( int i ) #
Performs array access to the vector item reference by using given item index.Arguments
- int i - Vector item index.
Return value
Vector item reference.unsigned char Operator[] ( int i ) #
Performs array access to the vector item by using given item index.Arguments
- int i - Vector item index.
Return value
Vector item.Last update:
2020-05-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)