Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
Ogre::RTShader::CGProgramWriter Class Reference

CG target language writer implementation. More...

#include <OgreShaderCGProgramWriter.h>

Inheritance diagram for Ogre::RTShader::CGProgramWriter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CGProgramWriter ()
 Class constructor.
virtual ~CGProgramWriter ()
 Class destructor.
virtual const StringgetTargetLanguage () const
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
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)
virtual void writeSourceCode (std::ostream &os, Program *program)

Static Public Attributes

static String TargetLanguage

Protected Types

typedef map< GpuConstantType,
const char * >::type 
GpuConstTypeToStringMap
typedef map
< Parameter::Semantic, const
char * >::type 
ParamSemanticToStringMap

Protected Member Functions

void initializeStringMaps ()
 Initialize string maps.
void writeAtomInstance (std::ostream &os, FunctionAtom *atom)
 Write function atom instance.
void writeFunctionDeclaration (std::ostream &os, Function *function)
 Write a function declaration.
void writeFunctionParameter (std::ostream &os, ParameterPtr parameter)
 Write a function parameter.
void writeFunctionTitle (std::ostream &os, Function *function)
 Write a function title.
void writeLocalParameter (std::ostream &os, ParameterPtr parameter)
 Write a local parameter.
void writeProgramDependencies (std::ostream &os, Program *program)
 Write the program dependencies.
void writeProgramTitle (std::ostream &os, Program *program)
 Write the program title.
void writeUniformParameter (std::ostream &os, UniformParameterPtr parameter)
 Write a uniform parameter.
void writeUniformParametersTitle (std::ostream &os, Program *program)
 Write the uniform parameters title.

Protected Attributes

GpuConstTypeToStringMap mGpuConstTypeMap
ParamSemanticToStringMap mParamSemanticMap

Detailed Description

CG target language writer implementation.

See also:
ProgramWriter.

Definition at line 46 of file OgreShaderCGProgramWriter.h.


Member Typedef Documentation

Definition at line 97 of file OgreShaderCGProgramWriter.h.

Definition at line 98 of file OgreShaderCGProgramWriter.h.


Constructor & Destructor Documentation

Class constructor.

Class destructor.


Member Function Documentation

virtual const String& Ogre::RTShader::CGProgramWriter::getTargetLanguage ( ) const [virtual]

Initialize string maps.

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

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

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

Definition at line 73 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 79 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 86 of file OgreMemoryAllocatedObject.h.

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::RTShader::CGProgramWriter::writeAtomInstance ( std::ostream &  os,
FunctionAtom atom 
) [protected]

Write function atom instance.

void Ogre::RTShader::CGProgramWriter::writeFunctionDeclaration ( std::ostream &  os,
Function function 
) [protected]

Write a function declaration.

void Ogre::RTShader::CGProgramWriter::writeFunctionParameter ( std::ostream &  os,
ParameterPtr  parameter 
) [protected]

Write a function parameter.

void Ogre::RTShader::ProgramWriter::writeFunctionTitle ( std::ostream &  os,
Function function 
) [protected, inherited]

Write a function title.

void Ogre::RTShader::CGProgramWriter::writeLocalParameter ( std::ostream &  os,
ParameterPtr  parameter 
) [protected]

Write a local parameter.

void Ogre::RTShader::CGProgramWriter::writeProgramDependencies ( std::ostream &  os,
Program program 
) [protected]

Write the program dependencies.

void Ogre::RTShader::ProgramWriter::writeProgramTitle ( std::ostream &  os,
Program program 
) [protected, inherited]

Write the program title.

virtual void Ogre::RTShader::CGProgramWriter::writeSourceCode ( std::ostream &  os,
Program program 
) [virtual]
void Ogre::RTShader::CGProgramWriter::writeUniformParameter ( std::ostream &  os,
UniformParameterPtr  parameter 
) [protected]

Write a uniform parameter.

void Ogre::RTShader::ProgramWriter::writeUniformParametersTitle ( std::ostream &  os,
Program program 
) [protected, inherited]

Write the uniform parameters title.


Member Data Documentation

Definition at line 103 of file OgreShaderCGProgramWriter.h.

Definition at line 105 of file OgreShaderCGProgramWriter.h.

Definition at line 69 of file OgreShaderCGProgramWriter.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 Mon Jul 27 2020 13:41:49