OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
opencover::coVRShader Class Reference

#include <coVRShader.h>

Public Member Functions

std::string findAsset (const std::string &path) const
 
const std::string & getName ()
 
bool isTransparent ()
 
std::list< coVRUniform * > & getUniforms ()
 
osg::ref_ptr< osg::Shader > & getFragmentShader ()
 
osg::ref_ptr< osg::Shader > & getGeometryShader ()
 
osg::ref_ptr< osg::Shader > & getVertexShader ()
 
osg::ref_ptr< osg::Shader > & getTessControlShader ()
 
osg::ref_ptr< osg::Shader > & getTessEvalShader ()
 
osg::ref_ptr< osg::Program > & getProgram ()
 
int getNumVertices ()
 
int getInputType ()
 
int getOutputType ()
 
 coVRShader (const std::string &name, const std::string &d)
 
void setData (covise::TokenBuffer &tb)
 
void setMatrixUniform (const std::string &name, osg::Matrixd m)
 
void setMatrixUniform (const std::string &name, osg::Matrixf m)
 
void setFloatUniform (const std::string &name, float f)
 
void setVec3Uniform (const std::string &name, osg::Vec3 v)
 
void setVec4Uniform (const std::string &name, osg::Vec4 v)
 
void setNumVertices (int)
 
void setInputType (int)
 
void setOutputType (int)
 
osg::Uniform * getUniform (const std::string &name)
 
coVRShaderInstanceapply (osg::Node *)
 
void apply (osg::StateSet *)
 
coVRShaderInstanceapply (osg::Geode *geode, osg::Drawable *drawable)
 
void setUniformesFromAttribute (const char *uniformValues)
 
void storeMaterial ()
 
void loadMaterial ()
 
virtual ~coVRShader ()
 

Constructor & Destructor Documentation

opencover::coVRShader::coVRShader ( const std::string &  name,
const std::string &  d 
)
virtual opencover::coVRShader::~coVRShader ( )
virtual

Member Function Documentation

coVRShaderInstance* opencover::coVRShader::apply ( osg::Node *  )
void opencover::coVRShader::apply ( osg::StateSet *  )
coVRShaderInstance* opencover::coVRShader::apply ( osg::Geode *  geode,
osg::Drawable *  drawable 
)
std::string opencover::coVRShader::findAsset ( const std::string &  path) const
osg::ref_ptr<osg::Shader>& opencover::coVRShader::getFragmentShader ( )
inline
osg::ref_ptr<osg::Shader>& opencover::coVRShader::getGeometryShader ( )
inline
int opencover::coVRShader::getInputType ( )
inline
const std::string& opencover::coVRShader::getName ( )
inline
int opencover::coVRShader::getNumVertices ( )
inline
int opencover::coVRShader::getOutputType ( )
inline
osg::ref_ptr<osg::Program>& opencover::coVRShader::getProgram ( )
inline
osg::ref_ptr<osg::Shader>& opencover::coVRShader::getTessControlShader ( )
inline
osg::ref_ptr<osg::Shader>& opencover::coVRShader::getTessEvalShader ( )
inline
osg::Uniform* opencover::coVRShader::getUniform ( const std::string &  name)
std::list<coVRUniform *>& opencover::coVRShader::getUniforms ( )
inline
osg::ref_ptr<osg::Shader>& opencover::coVRShader::getVertexShader ( )
inline
bool opencover::coVRShader::isTransparent ( )
inline
void opencover::coVRShader::loadMaterial ( )
void opencover::coVRShader::setData ( covise::TokenBuffer &  tb)
void opencover::coVRShader::setFloatUniform ( const std::string &  name,
float  f 
)
void opencover::coVRShader::setInputType ( int  )
void opencover::coVRShader::setMatrixUniform ( const std::string &  name,
osg::Matrixd  m 
)
void opencover::coVRShader::setMatrixUniform ( const std::string &  name,
osg::Matrixf  m 
)
void opencover::coVRShader::setNumVertices ( int  )
void opencover::coVRShader::setOutputType ( int  )
void opencover::coVRShader::setUniformesFromAttribute ( const char *  uniformValues)
void opencover::coVRShader::setVec3Uniform ( const std::string &  name,
osg::Vec3  v 
)
void opencover::coVRShader::setVec4Uniform ( const std::string &  name,
osg::Vec4  v 
)
void opencover::coVRShader::storeMaterial ( )

The documentation for this class was generated from the following file: