Project

General

Profile

SO3Engine
SO3::SShaderGeneratorCG Class Reference

#include <SO3ShaderGeneratorCG.h>

Inheritance diagram for SO3::SShaderGeneratorCG:
SO3::SShaderGenerator

Public Member Functions

 SShaderGeneratorCG (Ogre::Technique *, Ogre::Pass *pass, ShaderType type, bool ignoreSlicePlane=false)
 
 ~SShaderGeneratorCG ()
 
virtual void ComputeShaderCode ()
 
virtual std::string GetUniformParams ()
 
virtual std::string GetProgram ()
 
virtual void ApplyShader ()
 
- Public Member Functions inherited from SO3::SShaderGenerator
 SShaderGenerator (Ogre::Technique *, Ogre::Pass *pass, ShaderType type, bool ignoreSlicePlane=false)
 
 ~SShaderGenerator ()
 
std::string GetShaderName ()
 
bool IsUvAnimated (int uvindex)
 
bool IsAlphaRejected ()
 
int GetConfig ()
 

Additional Inherited Members

- Public Types inherited from SO3::SShaderGenerator
enum  ShaderType { ShaderGeneratorVP , ShaderGeneratorFP , ShaderGeneratorRTSS }
 
enum  ShaderMapType {
  MAP_DUMMY = 1 , MAP_AMBIENT = 2 , MAP_DIFFUSE = 4 , MAP_BUMP = 8 ,
  MAP_NORMAL = 16 , MAP_SPECULAR = 32 , MAP_SHININESS = 64 , MAP_EMISSIVE = 128 ,
  MAP_REFLECTION = 256 , MAP_FRESNEL = 512 , MAP_REFMASK = 1024 , MAP_OPACITY = 2048 ,
  MAP_ROUGHNESS = 4096
}
 
typedef std::list< Ogre::GpuProgramPtr > GeneratedShaders
 
- Static Public Member Functions inherited from SO3::SShaderGenerator
static void Reset ()
 
- Static Public Attributes inherited from SO3::SShaderGenerator
static GeneratedShaders mGeneratedShaders
 
- Protected Attributes inherited from SO3::SShaderGenerator
ShaderType mType
 
Ogre::Pass * mPass
 
Ogre::Technique * mTechnique
 
int mConfig
 
std::string mShaderName
 
std::vector< ShaderMapTypemTexTypes
 
std::vector< unsigned int > mTexUnits
 
std::vector< unsigned int > mSortedTexUnits
 
std::vector< bool > mAnimatedUv
 
std::vector< bool > mCubeUv
 
std::vector< bool > mSortedCubeUv
 
std::stringstream mSource
 
std::string mParams
 
std::string mProgram
 
float mRefTexCoef
 
bool mHighProfile
 
bool mNotLight
 
bool mUseVertexColor
 
bool mIgnoreSlicePlane
 
bool mUseAlphaRejection
 
unsigned int mNbLights
 

Detailed Description

Definition at line 41 of file SO3ShaderGeneratorCG.h.

Constructor & Destructor Documentation

◆ SShaderGeneratorCG()

SShaderGeneratorCG::SShaderGeneratorCG ( Ogre::Technique *  technique,
Ogre::Pass *  pass,
ShaderType  type,
bool  ignoreSlicePlane = false 
)

Definition at line 20 of file SO3ShaderGeneratorCG.cpp.

◆ ~SShaderGeneratorCG()

SShaderGeneratorCG::~SShaderGeneratorCG ( )

Definition at line 25 of file SO3ShaderGeneratorCG.cpp.

Member Function Documentation

◆ ApplyShader()

void SShaderGeneratorCG::ApplyShader ( )
virtual

Reimplemented from SO3::SShaderGenerator.

Definition at line 715 of file SO3ShaderGeneratorCG.cpp.

◆ ComputeShaderCode()

void SShaderGeneratorCG::ComputeShaderCode ( )
virtual

Reimplemented from SO3::SShaderGenerator.

Definition at line 30 of file SO3ShaderGeneratorCG.cpp.

◆ GetProgram()

std::string SShaderGeneratorCG::GetProgram ( )
virtual

Reimplemented from SO3::SShaderGenerator.

Definition at line 614 of file SO3ShaderGeneratorCG.cpp.

◆ GetUniformParams()

std::string SShaderGeneratorCG::GetUniformParams ( )
virtual

Reimplemented from SO3::SShaderGenerator.

Definition at line 569 of file SO3ShaderGeneratorCG.cpp.


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