OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osg::ClipControl Class Reference

Encapsulate OpenGL glClipControl functions. More...

Inheritance diagram for osg::ClipControl:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Origin { LOWER_LEFT = GL_LOWER_LEFT, UPPER_LEFT = GL_UPPER_LEFT }
enum  DepthMode { NEGATIVE_ONE_TO_ONE = GL_NEGATIVE_ONE_TO_ONE, ZERO_TO_ONE = GL_ZERO_TO_ONE }

Public Member Functions

 ClipControl (Origin origin=LOWER_LEFT, DepthMode depthMode=NEGATIVE_ONE_TO_ONE)
 ClipControl (const ClipControl &clipControl, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, ClipControl, CLIPCONTROL)
virtual int compare (const StateAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
void setOrigin (Origin origin)
Origin getOrigin () const
void setDepthMode (DepthMode depthMode)
DepthMode getDepthMode () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Member Functions

virtual ~ClipControl ()

Protected Attributes

Origin _origin
DepthMode _depthMode

Detailed Description

Encapsulate OpenGL glClipControl functions.


Member Enumeration Documentation

Enumerator:
NEGATIVE_ONE_TO_ONE 
ZERO_TO_ONE 
Enumerator:
LOWER_LEFT 
UPPER_LEFT 

Constructor & Destructor Documentation

osg::ClipControl::ClipControl ( const ClipControl clipControl,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

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

Member Function Documentation

virtual void osg::ClipControl::apply ( 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 int osg::ClipControl::compare ( const StateAttribute sa) const [inline, virtual]

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

Implements osg::StateAttribute.

References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.

Origin osg::ClipControl::getOrigin ( ) const [inline]
void osg::ClipControl::setOrigin ( Origin  origin) [inline]

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Dec 8 2015 00:14:23 for the OpenSceneGraph by doxygen 1.7.6.1.