OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::CgFxScriptLoader Class Reference

Manages Overlay objects, parsing them from .overlay files and storing a lookup library of them. More...

#include <OgreCgFxScriptLoader.h>

+ Inheritance diagram for Ogre::CgFxScriptLoader:
+ Collaboration diagram for Ogre::CgFxScriptLoader:

Classes

class  CgAlphaFuncGlobalStateListener
 
class  CgBlendEquationGlobalStateListener
 BlendEquation. More...
 
class  CgBlendEquationSeparateGlobalStateListener
 
class  CgBlendFuncGlobalStateListener
 
class  CgBlendFuncSeparateGlobalStateListener
 
class  CgBool4GlobalStateListener
 Bool4. More...
 
class  CgBoolGlobalStateListener
 Bool. More...
 
class  CgBoolSamplerStateListener
 Bool. More...
 
class  CgColorMaterialGlobalStateListener
 
class  CgCompareFuncSamplerStateListener
 CompareFunc. More...
 
class  CgCompareModeSamplerStateListener
 CompareMode. More...
 
class  CgCullFaceGlobalStateListener
 CullFaceGlobal - CullFace. More...
 
class  CgDepthFuncGlobalStateListener
 DepthFunc. More...
 
class  CgDepthModeSamplerStateListener
 DepthMode. More...
 
class  CgFloat2GlobalStateListener
 Float2. More...
 
class  CgFloat3GlobalStateListener
 Float3. More...
 
class  CgFloat4GlobalStateListener
 Float4. More...
 
class  CgFloat4SamplerStateListener
 Float4. More...
 
class  CgFloat4x2GlobalStateListener
 Float4x2. More...
 
class  CgFloat4x3GlobalStateListener
 Float4x3. More...
 
class  CgFloat4x4GlobalStateListener
 Float4x4. More...
 
class  CgFloatGlobalStateListener
 Float. More...
 
class  CgFloatSamplerStateListener
 Float. More...
 
class  CgFogCoordSrcGlobalStateListener
 FogCoordSrcGlobal - FogCoordSrc. More...
 
class  CgFogDistanceModeGlobalStateListener
 FogDistanceMode. More...
 
class  CgFogModeGlobalStateListener
 FogMode. More...
 
class  CgFrontFaceGlobalStateListener
 FrontFace. More...
 
class  CgGlobalStateListener
 
class  CgInt2GlobalStateListener
 Int2. More...
 
class  CgInt3GlobalStateListener
 Int3. More...
 
class  CgInt4GlobalStateListener
 Int4. More...
 
class  CgIntGlobalStateListener
 Int. More...
 
class  CgIntSamplerStateListener
 Int. More...
 
class  CgLightModelColorControlGlobalStateListener
 LightModelColorControl. More...
 
class  CgLogicOpGlobalStateListener
 LogicOp. More...
 
class  CgMagFilterGlobalStateListener
 MagFilter. More...
 
class  CgMagFilterSamplerStateListener
 MagFilter. More...
 
class  CgMinFilterGlobalStateListener
 MinFilter. More...
 
class  CgMinFilterSamplerStateListener
 MinFilter. More...
 
class  CgMipFilterSamplerStateListener
 MipFilter. More...
 
class  CgPointSpriteCoordOriginGlobalStateListener
 PointSpriteCoordOrigin. More...
 
class  CgPointSpriteRModeGlobalStateListener
 PointSpriteRMode. More...
 
class  CgPolygonModeGlobalStateListener
 
class  CgProgramGlobalStateListener
 Program. More...
 
class  CgSampler2GlobalStateListener
 Sampler2. More...
 
class  CgSampler3GlobalStateListener
 Sampler3. More...
 
class  CgSamplerCubeGlobalStateListener
 SamplerCube. More...
 
class  CgSamplerGlobalStateListener
 Sampler. More...
 
class  CgSamplerRectGlobalStateListener
 SamplerRect. More...
 
class  CgSamplerStateListener
 
class  CgShadeModelGlobalStateListener
 ShadeModel. More...
 
class  CgStateListener
 
class  CgStencilFuncGlobalStateListener
 
class  CgStencilFuncSeparateGlobalStateListener
 
class  CgStencilMaskSeparateGlobalStateListener
 
class  CgStencilOpGlobalStateListener
 
class  CgStencilOpSeparateGlobalStateListener
 
class  CgTexGenModeGlobalStateListener
 TexGenMode. More...
 
class  CgTextureAddressSamplerStateListener
 TextureAddress. More...
 
class  CgTextureEnvModeGlobalStateListener
 TextureEnvMode. More...
 
class  CgTextureGlobalStateListener
 Texture. More...
 
class  CgTextureSamplerStateListener
 Texture. More...
 
class  CgWrapSamplerStateListener
 
struct  Vector1b
 
struct  Vector1f
 
struct  Vector1i
 
struct  Vector2b
 
struct  Vector2f
 
struct  Vector2i
 
struct  Vector3b
 
struct  Vector3f
 
struct  Vector3i
 
struct  Vector4b
 
struct  Vector4f
 
struct  Vector4i
 

Public Member Functions

 CgFxScriptLoader ()
 
virtual ~CgFxScriptLoader ()
 
Real getLoadingOrder (void) const
 Gets the relative loading order of scripts of this type. More...
 
const StringVectorgetScriptPatterns (void) const
 Gets the file patterns which should be used to find scripts for this class. More...
 
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)
 
void parseScript (DataStreamPtr &stream, const String &groupName)
 Parse a script file. More...
 

Static Public Member Functions

static CgFxScriptLoadergetSingleton (void)
 Override standard Singleton retrieval. More...
 
