Updated wrappers.
This commit is contained in:
@@ -51,6 +51,7 @@ BEGIN_ENUM_REFLECTOR(osg::CameraNode::RenderTargetImplementation)
|
||||
I_EnumLabel(osg::CameraNode::FRAME_BUFFER_OBJECT);
|
||||
I_EnumLabel(osg::CameraNode::PIXEL_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::FRAME_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::SEPERATE_WINDOW);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osg::CameraNode::BufferComponent)
|
||||
|
||||
@@ -84,6 +84,7 @@ CXXFILES =\
|
||||
Quat.cpp\
|
||||
RefNodePath.cpp\
|
||||
Referenced.cpp\
|
||||
Scissor.cpp\
|
||||
Sequence.cpp\
|
||||
ShadeModel.cpp\
|
||||
Shader.cpp\
|
||||
|
||||
49
src/osgWrappers/osg/GraphicsContext.cpp
Normal file
49
src/osgWrappers/osg/GraphicsContext.cpp
Normal file
@@ -0,0 +1,49 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/GraphicsContext>
|
||||
#include <osg/State>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Method0(const osg::GraphicsContext::Traits *, getTraits);
|
||||
I_Method1(void, setState, IN, osg::State *, state);
|
||||
I_Method0(osg::State *, getState);
|
||||
I_Method0(const osg::State *, getState);
|
||||
I_Method0(bool, isCurrent);
|
||||
I_Method0(void, release);
|
||||
I_Method0(void, makeCurrent);
|
||||
I_Method1(void, makeContextCurrent, IN, osg::GraphicsContext *, readContext);
|
||||
I_Method1(void, bindPBufferToTexture, IN, GLenum, buffer);
|
||||
I_Method0(void, swapBuffers);
|
||||
I_Property(osg::State *, State);
|
||||
I_ReadOnlyProperty(const osg::GraphicsContext::Traits *, Traits);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::CreateGraphicContexCallback)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0();
|
||||
I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osg::GraphicsContext::Traits)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0();
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< GLsizei >, osg::DrawArrayLengths::vector_type);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths)
|
||||
I_BaseType(osg::PrimitiveSet);
|
||||
I_ConstructorWithDefaults1(IN, GLenum, mode, 0);
|
||||
@@ -237,6 +239,8 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet)
|
||||
I_ReadOnlyProperty(osg::PrimitiveSet::Type, Type);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< GLsizei >);
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< GLubyte >);
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< GLuint >);
|
||||
|
||||
@@ -71,6 +71,7 @@ BEGIN_ENUM_REFLECTOR(osg::StateAttribute::Type)
|
||||
I_EnumLabel(osg::StateAttribute::COLORMASK);
|
||||
I_EnumLabel(osg::StateAttribute::DEPTH);
|
||||
I_EnumLabel(osg::StateAttribute::VIEWPORT);
|
||||
I_EnumLabel(osg::StateAttribute::SCISSOR);
|
||||
I_EnumLabel(osg::StateAttribute::BLENDCOLOR);
|
||||
I_EnumLabel(osg::StateAttribute::MULTISAMPLE);
|
||||
I_EnumLabel(osg::StateAttribute::CLIPPLANE);
|
||||
|
||||
@@ -38,9 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osg::Viewport)
|
||||
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);
|
||||
|
||||
@@ -3,6 +3,7 @@ include $(TOPDIR)/Make/makedefs
|
||||
|
||||
CXXFILES =\
|
||||
EventAdapter.cpp\
|
||||
GraphicsContextImplementation.cpp\
|
||||
KeyboardMouseCallback.cpp\
|
||||
OsgCameraGroup.cpp\
|
||||
OsgSceneHandler.cpp\
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/GraphicsContext>
|
||||
#include <osgProducer/GraphicsContextImplementation>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgProducer::GraphicsContextImplementation)
|
||||
I_BaseType(osg::GraphicsContext);
|
||||
I_Constructor1(IN, osg::GraphicsContext::Traits *, traits);
|
||||
I_Constructor1(IN, Producer::RenderSurface *, rs);
|
||||
I_Method0(bool, isRealized);
|
||||
I_Method0(Producer::RenderSurface *, getRenderSurface);
|
||||
I_Method0(const Producer::RenderSurface *, getRenderSurface);
|
||||
I_Method0(void, release);
|
||||
I_Method0(void, makeCurrent);
|
||||
I_Method1(void, makeContextCurrent, IN, osg::GraphicsContext *, readContext);
|
||||
I_Method1(void, bindPBufferToTexture, IN, GLenum, buffer);
|
||||
I_Method0(void, swapBuffers);
|
||||
I_ReadOnlyProperty(Producer::RenderSurface *, RenderSurface);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <osg/Node>
|
||||
#include <osg/StateSet>
|
||||
#include <osg/Vec4>
|
||||
#include <osgProducer/GraphicsContextImplementation>
|
||||
#include <osgProducer/OsgCameraGroup>
|
||||
#include <osgProducer/OsgSceneHandler>
|
||||
#include <osgUtil/SceneView>
|
||||
@@ -33,6 +34,8 @@
|
||||
|
||||
TYPE_NAME_ALIAS(Producer::CameraGroup::ThreadingModel, osgProducer::OsgCameraGroup::ThreadingModel);
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgProducer::GraphicsContextImplementation > >, osgProducer::OsgCameraGroup::GraphicsContextList);
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgProducer::OsgSceneHandler > >, osgProducer::OsgCameraGroup::SceneHandlerList);
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup)
|
||||
@@ -43,6 +46,9 @@ BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup)
|
||||
I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au);
|
||||
I_Method0(osg::ApplicationUsage *, getApplicationUsage);
|
||||
I_Method0(const osg::ApplicationUsage *, getApplicationUsage);
|
||||
I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList);
|
||||
I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList);
|
||||
I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList);
|
||||
I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList);
|
||||
I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList);
|
||||
I_Method1(void, setSceneData, IN, osg::Node *, scene);
|
||||
@@ -90,6 +96,7 @@ BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup)
|
||||
I_Property(osg::DisplaySettings *, DisplaySettings);
|
||||
I_Property(osg::FrameStamp *, FrameStamp);
|
||||
I_Property(osg::StateSet *, GlobalStateSet);
|
||||
I_Property(osgProducer::OsgCameraGroup::GraphicsContextList &, GraphicsContextList);
|
||||
I_Property(float, LODScale);
|
||||
I_Property(osgProducer::OsgCameraGroup::RealizeCallback *, RealizeCallback);
|
||||
I_Property(unsigned int, RealizeSceneViewOptions);
|
||||
@@ -106,6 +113,18 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgCameraGroup::RealizeCallback)
|
||||
I_Constructor0();
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::GraphicsContextImplementation >)
|
||||
I_Constructor0();
|
||||
I_Constructor1(IN, osgProducer::GraphicsContextImplementation *, t);
|
||||
I_Constructor1(IN, const osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp);
|
||||
I_Method0(bool, valid);
|
||||
I_Method0(osgProducer::GraphicsContextImplementation *, get);
|
||||
I_Method0(const osgProducer::GraphicsContextImplementation *, get);
|
||||
I_Method0(osgProducer::GraphicsContextImplementation *, take);
|
||||
I_Method0(osgProducer::GraphicsContextImplementation *, release);
|
||||
I_ReadOnlyProperty(osgProducer::GraphicsContextImplementation *, );
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::OsgSceneHandler >)
|
||||
I_Constructor0();
|
||||
I_Constructor1(IN, osgProducer::OsgSceneHandler *, t);
|
||||
@@ -118,5 +137,7 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::OsgSceneHandler >)
|
||||
I_ReadOnlyProperty(osgProducer::OsgSceneHandler *, );
|
||||
END_REFLECTOR
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgProducer::GraphicsContextImplementation > >);
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgProducer::OsgSceneHandler > >);
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/BoundingBox>
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Drawable>
|
||||
#include <osg/Matrix>
|
||||
@@ -66,6 +67,10 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite)
|
||||
I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x);
|
||||
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf);
|
||||
I_Method0(osg::BoundingBox, computeBound);
|
||||
I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera);
|
||||
I_Method0(osg::CameraNode *, getCameraNode);
|
||||
I_Method0(const osg::CameraNode *, getCameraNode);
|
||||
I_Property(osg::CameraNode *, CameraNode);
|
||||
I_ReadOnlyProperty(osg::Vec3 *, ControlCoords);
|
||||
I_ReadOnlyProperty(osg::Vec3 *, Coords);
|
||||
I_Property(int, LastFrameUsed);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/FrameBufferObject>
|
||||
#include <osg/GraphicsContext>
|
||||
#include <osg/Image>
|
||||
#include <osg/Object>
|
||||
#include <osg/State>
|
||||
@@ -46,8 +47,12 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderToTextureStage)
|
||||
I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo);
|
||||
I_Method0(osg::FrameBufferObject *, getFrameBufferObject);
|
||||
I_Method0(const osg::FrameBufferObject *, getFrameBufferObject);
|
||||
I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context);
|
||||
I_Method0(osg::GraphicsContext *, getGraphicsContext);
|
||||
I_Method0(const osg::GraphicsContext *, getGraphicsContext);
|
||||
I_Method2(void, draw, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous);
|
||||
I_Property(osg::FrameBufferObject *, FrameBufferObject);
|
||||
I_Property(osg::GraphicsContext *, GraphicsContext);
|
||||
I_Property(osg::Image *, Image);
|
||||
I_Property(GLenum, ImageReadPixelDataType);
|
||||
I_Property(GLenum, ImageReadPixelFormat);
|
||||
|
||||
Reference in New Issue
Block a user