Updated wrappers
This commit is contained in:
@@ -69,7 +69,7 @@ void ShadowTexture::init()
|
||||
|
||||
// tell the camera to use OpenGL frame buffer object where supported.
|
||||
_camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT);
|
||||
_camera->setRenderTargetImplementation(osg::Camera::SEPERATE_WINDOW);
|
||||
//_camera->setRenderTargetImplementation(osg::Camera::SEPERATE_WINDOW);
|
||||
|
||||
// attach the texture and use it as the color buffer.
|
||||
_camera->attach(osg::Camera::COLOR_BUFFER, _texture.get());
|
||||
|
||||
@@ -11,8 +11,10 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/NodeVisitor>
|
||||
#include <osg/Object>
|
||||
#include <osgShadow/ShadowMap>
|
||||
#include <osgUtil/CullVisitor>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
@@ -56,5 +58,38 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap)
|
||||
__C5_char_P1__className,
|
||||
"return the name of the object's class type. ",
|
||||
"Must be defined by derived classes. ");
|
||||
I_Method1(void, setTextureUnit, IN, unsigned int, unit,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setTextureUnit__unsigned_int,
|
||||
"Set the texture unit that the shadow texture will be applied on. ",
|
||||
"");
|
||||
I_Method0(unsigned int, getTextureUnit,
|
||||
Properties::NON_VIRTUAL,
|
||||
__unsigned_int__getTextureUnit,
|
||||
"Get the texture unit that the shadow texture will be applied on. ",
|
||||
"");
|
||||
I_Method0(void, init,
|
||||
Properties::VIRTUAL,
|
||||
__void__init,
|
||||
"initialize the ShadowedScene and local cached data structures. ",
|
||||
"");
|
||||
I_Method1(void, update, IN, osg::NodeVisitor &, nv,
|
||||
Properties::VIRTUAL,
|
||||
__void__update__osg_NodeVisitor_R1,
|
||||
"run the update traversal of the ShadowedScene and update any loca chached data structures. ",
|
||||
"");
|
||||
I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv,
|
||||
Properties::VIRTUAL,
|
||||
__void__cull__osgUtil_CullVisitor_R1,
|
||||
"run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ",
|
||||
"");
|
||||
I_Method0(void, cleanSceneGraph,
|
||||
Properties::VIRTUAL,
|
||||
__void__cleanSceneGraph,
|
||||
"Clean scene graph from any shadow technique specific nodes, state and drawables. ",
|
||||
"");
|
||||
I_SimpleProperty(unsigned int, TextureUnit,
|
||||
__unsigned_int__getTextureUnit,
|
||||
__void__setTextureUnit__unsigned_int);
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
@@ -26,9 +26,11 @@
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene)
|
||||
I_BaseType(osg::Group);
|
||||
I_Constructor0(____ShadowedScene,
|
||||
"",
|
||||
"");
|
||||
I_ConstructorWithDefaults1(IN, osgShadow::ShadowTechnique *, st, 0,
|
||||
Properties::NON_EXPLICIT,
|
||||
____ShadowedScene__ShadowTechnique_P1,
|
||||
"",
|
||||
"");
|
||||
I_ConstructorWithDefaults2(IN, const osgShadow::ShadowedScene &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
|
||||
____ShadowedScene__C5_ShadowedScene_R1__C5_osg_CopyOp_R1,
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user