static CgFxScriptLoadergetSingletonPtr (void)
 Override standard Singleton retrieval. More...
 

Protected Types

typedef map< CGstate,
CgGlobalStateListener * >
::type 
CgGlobalStateToListenerMap
 
typedef map< CGstate,
CgSamplerStateListener * >
::type 
CgSamplerStateToListenerMap
 
typedef vector
< CgStateListener * >::type 
CgStateListenerVector
 
enum  FXSemanticID {
  FXS_NONE, FXS_UNKNOWN, FXS_POSITION, FXS_DIRECTION,
  FXS_COLOR, FXS_DIFFUSE, FXS_SPECULAR, FXS_AMBIENT,
  FXS_EMISSION, FXS_EMISSIVE, FXS_SPECULARPOWER, FXS_REFRACTION,
  FXS_OPACITY, FXS_ENVIRONMENT, FXS_ENVIRONMENTNORMAL, FXS_NORMAL,
  FXS_HEIGHT, FXS_ATTENUATION, FXS_RENDERCOLORTARGET, FXS_RENDERDEPTHSTENCILTARGET,
  FXS_VIEWPORTPIXELSIZE, FXS_CAMERAPOSITION, FXS_TIME, FXS_ELAPSEDTIME,
  FXS_ANIMATIONTIME, FXS_ANIMATIONTICK, FXS_MOUSEPOSITION, FXS_LEFTMOUSEDOWN,
  FXS_WORLD, FXS_VIEW, FXS_PROJECTION, FXS_WORLDTRANSPOSE,
  FXS_VIEWTRANSPOSE, FXS_PROJECTIONTRANSPOSE, FXS_WORLDVIEW, FXS_WORLDVIEWPROJECTION,
  FXS_WORLDINVERSE, FXS_VIEWINVERSE, FXS_PROJECTIONINVERSE, FXS_WORLDINVERSETRANSPOSE,
  FXS_VIEWINVERSETRANSPOSE, FXS_PROJECTIONINVERSETRANSPOSE, FXS_WORLDVIEWINVERSE, FXS_WORLDVIEWTRANSPOSE,
  FXS_WORLDVIEWINVERSETRANSPOSE, FXS_WORLDVIEWPROJECTIONINVERSE, FXS_WORLDVIEWPROJECTIONTRANSPOSE, FXS_WORLDVIEWPROJECTIONINVERSETRANSPOSE,
  FXS_VIEWPROJECTION, FXS_VIEWPROJECTIONTRANSPOSE, FXS_VIEWPROJECTIONINVERSE, FXS_VIEWPROJECTIONINVERSETRANSPOSE,
  FXS_FXCOMPOSER_RESETPULSE, FXS_STANDARDSGLOBAL, FXS_UNITSSCALE, FXS_POWER,
  FXS_DIFFUSEMAP, FXS_SPECULARMAP, FXS_ENVMAP, FXS_LIGHTPOSITION,
  FXS_TRANSFORM, FXS_USER, FXS_CONSTANTATTENUATION, FXS_LINEARATTENUATION,
  FXS_QUADRATICATTENUATION, FXS_FALLOFFANGLE, FXS_FALLOFFEXPONENT, FXS_BOUNDINGRADIUS
}
 we want to comply to FXCompositor - this list is the enum FXComposer.Core.FXSemanticID that existing in C: Files Corporation Composer 2.5.Core.dll if you reference if from managed project you can see the list. More...
 
