From a51342d81e21d5b4d78a49c70de40973e19db4a8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 19 Mar 2008 12:30:50 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osgShadow/ShadowMap.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/osgWrappers/osgShadow/ShadowMap.cpp b/src/osgWrappers/osgShadow/ShadowMap.cpp index 0f30f4e45..81a669d27 100644 --- a/src/osgWrappers/osgShadow/ShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ShadowMap.cpp @@ -79,6 +79,16 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) __unsigned_int__getTextureUnit, "Get the texture unit that the shadow texture will be applied on. ", ""); + I_Method1(void, setPolygonOffset, IN, const osg::Vec2 &, polyOffset, + Properties::NON_VIRTUAL, + __void__setPolygonOffset__C5_osg_Vec2_R1, + "set the polygon offset used initially ", + ""); + I_Method0(const osg::Vec2 &, getPolygonOffset, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getPolygonOffset, + "get the used polygon offset ", + ""); I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, Properties::NON_VIRTUAL, __void__setAmbientBias__C5_osg_Vec2_R1, @@ -162,6 +172,9 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) I_SimpleProperty(osg::Light *, Light, 0, __void__setLight__osg_Light_P1); + I_SimpleProperty(const osg::Vec2 &, PolygonOffset, + __C5_osg_Vec2_R1__getPolygonOffset, + __void__setPolygonOffset__C5_osg_Vec2_R1); I_SimpleProperty(const osg::Vec2s &, TextureSize, __C5_osg_Vec2s_R1__getTextureSize, __void__setTextureSize__C5_osg_Vec2s_R1);