osg::PointSprite Class Reference

PointSprite base class which encapsulates enabling of point sprites . More...

Inheritance diagram for osg::PointSprite:

Inheritance graph
[legend]

List of all members.

Public Types

enum  CoordOriginMode { UPPER_LEFT = GL_UPPER_LEFT, LOWER_LEFT = GL_LOWER_LEFT }

Public Member Functions

 PointSprite ()
 PointSprite (const PointSprite &ps, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, PointSprite, POINTSPRITE)
virtual int compare (const StateAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual bool getModeUsage (StateAttribute::ModeUsage &usage) const
 Return the modes associated with this StateAttribute.
virtual bool checkValidityOfAssociatedModes (osg::State &) const
 Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid.
virtual bool isTextureAttribute () const
 Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit.
virtual void apply (osg::State &state) const
 apply the OpenGL state attributes.
void setCoordOriginMode (CoordOriginMode mode)
CoordOriginMode getCoordOriginMode () const

Static Public Member Functions

static bool isPointSpriteSupported (unsigned int context)

Protected Member Functions

virtual ~PointSprite ()

Protected Attributes

CoordOriginMode _coordOriginMode


Detailed Description

PointSprite base class which encapsulates enabling of point sprites .


Member Enumeration Documentation

enum osg::PointSprite::CoordOriginMode

Enumerator:
UPPER_LEFT 
LOWER_LEFT 


Constructor & Destructor Documentation

osg::PointSprite::PointSprite (  ) 

osg::PointSprite::PointSprite ( const PointSprite ps,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::PointSprite::~PointSprite (  )  [protected, virtual]


Member Function Documentation

osg::PointSprite::META_StateAttribute ( osg  ,
PointSprite  ,
POINTSPRITE   
)

virtual int osg::PointSprite::compare ( const StateAttribute sa  )  const [virtual]

return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

virtual bool osg::PointSprite::getModeUsage ( StateAttribute::ModeUsage  )  const [inline, virtual]

Return the modes associated with this StateAttribute.

Reimplemented from osg::StateAttribute.

virtual bool osg::PointSprite::checkValidityOfAssociatedModes ( osg::State  )  const [virtual]

Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid.

Return true if all associated modes are valid.

Reimplemented from osg::StateAttribute.

virtual bool osg::PointSprite::isTextureAttribute (  )  const [inline, virtual]

Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit.

Reimplemented from osg::StateAttribute.

virtual void osg::PointSprite::apply ( osg::State  )  const [virtual]

apply the OpenGL state attributes.

The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Reimplemented from osg::StateAttribute.

static bool osg::PointSprite::isPointSpriteSupported ( unsigned int  context  )  [static]

void osg::PointSprite::setCoordOriginMode ( CoordOriginMode  mode  )  [inline]

CoordOriginMode osg::PointSprite::getCoordOriginMode (  )  const [inline]


Member Data Documentation

CoordOriginMode osg::PointSprite::_coordOriginMode [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:13 2007 for the OpenSceneGraph by doxygen 1.5.3.