enum  GlobalStateType {
  GST_UNKNOWN, GST_ALPHABLENDENABLE, GST_ALPHAFUNC, GST_ALPHAREF,
  GST_BLENDOP, GST_BLENDEQUATION, GST_BLENDFUNC, GST_BLENDFUNCSEPARATE,
  GST_BLENDEQUATIONSEPARATE, GST_BLENDCOLOR, GST_CLEARCOLOR, GST_CLEARSTENCIL,
  GST_CLEARDEPTH, GST_CLIPPLANE, GST_CLIPPLANEENABLE, GST_COLORWRITEENABLE,
  GST_COLORMASK, GST_COLORVERTEX, GST_COLORMATERIAL, GST_COLORMATRIX,
  GST_COLORTRANSFORM, GST_CULLFACE, GST_CULLMODE, GST_DEPTHBOUNDS,
  GST_DEPTHBIAS, GST_DESTBLEND, GST_DEPTHFUNC, GST_ZFUNC,
  GST_DEPTHMASK, GST_ZWRITEENABLE, GST_DEPTHRANGE, GST_FOGDISTANCEMODE,
  GST_FOGMODE, GST_FOGTABLEMODE, GST_INDEXEDVERTEXBLENDENABLE, GST_FOGDENSITY,
  GST_FOGSTART, GST_FOGEND, GST_FOGCOLOR, GST_FRAGMENTENVPARAMETER,
  GST_FRAGMENTLOCALPARAMETER, GST_FOGCOORDSRC, GST_FOGVERTEXMODE, GST_FRONTFACE,
  GST_LIGHTMODELAMBIENT, GST_AMBIENT, GST_LIGHTINGENABLE, GST_LIGHTENABLE,
  GST_LIGHTAMBIENT, GST_LIGHTCONSTANTATTENUATION, GST_LIGHTATTENUATION0, GST_LIGHTDIFFUSE,
  GST_LIGHTLINEARATTENUATION, GST_LIGHTATTENUATION1, GST_LIGHTPOSITION, GST_LIGHTQUADRATICATTENUATION,
  GST_LIGHTATTENUATION2, GST_LIGHTSPECULAR, GST_LIGHTSPOTCUTOFF, GST_LIGHTFALLOFF,
  GST_LIGHTSPOTDIRECTION, GST_LIGHTDIRECTION, GST_LIGHTSPOTEXPONENT, GST_LIGHTPHI,
  GST_LIGHTRANGE, GST_LIGHTTHETA, GST_LIGHTTYPE, GST_LOCALVIEWER,
  GST_MULTISAMPLEANTIALIAS, GST_MULTISAMPLEMASK, GST_PATCHSEGMENTS, GST_POINTSCALE_A,
  GST_POINTSCALE_B, GST_POINTSCALE_C, GST_POINTSCALEENABLE, GST_RANGEFOGENABLE,
  GST_SPECULARENABLE, GST_TWEENFACTOR, GST_VERTEXBLEND, GST_AMBIENTMATERIALSOURCE,
  GST_DIFFUSEMATERIALSOURCE, GST_EMISSIVEMATERIALSOURCE, GST_SPECULARMATERIALSOURCE, GST_CLIPPING,
  GST_LIGHTMODELCOLORCONTROL, GST_LINESTIPPLE, GST_LINEWIDTH, GST_LOGICOP,
  GST_MATERIALAMBIENT, GST_MATERIALDIFFUSE, GST_MATERIALEMISSION, GST_MATERIALEMISSIVE,
  GST_MATERIALSHININESS, GST_MATERIALPOWER, GST_MATERIALSPECULAR, GST_MODELVIEWMATRIX,
  GST_MODELVIEWTRANSFORM, GST_VIEWTRANSFORM, GST_WORLDTRANSFORM, GST_POINTDISTANCEATTENUATION,
  GST_POINTFADETHRESHOLDSIZE, GST_POINTSIZE, GST_POINTSIZEMIN, GST_POINTSIZEMAX,
  GST_POINTSPRITECOORDORIGIN, GST_POINTSPRITECOORDREPLACE, GST_POINTSPRITERMODE, GST_POLYGONMODE,
  GST_FILLMODE, GST_LASTPIXEL, GST_POLYGONOFFSET, GST_PROJECTIONMATRIX,
  GST_PROJECTIONTRANSFORM, GST_SCISSOR, GST_SHADEMODEL, GST_SHADEMODE,
  GST_SLOPSCALEDEPTHBIAS, GST_SRCBLEND, GST_STENCILFUNC, GST_STENCILMASK,
  GST_STENCILPASS, GST_STENCILREF, GST_STENCILWRITEMASK, GST_STENCILZFAIL,
  GST_TEXTUREFACTOR, GST_STENCILOP, GST_STENCILFUNCSEPARATE, GST_STENCILMASKSEPARATE,
  GST_STENCILOPSEPARATE, GST_TEXGENSMODE, GST_TEXGENSOBJECTPLANE, GST_TEXGENSEYEPLANE,
  GST_TEXGENTMODE, GST_TEXGENTOBJECTPLANE, GST_TEXGENTEYEPLANE, GST_TEXGENRMODE,
  GST_TEXGENROBJECTPLANE, GST_TEXGENREYEPLANE, GST_TEXGENQMODE, GST_TEXGENQOBJECTPLANE,
  GST_TEXGENQEYEPLANE, GST_TEXTUREENVCOLOR, GST_TEXTUREENVMODE, GST_TEXTURE1D,
  GST_TEXTURE2D, GST_TEXTURE3D, GST_TEXTURERECTANGLE, GST_TEXTURECUBEMAP,
  GST_TEXTURE1DENABLE, GST_TEXTURE2DENABLE, GST_TEXTURE3DENABLE, GST_TEXTURERECTANGLEENABLE,
  GST_TEXTURECUBEMAPENABLE, GST_TEXTURETRANSFORM, GST_TEXTUREMATRIX, GST_VERTEXENVPARAMETER,
  GST_VERTEXLOCALPARAMETER, GST_ALPHATESTENABLE, GST_AUTONORMALENABLE, GST_BLENDENABLE,
  GST_COLORLOGICOPENABLE, GST_CULLFACEENABLE, GST_DEPTHBOUNDSENABLE, GST_DEPTHCLAMPENABLE,
  GST_DEPTHTESTENABLE, GST_ZENABLE, GST_DITHERENABLE, GST_FOGENABLE,
  GST_LIGHTMODELLOCALVIEWERENABLE, GST_LIGHTMODELTWOSIDEENABLE, GST_LINESMOOTHENABLE, GST_LINESTIPPLEENABLE,
  GST_LOGICOPENABLE, GST_MULTISAMPLEENABLE, GST_NORMALIZEENABLE, GST_POINTSMOOTHENABLE,
  GST_POINTSPRITEENABLE, GST_POLYGONOFFSETFILLENABLE, GST_POLYGONOFFSETLINEENABLE, GST_POLYGONOFFSETPOINTENABLE,
  GST_POLYGONSMOOTHENABLE, GST_POLYGONSTIPPLEENABLE, GST_RESCALENORMALENABLE, GST_SAMPLEALPHATOCOVERAGEENABLE,
  GST_SAMPLEALPHATOONEENABLE, GST_SAMPLECOVERAGEENABLE, GST_SCISSORTESTENABLE, GST_STENCILTESTENABLE,
  GST_STENCILENABLE, GST_STENCILTESTTWOSIDEENABLE, GST_STENCILFAIL, GST_TEXGENSENABLE,
  GST_TEXGENTENABLE, GST_TEXGENRENABLE, GST_TEXGENQENABLE, GST_WRAP0,
  GST_WRAP1, GST_WRAP2, GST_WRAP3, GST_WRAP4,
  GST_WRAP5, GST_WRAP6, GST_WRAP7, GST_WRAP8,
  GST_WRAP9, GST_WRAP10, GST_WRAP11, GST_WRAP12,
  GST_WRAP13, GST_WRAP14, GST_WRAP15, GST_VERTEXPROGRAMPOINTSIZEENABLE,
  GST_VERTEXPROGRAMTWOSIDEENABLE, GST_GEOMETRYPROGRAM, GST_VERTEXPROGRAM, GST_FRAGMENTPROGRAM,
  GST_VERTEXSHADER, GST_PIXELSHADER, GST_ALPHAOP, GST_ALPHAARG0,
  GST_ALPHAARG1, GST_ALPHAARG2, GST_COLORARG0, GST_COLORARG1,
  GST_COLORARG2, GST_COLOROP, GST_BUMPENVLSCALE, GST_BUMPENVLOFFSET,
  GST_BUMPENVMAT00, GST_BUMPENVMAT01, GST_BUMPENVMAT10, GST_BUMPENVMAT11,
  GST_RESULTARG, GST_TEXCOORDINDEX, GST_TEXTURETRANSFORMFLAGS, GST_TWOSIDEDSTENCILMODE,
  GST_SEPARATEALPHABLENDENABLE, GST_NORMALIZENORMALS, GST_LIGHTING, GST_PIXELSHADERCONSTANTB,
  GST_VERTEXSHADERCONSTANTB, GST_COLORWRITEENABLE1, GST_COLORWRITEENABLE2, GST_COLORWRITEENABLE3,
  GST_PIXELSHADERCONSTANT1, GST_VERTEXSHADERCONSTANT1, GST_PIXELSHADERCONSTANTF, GST_VERTEXSHADERCONSTANTF,
  GST_PIXELSHADERCONSTANT2, GST_VERTEXSHADERCONSTANT2, GST_PIXELSHADERCONSTANT3, GST_VERTEXSHADERCONSTANT3,
  GST_PIXELSHADERCONSTANT, GST_VERTEXSHADERCONSTANT, GST_PIXELSHADERCONSTANT4, GST_VERTEXSHADERCONSTANT4,
  GST_PIXELSHADERCONSTANTI, GST_VERTEXSHADERCONSTANTI, GST_SAMPLER, GST_TEXTURE,
  GST_ADDRESSU, GST_ADDRESSV, GST_ADDRESSW, GST_BORDERCOLOR,
  GST_MAXANISOTROPY, GST_MAXMIPLEVEL, GST_MINFILTER, GST_MAGFILTER,
  GST_MIPFILTER, GST_MIPMAPLODBIAS, GST_BLENDOPALPHA, GST_SRCBLENDALPHA,
  GST_DESTBLENDALPHA, GST_COUNT
}
 
