GeoTraitRectangle Struct Reference

Inheritance diagram for GeoTraitRectangle:

ParticleTraits

List of all members.

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)


Detailed Description

Definition at line 1913 of file OSGParticles.cpp.


Member Typedef Documentation

Definition at line 1915 of file OSGParticles.cpp.


Member Function Documentation

static void GeoTraitRectangle::init ( Particles ,
DrawActionBase ,
dataType  
) [inline, static]

Definition at line 1917 of file OSGParticles.cpp.

01918     {
01919         glBegin(GL_QUADS);
01920     }

static void GeoTraitRectangle::exit ( Particles ,
DrawActionBase ,
dataType  
) [inline, static]

Definition at line 1922 of file OSGParticles.cpp.

01923     {
01924         glEnd();
01925     }

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

Definition at line 1927 of file OSGParticles.cpp.

01928     {
01929         return false;
01930     }

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     }


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

Generated on Mon Mar 17 12:02:59 2008 for OpenSG by  doxygen 1.5.5