Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

UByte4 Class Reference

#include <ApiGraphics/ColorTypes.h>

List of all members.

Public Member Functions

 UByte4 (GLubyte x=0, GLubyte y=0, GLubyte z=0, GLubyte w=255)
 UByte4 (const GLubyte *c)
 UByte4 (QRgb c)
 operator const GLubyte * () const
 operator GLubyte * ()
QRgb toQRgb () const
QString toQString () const
UByte4 operator+= (const UByte4 &a)
UByte4 operator-= (const UByte4 &a)
UByte4 operator *= (const UByte4 &a)
UByte4 operator/= (const UByte4 &a)
UByte4 operator *= (float s)
UByte4 operator/= (float s)
void reset (float r=0, float g=0, float b=0, float a=0)
void setAlpha (float a)
void setGL () const
UInt4 toUInt4 () const

Static Public Attributes

static const int SIZE = 4
static const GLint TEX_FORMAT = 4
static const GLenum DATA_FORMAT = GL_RGBA
static const GLenum DATA_TYPE = GL_UNSIGNED_BYTE

Friends

UByte4 operator+ (const UByte4 &a, const UByte4 &b)
UByte4 operator- (const UByte4 &a, const UByte4 &b)
UByte4 operator * (const UByte4 &a, const UByte4 &b)
UByte4 operator/ (const UByte4 &a, const UByte4 &b)
UByte4 operator * (float s, const UByte4 &a)
UByte4 operator * (const UByte4 &a, float s)
UByte4 operator/ (float s, const UByte4 &a)
UByte4 operator/ (const UByte4 &a, float s)


Constructor & Destructor Documentation

UByte4 GLubyte  x = 0,
GLubyte  y = 0,
GLubyte  z = 0,
GLubyte  w = 255
 

UByte4 const GLubyte *  c  ) 
 

UByte4 QRgb  c  ) 
 


Member Function Documentation

UByte4 operator *= float  s  ) 
 

UByte4 operator *= const UByte4 a  ) 
 

operator const GLubyte *  )  const [inline]
 

operator GLubyte *  )  [inline]
 

UByte4 operator+= const UByte4 a  ) 
 

UByte4 operator-= const UByte4 a  ) 
 

UByte4 operator/= float  s  ) 
 

UByte4 operator/= const UByte4 a  ) 
 

void reset float  r = 0,
float  g = 0,
float  b = 0,
float  a = 0
 

void setAlpha float  a  ) 
 

void setGL  )  const
 

QRgb toQRgb  )  const
 

QString toQString  )  const [inline]
 

UInt4 toUInt4  )  const
 


Friends And Related Function Documentation

UByte4 operator * const UByte4 a,
float  s
[friend]
 

UByte4 operator * float  s,
const UByte4 a
[friend]
 

UByte4 operator * const UByte4 a,
const UByte4 b
[friend]
 

UByte4 operator+ const UByte4 a,
const UByte4 b
[friend]
 

UByte4 operator- const UByte4 a,
const UByte4 b
[friend]
 

UByte4 operator/ const UByte4 a,
float  s
[friend]
 

UByte4 operator/ float  s,
const UByte4 a
[friend]
 

UByte4 operator/ const UByte4 a,
const UByte4 b
[friend]
 


Member Data Documentation

GLubyte a
 

GLubyte b
 

GLubyte c[4]
 

const GLenum DATA_FORMAT = GL_RGBA [static]
 

const GLenum DATA_TYPE = GL_UNSIGNED_BYTE [static]
 

GLubyte g
 

GLubyte r
 

const int SIZE = 4 [static]
 

const GLint TEX_FORMAT = 4 [static]
 

GLubyte w
 

GLubyte x
 

GLubyte y
 

GLubyte z
 


The documentation for this class was generated from the following files:
Generated on Thu Nov 13 22:15:46 2008 for Api Graphics by  doxygen 1.4.4