enum  SamplerStateType {
  SST_UNKNOWN, SST_TEXTURE, SST_ADDRESSU, SST_ADDRESSV,
  SST_ADDRESSW, SST_WRAPS, SST_WRAPT, SST_WRAPR,
  SST_MIPFILTER, SST_MIPMAPLODBIAS, SST_LODBIAS, SST_SRGBTEXTURE,
  SST_MINFILTER, SST_MAGFILTER, SST_BORDERCOLOR, SST_MINMIPLEVEL,
  SST_MAXMIPLEVEL, SST_MAXANISOTROPY, SST_DEPTHMODE, SST_COMPAREMODE,
  SST_COMPAREFUNC, SST_GENERATEMIPMAP, SST_COUNT
}
 

Protected Member Functions

void buildStateNameStringToTypeMap ()
 
const FXSemanticID cgSemanticStringToType (const char *cgParamSemantic)
 
const bool cgSemanticToOgreAutoConstantType (const char *cgParamSemantic, const char *uiNameValue, GpuProgramParameters::AutoConstantType &ogreAutoConstantType, size_t &extraInfo)
 
CgGlobalStateListenercreateCgGlobalStateListener (const GlobalStateType type)
 
CgSamplerStateListenercreateCgSamplerStateListener (const SamplerStateType type)
 
CGcontext getCgContext () const
 
const char * getGlobalStateNameTypeToString (const GlobalStateType cgStateName)
 
const char * getSamplerStateNameTypeToString (const SamplerStateType cgStateName)
 
bool parseAutoConstantParam (CGparameter cgParameter, GpuProgramParametersSharedPtr ogreProgramParameters, const String &ogreParamName)
 
void parseCgEffect (CGeffect cgEffect, MaterialPtr ogreMaterial)
 
void parseCgEffectTechniques (CGeffect cgEffect, MaterialPtr ogreMaterial)
 
void parseCgPass (CGpass cgPass, Pass *ogrePass)
 
void parseCgProgram (CGpass cgPass, Pass *ogrePass, const GpuProgramType ogreProgramType)
 
void parseCgProgramParameter (CGparameter cgParameter, GpuProgramParametersSharedPtr ogreProgramParameters, const String &ogreParamName)
 
void parseCgProgramParameters (CGpass cgPass, GpuProgramParametersSharedPtr ogreProgramParameters)
 
void parseCgTechnique (CGtechnique cgTechnique, Technique *ogreTechnique)
 
void parseFloatCgProgramParameter (CGtype cgParamType, CGparameter cgParameter, GpuProgramParametersSharedPtr ogreProgramParameters, const String &ogreParamName)
 
void parseIntCgProgramParameter (CGtype cgParamType, CGparameter cgParameter, GpuProgramParametersSharedPtr ogreProgramParameters, const String &ogreParamName)
 
void parsePassStateAssignments (CGpass cgPass, Pass *ogrePass)
 
void parseSamplerParameters (CGpass cgPass, Pass *ogrePass)
 
void parseTextureUnitState (CGstateassignment cgStateAssignment, TextureUnitState *ogreTextureUnitState)
 

Protected Attributes

CGcontext mCgContext
 
