14#ifndef OSG_VIEWPORTINDEXED
15#define OSG_VIEWPORTINDEXED 1
#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
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
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Base class for state attributes.
Definition StateAttribute:77
@ VIEWPORTINDEXED
Definition StateAttribute:207
value_type & y()
Definition Viewport:107
double value_type
Definition Viewport:30
value_type & width()
Definition Viewport:110
value_type & height()
Definition Viewport:113
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition Viewport:52
value_type & x()
Definition Viewport:104
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition ViewportIndexed:41
virtual unsigned int getMember() const
Return the buffer index as the member identifier.
Definition ViewportIndexed:53
unsigned int getIndex() const
Get the index of the ViewportIndexed.
Definition ViewportIndexed:59
virtual void apply(State &state) const
apply the OpenGL state attributes.
ViewportIndexed(const ViewportIndexed &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition ViewportIndexed:34
virtual ~ViewportIndexed()
unsigned int _index
Definition ViewportIndexed:67
ViewportIndexed(unsigned int index, value_type x, value_type y, value_type width, value_type height)
Definition ViewportIndexed:29
void setIndex(unsigned int index)
Set the index of the ViewportIndexed.
META_StateAttribute(osg, ViewportIndexed, VIEWPORTINDEXED)
#define OSG_EXPORT
Definition Export:39