Ogre::RTShader::ShaderGenerator::SGTechnique Class Reference

Shader generator technique wrapper class. More...

#include <OgreShaderGenerator.h>

Inheritance diagram for Ogre::RTShader::ShaderGenerator::SGTechnique:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SGTechnique (SGMaterial *parent, Technique *srcTechnique, const String &dstTechniqueSchemeName)
 ~SGTechnique ()
const SGMaterialgetParent () const
 Get the parent SGMaterial.
TechniquegetSourceTechnique ()
 Get the source technique.
TechniquegetDestinationTechnique ()
 Get the destination technique.
const StringgetDestinationTechniqueSchemeName () const
 Get the destination technique scheme name.
void buildTargetRenderState ()
 Build the render state.
void acquirePrograms ()
 Acquire the CPU/GPU programs for this technique.
void releasePrograms ()
 Release the CPU/GPU programs of this technique.
void setBuildDestinationTechnique (bool buildTechnique)
 Tells the technique that it needs to generate shader code.
bool getBuildDestinationTechnique () const
 Tells if the destination technique should be build.
RenderStategetRenderState (unsigned short passIndex)
 Get render state of specific pass.
bool hasRenderState (unsigned short passIndex)
 Tells if a custom render state exists for the given pass.
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 *)

Static Public Attributes

static String UserKey

Protected Member Functions

void createSGPasses ()
 Create the passes entries.
void destroySGPasses ()
 Destroy the passes entries.

Protected Attributes

SGMaterialmParent
TechniquemSrcTechnique
TechniquemDstTechnique
SGPassList mPassEntries
RenderStateList mCustomRenderStates
bool mBuildDstTechnique
String mDstTechniqueSchemeName

Detailed Description

Shader generator technique wrapper class.

Definition at line 523 of file OgreShaderGenerator.h.


Constructor & Destructor Documentation

Ogre::RTShader::ShaderGenerator::SGTechnique::SGTechnique ( SGMaterial parent,
Technique srcTechnique,
const String dstTechniqueSchemeName 
)
Ogre::RTShader::ShaderGenerator::SGTechnique::~SGTechnique (  ) 

Member Function Documentation

void Ogre::RTShader::ShaderGenerator::SGTechnique::acquirePrograms (  ) 

Acquire the CPU/GPU programs for this technique.

void Ogre::RTShader::ShaderGenerator::SGTechnique::buildTargetRenderState (  ) 

Build the render state.

void Ogre::RTShader::ShaderGenerator::SGTechnique::createSGPasses (  )  [protected]

Create the passes entries.

void Ogre::RTShader::ShaderGenerator::SGTechnique::destroySGPasses (  )  [protected]

Destroy the passes entries.

bool Ogre::RTShader::ShaderGenerator::SGTechnique::getBuildDestinationTechnique (  )  const

Tells if the destination technique should be build.

Definition at line 554 of file OgreShaderGenerator.h.

Technique* Ogre::RTShader::ShaderGenerator::SGTechnique::getDestinationTechnique (  ) 

Get the destination technique.

Definition at line 536 of file OgreShaderGenerator.h.

const String& Ogre::RTShader::ShaderGenerator::SGTechnique::getDestinationTechniqueSchemeName (  )  const

Get the destination technique scheme name.

Definition at line 539 of file OgreShaderGenerator.h.

const SGMaterial* Ogre::RTShader::ShaderGenerator::SGTechnique::getParent (  )  const

Get the parent SGMaterial.

Definition at line 530 of file OgreShaderGenerator.h.

RenderState* Ogre::RTShader::ShaderGenerator::SGTechnique::getRenderState ( unsigned short  passIndex  ) 

Get render state of specific pass.

Parameters:
passIndex The pass index.
Technique* Ogre::RTShader::ShaderGenerator::SGTechnique::getSourceTechnique (  ) 

Get the source technique.

Definition at line 533 of file OgreShaderGenerator.h.

bool Ogre::RTShader::ShaderGenerator::SGTechnique::hasRenderState ( unsigned short  passIndex  ) 

Tells if a custom render state exists for the given pass.

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

Definition at line 107 of file OgreMemoryAllocatedObject.h.

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

Definition at line 101 of file OgreMemoryAllocatedObject.h.

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

Definition at line 95 of file OgreMemoryAllocatedObject.h.

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

Definition at line 118 of file OgreMemoryAllocatedObject.h.

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

Definition at line 112 of file OgreMemoryAllocatedObject.h.

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

placement operator new

Definition at line 78 of file OgreMemoryAllocatedObject.h.

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

Definition at line 72 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
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.

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

Definition at line 90 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
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.

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 551 of file OgreShaderGenerator.h.


Member Data Documentation

Definition at line 579 of file OgreShaderGenerator.h.

Definition at line 578 of file OgreShaderGenerator.h.

Definition at line 576 of file OgreShaderGenerator.h.

Definition at line 580 of file OgreShaderGenerator.h.

Definition at line 574 of file OgreShaderGenerator.h.

Definition at line 577 of file OgreShaderGenerator.h.

Definition at line 575 of file OgreShaderGenerator.h.

Definition at line 563 of file OgreShaderGenerator.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:42:41 2012