14#ifndef OSG_POINTSPRITE
15#define OSG_POINTSPRITE 1
20#ifndef GL_ARB_point_sprite
21#define GL_POINT_SPRITE_ARB 0x8861
22#define GL_COORD_REPLACE_ARB 0x8862
25#ifndef GL_POINT_SPRITE_COORD_ORIGIN
26#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
27#define GL_LOWER_LEFT 0x8CA1
28#define GL_UPPER_LEFT 0x8CA2
#define GL_UPPER_LEFT
Definition GLDefines:129
#define GL_LOWER_LEFT
Definition GLDefines:128
#define GL_POINT_SPRITE_ARB
Definition PointSprite:21
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
CoordOriginMode getCoordOriginMode() const
Definition PointSprite:68
CoordOriginMode
Definition PointSprite:62
@ LOWER_LEFT
Definition PointSprite:64
@ UPPER_LEFT
Definition PointSprite:63
virtual void apply(osg::State &state) const
apply the OpenGL state attributes.
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition PointSprite:50
virtual bool checkValidityOfAssociatedModes(osg::State &) const
Check the modes associated with this StateAttribute are supported by current OpenGL drivers,...
PointSprite(const PointSprite &ps, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition PointSprite:40
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
void setCoordOriginMode(CoordOriginMode mode)
Definition PointSprite:67
META_StateAttribute(osg, PointSprite, POINTSPRITE)
CoordOriginMode _coordOriginMode
Definition PointSprite:73
virtual bool isTextureAttribute() const
Return true if StateAttribute is a type which controls texturing and needs to be issued w....
Definition PointSprite:58
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Base class for state attributes.
Definition StateAttribute:77
@ POINTSPRITE
Definition StateAttribute:163
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
#define OSG_EXPORT
Definition Export:39