Updated wrappers

This commit is contained in:
Robert Osfield
2008-06-19 20:42:10 +00:00
parent 2011028ee7
commit 96a80666c9
5 changed files with 88 additions and 2404 deletions

View File

@@ -90,22 +90,6 @@ end
# Doxygen fails to detect that std::vector<T> is a base class for
# osg::Vector*, so we need to specify that manually
configure reflector "osg::VectorGLsizei"
add base "std::vector<GLsizei>"
end
configure reflector "osg::VectorGLubyte"
add base "std::vector<GLubyte>"
end
configure reflector "osg::VectorGLushort"
add base "std::vector<GLushort>"
end
configure reflector "osg::VectorGLuint"
add base "std::vector<GLuint>"
end
configure reflector "osgText::VectorUInt"
add base "std::vector<unsigned int>"
end
@@ -113,99 +97,45 @@ end
#############################################################################
# Doxygen fails to detect that std::vector<T> is a base class for
# TemplateArray<> and TemplateIndexArray<> templates, so we need
# to specify that manually
# Doxygen/genwrapper is not coping with the new MixinVector so disable associated wrappers
configure reflector /osg::TemplateIndexArray< GLbyte.*/
add base "std::vector<GLbyte>"
end
configure reflector /osg::TemplateIndexArray< GLubyte.*/
add base "std::vector<GLubyte>"
end
configure reflector /osg::TemplateIndexArray< GLshort.*/
add base "std::vector<GLshort>"
end
configure reflector /osg::TemplateIndexArray< GLushort.*/
add base "std::vector<GLushort>"
end
configure reflector /osg::TemplateIndexArray< GLint.*/
add base "std::vector<GLint>"
end
configure reflector /osg::TemplateIndexArray< GLuint.*/
add base "std::vector<GLuint>"
end
configure reflector /osg::TemplateArray< GLfloat.*/
add base "std::vector<GLfloat>"
end
suppress reflector /osg::TemplateIndexArray< GLbyte.*/
suppress reflector /osg::TemplateIndexArray< GLubyte.*/
suppress reflector /osg::TemplateIndexArray< GLshort.*/
suppress reflector /osg::TemplateIndexArray< GLushort.*/
suppress reflector /osg::TemplateIndexArray< GLint.*/
suppress reflector /osg::TemplateIndexArray< GLuint.*/
suppress reflector /osg::TemplateArray< GLfloat.*/
suppress reflector /osg::TemplateArray< GLdouble.*/
suppress reflector /osg::TemplateArray< osg::Vec2\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec3\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec4\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec2d\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec3d\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec4d\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec2b\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec3b\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec4b\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec2s\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec3s\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec4s\s*\,.*/
suppress reflector /osg::TemplateArray< osg::Vec4ub\s*\,.*/
configure reflector /osg::TemplateArray< osg::Vec2\s*\,.*/
add base "std::vector<osg::Vec2>"
end
suppress reflector "osg::DrawArrayLengths"
suppress reflector "osg::DrawElementsUByte"
suppress reflector "osg::DrawElementsUShort"
suppress reflector "osg::DrawElementsUInt"
configure reflector /osg::TemplateArray< osg::Vec3\s*\,.*/
add base "std::vector<osg::Vec3>"
end
suppress reflector "osg::VectorGLsizei"
suppress reflector "osg::VectorGLubyte"
suppress reflector "osg::VectorGLushort"
suppress reflector "osg::VectorGLuint"
configure reflector /osg::TemplateArray< osg::Vec4\s*\,.*/
add base "std::vector<osg::Vec4>"
end
configure reflector /osg::TemplateArray< osg::Vec2b\s*\,.*/
add base "std::vector<osg::Vec2b>"
end
configure reflector /osg::TemplateArray< osg::Vec3b\s*\,.*/
add base "std::vector<osg::Vec3b>"
end
configure reflector /osg::TemplateArray< osg::Vec4b\s*\,.*/
add base "std::vector<osg::Vec4b>"
end
configure reflector /osg::TemplateArray< osg::Vec2s\s*\,.*/
add base "std::vector<osg::Vec2s>"
end
configure reflector /osg::TemplateArray< osg::Vec3s\s*\,.*/
add base "std::vector<osg::Vec3s>"
end
configure reflector /osg::TemplateArray< osg::Vec4s\s*\,.*/
add base "std::vector<osg::Vec4s>"
end
configure reflector /osg::TemplateArray< osg::Vec4ub\s*\,.*/
add base "std::vector<osg::Vec4ub>"
end
configure file "osg/Array"
emit after "
STD_VECTOR_REFLECTOR(std::vector<osg::Vec2>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec3>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec4>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec2b>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec3b>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec4b>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec2s>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec3s>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec4s>)
STD_VECTOR_REFLECTOR(std::vector<osg::Vec4ub>)
STD_VECTOR_REFLECTOR(std::vector<GLubyte>)
STD_VECTOR_REFLECTOR(std::vector<GLbyte>)
STD_VECTOR_REFLECTOR(std::vector<GLushort>)
STD_VECTOR_REFLECTOR(std::vector<GLshort>)
STD_VECTOR_REFLECTOR(std::vector<GLuint>)
STD_VECTOR_REFLECTOR(std::vector<GLint>)
"
end
suppress reflector "osg::MixinVector< GLsizei >"
suppress reflector "osg::MixinVector< GLubyte >"
suppress reflector "osg::MixinVector< GLushort >"
suppress reflector "osg::MixinVector< GLuint >"
#############################################################################