CgGlobalStateToListenerMap mCgGlobalStateToListenerMap
 
CgStateListenerVector mCgSamplerStateListenerVector
 
CgSamplerStateToListenerMap mCgSamplerStateToListenerMap
 
CgStateListenerVector mCgStateListenerVector
 
StringVector mScriptPatterns
 

Static Protected Attributes

static CgFxScriptLoaderms_Singleton
 

Detailed Description

Manages Overlay objects, parsing them from .overlay files and storing a lookup library of them.

Alo manages the creation of OverlayContainers and OverlayElements, used for non-interactive 2D elements such as HUDs.

Definition at line 47 of file OgreCgFxScriptLoader.h.

Member Typedef Documentation

Definition at line 1451 of file OgreCgFxScriptLoader.h.

Definition at line 1452 of file OgreCgFxScriptLoader.h.

Definition at line 579 of file OgreCgFxScriptLoader.h.

Member Enumeration Documentation

we want to comply to FXCompositor - this list is the enum FXComposer.Core.FXSemanticID that existing in C: Files Corporation Composer 2.5.Core.dll if you reference if from managed project you can see the list.

description is from C: Files Corporation Composer 2.5.xml (open with a text editor and not with the browser) and from C: Files Corporation Composer 2.5.Core.xml

Enumerator
FXS_NONE 
FXS_UNKNOWN 
FXS_POSITION 
FXS_DIRECTION 
FXS_COLOR 
FXS_DIFFUSE 
FXS_SPECULAR 
FXS_AMBIENT 
FXS_EMISSION 
FXS_EMISSIVE 
FXS_SPECULARPOWER 
FXS_REFRACTION 
FXS_OPACITY 
FXS_ENVIRONMENT 
FXS_ENVIRONMENTNORMAL 
FXS_NORMAL 
FXS_HEIGHT 
FXS_ATTENUATION 
FXS_RENDERCOLORTARGET 
FXS_RENDERDEPTHSTENCILTARGET 
FXS_VIEWPORTPIXELSIZE 
FXS_CAMERAPOSITION 
FXS_TIME 
FXS_ELAPSEDTIME 
FXS_ANIMATIONTIME 
FXS_ANIMATIONTICK 
FXS_MOUSEPOSITION 
FXS_LEFTMOUSEDOWN 
FXS_WORLD 
FXS_VIEW 
FXS_PROJECTION 
FXS_WORLDTRANSPOSE 
FXS_VIEWTRANSPOSE 
FXS_PROJECTIONTRANSPOSE 
FXS_WORLDVIEW 
FXS_WORLDVIEWPROJECTION 
FXS_WORLDINVERSE 
FXS_VIEWINVERSE 
FXS_PROJECTIONINVERSE 
FXS_WORLDINVERSETRANSPOSE 
FXS_VIEWINVERSETRANSPOSE 
FXS_PROJECTIONINVERSETRANSPOSE 
FXS_WORLDVIEWINVERSE 
FXS_WORLDVIEWTRANSPOSE 
FXS_WORLDVIEWINVERSETRANSPOSE 
FXS_WORLDVIEWPROJECTIONINVERSE 
FXS_WORLDVIEWPROJECTIONTRANSPOSE 
FXS_WORLDVIEWPROJECTIONINVERSETRANSPOSE 
FXS_VIEWPROJECTION 
FXS_VIEWPROJECTIONTRANSPOSE 
FXS_VIEWPROJECTIONINVERSE 
FXS_VIEWPROJECTIONINVERSETRANSPOSE 
FXS_FXCOMPOSER_RESETPULSE 
FXS_STANDARDSGLOBAL 
FXS_UNITSSCALE 
FXS_POWER 
FXS_DIFFUSEMAP 
FXS_SPECULARMAP 
FXS_ENVMAP 
FXS_LIGHTPOSITION 
FXS_TRANSFORM 
FXS_USER 
FXS_CONSTANTATTENUATION 
FXS_LINEARATTENUATION 
FXS_QUADRATICATTENUATION 
FXS_FALLOFFANGLE 
FXS_FALLOFFEXPONENT 
FXS_BOUNDINGRADIUS 

Definition at line 57 of file OgreCgFxScriptLoader.h.

