Public Member Functions | Protected Member Functions | List of all members
gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL Class Reference

Utility class to help with generating shaders for GLSL. More...

#include <HeightmapPrivate.hh>

Inheritance diagram for gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL:
Inheritance graph
[legend]

Public Member Functions

virtual
Ogre::HighLevelGpuProgramPtr 
generateFragmentProgram (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt)
 
virtual
Ogre::HighLevelGpuProgramPtr 
generateVertexProgram (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt)
 
virtual void updateParams (const SM2Profile *_prof, const Ogre::MaterialPtr &_mat, const Ogre::Terrain *_terrain, bool _compositeMap)
 

Protected Member Functions

virtual void defaultVpParams (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, const Ogre::HighLevelGpuProgramPtr &_prog)
 
void generateFpDynamicShadows (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void generateFpDynamicShadowsHelpers (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType tt, Ogre::StringStream &_outStream)
 
virtual void generateFpDynamicShadowsParams (Ogre::uint *_texCoord, Ogre::uint *_sampler, const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void generateFpFooter (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType tt, Ogre::StringStream &_outStream)
 
virtual void generateFpHeader (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType tt, Ogre::StringStream &_outStream)
 
virtual void generateFpLayer (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType tt, Ogre::uint _layer, Ogre::StringStream &_outStream)
 
virtual void generateFragmentProgramSource (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void generateVertexProgramSource (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void generateVpDynamicShadows (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual unsigned int generateVpDynamicShadowsParams (unsigned int _texCoordStart, const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void generateVpFooter (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void generateVpHeader (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, Ogre::StringStream &_outStream)
 
virtual void updateVpParams (const SM2Profile *_prof, const Ogre::Terrain *_terrain, TechniqueType _tt, const Ogre::GpuProgramParametersSharedPtr &_params)
 

Detailed Description

Utility class to help with generating shaders for GLSL.

The class contains a collection of functions that are used to dynamically generate a complete vertex or fragment shader program in a string format.

Member Function Documentation

virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::defaultVpParams ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
const Ogre::HighLevelGpuProgramPtr &  _prog 
)
protectedvirtual
void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFpDynamicShadows ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protected
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFpDynamicShadowsHelpers ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFpDynamicShadowsParams ( Ogre::uint *  _texCoord,
Ogre::uint *  _sampler,
const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFpFooter ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFpHeader ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFpLayer ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  tt,
Ogre::uint  _layer,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual Ogre::HighLevelGpuProgramPtr gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFragmentProgram ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt 
)
virtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateFragmentProgramSource ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual Ogre::HighLevelGpuProgramPtr gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateVertexProgram ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt 
)
virtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateVertexProgramSource ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateVpDynamicShadows ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual unsigned int gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateVpDynamicShadowsParams ( unsigned int  _texCoordStart,
const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateVpFooter ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::generateVpHeader ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
Ogre::StringStream &  _outStream 
)
protectedvirtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::updateParams ( const SM2Profile _prof,
const Ogre::MaterialPtr &  _mat,
const Ogre::Terrain *  _terrain,
bool  _compositeMap 
)
virtual
virtual void gazebo::rendering::GzTerrainMatGen::SM2Profile::ShaderHelperGLSL::updateVpParams ( const SM2Profile _prof,
const Ogre::Terrain *  _terrain,
TechniqueType  _tt,
const Ogre::GpuProgramParametersSharedPtr &  _params 
)
protectedvirtual

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