OGRE
1.9.0
|
Shader generator technique wrapper class. More...
#include <OgreShaderGenerator.h>
Public Member Functions | |
SGTechnique (SGMaterial *parent, Technique *srcTechnique, const String &dstTechniqueSchemeName) | |
~SGTechnique () | |
void | acquireIlluminationPrograms () |
Acquire the CPU/GPU programs for illumination passes of this technique. | |
void | acquirePrograms () |
Acquire the CPU/GPU programs for this technique. | |
void | buildIlluminationTargetRenderState () |
Build the render state for illumination passes. | |
void | buildTargetRenderState () |
Build the render state. | |
void | destroyIlluminationSGPasses () |
Destroy the illumination passes entries. | |
bool | getBuildDestinationTechnique () const |
Tells if the destination technique should be build. | |
Technique * | getDestinationTechnique () |
Get the destination technique. | |
const String & | getDestinationTechniqueSchemeName () const |
Get the destination technique scheme name. | |
const SGMaterial * | getParent () const |
Get the parent SGMaterial. | |
RenderState * | getRenderState (unsigned short passIndex) |
Get render state of specific pass. | |
Technique * | getSourceTechnique () |
Get the source technique. | |
bool | hasRenderState (unsigned short passIndex) |
Tells if a custom render state exists for the given pass. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
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 *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | releasePrograms () |
Release the CPU/GPU programs of this technique. | |
void | setBuildDestinationTechnique (bool buildTechnique) |
Tells the technique that it needs to generate shader code. | |
Static Public Attributes | |
static String | UserKey |
Protected Member Functions | |
void | createIlluminationSGPasses () |
Create the illumination passes entries. | |
void | createSGPasses () |
Create the passes entries. | |
void | destroySGPasses () |
Destroy the passes entries. | |
Protected Attributes | |
bool | mBuildDstTechnique |
RenderStateList | mCustomRenderStates |
Technique * | mDstTechnique |
String | mDstTechniqueSchemeName |
SGMaterial * | mParent |
SGPassList | mPassEntries |
Technique * | mSrcTechnique |
OGRE_AUTO_MUTEX | |
Shader generator technique wrapper class.
Definition at line 589 of file OgreShaderGenerator.h.
Ogre::RTShader::ShaderGenerator::SGTechnique::SGTechnique | ( | SGMaterial * | parent, |
Technique * | srcTechnique, | ||
const String & | dstTechniqueSchemeName | ||
) |
Ogre::RTShader::ShaderGenerator::SGTechnique::~SGTechnique | ( | ) |
void Ogre::RTShader::ShaderGenerator::SGTechnique::acquireIlluminationPrograms | ( | ) |
Acquire the CPU/GPU programs for illumination passes of this technique.
void Ogre::RTShader::ShaderGenerator::SGTechnique::acquirePrograms | ( | ) |
Acquire the CPU/GPU programs for this technique.
void Ogre::RTShader::ShaderGenerator::SGTechnique::buildIlluminationTargetRenderState | ( | ) |
Build the render state for illumination passes.
void Ogre::RTShader::ShaderGenerator::SGTechnique::buildTargetRenderState | ( | ) |
Build the render state.
|
protected |
Create the illumination passes entries.
|
protected |
Create the passes entries.
void Ogre::RTShader::ShaderGenerator::SGTechnique::destroyIlluminationSGPasses | ( | ) |
Destroy the illumination passes entries.
|
protected |
Destroy the passes entries.
bool Ogre::RTShader::ShaderGenerator::SGTechnique::getBuildDestinationTechnique | ( | ) | const |
Tells if the destination technique should be build.
Definition at line 629 of file OgreShaderGenerator.h.
Technique * Ogre::RTShader::ShaderGenerator::SGTechnique::getDestinationTechnique | ( | ) |
Get the destination technique.
Definition at line 602 of file OgreShaderGenerator.h.
const String & Ogre::RTShader::ShaderGenerator::SGTechnique::getDestinationTechniqueSchemeName | ( | ) | const |
Get the destination technique scheme name.
Definition at line 605 of file OgreShaderGenerator.h.
const SGMaterial * Ogre::RTShader::ShaderGenerator::SGTechnique::getParent | ( | ) | const |
Get the parent SGMaterial.
Definition at line 596 of file OgreShaderGenerator.h.
RenderState * Ogre::RTShader::ShaderGenerator::SGTechnique::getRenderState | ( | unsigned short | passIndex | ) |
Get render state of specific pass.
passIndex | The pass index. |
Technique * Ogre::RTShader::ShaderGenerator::SGTechnique::getSourceTechnique | ( | ) |
Get the source technique.
Definition at line 599 of file OgreShaderGenerator.h.
bool Ogre::RTShader::ShaderGenerator::SGTechnique::hasRenderState | ( | unsigned short | passIndex | ) |
Tells if a custom render state exists for the given pass.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
void Ogre::RTShader::ShaderGenerator::SGTechnique::releasePrograms | ( | ) |
Release the CPU/GPU programs of this technique.
void Ogre::RTShader::ShaderGenerator::SGTechnique::setBuildDestinationTechnique | ( | bool | buildTechnique | ) |
Tells the technique that it needs to generate shader code.
Definition at line 626 of file OgreShaderGenerator.h.
|
protected |
Definition at line 666 of file OgreShaderGenerator.h.
|
protected |
Definition at line 664 of file OgreShaderGenerator.h.
|
protected |
Definition at line 660 of file OgreShaderGenerator.h.
|
protected |
Definition at line 668 of file OgreShaderGenerator.h.
|
protected |
Definition at line 656 of file OgreShaderGenerator.h.
|
protected |
Definition at line 662 of file OgreShaderGenerator.h.
|
protected |
Definition at line 658 of file OgreShaderGenerator.h.
|
protected |
Definition at line 654 of file OgreShaderGenerator.h.
|
static |
Definition at line 639 of file OgreShaderGenerator.h.