Enumerator
GST_UNKNOWN 
GST_ALPHABLENDENABLE 
GST_ALPHAFUNC 
GST_ALPHAREF 
GST_BLENDOP 
GST_BLENDEQUATION 
GST_BLENDFUNC 
GST_BLENDFUNCSEPARATE 
GST_BLENDEQUATIONSEPARATE 
GST_BLENDCOLOR 
GST_CLEARCOLOR 
GST_CLEARSTENCIL 
GST_CLEARDEPTH 
GST_CLIPPLANE 
GST_CLIPPLANEENABLE 
GST_COLORWRITEENABLE 
GST_COLORMASK 
GST_COLORVERTEX 
GST_COLORMATERIAL 
GST_COLORMATRIX 
GST_COLORTRANSFORM 
GST_CULLFACE 
GST_CULLMODE 
GST_DEPTHBOUNDS 
GST_DEPTHBIAS 
GST_DESTBLEND 
GST_DEPTHFUNC 
GST_ZFUNC 
GST_DEPTHMASK 
GST_ZWRITEENABLE 
GST_DEPTHRANGE 
GST_FOGDISTANCEMODE 
GST_FOGMODE 
GST_FOGTABLEMODE 
GST_INDEXEDVERTEXBLENDENABLE 
GST_FOGDENSITY 
GST_FOGSTART 
GST_FOGEND 
GST_FOGCOLOR 
GST_FRAGMENTENVPARAMETER 
GST_FRAGMENTLOCALPARAMETER 
GST_FOGCOORDSRC 
GST_FOGVERTEXMODE 
GST_FRONTFACE 
GST_LIGHTMODELAMBIENT 
GST_AMBIENT 
GST_LIGHTINGENABLE 
GST_LIGHTENABLE 
GST_LIGHTAMBIENT 
GST_LIGHTCONSTANTATTENUATION 
GST_LIGHTATTENUATION0 
GST_LIGHTDIFFUSE 
GST_LIGHTLINEARATTENUATION 
GST_LIGHTATTENUATION1 
GST_LIGHTPOSITION 
GST_LIGHTQUADRATICATTENUATION 
GST_LIGHTATTENUATION2 
GST_LIGHTSPECULAR 
GST_LIGHTSPOTCUTOFF 
GST_LIGHTFALLOFF 
GST_LIGHTSPOTDIRECTION 
GST_LIGHTDIRECTION 
GST_LIGHTSPOTEXPONENT 
GST_LIGHTPHI 
GST_LIGHTRANGE 
GST_LIGHTTHETA 
GST_LIGHTTYPE 
GST_LOCALVIEWER 
GST_MULTISAMPLEANTIALIAS 
GST_MULTISAMPLEMASK 
GST_PATCHSEGMENTS 
GST_POINTSCALE_A 
GST_POINTSCALE_B 
GST_POINTSCALE_C 
GST_POINTSCALEENABLE 
GST_RANGEFOGENABLE 
GST_SPECULARENABLE 
GST_TWEENFACTOR 
GST_VERTEXBLEND 
GST_AMBIENTMATERIALSOURCE 
GST_DIFFUSEMATERIALSOURCE 
GST_EMISSIVEMATERIALSOURCE 
GST_SPECULARMATERIALSOURCE 
GST_CLIPPING 
GST_LIGHTMODELCOLORCONTROL 
GST_LINESTIPPLE 
GST_LINEWIDTH 
GST_LOGICOP 
GST_MATERIALAMBIENT 
GST_MATERIALDIFFUSE 
GST_MATERIALEMISSION 
GST_MATERIALEMISSIVE 
GST_MATERIALSHININESS 
GST_MATERIALPOWER 
GST_MATERIALSPECULAR 
GST_MODELVIEWMATRIX 
GST_MODELVIEWTRANSFORM 
GST_VIEWTRANSFORM 
GST_WORLDTRANSFORM 
GST_POINTDISTANCEATTENUATION 
GST_POINTFADETHRESHOLDSIZE 
GST_POINTSIZE 
GST_POINTSIZEMIN 
GST_POINTSIZEMAX 
GST_POINTSPRITECOORDORIGIN 
GST_POINTSPRITECOORDREPLACE 
GST_POINTSPRITERMODE 
GST_POLYGONMODE 
GST_FILLMODE 
GST_LASTPIXEL 
GST_POLYGONOFFSET 
GST_PROJECTIONMATRIX 
GST_PROJECTIONTRANSFORM 
GST_SCISSOR 
GST_SHADEMODEL 
GST_SHADEMODE 
GST_SLOPSCALEDEPTHBIAS 
GST_SRCBLEND 
GST_STENCILFUNC 
GST_STENCILMASK 
GST_STENCILPASS 
GST_STENCILREF 
GST_STENCILWRITEMASK 
GST_STENCILZFAIL 
GST_TEXTUREFACTOR 
GST_STENCILOP 
GST_STENCILFUNCSEPARATE 
GST_STENCILMASKSEPARATE 
GST_STENCILOPSEPARATE 
GST_TEXGENSMODE 
GST_TEXGENSOBJECTPLANE 
GST_TEXGENSEYEPLANE 
GST_TEXGENTMODE 
GST_TEXGENTOBJECTPLANE 
GST_TEXGENTEYEPLANE 
GST_TEXGENRMODE 
GST_TEXGENROBJECTPLANE 
GST_TEXGENREYEPLANE 
GST_TEXGENQMODE 
GST_TEXGENQOBJECTPLANE 
GST_TEXGENQEYEPLANE 
GST_TEXTUREENVCOLOR 
GST_TEXTUREENVMODE 
GST_TEXTURE1D 
GST_TEXTURE2D 
GST_TEXTURE3D 
GST_TEXTURERECTANGLE 
GST_TEXTURECUBEMAP 
GST_TEXTURE1DENABLE 
GST_TEXTURE2DENABLE 
GST_TEXTURE3DENABLE 
GST_TEXTURERECTANGLEENABLE 
GST_TEXTURECUBEMAPENABLE 
GST_TEXTURETRANSFORM 
GST_TEXTUREMATRIX 
GST_VERTEXENVPARAMETER 
GST_VERTEXLOCALPARAMETER 
GST_ALPHATESTENABLE 
GST_AUTONORMALENABLE 
GST_BLENDENABLE 
GST_COLORLOGICOPENABLE 
GST_CULLFACEENABLE 
GST_DEPTHBOUNDSENABLE 
GST_DEPTHCLAMPENABLE 
GST_DEPTHTESTENABLE 
GST_ZENABLE 
GST_DITHERENABLE 
GST_FOGENABLE 
GST_LIGHTMODELLOCALVIEWERENABLE 
GST_LIGHTMODELTWOSIDEENABLE 
GST_LINESMOOTHENABLE 
GST_LINESTIPPLEENABLE 
GST_LOGICOPENABLE 
GST_MULTISAMPLEENABLE 
GST_NORMALIZEENABLE 
GST_POINTSMOOTHENABLE 
GST_POINTSPRITEENABLE 
GST_POLYGONOFFSETFILLENABLE 
GST_POLYGONOFFSETLINEENABLE 
GST_POLYGONOFFSETPOINTENABLE 
GST_POLYGONSMOOTHENABLE 
GST_POLYGONSTIPPLEENABLE 
GST_RESCALENORMALENABLE 
GST_SAMPLEALPHATOCOVERAGEENABLE 
GST_SAMPLEALPHATOONEENABLE 
GST_SAMPLECOVERAGEENABLE 
GST_SCISSORTESTENABLE 
GST_STENCILTESTENABLE 
GST_STENCILENABLE 
GST_STENCILTESTTWOSIDEENABLE 
GST_STENCILFAIL 
GST_TEXGENSENABLE 
GST_TEXGENTENABLE 
GST_TEXGENRENABLE 
GST_TEXGENQENABLE 
GST_WRAP0 
GST_WRAP1 
GST_WRAP2 
GST_WRAP3 
GST_WRAP4 
GST_WRAP5 
GST_WRAP6 
GST_WRAP7 
GST_WRAP8 
GST_WRAP9 
GST_WRAP10 
GST_WRAP11 
GST_WRAP12 
GST_WRAP13 
GST_WRAP14 
GST_WRAP15 
GST_VERTEXPROGRAMPOINTSIZEENABLE 
GST_VERTEXPROGRAMTWOSIDEENABLE 
GST_GEOMETRYPROGRAM 
GST_VERTEXPROGRAM 
GST_FRAGMENTPROGRAM 
GST_VERTEXSHADER 
GST_PIXELSHADER 
GST_ALPHAOP 
GST_ALPHAARG0 
GST_ALPHAARG1 
GST_ALPHAARG2 
GST_COLORARG0 
GST_COLORARG1 
GST_COLORARG2 
GST_COLOROP 
GST_BUMPENVLSCALE 
GST_BUMPENVLOFFSET 
GST_BUMPENVMAT00 
GST_BUMPENVMAT01 
GST_BUMPENVMAT10 
GST_BUMPENVMAT11 
GST_RESULTARG 
GST_TEXCOORDINDEX 
GST_TEXTURETRANSFORMFLAGS 
GST_TWOSIDEDSTENCILMODE 
GST_SEPARATEALPHABLENDENABLE 
GST_NORMALIZENORMALS 
GST_LIGHTING 
GST_PIXELSHADERCONSTANTB 
GST_VERTEXSHADERCONSTANTB 
GST_COLORWRITEENABLE1 
GST_COLORWRITEENABLE2 
GST_COLORWRITEENABLE3 
GST_PIXELSHADERCONSTANT1 
GST_VERTEXSHADERCONSTANT1 
GST_PIXELSHADERCONSTANTF 
GST_VERTEXSHADERCONSTANTF 
GST_PIXELSHADERCONSTANT2 
GST_VERTEXSHADERCONSTANT2 
GST_PIXELSHADERCONSTANT3 
GST_VERTEXSHADERCONSTANT3 
GST_PIXELSHADERCONSTANT 
GST_VERTEXSHADERCONSTANT 
GST_PIXELSHADERCONSTANT4 
GST_VERTEXSHADERCONSTANT4 
GST_PIXELSHADERCONSTANTI 
GST_VERTEXSHADERCONSTANTI 
GST_SAMPLER 
GST_TEXTURE 
GST_ADDRESSU 
GST_ADDRESSV 
GST_ADDRESSW 
GST_BORDERCOLOR 
GST_MAXANISOTROPY 
GST_MAXMIPLEVEL 
GST_MINFILTER 
GST_MAGFILTER 
GST_MIPFILTER 
GST_MIPMAPLODBIAS 
GST_BLENDOPALPHA 
GST_SRCBLENDALPHA 
GST_DESTBLENDALPHA 
GST_COUNT 

