TexTraitParticle Struct Reference

Inheritance diagram for TexTraitParticle:

ParticleTraits

List of all members.

Static Public Member Functions

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

Classes

struct  dataType


Detailed Description

Definition at line 969 of file OSGParticles.cpp.


Member Function Documentation

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

Definition at line 978 of file OSGParticles.cpp.

References osg::ParticlesBase::getMFTextureZs(), and TexTraitParticle::dataType::texzs.

00979     {
00980         data.texzs = part->getMFTextureZs();
00981     }

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

Definition at line 983 of file OSGParticles.cpp.

References TexTraitParticle::dataType::texzs, and TexTraitParticle::dataType::z.

00984     {       
00985         data.z = (*(data.texzs))[particle];
00986         return false;
00987     }

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

Definition at line 989 of file OSGParticles.cpp.

References TexTraitParticle::dataType::z.

00990     {
00991         glTexCoord1f(data.z);
00992     }

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

Definition at line 994 of file OSGParticles.cpp.

References TexTraitParticle::dataType::z.

00996     {
00997         glTexCoord3f(u, v, data.z);
00998     }


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

Generated on Mon Mar 17 12:03:00 2008 for OpenSG by  doxygen 1.5.5