TexTraitSingle Struct Reference

Inheritance diagram for TexTraitSingle:

ParticleTraits

List of all members.

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)

Classes

struct  dataType


Detailed Description

Definition at line 1001 of file OSGParticles.cpp.


Member Function Documentation

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

Definition at line 1009 of file OSGParticles.cpp.

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

01010     {
01011         data.z = (*(part->getMFTextureZs()))[0];
01012     }

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

Definition at line 1014 of file OSGParticles.cpp.

01015     {
01016         return false;
01017     }

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

Definition at line 1019 of file OSGParticles.cpp.

References TexTraitSingle::dataType::z.

01020     {
01021         glTexCoord1f(data.z);
01022     }

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

Definition at line 1024 of file OSGParticles.cpp.

References TexTraitSingle::dataType::z.

01026     {
01027         glTexCoord3f(u, v, data.z);
01028     }


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