class osg::UByte4

General purpose float quad, uses include representation of colour coordinates.

Public Fields

[more]unsigned char _v[4]

Public Methods

[more] UByte4()
[more] UByte4(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
[more]inline bool operator == (const UByte4& v) const
[more]inline bool operator != (const UByte4& v) const
[more]inline bool operator < (const UByte4& v) const
[more]inline unsigned char* ptr()
[more]inline const unsigned char* ptr() const
[more]inline void set(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
[more]inline unsigned char& operator [] (unsigned int i)
[more]inline unsigned char operator [] (unsigned int i) const
[more]inline unsigned char& r()
[more]inline unsigned char& g()
[more]inline unsigned char& b()
[more]inline unsigned char& a()
[more]inline unsigned char r() const
[more]inline unsigned char g() const
[more]inline unsigned char b() const
[more]inline unsigned char a() const
[more]inline UByte4 operator * (float rhs) const
multiply by scalar
[more]inline UByte4& operator *= (float rhs)
unary multiply by scalar
[more]inline UByte4 operator / (float rhs) const
divide by scalar
[more]inline UByte4& operator /= (float rhs)
unary divide by scalar
[more]inline UByte4 operator + (const UByte4& rhs) const
binary vector add
[more]inline UByte4& operator += (const UByte4& rhs)
unary vector add.
[more]inline UByte4 operator - (const UByte4& rhs) const
binary vector subtract
[more]inline UByte4& operator -= (const UByte4& rhs)
unary vector subtract


Documentation

General purpose float quad, uses include representation of colour coordinates. No support yet added for float * UByte4 - is it necessary? Need to define a non-member non-friend operator* etc. UByte4 * float is okay
o UByte4()

o UByte4(unsigned char r, unsigned char g, unsigned char b, unsigned char a)

ounsigned char _v[4]

oinline bool operator == (const UByte4& v) const

oinline bool operator != (const UByte4& v) const

oinline bool operator < (const UByte4& v) const

oinline unsigned char* ptr()

oinline const unsigned char* ptr() const

oinline void set(unsigned char r, unsigned char g, unsigned char b, unsigned char a)

oinline unsigned char& operator [] (unsigned int i)

oinline unsigned char operator [] (unsigned int i) const

oinline unsigned char& r()

oinline unsigned char& g()

oinline unsigned char& b()

oinline unsigned char& a()

oinline unsigned char r() const

oinline unsigned char g() const

oinline unsigned char b() const

oinline unsigned char a() const

oinline UByte4 operator * (float rhs) const
multiply by scalar

oinline UByte4& operator *= (float rhs)
unary multiply by scalar

oinline UByte4 operator / (float rhs) const
divide by scalar

oinline UByte4& operator /= (float rhs)
unary divide by scalar

oinline UByte4 operator + (const UByte4& rhs) const
binary vector add

oinline UByte4& operator += (const UByte4& rhs)
unary vector add. Slightly more efficient because no temporary intermediate object

oinline UByte4 operator - (const UByte4& rhs) const
binary vector subtract

oinline UByte4& operator -= (const UByte4& rhs)
unary vector subtract


This class has no child classes.
Friends:
inline std::ostream& operator << (std::ostream& output, const UByte4& vec)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.