Updated wrappers

This commit is contained in:
Robert Osfield
2006-10-24 09:45:50 +00:00
parent 85dc696c09
commit c892fafa1c
266 changed files with 37808 additions and 9935 deletions

View File

@@ -58,8 +58,14 @@ TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenerateMipmapEXT);
BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions)
I_BaseType(osg::Referenced);
I_Method0(bool, isSupported);
I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized);
I_Method0(bool, isSupported,
__bool__isSupported,
"",
"");
I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized,
__FBOExtensions_P1__instance__unsigned__bool_S,
"",
"");
I_PublicMemberProperty(osg::FBOExtensions::TglBindRenderbufferEXT *, glBindRenderbufferEXT);
I_PublicMemberProperty(osg::FBOExtensions::TglGenRenderbuffersEXT *, glGenRenderbuffersEXT);
I_PublicMemberProperty(osg::FBOExtensions::TglDeleteRenderbuffersEXT *, glDeleteRenderbuffersEXT);
@@ -76,69 +82,220 @@ BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions)
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment)
I_Constructor0();
I_Constructor1(IN, const osg::FrameBufferAttachment &, copy);
I_Constructor1(IN, osg::RenderBuffer *, target);
I_ConstructorWithDefaults2(IN, osg::Texture1D *, target, , IN, int, level, 0);
I_ConstructorWithDefaults2(IN, osg::Texture2D *, target, , IN, int, level, 0);
I_ConstructorWithDefaults3(IN, osg::Texture3D *, target, , IN, int, zoffset, , IN, int, level, 0);
I_ConstructorWithDefaults3(IN, osg::TextureCubeMap *, target, , IN, int, face, , IN, int, level, 0);
I_Constructor1(IN, osg::TextureRectangle *, target);
I_Constructor1(IN, osg::CameraNode::Attachment &, attachment);
I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext);
I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext);
I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa);
I_Constructor0(____FrameBufferAttachment,
"",
"");
I_Constructor1(IN, const osg::FrameBufferAttachment &, copy,
____FrameBufferAttachment__C5_FrameBufferAttachment_R1,
"",
"");
I_Constructor1(IN, osg::RenderBuffer *, target,
____FrameBufferAttachment__RenderBuffer_P1,
"",
"");
I_ConstructorWithDefaults2(IN, osg::Texture1D *, target, , IN, int, level, 0,
____FrameBufferAttachment__Texture1D_P1__int,
"",
"");
I_ConstructorWithDefaults2(IN, osg::Texture2D *, target, , IN, int, level, 0,
____FrameBufferAttachment__Texture2D_P1__int,
"",
"");
I_ConstructorWithDefaults3(IN, osg::Texture3D *, target, , IN, int, zoffset, , IN, int, level, 0,
____FrameBufferAttachment__Texture3D_P1__int__int,
"",
"");
I_ConstructorWithDefaults3(IN, osg::TextureCubeMap *, target, , IN, int, face, , IN, int, level, 0,
____FrameBufferAttachment__TextureCubeMap_P1__int__int,
"",
"");
I_Constructor1(IN, osg::TextureRectangle *, target,
____FrameBufferAttachment__TextureRectangle_P1,
"",
"");
I_Constructor1(IN, osg::CameraNode::Attachment &, attachment,
____FrameBufferAttachment__CameraNode_Attachment_R1,
"",
"");
I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext,
__void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1,
"",
"");
I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext,
__void__attach__State_R1__GLenum__C5_FBOExtensions_P1,
"",
"");
I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa,
__int__compare__C5_FrameBufferAttachment_R1,
"",
"");
END_REFLECTOR
TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap);
BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject)
I_BaseType(osg::StateAttribute);
I_Constructor0();
I_ConstructorWithDefaults2(IN, const osg::FrameBufferObject &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
I_Method0(osg::Object *, cloneType);
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
I_Method0(const char *, libraryName);
I_Method0(const char *, className);
I_Method0(osg::StateAttribute::Type, getType);
I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap);
I_Method1(bool, hasAttachment, IN, GLenum, attachment_point);
I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point);
I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment);
I_Method1(int, compare, IN, const osg::StateAttribute &, sa);
I_Method1(void, apply, IN, osg::State &, state);
I_StaticMethod2(void, deleteFrameBufferObject, IN, unsigned int, contextID, IN, GLuint, program);
I_StaticMethod3(void, flushDeletedFrameBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime);
I_IndexedProperty1(const osg::FrameBufferAttachment &, Attachment, GLenum, attachment_point);
I_ReadOnlyProperty(const osg::FrameBufferObject::AttachmentMap &, AttachmentMap);
I_ReadOnlyProperty(osg::StateAttribute::Type, Type);
I_Constructor0(____FrameBufferObject,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::FrameBufferObject &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____FrameBufferObject__C5_FrameBufferObject_R1__C5_CopyOp_R1,
"",
"");
I_Method0(osg::Object *, cloneType,
__osg_Object_P1__cloneType,
"Clone the type of an attribute, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
__osg_Object_P1__clone__C5_osg_CopyOp_R1,
"Clone an attribute, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
__bool__isSameKindAs__C5_osg_Object_P1,
"Return true if this and obj are of the same kind of object. ",
"");
I_Method0(const char *, libraryName,
__C5_char_P1__libraryName,
"Return the name of the attribute's library. ",
"");
I_Method0(const char *, className,
__C5_char_P1__className,
"Return the name of the attribute's class type. ",
"");
I_Method0(osg::StateAttribute::Type, getType,
__Type__getType,
"Return the Type identifier of the attribute's class type. ",
"");
I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap,
__C5_AttachmentMap_R1__getAttachmentMap,
"",
"");
I_Method1(bool, hasAttachment, IN, GLenum, attachment_point,
__bool__hasAttachment__GLenum,
"",
"");
I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point,
__C5_FrameBufferAttachment_R1__getAttachment__GLenum,
"",
"");
I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment,
__void__setAttachment__GLenum__C5_FrameBufferAttachment_R1,
"",
"");
I_Method1(int, compare, IN, const osg::StateAttribute &, sa,
__int__compare__C5_StateAttribute_R1,
"Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ",
"");
I_Method1(void, apply, IN, osg::State &, state,
__void__apply__State_R1,
"apply the OpenGL state attributes. ",
"The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.");
I_StaticMethod2(void, deleteFrameBufferObject, IN, unsigned int, contextID, IN, GLuint, program,
__void__deleteFrameBufferObject__unsigned_int__GLuint_S,
"Mark internal FBO for deletion. ",
"Deletion requests are queued until they can be executed in the proper GL context. ");
I_StaticMethod3(void, flushDeletedFrameBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime,
__void__flushDeletedFrameBufferObjects__unsigned_int__double__double_R1_S,
"flush all the cached FBOs which need to be deleted in the OpenGL context related to contextID. ",
"");
I_IndexedProperty(const osg::FrameBufferAttachment &, Attachment,
__C5_FrameBufferAttachment_R1__getAttachment__GLenum,
__void__setAttachment__GLenum__C5_FrameBufferAttachment_R1,
0);
I_SimpleProperty(const osg::FrameBufferObject::AttachmentMap &, AttachmentMap,
__C5_AttachmentMap_R1__getAttachmentMap,
0);
I_SimpleProperty(osg::StateAttribute::Type, Type,
__Type__getType,
0);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer)
I_BaseType(osg::Object);
I_Constructor0();
I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat);
I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
I_Method0(osg::Object *, cloneType);
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
I_Method0(const char *, libraryName);
I_Method0(const char *, className);
I_Method0(int, getWidth);
I_Method0(int, getHeight);
I_Method1(void, setWidth, IN, int, w);
I_Method1(void, setHeight, IN, int, h);
I_Method2(void, setSize, IN, int, w, IN, int, h);
I_Method0(GLenum, getInternalFormat);
I_Method1(void, setInternalFormat, IN, GLenum, format);
I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext);
I_Method1(int, compare, IN, const osg::RenderBuffer &, rb);
I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb);
I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime);
I_Property(int, Height);
I_Property(GLenum, InternalFormat);
I_Property(int, Width);
I_Constructor0(____RenderBuffer,
"",
"");
I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat,
____RenderBuffer__int__int__GLenum,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1,
"",
"");
I_Method0(osg::Object *, cloneType,
__osg_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,
__osg_Object_P1__clone__C5_osg_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
__bool__isSameKindAs__C5_osg_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
__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,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method0(int, getWidth,
__int__getWidth,
"",
"");
I_Method0(int, getHeight,
__int__getHeight,
"",
"");
I_Method1(void, setWidth, IN, int, w,
__void__setWidth__int,
"",
"");
I_Method1(void, setHeight, IN, int, h,
__void__setHeight__int,
"",
"");
I_Method2(void, setSize, IN, int, w, IN, int, h,
__void__setSize__int__int,
"",
"");
I_Method0(GLenum, getInternalFormat,
__GLenum__getInternalFormat,
"",
"");
I_Method1(void, setInternalFormat, IN, GLenum, format,
__void__setInternalFormat__GLenum,
"",
"");
I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext,
__GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1,
"",
"");
I_Method1(int, compare, IN, const osg::RenderBuffer &, rb,
__int__compare__C5_RenderBuffer_R1,
"",
"");
I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb,
__void__deleteRenderBuffer__unsigned_int__GLuint_S,
"Mark internal RenderBuffer for deletion. ",
"Deletion requests are queued until they can be executed in the proper GL context. ");
I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime,
__void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S,
"flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ",
"");
I_SimpleProperty(int, Height,
__int__getHeight,
__void__setHeight__int);
I_SimpleProperty(GLenum, InternalFormat,
__GLenum__getInternalFormat,
__void__setInternalFormat__GLenum);
I_SimpleProperty(int, Width,
__int__getWidth,
__void__setWidth__int);
END_REFLECTOR
STD_MAP_REFLECTOR(std::map< GLenum COMMA osg::FrameBufferAttachment >);