Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::Color1uint8 Class Reference

Represents a Color1 as a packed integer. More...

#include <Color1uint8.h>

List of all members.

Public Member Functions

 Color1uint8 (class BinaryInput &bi)
 Color1uint8 (const class Color1 &c)
 Color1uint8 (const uint8 _v)
 Color1uint8 ()
void deserialize (class BinaryInput &bi)
bool operator!= (const Color1uint8 &other) const
bool operator== (const Color1uint8 &other) const
void serialize (class BinaryOutput &bo) const

Public Attributes

uint8 value


Detailed Description

Represents a Color1 as a packed integer.

Convenient for creating unsigned int vertex arrays.

WARNING: Integer color formats are different than integer vertex formats. The color channels are automatically scaled by 255 (because OpenGL automatically scales integer colors back by this factor). So Color3(1,1,1) == Color3uint8(255,255,255) but Vector3(1,1,1) == Vector3int16(1,1,1).


Constructor & Destructor Documentation

G3D::Color1uint8::Color1uint8 (  )  [inline]

G3D::Color1uint8::Color1uint8 ( const uint8  _v  )  [inline, explicit]

G3D::Color1uint8::Color1uint8 ( const class Color1 c  ) 

G3D::Color1uint8::Color1uint8 ( class BinaryInput bi  ) 


Member Function Documentation

void G3D::Color1uint8::deserialize ( class BinaryInput bi  ) 

bool G3D::Color1uint8::operator!= ( const Color1uint8 other  )  const [inline]

bool G3D::Color1uint8::operator== ( const Color1uint8 other  )  const [inline]

void G3D::Color1uint8::serialize ( class BinaryOutput bo  )  const


Member Data Documentation


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo