Files
OpenSceneGraph/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp
Robert Osfield c892fafa1c Updated wrappers
2006-10-24 09:45:50 +00:00

92 lines
3.8 KiB
C++

// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Drawable>
#include <osg/Geode>
#include <osg/Node>
#include <osg/State>
#include <osg/StateSet>
#include <osgUtil/GLObjectsVisitor>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
TYPE_NAME_ALIAS(unsigned int, osgUtil::GLObjectsVisitor::Mode);
BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues)
I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS);
I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_DISPLAY_LISTS);
I_EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS);
I_EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES);
I_EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_DISPLAY_LISTS);
I_EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_STATE_ATTRIBUTES);
I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS);
I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_VERTEX_BUFFER_OBJECTS);
I_EnumLabel(osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor)
I_BaseType(osg::NodeVisitor);
I_ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES,
____GLObjectsVisitor__Mode,
"Construct a GLObjectsVisitor to traverse all children, operating on node according to specified mode, such as to compile or release display list/texture objects etc. ",
"Default mode is to compile GL objects.");
I_Method0(void, reset,
__void__reset,
"Method to call to reset visitor. ",
"Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. ");
I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode,
__void__setMode__Mode,
"Set the operational mode of what operations to do on the scene graph. ",
"");
I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode,
__Mode__getMode,
"Get the operational mode. ",
"");
I_Method1(void, setState, IN, osg::State *, state,
__void__setState__osg_State_P1,
"Set the State to use during traversal. ",
"");
I_Method0(osg::State *, getState,
__osg_State_P1__getState,
"",
"");
I_Method1(void, apply, IN, osg::Node &, node,
__void__apply__osg_Node_R1,
"Simply traverse using standard NodeVisitor traverse method. ",
"");
I_Method1(void, apply, IN, osg::Geode &, node,
__void__apply__osg_Geode_R1,
"For each Geode visited set the display list usage according to the _displayListMode. ",
"");
I_Method1(void, apply, IN, osg::Drawable &, drawable,
__void__apply__osg_Drawable_R1,
"",
"");
I_Method1(void, apply, IN, osg::StateSet &, stateset,
__void__apply__osg_StateSet_R1,
"",
"");
I_SimpleProperty(osgUtil::GLObjectsVisitor::Mode, Mode,
__Mode__getMode,
__void__setMode__Mode);
I_SimpleProperty(osg::State *, State,
__osg_State_P1__getState,
__void__setState__osg_State_P1);
END_REFLECTOR