14#ifndef OSG_ScissorIndexed
15#define OSG_ScissorIndexed 1
29 ScissorIndexed(
unsigned int index,
float x,
float y,
float width,
float height):
43 _height(dp._height) {}
64 virtual unsigned int getMember()
const {
return _index; }
70 unsigned int getIndex()
const {
return _index; }
72 inline void setX(
float x) { _x=x; }
73 inline float getX()
const {
return _x; }
75 inline void setY(
float y) { _y=y; }
76 inline float getY()
const {
return _y; }
79 inline float getWidth()
const {
return _width; }
81 inline void setHeight(
float height) { _height=height; }
#define COMPARE_StateAttribute_Parameter(parameter)
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
Definition StateAttribute:57
Definition ScissorIndexed:24
void setX(float x)
Definition ScissorIndexed:72
unsigned int _index
Definition ScissorIndexed:90
ScissorIndexed(unsigned int index, float x, float y, float width, float height)
Definition ScissorIndexed:29
void setY(float y)
Definition ScissorIndexed:75
float getWidth() const
Definition ScissorIndexed:79
void setIndex(unsigned int index)
virtual int compare(const StateAttribute &sa) const
Definition ScissorIndexed:48
virtual unsigned int getMember() const
Definition ScissorIndexed:64
virtual void apply(State &state) const
float getX() const
Definition ScissorIndexed:73
float getY() const
Definition ScissorIndexed:76
float _width
Definition ScissorIndexed:93
ScissorIndexed(const ScissorIndexed &dp, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Definition ScissorIndexed:37
float _x
Definition ScissorIndexed:91
float getHeight() const
Definition ScissorIndexed:82
unsigned int getIndex() const
Definition ScissorIndexed:70
float _y
Definition ScissorIndexed:92
META_StateAttribute(osg, ScissorIndexed, SCISSORINDEXED)
void setWidth(float w)
Definition ScissorIndexed:78
virtual ~ScissorIndexed()
float _height
Definition ScissorIndexed:94
void setHeight(float height)
Definition ScissorIndexed:81
Definition StateAttribute:77
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSG_EXPORT
Definition osg/Export:39