
Public Types | |
| typedef UInt8 | dataType |
Static Public Member Functions | |
| static void | init (Particles *, DrawActionBase *, dataType &) |
| static void | exit (Particles *, DrawActionBase *, dataType &) |
| static bool | particle (dataType &, UInt32) |
| static void | draw (dataType &, Pnt3f &p, Pnt3f &sp, Vec3f &dx, Vec3f &dy, Vec3f &, Vec3f &s) |
Definition at line 1913 of file OSGParticles.cpp.
| typedef UInt8 GeoTraitRectangle::dataType |
Definition at line 1915 of file OSGParticles.cpp.
| static void GeoTraitRectangle::init | ( | Particles * | , | |
| DrawActionBase * | , | |||
| dataType & | ||||
| ) | [inline, static] |
| static void GeoTraitRectangle::exit | ( | Particles * | , | |
| DrawActionBase * | , | |||
| dataType & | ||||
| ) | [inline, static] |
| static bool GeoTraitRectangle::particle | ( | dataType & | , | |
| UInt32 | ||||
| ) | [inline, static] |
| static void GeoTraitRectangle::draw | ( | dataType & | , | |
| Pnt3f & | p, | |||
| Pnt3f & | sp, | |||
| Vec3f & | dx, | |||
| Vec3f & | dy, | |||
| Vec3f & | , | |||
| Vec3f & | s | |||
| ) | [inline, static] |
Definition at line 1932 of file OSGParticles.cpp.
References osg::PointInterface< ValueTypeT, StorageInterfaceT >::getValues().
01935 { 01936 dx *= s[0] * .5f; 01937 01938 glNormal3fv((GLfloat*) dy.getValues() ); 01939 01940 glVertex3f( p[0] - dx[0], 01941 p[1] - dx[1], 01942 p[2] - dx[2]); 01943 01944 glVertex3f( p[0] + dx[0], 01945 p[1] + dx[1], 01946 p[2] + dx[2]); 01947 01948 glVertex3f(sp[0] + dx[0], 01949 sp[1] + dx[1], 01950 sp[2] + dx[2]); 01951 01952 glVertex3f(sp[0] - dx[0], 01953 sp[1] - dx[1], 01954 sp[2] - dx[2]); 01955 }
1.5.5