TexTraitSingle Struct Reference

Inheritance diagram for TexTraitSingle:
ParticleTraits

List of all members.

Classes

struct  dataType

Static Public Member Functions

static void init (Particles *part, DrawActionBase *, dataType &data)
static bool particle (dataType &, UInt32)
static void vertex (dataType &data)
static void vertex (dataType &data, UInt32, Real32 u, Real32 v)

Detailed Description

Definition at line 1035 of file OSGParticles.cpp.


Member Function Documentation

static void TexTraitSingle::init ( Particles part,
DrawActionBase ,
dataType data 
) [inline, static]

Definition at line 1043 of file OSGParticles.cpp.

References osg::ParticlesBase::getMFTextureZs(), and TexTraitSingle::dataType::z.

01044     {
01045         data.z = (*(part->getMFTextureZs()))[0];
01046     }

static bool TexTraitSingle::particle ( dataType ,
UInt32   
) [inline, static]

Definition at line 1048 of file OSGParticles.cpp.

01049     {
01050         return false;
01051     }

static void TexTraitSingle::vertex ( dataType data  )  [inline, static]

Definition at line 1053 of file OSGParticles.cpp.

References TexTraitSingle::dataType::z.

01054     {
01055         glTexCoord1f(data.z);
01056     }

static void TexTraitSingle::vertex ( dataType data,
UInt32  ,
Real32  u,
Real32  v 
) [inline, static]

Definition at line 1058 of file OSGParticles.cpp.

References TexTraitSingle::dataType::z.

01060     {
01061         glTexCoord3f(u, v, data.z);
01062     }


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

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1