From 874296cbb3ffa13fa5ee10ece2ed5b3e2f1f4256 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 29 Jan 2010 17:20:58 +0000 Subject: [PATCH] Changed GeometryTechnique::private to protected, updated wrappers --- include/osgTerrain/GeometryTechnique | 2 +- .../osgTerrain/GeometryTechnique.cpp | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/include/osgTerrain/GeometryTechnique b/include/osgTerrain/GeometryTechnique index 5f9829759..859543c0f 100644 --- a/include/osgTerrain/GeometryTechnique +++ b/include/osgTerrain/GeometryTechnique @@ -82,7 +82,7 @@ class OSGTERRAIN_EXPORT GeometryTechnique : public TerrainTechnique virtual void releaseGLObjects(osg::State* = 0) const; - private: + protected: virtual ~GeometryTechnique(); diff --git a/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp b/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp index 3be4d16d1..180ca99b1 100644 --- a/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp +++ b/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp @@ -171,6 +171,24 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::GeometryTechnique) __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_ProtectedMethod0(void, swapBuffers, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__swapBuffers, + "", + ""); + I_ProtectedMethod0(osg::BufferData &, getReadOnlyBuffer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __BufferData_R1__getReadOnlyBuffer, + "", + ""); + I_ProtectedMethod0(osg::BufferData &, getWriteBuffer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __BufferData_R1__getWriteBuffer, + "", + ""); I_SimpleProperty(float, FilterBias, __float__getFilterBias, __void__setFilterBias__float);