From 5d48a68cba2cf0cc40ad97e337bff07492723722 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Aug 2010 09:35:59 +0000 Subject: [PATCH] From Alexander Wiebel, "Documentation of PrimitiveSet" --- include/osg/PrimitiveSet | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/osg/PrimitiveSet b/include/osg/PrimitiveSet index a276bf9cc..39bbc5534 100644 --- a/include/osg/PrimitiveSet +++ b/include/osg/PrimitiveSet @@ -395,10 +395,16 @@ class OSG_EXPORT DrawElementsUByte : public DrawElements, public VectorGLubyte DrawElements(array,copyop), vector_type(array) {} + /** + * \param no Number of intended elements. This will be the size of the underlying vector. + */ DrawElementsUByte(GLenum mode, unsigned int no, const GLubyte* ptr, int numInstances=0) : DrawElements(DrawElementsUBytePrimitiveType,mode,numInstances), vector_type(ptr,ptr+no) {} + /** + * \param no Number of intended elements. This will be the size of the underlying vector. + */ DrawElementsUByte(GLenum mode, unsigned int no) : DrawElements(DrawElementsUBytePrimitiveType,mode), vector_type(no) {} @@ -470,10 +476,16 @@ class OSG_EXPORT DrawElementsUShort : public DrawElements, public VectorGLushort DrawElements(array,copyop), vector_type(array) {} + /** + * \param no Number of intended elements. This will be the size of the underlying vector. + */ DrawElementsUShort(GLenum mode, unsigned int no, const GLushort* ptr, int numInstances=0) : DrawElements(DrawElementsUShortPrimitiveType,mode,numInstances), vector_type(ptr,ptr+no) {} + /** + * \param no Number of intended elements. This will be the size of the underlying vector. + */ DrawElementsUShort(GLenum mode, unsigned int no) : DrawElements(DrawElementsUShortPrimitiveType,mode), vector_type(no) {} @@ -549,10 +561,17 @@ class OSG_EXPORT DrawElementsUInt : public DrawElements, public VectorGLuint DrawElements(array,copyop), vector_type(array) {} + /** + * \param mode One of osg::PrimitiveSet::Mode. Determines the type of primitives used. + * \param no Number of intended elements. This will be the size of the underlying vector. + */ DrawElementsUInt(GLenum mode, unsigned int no, const GLuint* ptr, int numInstances=0) : DrawElements(DrawElementsUIntPrimitiveType,mode,numInstances), vector_type(ptr,ptr+no) {} + /** + * \param no Number of intended elements. This will be the size of the underlying vector. + */ DrawElementsUInt(GLenum mode, unsigned int no) : DrawElements(DrawElementsUIntPrimitiveType,mode), vector_type(no) {}