From f5d9443b78ac5c68e583a670bd4d456386f45ba4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 25 Aug 2006 14:53:09 +0000 Subject: [PATCH] Fixed const correctness of get shadow functions --- include/osg/Texture | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osg/Texture b/include/osg/Texture index b380da6e5..aa0b50f2f 100644 --- a/include/osg/Texture +++ b/include/osg/Texture @@ -405,7 +405,7 @@ class OSG_EXPORT Texture : public osg::StateAttribute /** Sets shadow texture comparison function. */ void setShadowCompareFunc(ShadowCompareFunc func) { _shadow_compare_func = func; } - ShadowCompareFunc getShadowCompareFunc() { return _shadow_compare_func; } + ShadowCompareFunc getShadowCompareFunc() const { return _shadow_compare_func; } enum ShadowTextureMode { LUMINANCE = GL_LUMINANCE, @@ -415,12 +415,12 @@ class OSG_EXPORT Texture : public osg::StateAttribute /** Sets shadow texture mode after comparison. */ void setShadowTextureMode(ShadowTextureMode mode) { _shadow_texture_mode = mode; } - ShadowTextureMode getShadowTextureMode() { return _shadow_texture_mode; } + ShadowTextureMode getShadowTextureMode() const { return _shadow_texture_mode; } /** Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. See * http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. */ void setShadowAmbient(float shadow_ambient) { _shadow_ambient = shadow_ambient; } - float getShadowAmbient() { return _shadow_ambient; } + float getShadowAmbient() const { return _shadow_ambient; } /** Sets the texture image for the specified face. */