class OSGGL2_EXPORT osgGL2::ShaderObject

Encapsulates the OpenGL Shading Language ShaderObject

Inheritance:


Public Methods

[more] ShaderObject()
[more] ShaderObject(Type type)
[more] ShaderObject(Type type, const char* sourceText)
[more] ShaderObject(const ShaderObject& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more] META_Object(osgGL2, ShaderObject)
[more]void setShaderSource( const char* sourceText )
[more]inline const std::string& getShaderSource() const
[more]bool loadShaderSourceFromFile( const char* fileName )
[more]Type getType() const
[more]void dirtyShaderObject()
Force a recompile on next apply() of associated glShaderObject.
[more]bool build(unsigned int contextID) const
[more]void attach(unsigned int contextID, GLhandleARB progObj) const

Public Members

[more]enum Type

Protected Fields

[more]std::string _shaderSource
[more]Type _type
[more]mutable PCSOList _pcsoList

Protected Methods

[more]virtual ~ShaderObject()
[more]PerContextShaderObj* getPCSO(unsigned int contextID) const

Protected Members

class OSGGL2_EXPORT PerContextShaderObj: public osg::Referenced
[more]typedef osg::buffered_value< osg::ref_ptr<PerContextShaderObj> > PCSOList


Documentation

Encapsulates the OpenGL Shading Language ShaderObject
oenum Type

o VERTEX

o FRAGMENT

o UNKNOWN

o ShaderObject()

o ShaderObject(Type type)

o ShaderObject(Type type, const char* sourceText)

o ShaderObject(const ShaderObject& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

o META_Object(osgGL2, ShaderObject)

ovoid setShaderSource( const char* sourceText )

oinline const std::string& getShaderSource() const

obool loadShaderSourceFromFile( const char* fileName )

oType getType() const

ovoid dirtyShaderObject()
Force a recompile on next apply() of associated glShaderObject.

obool build(unsigned int contextID) const

ovoid attach(unsigned int contextID, GLhandleARB progObj) const

ovirtual ~ShaderObject()

ostd::string _shaderSource

oType _type

otypedef osg::buffered_value< osg::ref_ptr<PerContextShaderObj> > PCSOList

omutable PCSOList _pcsoList

oPerContextShaderObj* getPCSO(unsigned int contextID) const


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.