Added glSissor suppor via new osg::Scissor class.

Added .osg support for osg::Scissor.
Added .ive support for osg::Viewport and osg::Scissor.
This commit is contained in:
Robert Osfield
2005-07-22 09:31:19 +00:00
parent 37b4df3f71
commit 47651d3c8d
18 changed files with 439 additions and 0 deletions

View File

@@ -74,9 +74,16 @@ class OSG_EXPORT Viewport : public StateAttribute
height = _height;
}
inline int& x() { return _x; }
inline int x() const { return _x; }
inline int& y() { return _y; }
inline int y() const { return _y; }
inline int& width() { return _width; }
inline int width() const { return _width; }
inline int& height() { return _height; }
inline int height() const { return _height; }
inline bool valid() const { return _width!=0 && _height!=0; }