File diff suppressed because it is too large Load Diff

View File

@@ -32,106 +32,6 @@
TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type)
BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(osg::PrimitiveSet);
I_BaseType(osg::VectorGLsizei);
I_ConstructorWithDefaults1(IN, GLenum, mode, 0,
Properties::NON_EXPLICIT,
____DrawArrayLengths__GLenum,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::DrawArrayLengths &, dal, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____DrawArrayLengths__C5_DrawArrayLengths_R1__C5_CopyOp_R1,
"",
"");
I_Constructor4(IN, GLenum, mode, IN, GLint, first, IN, unsigned int, no, IN, GLsizei *, ptr,
____DrawArrayLengths__GLenum__GLint__unsigned_int__GLsizei_P1,
"",
"");
I_Constructor3(IN, GLenum, mode, IN, GLint, first, IN, unsigned int, no,
____DrawArrayLengths__GLenum__GLint__unsigned_int,
"",
"");
I_Constructor2(IN, GLenum, mode, IN, GLint, first,
____DrawArrayLengths__GLenum__GLint,
"",
"");
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__Object_P1__cloneType,
"Clone the type of an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
Properties::VIRTUAL,
__Object_P1__clone__C5_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::VIRTUAL,
__C5_char_P1__libraryName,
"return the name of the object's library. ",
"Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(void, setFirst, IN, GLint, first,
Properties::NON_VIRTUAL,
__void__setFirst__GLint,
"",
"");
I_Method0(GLint, getFirst,
Properties::NON_VIRTUAL,
__GLint__getFirst,
"",
"");
I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects,
Properties::VIRTUAL,
__void__draw__State_R1__bool,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveFunctor_R1,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveIndexFunctor_R1,
"",
"");
I_Method0(unsigned int, getNumIndices,
Properties::VIRTUAL,
__unsigned_int__getNumIndices,
"",
"");
I_Method1(unsigned int, index, IN, unsigned int, pos,
Properties::VIRTUAL,
__unsigned_int__index__unsigned_int,
"",
"");
I_Method1(void, offsetIndices, IN, int, offset,
Properties::VIRTUAL,
__void__offsetIndices__int,
"",
"");
I_Method0(unsigned int, getNumPrimitives,
Properties::VIRTUAL,
__unsigned_int__getNumPrimitives,
"",
"");
I_SimpleProperty(GLint, First,
__GLint__getFirst,
__void__setFirst__GLint);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::DrawArrays)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(osg::PrimitiveSet);
@@ -310,322 +210,10 @@ END_REFLECTOR
TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type)
BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(osg::DrawElements);
I_BaseType(osg::VectorGLubyte);
I_ConstructorWithDefaults1(IN, GLenum, mode, 0,
Properties::NON_EXPLICIT,
____DrawElementsUByte__GLenum,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::DrawElementsUByte &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____DrawElementsUByte__C5_DrawElementsUByte_R1__C5_CopyOp_R1,
"",
"");
I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, const GLubyte *, ptr,
____DrawElementsUByte__GLenum__unsigned_int__C5_GLubyte_P1,
"",
"");
I_Constructor2(IN, GLenum, mode, IN, unsigned int, no,
____DrawElementsUByte__GLenum__unsigned_int,
"",
"");
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__Object_P1__cloneType,
"Clone the type of an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
Properties::VIRTUAL,
__Object_P1__clone__C5_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::VIRTUAL,
__C5_char_P1__libraryName,
"return the name of the object's library. ",
"Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method0(const GLvoid *, getDataPointer,
Properties::VIRTUAL,
__C5_GLvoid_P1__getDataPointer,
"",
"");
I_Method0(unsigned int, getTotalDataSize,
Properties::VIRTUAL,
__unsigned_int__getTotalDataSize,
"",
"");
I_Method0(bool, supportsBufferObject,
Properties::VIRTUAL,
__bool__supportsBufferObject,
"",
"");
I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects,
Properties::VIRTUAL,
__void__draw__State_R1__bool,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveFunctor_R1,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveIndexFunctor_R1,
"",
"");
I_Method0(unsigned int, getNumIndices,
Properties::VIRTUAL,
__unsigned_int__getNumIndices,
"",
"");
I_Method1(unsigned int, index, IN, unsigned int, pos,
Properties::VIRTUAL,
__unsigned_int__index__unsigned_int,
"",
"");
I_Method1(void, offsetIndices, IN, int, offset,
Properties::VIRTUAL,
__void__offsetIndices__int,
"",
"");
I_Method0(void, computeRange,
Properties::VIRTUAL,
__void__computeRange,
"",
"");
I_SimpleProperty(const GLvoid *, DataPointer,
__C5_GLvoid_P1__getDataPointer,
0);
I_SimpleProperty(unsigned int, TotalDataSize,
__unsigned_int__getTotalDataSize,
0);
END_REFLECTOR
TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type)
BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(osg::DrawElements);
I_BaseType(osg::VectorGLuint);
I_ConstructorWithDefaults1(IN, GLenum, mode, 0,
Properties::NON_EXPLICIT,
____DrawElementsUInt__GLenum,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::DrawElementsUInt &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____DrawElementsUInt__C5_DrawElementsUInt_R1__C5_CopyOp_R1,
"",
"");
I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, const GLuint *, ptr,
____DrawElementsUInt__GLenum__unsigned_int__C5_GLuint_P1,
"",
"");
I_Constructor2(IN, GLenum, mode, IN, unsigned int, no,
____DrawElementsUInt__GLenum__unsigned_int,
"",
"");
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__Object_P1__cloneType,
"Clone the type of an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
Properties::VIRTUAL,
__Object_P1__clone__C5_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::VIRTUAL,
__C5_char_P1__libraryName,
"return the name of the object's library. ",
"Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method0(const GLvoid *, getDataPointer,
Properties::VIRTUAL,
__C5_GLvoid_P1__getDataPointer,
"",
"");
I_Method0(unsigned int, getTotalDataSize,
Properties::VIRTUAL,
__unsigned_int__getTotalDataSize,
"",
"");
I_Method0(bool, supportsBufferObject,
Properties::VIRTUAL,
__bool__supportsBufferObject,
"",
"");
I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects,
Properties::VIRTUAL,
__void__draw__State_R1__bool,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveFunctor_R1,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveIndexFunctor_R1,
"",
"");
I_Method0(unsigned int, getNumIndices,
Properties::VIRTUAL,
__unsigned_int__getNumIndices,
"",
"");
I_Method1(unsigned int, index, IN, unsigned int, pos,
Properties::VIRTUAL,
__unsigned_int__index__unsigned_int,
"",
"");
I_Method1(void, offsetIndices, IN, int, offset,
Properties::VIRTUAL,
__void__offsetIndices__int,
"",
"");
I_Method0(void, computeRange,
Properties::VIRTUAL,
__void__computeRange,
"",
"");
I_SimpleProperty(const GLvoid *, DataPointer,
__C5_GLvoid_P1__getDataPointer,
0);
I_SimpleProperty(unsigned int, TotalDataSize,
__unsigned_int__getTotalDataSize,
0);
END_REFLECTOR
TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type)
BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(osg::DrawElements);
I_BaseType(osg::VectorGLushort);
I_ConstructorWithDefaults1(IN, GLenum, mode, 0,
Properties::NON_EXPLICIT,
____DrawElementsUShort__GLenum,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::DrawElementsUShort &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____DrawElementsUShort__C5_DrawElementsUShort_R1__C5_CopyOp_R1,
"",
"");
I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, const GLushort *, ptr,
____DrawElementsUShort__GLenum__unsigned_int__C5_GLushort_P1,
"",
"");
I_Constructor2(IN, GLenum, mode, IN, unsigned int, no,
____DrawElementsUShort__GLenum__unsigned_int,
"",
"");
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__Object_P1__cloneType,
"Clone the type of an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
Properties::VIRTUAL,
__Object_P1__clone__C5_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::VIRTUAL,
__C5_char_P1__libraryName,
"return the name of the object's library. ",
"Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method0(const GLvoid *, getDataPointer,
Properties::VIRTUAL,
__C5_GLvoid_P1__getDataPointer,
"",
"");
I_Method0(unsigned int, getTotalDataSize,
Properties::VIRTUAL,
__unsigned_int__getTotalDataSize,
"",
"");
I_Method0(bool, supportsBufferObject,
Properties::VIRTUAL,
__bool__supportsBufferObject,
"",
"");
I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects,
Properties::VIRTUAL,
__void__draw__State_R1__bool,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveFunctor_R1,
"",
"");
I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor,
Properties::VIRTUAL,
__void__accept__PrimitiveIndexFunctor_R1,
"",
"");
I_Method0(unsigned int, getNumIndices,
Properties::VIRTUAL,
__unsigned_int__getNumIndices,
"",
"");
I_Method1(unsigned int, index, IN, unsigned int, pos,
Properties::VIRTUAL,
__unsigned_int__index__unsigned_int,
"",
"");
I_Method1(void, offsetIndices, IN, int, offset,
Properties::VIRTUAL,
__void__offsetIndices__int,
"",
"");
I_Method0(void, computeRange,
Properties::VIRTUAL,
__void__computeRange,
"",
"");
I_SimpleProperty(const GLvoid *, DataPointer,
__C5_GLvoid_P1__getDataPointer,
0);
I_SimpleProperty(unsigned int, TotalDataSize,
__unsigned_int__getTotalDataSize,
0);
END_REFLECTOR
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor)
I_DeclaringFile("osg/PrimitiveSet");
I_Constructor0(____PrimitiveFunctor,
@@ -970,91 +558,3 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet)
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::VectorGLsizei)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(std::vector<GLsizei>);
I_Constructor0(____VectorGLsizei,
"",
"");
I_Constructor1(IN, const osg::VectorGLsizei &, copy,
Properties::NON_EXPLICIT,
____VectorGLsizei__C5_VectorGLsizei_R1,
"",
"");
I_Constructor2(IN, GLsizei *, beg, IN, GLsizei *, end,
____VectorGLsizei__GLsizei_P1__GLsizei_P1,
"",
"");
I_Constructor1(IN, unsigned int, n,
Properties::EXPLICIT,
____VectorGLsizei__unsigned_int,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::VectorGLubyte)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(std::vector<GLubyte>);
I_Constructor0(____VectorGLubyte,
"",
"");
I_Constructor1(IN, const osg::VectorGLubyte &, copy,
Properties::NON_EXPLICIT,
____VectorGLubyte__C5_VectorGLubyte_R1,
"",
"");
I_Constructor2(IN, const GLubyte *, beg, IN, const GLubyte *, end,
____VectorGLubyte__C5_GLubyte_P1__C5_GLubyte_P1,
"",
"");
I_Constructor1(IN, unsigned int, n,
Properties::EXPLICIT,
____VectorGLubyte__unsigned_int,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(std::vector<GLuint>);
I_Constructor0(____VectorGLuint,
"",
"");
I_Constructor1(IN, const osg::VectorGLuint &, copy,
Properties::NON_EXPLICIT,
____VectorGLuint__C5_VectorGLuint_R1,
"",
"");
I_Constructor2(IN, const GLuint *, beg, IN, const GLuint *, end,
____VectorGLuint__C5_GLuint_P1__C5_GLuint_P1,
"",
"");
I_Constructor1(IN, unsigned int, n,
Properties::EXPLICIT,
____VectorGLuint__unsigned_int,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort)
I_DeclaringFile("osg/PrimitiveSet");
I_BaseType(std::vector<GLushort>);
I_Constructor0(____VectorGLushort,
"",
"");
I_Constructor1(IN, const osg::VectorGLushort &, copy,
Properties::NON_EXPLICIT,
____VectorGLushort__C5_VectorGLushort_R1,
"",
"");
I_Constructor2(IN, const GLushort *, beg, IN, const GLushort *, end,
____VectorGLushort__C5_GLushort_P1__C5_GLushort_P1,
"",
"");
I_Constructor1(IN, unsigned int, n,
Properties::EXPLICIT,
____VectorGLushort__unsigned_int,
"",
"");
END_REFLECTOR

View File

@@ -28,6 +28,12 @@
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osgShadow::ParallelSplitShadowMap::SplitCalcMode)
I_DeclaringFile("osgShadow/ParallelSplitShadowMap");
I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_LINEAR);
I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_EXP);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap)
I_DeclaringFile("osgShadow/ParallelSplitShadowMap");
I_BaseType(osgShadow::ShadowTechnique);
@@ -119,11 +125,6 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap)
__void__setMinNearDistanceForSplits__double,
"Set min near distance for splits. ",
"");
I_Method1(void, useLinearSplit, IN, bool, flag,
Properties::NON_VIRTUAL,
__void__useLinearSplit__bool,
"use linear split (default: linear) ",
"");
I_Method1(void, setUserLight, IN, osg::Light *, light,
Properties::NON_VIRTUAL,
__void__setUserLight__osg_Light_P1,
@@ -134,15 +135,27 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap)
__void__setAmbientBias__C5_osg_Vec2_R1,
"Set the values for the ambient bias the shader will use. ",
"");
I_ProtectedMethod2(std::string, generateGLSL_FragmentShader_BaseTex, IN, bool, debug, IN, unsigned int, splitCount,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__std_string__generateGLSL_FragmentShader_BaseTex__bool__unsigned_int,
"",
"");
I_Method1(void, setFragmentShaderGenerator, IN, osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, fsw,
Properties::NON_VIRTUAL,
__void__setFragmentShaderGenerator__FragmentShaderGenerator_P1,
"set fragment shader generator ",
"");
I_MethodWithDefaults1(void, enableShadowGLSLFiltering, IN, bool, filtering, true,
Properties::NON_VIRTUAL,
__void__enableShadowGLSLFiltering__bool,
"enable / disable shadow filtering ",
"");
I_MethodWithDefaults1(void, setSplitCalculationMode, IN, osgShadow::ParallelSplitShadowMap::SplitCalcMode, scm, osgShadow::ParallelSplitShadowMap::SPLIT_EXP,
Properties::NON_VIRTUAL,
__void__setSplitCalculationMode__SplitCalcMode,
"set split calculation mode ",
"");
I_SimpleProperty(const osg::Vec2 &, AmbientBias,
0,
__void__setAmbientBias__C5_osg_Vec2_R1);
I_SimpleProperty(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, FragmentShaderGenerator,
0,
__void__setFragmentShaderGenerator__FragmentShaderGenerator_P1);
I_SimpleProperty(double, MaxFarDistance,
0,
__void__setMaxFarDistance__double);
@@ -155,6 +168,9 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap)
I_SimpleProperty(const osg::Vec2f &, PolygonOffset,
__C5_osg_Vec2f_R1__getPolygonOffset,
__void__setPolygonOffset__C5_osg_Vec2f_R1);
I_SimpleProperty(osgShadow::ParallelSplitShadowMap::SplitCalcMode, SplitCalculationMode,
0,
__void__setSplitCalculationMode__SplitCalcMode);
I_SimpleProperty(unsigned int, TextureResolution,
0,
__void__setTextureResolution__unsigned_int);
@@ -163,3 +179,16 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap)
__void__setUserLight__osg_Light_P1);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator)
I_DeclaringFile("osgShadow/ParallelSplitShadowMap");
I_BaseType(osg::Referenced);
I_Constructor0(____FragmentShaderGenerator,
"",
"");
I_Method6(std::string, generateGLSL_FragmentShader_BaseTex, IN, bool, debug, IN, unsigned int, splitCount, IN, double, textureRes, IN, bool, filtered, IN, unsigned int, nbrSplits, IN, unsigned int, textureOffset,
Properties::VIRTUAL,
__std_string__generateGLSL_FragmentShader_BaseTex__bool__unsigned_int__double__bool__unsigned_int__unsigned_int,
"generate the GLSL fragement shader ",
"");
END_REFLECTOR

