OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper Class Referenceabstract

Interface definition for helper class to generate shaders. More...

#include <OgreTerrainMaterialGeneratorA.h>

+ Inheritance diagram for Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper:
+ Collaboration diagram for Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper:

Public Member Functions

 ShaderHelper ()
 
virtual ~ShaderHelper ()
 
virtual HighLevelGpuProgramPtr generateFragmentProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual HighLevelGpuProgramPtr generateVertexProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
virtual void updateParams (const SM2Profile *prof, const MaterialPtr &mat, const Terrain *terrain, bool compositeMap)
 

Protected Member Functions

virtual HighLevelGpuProgramPtr createFragmentProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)=0
 
virtual HighLevelGpuProgramPtr createVertexProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)=0
 
virtual void defaultFpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const HighLevelGpuProgramPtr &prog)
 
virtual void defaultVpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const HighLevelGpuProgramPtr &prog)
 
virtual void generateFpFooter (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringStream &outStream)=0
 
virtual void generateFpHeader (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringStream &outStream)=0
 
virtual void generateFpLayer (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, uint layer, StringStream &outStream)=0
 
virtual void generateFragmentProgramSource (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringStream &outStream)
 
virtual void generateVertexProgramSource (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringStream &outStream)
 
virtual void generateVpFooter (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringStream &outStream)=0
 
virtual void generateVpHeader (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringStream &outStream)=0
 
virtual void generateVpLayer (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, uint layer, StringStream &outStream)=0
 
virtual String getFragmentProgramName (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual String getVertexProgramName (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual void updateFpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const GpuProgramParametersSharedPtr &params)
 
virtual void updateVpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const GpuProgramParametersSharedPtr &params)
 

Static Protected Member Functions

static String getChannel (uint idx)
 

Protected Attributes

size_t mShadowSamplerStartHi
 
size_t mShadowSamplerStartLo
 

Detailed Description

Interface definition for helper class to generate shaders.

Definition at line 162 of file OgreTerrainMaterialGeneratorA.h.

Constructor & Destructor Documentation

Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::ShaderHelper ( )
inline

Definition at line 165 of file OgreTerrainMaterialGeneratorA.h.

virtual Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::~ShaderHelper ( )
inlinevirtual

Definition at line 166 of file OgreTerrainMaterialGeneratorA.h.

Member Function Documentation

virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultFpParams ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
const HighLevelGpuProgramPtr prog 
)
protectedvirtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultVpParams ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
const HighLevelGpuProgramPtr prog 
)
protectedvirtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFpFooter ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
StringStream outStream 
)
protectedpure virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFpHeader ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
StringStream outStream 
)
protectedpure virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFpLayer ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
uint  layer,
StringStream outStream 
)
protectedpure virtual
virtual HighLevelGpuProgramPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgram ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt 
)
virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgramSource ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
StringStream outStream 
)
protectedvirtual
virtual HighLevelGpuProgramPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgram ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt 
)
virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgramSource ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
StringStream outStream 
)
protectedvirtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVpFooter ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
StringStream outStream 
)
protectedpure virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVpHeader ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
StringStream outStream 
)
protectedpure virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVpLayer ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
uint  layer,
StringStream outStream 
)
protectedpure virtual
static String Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getChannel ( uint  idx)
staticprotected
virtual String Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getFragmentProgramName ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt 
)
protectedvirtual
virtual String Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getVertexProgramName ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt 
)
protectedvirtual
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateFpParams ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
const GpuProgramParametersSharedPtr params 
)
protectedvirtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateParams ( const SM2Profile prof,
const MaterialPtr mat,
const Terrain terrain,
bool  compositeMap 
)
virtual
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateVpParams ( const SM2Profile prof,
const Terrain terrain,
TechniqueType  tt,
const GpuProgramParametersSharedPtr params 
)
protectedvirtual

Member Data Documentation

size_t Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::mShadowSamplerStartHi
protected

Definition at line 189 of file OgreTerrainMaterialGeneratorA.h.

size_t Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::mShadowSamplerStartLo
protected

Definition at line 190 of file OgreTerrainMaterialGeneratorA.h.


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