Index: /OpenSceneGraph/trunk/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp (revision 9775)
+++ /OpenSceneGraph/trunk/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp (revision 10808)
@@ -272,9 +272,8 @@
 	I_DeclaringFile("osgViewer/ViewerEventHandlers");
 	I_BaseType(osgGA::GUIEventHandler);
-	I_ConstructorWithDefaults1(IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, defaultOperation, 0,
-	                           Properties::NON_EXPLICIT,
-	                           ____ScreenCaptureHandler__CaptureOperation_P1,
+	I_ConstructorWithDefaults2(IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, defaultOperation, 0, IN, int, numFrames, 1,
+	                           ____ScreenCaptureHandler__CaptureOperation_P1__int,
 	                           "",
-	                           "");
+	                           " param numFrames >0: capture that number of frames. <0: capture all frames, call stopCapture() to stop it.  ");
 	I_Method1(void, setKeyEventTakeScreenShot, IN, int, key,
 	          Properties::NON_VIRTUAL,
@@ -285,4 +284,14 @@
 	          Properties::NON_VIRTUAL,
 	          __int__getKeyEventTakeScreenShot,
+	          "",
+	          "");
+	I_Method1(void, setKeyEventToggleContinuousCapture, IN, int, key,
+	          Properties::NON_VIRTUAL,
+	          __void__setKeyEventToggleContinuousCapture__int,
+	          "",
+	          "");
+	I_Method0(int, getKeyEventToggleContinuousCapture,
+	          Properties::NON_VIRTUAL,
+	          __int__getKeyEventToggleContinuousCapture,
 	          "",
 	          "");
@@ -307,4 +316,24 @@
 	          "Capture the given viewer's views on the next frame. ",
 	          "");
+	I_Method1(void, setFramesToCapture, IN, int, numFrames,
+	          Properties::NON_VIRTUAL,
+	          __void__setFramesToCapture__int,
+	          "Set the number of frames to capture. ",
+	          " param numFrames >0: capture that number of frames. <0: capture all frames, call stopCapture() to stop it.  ");
+	I_Method0(int, getFramesToCapture,
+	          Properties::NON_VIRTUAL,
+	          __int__getFramesToCapture,
+	          "Get the number of frames to capture. ",
+	          "");
+	I_Method0(void, startCapture,
+	          Properties::NON_VIRTUAL,
+	          __void__startCapture,
+	          "Start capturing any viewer(s) the handler is attached to at the end of the next frame. ",
+	          "");
+	I_Method0(void, stopCapture,
+	          Properties::NON_VIRTUAL,
+	          __void__stopCapture,
+	          "Stop capturing. ",
+	          "");
 	I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage,
 	          Properties::VIRTUAL,
@@ -316,4 +345,16 @@
 	                   Properties::NON_CONST,
 	                   __void__addCallbackToViewer__osgViewer_ViewerBase_R1,
+	                   "",
+	                   "");
+	I_ProtectedMethod1(void, removeCallbackFromViewer, IN, osgViewer::ViewerBase &, viewer,
+	                   Properties::NON_VIRTUAL,
+	                   Properties::NON_CONST,
+	                   __void__removeCallbackFromViewer__osgViewer_ViewerBase_R1,
+	                   "",
+	                   "");
+	I_ProtectedMethod1(osg::Camera *, findAppropriateCameraForCallback, IN, osgViewer::ViewerBase &, viewer,
+	                   Properties::NON_VIRTUAL,
+	                   Properties::NON_CONST,
+	                   __osg_Camera_P1__findAppropriateCameraForCallback__osgViewer_ViewerBase_R1,
 	                   "",
 	                   "");
@@ -321,7 +362,13 @@
 	                 __CaptureOperation_P1__getCaptureOperation, 
 	                 __void__setCaptureOperation__CaptureOperation_P1);
+	I_SimpleProperty(int, FramesToCapture, 
+	                 __int__getFramesToCapture, 
+	                 __void__setFramesToCapture__int);
 	I_SimpleProperty(int, KeyEventTakeScreenShot, 
 	                 __int__getKeyEventTakeScreenShot, 
 	                 __void__setKeyEventTakeScreenShot__int);
+	I_SimpleProperty(int, KeyEventToggleContinuousCapture, 
+	                 __int__getKeyEventToggleContinuousCapture, 
+	                 __void__setKeyEventToggleContinuousCapture__int);
 END_REFLECTOR
 
@@ -343,5 +390,5 @@
 	I_DeclaringFile("osgViewer/ViewerEventHandlers");
 	I_BaseType(osgViewer::ScreenCaptureHandler::CaptureOperation);
-	I_ConstructorWithDefaults3(IN, const std::string &, filename, , IN, const std::string &, extension, , IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE,
+	I_ConstructorWithDefaults3(IN, const std::string &, filename, , IN, const std::string &, extension, , IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER,
 	                           ____WriteToFile__C5_std_string_R1__C5_std_string_R1__SavePolicy,
 	                           "",
Index: /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/GeometryTechnique.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/GeometryTechnique.cpp (revision 9775)
+++ /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/GeometryTechnique.cpp (revision 10808)
@@ -14,4 +14,5 @@
 #include <osg/NodeVisitor>
 #include <osg/Object>
+#include <osg/State>
 #include <osg/Uniform>
 #include <osg/Vec3d>
@@ -166,4 +167,9 @@
 	          "",
 	          "");
+	I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0,
+	                      Properties::VIRTUAL,
+	                      __void__releaseGLObjects__osg_State_P1,
+	                      "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ",
+	                      "Otherwise, releases OpenGL objects for all graphics contexts. ");
 	I_SimpleProperty(float, FilterBias, 
 	                 __float__getFilterBias, 
Index: /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/TerrainTile.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/TerrainTile.cpp (revision 10503)
+++ /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/TerrainTile.cpp (revision 10808)
@@ -15,4 +15,5 @@
 #include <osg/NodeVisitor>
 #include <osg/Object>
+#include <osg/State>
 #include <osgDB/ReaderWriter>
 #include <osgTerrain/Layer>
@@ -205,4 +206,9 @@
 	          "Compute the bounding volume of the terrain by computing the union of the bounding volumes of all layers. ",
 	          "");
+	I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0,
+	                      Properties::VIRTUAL,
+	                      __void__releaseGLObjects__osg_State_P1,
+	                      "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ",
+	                      "Otherwise, releases OpenGL objects for all graphics contexts. ");
 	I_StaticMethod1(void, setTileLoadedCallback, IN, osgTerrain::TerrainTile::TileLoadedCallback *, lc,
 	                __void__setTileLoadedCallback__TileLoadedCallback_P1_S,
Index: /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/TerrainTechnique.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/TerrainTechnique.cpp (revision 9775)
+++ /OpenSceneGraph/trunk/src/osgWrappers/osgTerrain/TerrainTechnique.cpp (revision 10808)
@@ -14,4 +14,5 @@
 #include <osg/NodeVisitor>
 #include <osg/Object>
+#include <osg/State>
 #include <osgTerrain/TerrainTechnique>
 #include <osgTerrain/TerrainTile>
@@ -97,4 +98,9 @@
 	          "Traverse the terrain subgraph. ",
 	          "");
+	I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0,
+	                      Properties::VIRTUAL,
+	                      __void__releaseGLObjects__osg_State_P1,
+	                      "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ",
+	                      "Otherwise, releases OpenGL objects for all graphics contexts. ");
 	I_ProtectedMethod1(void, setDirty, IN, bool, dirty,
 	                   Properties::NON_VIRTUAL,
