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 |
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] |
virtual bool osg::PointSprite::getModeUsage | ( | StateAttribute::ModeUsage & | ) | const [inline, virtual] |
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] |