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

@@ -27,30 +27,103 @@
BEGIN_OBJECT_REFLECTOR(osg::Viewport)
I_BaseType(osg::StateAttribute);
I_Constructor0();
I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height);
I_ConstructorWithDefaults2(IN, const osg::Viewport &, vp, , 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_Method1(int, compare, IN, const osg::StateAttribute &, sa);
I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height);
I_Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height);
I_Method0(int &, x);
I_Method0(int, x);
I_Method0(int &, y);
I_Method0(int, y);
I_Method0(int &, width);
I_Method0(int, width);
I_Method0(int &, height);
I_Method0(int, height);
I_Method0(bool, valid);
I_Method0(float, aspectRatio);
I_Method0(const osg::Matrix, computeWindowMatrix);
I_Method1(void, apply, IN, osg::State &, state);
I_ReadOnlyProperty(osg::StateAttribute::Type, Type);
I_Constructor0(____Viewport,
"",
"");
I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height,
____Viewport__int__int__int__int,
"",
"");
I_ConstructorWithDefaults2(IN, const osg::Viewport &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____Viewport__C5_Viewport_R1__C5_CopyOp_R1,
"Copy constructor using CopyOp to manage deep vs shallow copy. ",
"");
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_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_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height,
__void__setViewport__int__int__int__int,
"",
"");
I_Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height,
__void__getViewport__int_R1__int_R1__int_R1__int_R1,
"",
"");
I_Method0(int &, x,
__int_R1__x,
"",
"");
I_Method0(int, x,
__int__x,
"",
"");
I_Method0(int &, y,
__int_R1__y,
"",
"");
I_Method0(int, y,
__int__y,
"",
"");
I_Method0(int &, width,
__int_R1__width,
"",
"");
I_Method0(int, width,
__int__width,
"",
"");
I_Method0(int &, height,
__int_R1__height,
"",
"");
I_Method0(int, height,
__int__height,
"",
"");
I_Method0(bool, valid,
__bool__valid,
"",
"");
I_Method0(float, aspectRatio,
__float__aspectRatio,
"Return the aspectRatio of the viewport, which is equal to width/height. ",
"If height is zero, the potental division by zero is avoided by simply returning 1.0f.");
I_Method0(const osg::Matrix, computeWindowMatrix,
__C5_osg_Matrix__computeWindowMatrix,
"Compute the Window Matrix which takes projected coords into Window coordinates. ",
"To convert local coordinates into window coordinates use v_window = v_local * MVPW matrix, where the MVPW matrix is ModelViewMatrix * ProjectionMatrix * WindowMatrix, the latter supplied by Viewport::computeWindowMatrix(), the ModelView and Projection Matrix can either be sourced from the current osg::State object, via osgUtil::SceneView or CullVisitor.");
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_SimpleProperty(osg::StateAttribute::Type, Type,
__Type__getType,
0);
END_REFLECTOR