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

UByte3 Class Reference

#include <ApiGraphics/ColorTypes.h>

List of all members.

Public Member Functions

 UByte3 (GLubyte x=0, GLubyte y=0, GLubyte z=0)
 UByte3 (const GLubyte *c)
 UByte3 (QRgb c)
 operator const GLubyte * () const
 operator GLubyte * ()
QRgb toQRgb () const
QString toQString () const
UByte3 operator+= (const UByte3 &a)
UByte3 operator-= (const UByte3 &a)
UByte3 operator *= (const UByte3 &a)
UByte3 operator/= (const UByte3 &a)
UByte3 operator *= (float s)
UByte3 operator/= (float s)
void reset (float r=0, float g=0, float b=0, float a=0)
void setGL () const
UInt3 toUInt3 () const

Static Public Attributes

static const int SIZE = 3
static const GLint TEX_FORMAT = 3
static const GLenum DATA_FORMAT = GL_RGB
static const GLenum DATA_TYPE = GL_UNSIGNED_BYTE

Friends

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


Constructor & Destructor Documentation

UByte3 GLubyte  x = 0,
GLubyte  y = 0,
GLubyte  z = 0
 

UByte3 const GLubyte *  c  ) 
 

UByte3 QRgb  c  ) 
 


Member Function Documentation

UByte3 operator *= float  s  ) 
 

UByte3 operator *= const UByte3 a  ) 
 

operator const GLubyte *  )  const [inline]
 

operator GLubyte *  )  [inline]
 

UByte3 operator+= const UByte3 a  ) 
 

UByte3 operator-= const UByte3 a  ) 
 

UByte3 operator/= float  s  ) 
 

UByte3 operator/= const UByte3 a  ) 
 

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

void setGL  )  const
 

QRgb toQRgb  )  const
 

QString toQString  )  const [inline]
 

UInt3 toUInt3  )  const
 


Friends And Related Function Documentation

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

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

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

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

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

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

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

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


Member Data Documentation

GLubyte b
 

GLubyte c[3]
 

const GLenum DATA_FORMAT = GL_RGB [static]
 

const GLenum DATA_TYPE = GL_UNSIGNED_BYTE [static]
 

GLubyte g
 

GLubyte r
 

const int SIZE = 3 [static]
 

const GLint TEX_FORMAT = 3 [static]
 

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