Definition at line 129 of file OgreCgFxScriptLoader.h.

Enumerator
SST_UNKNOWN 
SST_TEXTURE 
SST_ADDRESSU 
SST_ADDRESSV 
SST_ADDRESSW 
SST_WRAPS 
SST_WRAPT 
SST_WRAPR 
SST_MIPFILTER 
SST_MIPMAPLODBIAS 
SST_LODBIAS 
SST_SRGBTEXTURE 
SST_MINFILTER 
SST_MAGFILTER 
SST_BORDERCOLOR 
SST_MINMIPLEVEL 
SST_MAXMIPLEVEL 
SST_MAXANISOTROPY 
SST_DEPTHMODE 
SST_COMPAREMODE 
SST_COMPAREFUNC 
SST_GENERATEMIPMAP 
SST_COUNT 

Definition at line 411 of file OgreCgFxScriptLoader.h.

Constructor & Destructor Documentation

Ogre::CgFxScriptLoader::CgFxScriptLoader ( )
virtual Ogre::CgFxScriptLoader::~CgFxScriptLoader ( )
virtual

Member Function Documentation

void Ogre::CgFxScriptLoader::buildStateNameStringToTypeMap ( )
protected
const FXSemanticID Ogre::CgFxScriptLoader::cgSemanticStringToType ( const char *  cgParamSemantic)
protected
const bool Ogre::CgFxScriptLoader::cgSemanticToOgreAutoConstantType ( const char *  cgParamSemantic,
const char *  uiNameValue,
GpuProgramParameters::AutoConstantType ogreAutoConstantType,
size_t &  extraInfo 
)
protected
CgGlobalStateListener* Ogre::CgFxScriptLoader::createCgGlobalStateListener ( const GlobalStateType  type)
protected
CgSamplerStateListener* Ogre::CgFxScriptLoader::createCgSamplerStateListener ( const SamplerStateType  type)
protected
CGcontext Ogre::CgFxScriptLoader::getCgContext ( ) const
protected
const char* Ogre::CgFxScriptLoader::getGlobalStateNameTypeToString ( const GlobalStateType  cgStateName)
protected
Real Ogre::CgFxScriptLoader::getLoadingOrder ( void  ) const
virtual

