Support Forum       G3D Web Page     
Public Types | Public Member Functions | Static Public Member Functions | List of all members
G3D::PrimitiveType Class Reference

These are defined to have the same value as the equivalent OpenGL constant. More...

Public Types

enum  Value {
  POINTS = 0x0000,
  LINES = 0x0001,
  LINE_STRIP = 0x0003,
  TRIANGLES = 0x0004,
  TRIANGLE_STRIP = 0x0005,
  TRIANGLE_FAN = 0x0006,
  QUADS = 0x0007,
  QUAD_STRIP = 0x0008,
  PATCHES = 0x000E
}
 

Public Member Functions

 PrimitiveType (const G3D::String &x)
 
 PrimitiveType (char v)
 
 PrimitiveType (int v)
 
 PrimitiveType (const G3D::Any &a)
 
 PrimitiveType ()
 
 PrimitiveType (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
 operator int () const
 
bool operator!= (const PrimitiveType ::Value other) const
 
bool operator!= (const PrimitiveType other) const
 
PrimitiveType operator+ (const int x) const
 
PrimitiveTypeoperator++ ()
 
PrimitiveTypeoperator+= (const int x)
 
PrimitiveType operator- (const int x) const
 
PrimitiveTypeoperator-- ()
 
PrimitiveTypeoperator-= (const int x)
 
bool operator< (const PrimitiveType other) const
 
bool operator< (const Value other) const
 
bool operator<= (const Value other) const
 
bool operator<= (const PrimitiveType other) const
 
PrimitiveTypeoperator= (const G3D::Any &a)
 
bool operator== (const PrimitiveType ::Value other) const
 
bool operator== (const PrimitiveType other) const
 
bool operator> (const PrimitiveType other) const
 
bool operator> (const Value other) const
 
bool operator>= (const PrimitiveType other) const
 
bool operator>= (const Value other) const
 
void serialize (G3D::BinaryOutput &b) const
 
G3D::Any toAny () const
 
const char * toString () const
 

Static Public Member Functions

static const char * classname ()
 
static int count ()
 
static Value nthValue (int n)
 

Detailed Description

These are defined to have the same value as the equivalent OpenGL constant.

Member Enumeration Documentation

◆ Value

Enumerator
POINTS 
LINES 
LINE_STRIP 
TRIANGLES 
TRIANGLE_STRIP 
TRIANGLE_FAN 
QUADS 
QUAD_STRIP 
PATCHES 

Constructor & Destructor Documentation

◆ PrimitiveType() [1/6]

G3D::PrimitiveType::PrimitiveType ( const G3D::String x)
inlineexplicit

◆ PrimitiveType() [2/6]

G3D::PrimitiveType::PrimitiveType ( const G3D::Any a)
inlineexplicit

◆ PrimitiveType() [3/6]

G3D::PrimitiveType::PrimitiveType ( char  v)
inlineexplicit

◆ PrimitiveType() [4/6]

G3D::PrimitiveType::PrimitiveType ( )
inline

◆ PrimitiveType() [5/6]

G3D::PrimitiveType::PrimitiveType ( const Value  v)
inline

◆ PrimitiveType() [6/6]

G3D::PrimitiveType::PrimitiveType ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

static const char* G3D::PrimitiveType::classname ( )
inlinestatic

◆ count()

static int G3D::PrimitiveType::count ( )
inlinestatic

◆ deserialize()

void G3D::PrimitiveType::deserialize ( G3D::BinaryInput b)
inline

◆ hashCode()

unsigned int G3D::PrimitiveType::hashCode ( ) const
inline

◆ nthValue()

static Value G3D::PrimitiveType::nthValue ( int  n)
inlinestatic

◆ operator int()

G3D::PrimitiveType::operator int ( ) const
inline

◆ operator!=() [1/2]

bool G3D::PrimitiveType::operator!= ( const PrimitiveType  other) const
inline

◆ operator!=() [2/2]

bool G3D::PrimitiveType::operator!= ( const PrimitiveType ::Value  other) const
inline

◆ operator+()

PrimitiveType G3D::PrimitiveType::operator+ ( const int  x) const
inline

◆ operator++()

PrimitiveType& G3D::PrimitiveType::operator++ ( )
inline

◆ operator+=()

PrimitiveType& G3D::PrimitiveType::operator+= ( const int  x)
inline

◆ operator-()

PrimitiveType G3D::PrimitiveType::operator- ( const int  x) const
inline

◆ operator--()

PrimitiveType& G3D::PrimitiveType::operator-- ( )
inline

◆ operator-=()

PrimitiveType& G3D::PrimitiveType::operator-= ( const int  x)
inline

◆ operator<() [1/2]

bool G3D::PrimitiveType::operator< ( const Value  other) const
inline

◆ operator<() [2/2]

bool G3D::PrimitiveType::operator< ( const PrimitiveType  other) const
inline

◆ operator<=() [1/2]

bool G3D::PrimitiveType::operator<= ( const Value  other) const
inline

◆ operator<=() [2/2]

bool G3D::PrimitiveType::operator<= ( const PrimitiveType  other) const
inline

◆ operator=()

PrimitiveType& G3D::PrimitiveType::operator= ( const G3D::Any a)
inline

◆ operator==() [1/2]

bool G3D::PrimitiveType::operator== ( const PrimitiveType  other) const
inline

◆ operator==() [2/2]

bool G3D::PrimitiveType::operator== ( const PrimitiveType ::Value  other) const
inline

◆ operator>() [1/2]

bool G3D::PrimitiveType::operator> ( const Value  other) const
inline

◆ operator>() [2/2]

bool G3D::PrimitiveType::operator> ( const PrimitiveType  other) const
inline

◆ operator>=() [1/2]

bool G3D::PrimitiveType::operator>= ( const PrimitiveType  other) const
inline

◆ operator>=() [2/2]

bool G3D::PrimitiveType::operator>= ( const Value  other) const
inline

◆ serialize()

void G3D::PrimitiveType::serialize ( G3D::BinaryOutput b) const
inline

◆ toAny()

G3D::Any G3D::PrimitiveType::toAny ( ) const
inline

◆ toString()

const char* G3D::PrimitiveType::toString ( ) const
inline

documentation generated on Wed Nov 24 2021 08:01:59 using doxygen 1.8.15