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) | |
META_StateAttribute (osg, PointSprite, POINTSPRITE) | |
virtual int | compare (const StateAttribute &sa) const |
virtual bool | getModeUsage (StateAttribute::ModeUsage &usage) const |
virtual bool | checkValidityOfAssociatedModes (osg::State &) const |
virtual bool | isTextureAttribute () const |
virtual void | apply (osg::State &state) const |
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 |
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] |
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.
References GL_POINT_SPRITE_ARB, and osg::StateAttribute::ModeUsage::usesMode().
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] |
CoordOriginMode osg::PointSprite::_coordOriginMode [protected] |