From 715df123f1974899df94a6befe747629ce5c7eb5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 12 May 2005 20:59:53 +0000 Subject: [PATCH] From Mike Weiblen, Added queries of compilation state to Shader (for symmetry with Program's link state queries) --- include/osg/Shader | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/osg/Shader b/include/osg/Shader index f15e4e481..f900481e4 100644 --- a/include/osg/Shader +++ b/include/osg/Shader @@ -12,7 +12,7 @@ */ /* file: include/osg/Shader - * author: Mike Weiblen 2005-04-29 + * author: Mike Weiblen 2005-05-12 */ #ifndef OSG_SHADER @@ -119,6 +119,8 @@ class OSG_EXPORT Shader : public osg::Object void requestCompile(); void compileShader(); + bool needsCompile() const {return _needsCompile;} + bool isCompiled() const {return _isCompiled;} bool getInfoLog( std::string& infoLog ) const; /** Attach our glShader to a glProgram */