View File

@@ -761,12 +761,24 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView)
__bool__getStats__Statistics_R1,
"Extract stats for current draw list. ",
"");
I_ProtectedMethod5(bool, cullStage, IN, const osg::Matrixd &, projection, IN, const osg::Matrixd &, modelview, IN, osgUtil::CullVisitor *, cullVisitor, IN, osgUtil::StateGraph *, rendergraph, IN, osgUtil::RenderStage *, renderStage,
I_ProtectedMethod6(bool, cullStage, IN, const osg::Matrixd &, projection, IN, const osg::Matrixd &, modelview, IN, osgUtil::CullVisitor *, cullVisitor, IN, osgUtil::StateGraph *, rendergraph, IN, osgUtil::RenderStage *, renderStage, IN, osg::Viewport *, viewport,
Properties::VIRTUAL,
Properties::NON_CONST,
__bool__cullStage__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__osgUtil_CullVisitor_P1__osgUtil_StateGraph_P1__osgUtil_RenderStage_P1,
__bool__cullStage__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__osgUtil_CullVisitor_P1__osgUtil_StateGraph_P1__osgUtil_RenderStage_P1__osg_Viewport_P1,
"Do cull traversal of attached scene graph using Cull NodeVisitor. ",
"Return true if computeNearFar has been done during the cull traversal. ");
I_ProtectedMethod1(void, computeLeftEyeViewport, IN, const osg::Viewport *, viewport,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__computeLeftEyeViewport__C5_osg_Viewport_P1,
"",
"");
I_ProtectedMethod1(void, computeRightEyeViewport, IN, const osg::Viewport *, viewport,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__computeRightEyeViewport__C5_osg_Viewport_P1,
"",
"");
I_ProtectedMethod0(const osg::Matrix, computeMVPW,
Properties::NON_VIRTUAL,
Properties::CONST,