
Static Public Member Functions | |
| static void | init (Particles *, DrawActionBase *, dataType &data, GeoPositionsPtr &pos) |
| static bool | particle (dataType &data, UInt32 particle) |
| static Pnt3f & | position (dataType &data) |
| static void | vertex (dataType &data, UInt32, Vec4f &dir, Real32 s) |
| static void | vertex (dataType &data) |
Classes | |
| struct | dataType |
Definition at line 746 of file OSGParticles.cpp.
| static void PosTrait3f::init | ( | Particles * | , | |
| DrawActionBase * | , | |||
| dataType & | data, | |||
| GeoPositionsPtr & | pos | |||
| ) | [inline, static] |
Definition at line 755 of file OSGParticles.cpp.
References osg::FCPtr< BasePtrTypeT, FieldContainerTypeT >::dcast(), and PosTrait3f::dataType::pos.
00757 { 00758 GeoPositions3fPtr pos3f = GeoPositions3fPtr::dcast(pos); 00759 00760 data.pos = pos3f->getFieldPtr(); 00761 }
| static bool PosTrait3f::particle | ( | dataType & | data, | |
| UInt32 | particle | |||
| ) | [inline, static] |
Definition at line 763 of file OSGParticles.cpp.
References PosTrait3f::dataType::p, and PosTrait3f::dataType::pos.
00764 { 00765 data.p = & (*(data.pos))[particle]; 00766 return false; 00767 }
Definition at line 774 of file OSGParticles.cpp.
References PosTrait3f::dataType::p.
00775 { 00776 glVertex3f( (*data.p)[0] + dir[0] * s, 00777 (*data.p)[1] + dir[1] * s, 00778 (*data.p)[2] + dir[2] * s); 00779 }
| static void PosTrait3f::vertex | ( | dataType & | data | ) | [inline, static] |
1.5.5