Change Shader::getPCS(..) from protected to public scope to enable isCompiled() method to be accessible in applications.

Updated wrappers
This commit is contained in:
Robert Osfield
2010-03-05 11:30:50 +00:00
parent 4b4dd94b5d
commit 5383297cbe
3 changed files with 56 additions and 60 deletions

View File

@@ -184,7 +184,7 @@ class OSG_EXPORT Shader : public osg::Object
static Shader::Type getTypeId( const std::string& tname );
protected:
public:
/** PerContextShader (PCS) is an OSG-internal encapsulation of glShader per-GL context. */
class PerContextShader : public osg::Referenced
{
@@ -227,10 +227,11 @@ class OSG_EXPORT Shader : public osg::Object
PerContextShader& operator=(const PerContextShader&); // disallowed
};
PerContextShader* getPCS(unsigned int contextID) const;
protected: /*methods*/
virtual ~Shader();
PerContextShader* getPCS(unsigned int contextID) const;
friend class osg::Program;
bool addProgramRef( osg::Program* program );