ColTraitBase Struct Reference

Inheritance diagram for ColTraitBase:

ParticleTraits ColTraitGeneric ColTraitNone ColTraitParticle ColTraitSingle

List of all members.

Public Types

enum  { numFormats = GL_DOUBLE - GL_BYTE + 1 }
typedef void(OSG_APIENTRY * pumpFunc )(GLubyte *data)

Static Public Attributes

Drawing Pumps


static const int formatBase = GL_BYTE
static char * formatNames []
static pumpFunc ColorFuncs [numFormats][4]


Detailed Description

Color trait base, keep the static data needed for color handling

Definition at line 464 of file OSGParticles.cpp.


Member Typedef Documentation

typedef void(OSG_APIENTRY * ColTraitBase::pumpFunc)(GLubyte *data)


Member Enumeration Documentation

anonymous enum

Enumerator:
numFormats 

Definition at line 468 of file OSGParticles.cpp.

00468 { numFormats = GL_DOUBLE - GL_BYTE + 1 };


Member Data Documentation

const int ColTraitBase::formatBase = GL_BYTE [static]

The smallest enum for data types, used as a base for the formatNames map.

Definition at line 467 of file OSGParticles.cpp.

char * ColTraitBase::formatNames [static]

Initial value:

 
{   "GL_BYTE", "GL_UNSIGNED_BYTE", "GL_SHORT", "GL_UNSIGNED_SHORT", 
    "GL_INT", "GL_UNSIGNED_INT", "GL_FLOAT", "GL_2_BYTES", 
    "GL_3_BYTES", "GL_4_BYTES", "GL_DOUBLE"
}
A map from the OpenGL data type to the corresponding name

Definition at line 470 of file OSGParticles.cpp.

Initial value:

 {
    { NULL, NULL, 
      (pumpFunc)glColor3bv, (pumpFunc)glColor4bv },   
    { NULL, NULL, 
      (pumpFunc)glColor3ubv,(pumpFunc)glColor4ubv },  
    { NULL, NULL, 
      (pumpFunc)glColor3sv, (pumpFunc)glColor4sv },   
    { NULL, NULL,  
      (pumpFunc)glColor3usv,(pumpFunc)glColor4usv },  
    { NULL, NULL,  
      (pumpFunc)glColor3iv, (pumpFunc)glColor4iv },   
    { NULL, NULL,  
      (pumpFunc)glColor3uiv,(pumpFunc)glColor4uiv },  
    { NULL, NULL,  
      (pumpFunc)glColor3fv, (pumpFunc)glColor4fv },   
    { NULL, NULL, NULL, NULL },                       
    { NULL, NULL, NULL, NULL },                       
    { NULL, NULL, NULL, NULL },                       
    { NULL, NULL,  
      (pumpFunc)glColor3dv, (pumpFunc)glColor4dv },   
}
The pump functions for colors, indexed by data type and dimensionality

Definition at line 472 of file OSGParticles.cpp.


The documentation for this struct was generated from the following file:

Generated on Mon Mar 17 12:02:58 2008 for OpenSG by  doxygen 1.5.5