From 7d69b5e562eff6576b0bca551eb3fe54ac07575d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 29 Apr 2005 20:57:04 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osg/State.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index 1aab7c9b5..b12f44a7e 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -19,6 +19,12 @@ #include #include +BEGIN_ENUM_REFLECTOR(osg::State::CheckForGLErrors) + EnumLabel(osg::State::NEVER_CHECK_GL_ERRORS); + EnumLabel(osg::State::ONCE_PER_FRAME); + EnumLabel(osg::State::ONCE_PER_ATTRIBUTE); +END_REFLECTOR + BEGIN_OBJECT_REFLECTOR(osg::State) BaseType(osg::Referenced); Constructor0(); @@ -113,14 +119,15 @@ BEGIN_OBJECT_REFLECTOR(osg::State) Method0(const osg::DisplaySettings *, getDisplaySettings); Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr); Method0(bool, getAbortRendering); - Method1(void, setReportGLErrors, IN, bool, flag); - Method0(bool, getReportGLErrors); + Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check); + Method0(osg::State::CheckForGLErrors, getCheckForGLErrors); Method1(bool, checkGLErrors, IN, const char *, str); Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode); Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute); ReadOnlyProperty(bool, AbortRendering); WriteOnlyProperty(bool *, AbortRenderingPtr); PropertyWithReturnType(unsigned int, ActiveTextureUnit, bool); + Property(osg::State::CheckForGLErrors, CheckForGLErrors); PropertyWithReturnType(unsigned int, ClientActiveTextureUnit, bool); Property(unsigned int, ContextID); ReadOnlyProperty(const osg::Viewport *, CurrentViewport); @@ -134,7 +141,6 @@ BEGIN_OBJECT_REFLECTOR(osg::State) Property(const osg::Program::PerContextProgram *, LastAppliedProgramObject); ReadOnlyProperty(const osg::Matrix &, ModelViewMatrix); ReadOnlyProperty(const osg::Matrix &, ProjectionMatrix); - Property(bool, ReportGLErrors); ReadOnlyProperty(osg::Polytope, ViewFrustum); END_REFLECTOR