Utility class to help with generating shaders for Cg / HLSL. More...
#include <OgreTerrainMaterialGeneratorA.h>
Public Member Functions | |
virtual HighLevelGpuProgramPtr | generateVertexProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt) |
virtual HighLevelGpuProgramPtr | generateFragmentProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt) |
virtual void | updateParams (const SM2Profile *prof, const MaterialPtr &mat, const Terrain *terrain, bool compositeMap) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
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 *) |
Protected Member Functions | |
HighLevelGpuProgramPtr | createVertexProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt) |
HighLevelGpuProgramPtr | createFragmentProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt) |
void | generateVpHeader (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateFpHeader (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateVpLayer (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, uint layer, StringUtil::StrStreamType &outStream) |
void | generateFpLayer (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, uint layer, StringUtil::StrStreamType &outStream) |
void | generateVpFooter (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateFpFooter (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
uint | generateVpDynamicShadowsParams (uint texCoordStart, const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateVpDynamicShadows (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateFpDynamicShadowsHelpers (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateFpDynamicShadowsParams (uint *texCoord, uint *sampler, const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
void | generateFpDynamicShadows (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
virtual String | getVertexProgramName (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt) |
virtual String | getFragmentProgramName (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt) |
virtual void | generateVertexProgramSource (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
virtual void | generateFragmentProgramSource (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream) |
virtual void | defaultVpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const HighLevelGpuProgramPtr &prog) |
virtual void | defaultFpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const HighLevelGpuProgramPtr &prog) |
virtual void | updateVpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const GpuProgramParametersSharedPtr ¶ms) |
virtual void | updateFpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const GpuProgramParametersSharedPtr ¶ms) |
Static Protected Member Functions | |
static String | getChannel (uint idx) |
Protected Attributes | |
size_t | mShadowSamplerStartHi |
size_t | mShadowSamplerStartLo |
Utility class to help with generating shaders for Cg / HLSL.
Definition at line 194 of file OgreTerrainMaterialGeneratorA.h.
HighLevelGpuProgramPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::createFragmentProgram | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [protected, virtual] |
Implements Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper.
Reimplemented in Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperHLSL.
HighLevelGpuProgramPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::createVertexProgram | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [protected, virtual] |
Implements Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper.
Reimplemented in Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperHLSL.
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultFpParams | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
const HighLevelGpuProgramPtr & | prog | |||
) | [protected, virtual, inherited] |
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultVpParams | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
const HighLevelGpuProgramPtr & | prog | |||
) | [protected, virtual, inherited] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadows | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsHelpers | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsParams | ( | uint * | texCoord, | |
uint * | sampler, | |||
const SM2Profile * | prof, | |||
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpFooter | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpHeader | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpLayer | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
uint | layer, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual] |
virtual HighLevelGpuProgramPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgram | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [virtual, inherited] |
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgramSource | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual, inherited] |
virtual HighLevelGpuProgramPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgram | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [virtual, inherited] |
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgramSource | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual, inherited] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpDynamicShadows | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected] |
uint Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpDynamicShadowsParams | ( | uint | texCoordStart, | |
const SM2Profile * | prof, | |||
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpFooter | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpHeader | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpLayer | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
uint | layer, | |||
StringUtil::StrStreamType & | outStream | |||
) | [protected, virtual] |
static String Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getChannel | ( | uint | idx | ) | [static, protected, inherited] |
virtual String Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getFragmentProgramName | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [protected, virtual, inherited] |
virtual String Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getVertexProgramName | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [protected, virtual, inherited] |
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateFpParams | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
const GpuProgramParametersSharedPtr & | params | |||
) | [protected, virtual, inherited] |
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateParams | ( | const SM2Profile * | prof, | |
const MaterialPtr & | mat, | |||
const Terrain * | terrain, | |||
bool | compositeMap | |||
) | [virtual, inherited] |
virtual void Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateVpParams | ( | const SM2Profile * | prof, | |
const Terrain * | terrain, | |||
TechniqueType | tt, | |||
const GpuProgramParametersSharedPtr & | params | |||
) | [protected, virtual, inherited] |
size_t Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::mShadowSamplerStartHi [protected, inherited] |
Definition at line 188 of file OgreTerrainMaterialGeneratorA.h.
size_t Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::mShadowSamplerStartLo [protected, inherited] |
Definition at line 189 of file OgreTerrainMaterialGeneratorA.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:42:13 2012