Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ColTraitNone Struct Reference

Inheritance diagram for ColTraitNone:

ColTraitBase ParticleTraits List of all members.

Public Types

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

Static Public Member Functions

static void init (Particles *, DrawActionBase *, dataType &)
static bool particle (dataType &, UInt32)
static void vertex (dataType &, UInt32, UInt32)

Static Public Attributes

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

Detailed Description

Definition at line 495 of file OSGParticles.cpp.


Member Typedef Documentation

typedef UInt8 ColTraitNone::dataType
 

Definition at line 497 of file OSGParticles.cpp.

typedef void(OSG_APIENTRY * ColTraitBase::pumpFunc)(GLubyte *data) [inherited]
 

Definition at line 449 of file OSGParticles.cpp.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
numFormats 

Definition at line 451 of file OSGParticles.cpp.

00451 { numFormats = GL_DOUBLE - GL_BYTE + 1 };


Member Function Documentation

static void ColTraitNone::init Particles ,
DrawActionBase ,
dataType
[inline, static]
 

Definition at line 499 of file OSGParticles.cpp.

00500     {
00501     }

static bool ColTraitNone::particle dataType ,
UInt32 
[inline, static]
 

Definition at line 503 of file OSGParticles.cpp.

00504     {
00505         return false;
00506     }

static void ColTraitNone::vertex dataType ,
UInt32  ,
UInt32 
[inline, static]
 

Definition at line 508 of file OSGParticles.cpp.

00509     {
00510     }


Member Data Documentation

const int ColTraitBase::formatBase = GL_BYTE [static, inherited]
 

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

Definition at line 460 of file OSGParticles.cpp.

char * ColTraitBase::formatNames [static, inherited]
 

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 464 of file OSGParticles.cpp.

ColTraitBase::pumpFunc ColTraitBase::ColorFuncs [static, inherited]
 

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 473 of file OSGParticles.cpp.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 25 04:12:25 2005 for OpenSG by  doxygen 1.4.3