Gets the relative loading order of scripts of this type.

Remarks
There are dependencies between some kinds of scripts, and to enforce this all implementors of this interface must define a loading order.
Returns
A value representing the relative loading order of these scripts compared to other script users, where higher values load later.

Implements Ogre::ScriptLoader.

const char* Ogre::CgFxScriptLoader::getSamplerStateNameTypeToString ( const SamplerStateType  cgStateName)
protected
const StringVector& Ogre::CgFxScriptLoader::getScriptPatterns ( void  ) const
virtual

Gets the file patterns which should be used to find scripts for this class.

Remarks
This method is called when a resource group is loaded if you use ResourceGroupManager::_registerScriptLoader.
Returns
A list of file patterns, in the order they should be searched in.

Implements Ogre::ScriptLoader.

static CgFxScriptLoader& Ogre::CgFxScriptLoader::getSingleton ( void  )
static

Override standard Singleton retrieval.

Remarks
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.
static CgFxScriptLoader* Ogre::CgFxScriptLoader::getSingletonPtr ( void  )
static

Override standard Singleton retrieval.

Remarks
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 95 of file OgreMemoryAllocatedObject.h.

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

Definition at line 101 of file OgreMemoryAllocatedObject.h.

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

Definition at line 107 of file OgreMemoryAllocatedObject.h.

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

Definition at line 112 of file OgreMemoryAllocatedObject.h.

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

Definition at line 118 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 67 of file OgreMemoryAllocatedObject.h.

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

Definition at line 72 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 78 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 85 of file OgreMemoryAllocatedObject.h.

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

Definition at line 90 of file OgreMemoryAllocatedObject.h.

bool Ogre::CgFxScriptLoader::parseAutoConstantParam ( CGparameter  cgParameter,
GpuProgramParametersSharedPtr  ogreProgramParameters,
const String ogreParamName 
)
protected
void Ogre::CgFxScriptLoader::parseCgEffect ( CGeffect  cgEffect,
MaterialPtr  ogreMaterial 
)
protected
void Ogre::CgFxScriptLoader::parseCgEffectTechniques ( CGeffect  cgEffect,
MaterialPtr  ogreMaterial 
)
protected
void Ogre::CgFxScriptLoader::parseCgPass ( CGpass  cgPass,
Pass ogrePass 
)
protected
void Ogre::CgFxScriptLoader::parseCgProgram ( CGpass  cgPass,
Pass ogrePass,
const GpuProgramType  ogreProgramType 
)
protected
void Ogre::CgFxScriptLoader::parseCgProgramParameter ( CGparameter  cgParameter,
GpuProgramParametersSharedPtr  ogreProgramParameters,
const String ogreParamName 
)
protected
void Ogre::CgFxScriptLoader::parseCgProgramParameters ( CGpass  cgPass,
GpuProgramParametersSharedPtr  ogreProgramParameters 
)
protected
void Ogre::CgFxScriptLoader::parseCgTechnique ( CGtechnique  cgTechnique,
Technique ogreTechnique 
)
protected
void Ogre::CgFxScriptLoader::parseFloatCgProgramParameter ( CGtype  cgParamType,
CGparameter  cgParameter,
GpuProgramParametersSharedPtr  ogreProgramParameters,
const String ogreParamName 
)
protected
void Ogre::CgFxScriptLoader::parseIntCgProgramParameter ( CGtype  cgParamType,
CGparameter  cgParameter,
GpuProgramParametersSharedPtr  ogreProgramParameters,
const String ogreParamName 
)
protected
void Ogre::CgFxScriptLoader::parsePassStateAssignments ( CGpass  cgPass,
Pass ogrePass 
)
protected
void Ogre::CgFxScriptLoader::parseSamplerParameters ( CGpass  cgPass,
Pass ogrePass 
)
protected
void Ogre::CgFxScriptLoader::parseScript ( DataStreamPtr stream,
const String groupName 
)
virtual

Parse a script file.

Parameters
streamWeak reference to a data stream which is the source of the script
groupNameThe name of a resource group which should be used if any resources are created during the parse of this script.

Implements Ogre::ScriptLoader.

void Ogre::CgFxScriptLoader::parseTextureUnitState ( CGstateassignment  cgStateAssignment,
TextureUnitState ogreTextureUnitState 
)
protected

Member Data Documentation

CGcontext Ogre::CgFxScriptLoader::mCgContext
protected

Definition at line 1461 of file OgreCgFxScriptLoader.h.

CgGlobalStateToListenerMap Ogre::CgFxScriptLoader::mCgGlobalStateToListenerMap
protected

Definition at line 1454 of file OgreCgFxScriptLoader.h.

CgStateListenerVector Ogre::CgFxScriptLoader::mCgSamplerStateListenerVector
protected

Definition at line 1457 of file OgreCgFxScriptLoader.h.

CgSamplerStateToListenerMap Ogre::CgFxScriptLoader::mCgSamplerStateToListenerMap
protected

Definition at line 1455 of file OgreCgFxScriptLoader.h.

CgStateListenerVector Ogre::CgFxScriptLoader::mCgStateListenerVector
protected

Definition at line 1456 of file OgreCgFxScriptLoader.h.

CgFxScriptLoader * Ogre::Singleton< CgFxScriptLoader >::ms_Singleton
staticprotectedinherited

Definition at line 75 of file OgreSingleton.h.

StringVector Ogre::CgFxScriptLoader::mScriptPatterns
protected

Definition at line 1459 of file OgreCgFxScriptLoader.h.


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