Added extra constructors
This commit is contained in:
@@ -24,6 +24,10 @@ class OSG_EXPORT LineStipple : public StateAttribute
|
||||
|
||||
LineStipple();
|
||||
|
||||
LineStipple(GLint factor, GLushort pattern):
|
||||
_factor(factor),
|
||||
_pattern(pattern) {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
||||
LineStipple(const LineStipple& lw,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
|
||||
StateAttribute(lw,copyop),
|
||||
|
||||
@@ -26,6 +26,8 @@ class OSG_EXPORT Point : public StateAttribute
|
||||
|
||||
Point();
|
||||
|
||||
Point(float size);
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
||||
Point(const Point& point,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
|
||||
StateAttribute(point,copyop),
|
||||
|
||||
@@ -26,6 +26,8 @@ class OSG_EXPORT PolygonStipple : public StateAttribute
|
||||
|
||||
PolygonStipple();
|
||||
|
||||
PolygonStipple(const GLubyte* mask);
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
||||
PolygonStipple(const PolygonStipple& lw,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user