OpenSceneGraph 2.8.4
|
PointSprite base class which encapsulates enabling of point sprites . More...
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 ©op=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 |
PointSprite base class which encapsulates enabling of point sprites .
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] |
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.
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 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.
CoordOriginMode osg::PointSprite::getCoordOriginMode | ( | ) | const [inline] |
virtual bool osg::PointSprite::getModeUsage | ( | StateAttribute::ModeUsage & | ) | const [inline, virtual] |
Return the modes associated with this StateAttribute.
Reimplemented from osg::StateAttribute.
References GL_POINT_SPRITE_ARB, and osg::StateAttribute::ModeUsage::usesMode().
static bool osg::PointSprite::isPointSpriteSupported | ( | unsigned int | context | ) | [static] |
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.
osg::PointSprite::META_StateAttribute | ( | osg | , |
PointSprite | , | ||
POINTSPRITE | |||
) |
void osg::PointSprite::setCoordOriginMode | ( | CoordOriginMode | mode | ) | [inline] |
CoordOriginMode osg::PointSprite::_coordOriginMode [protected] |
![]() | Generated at Sun Jan 8 2012 13:16:16 for the OpenSceneGraph by doxygen 1.7.4. |