OGRE  1.8
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::RTShader::CGProgramWriter Class Referenceabstract

CG target language writer implementation. More...

#include <OgreShaderCGProgramWriter.h>

+ Inheritance diagram for Ogre::RTShader::CGProgramWriter:
+ Collaboration diagram for Ogre::RTShader::CGProgramWriter:

Public Member Functions

 CGProgramWriter ()
 Class constructor. More...
 
virtual ~CGProgramWriter ()
 Class destructor. More...
 
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 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)
 
virtual void writeSourceCode (std::ostream &os, Program *program)
 
virtual void writeSourceCode (StringSerialiser &os, Program *program)=0
 Write the program shader source code. More...
 

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. More...
 
void writeAtomInstance (std::ostream &os, FunctionAtom *atom)
 Write function atom instance. More...
 
void writeFunctionDeclaration (std::ostream &os, Function *function, ParameterPtr &colorParameter)
 Write a function declaration. More...
 
void writeFunctionParameter (std::ostream &os, ParameterPtr parameter)
 Write a function parameter. More...
 
void writeFunctionTitle (StringSerialiser &os, Function *function)
 Write a function title. More...
 
void writeLocalParameter (std::ostream &os, ParameterPtr parameter)
 Write a local parameter. More...
 
void writeProgramDependencies (std::ostream &os, Program *program)
 Write the program dependencies. More...
 
void writeProgramTitle (StringSerialiser &os, Program *program)
 Write the program title. More...
 
void writeUniformParameter (std::ostream &os, UniformParameterPtr parameter)
 Write a uniform parameter. More...
 
void writeUniformParametersTitle (StringSerialiser &os, Program *program)
 Write the uniform parameters title. More...
 

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 98 of file OgreShaderCGProgramWriter.h.

Definition at line 99 of file OgreShaderCGProgramWriter.h.

Constructor & Destructor Documentation

Ogre::RTShader::CGProgramWriter::CGProgramWriter ( )

Class constructor.

Parameters
languageThe target shader language.
virtual Ogre::RTShader::CGProgramWriter::~CGProgramWriter ( )
virtual

Class destructor.

Member Function Documentation

virtual const String& Ogre::RTShader::CGProgramWriter::getTargetLanguage ( ) const
inlinevirtual
void Ogre::RTShader::CGProgramWriter::initializeStringMaps ( )
protected

Initialize string maps.

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.

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,
ParameterPtr colorParameter 
)
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 ( StringSerialiser os,
Function function 
)
protectedinherited

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 ( StringSerialiser os,
Program program 
)
protectedinherited

Write the program title.

virtual void Ogre::RTShader::CGProgramWriter::writeSourceCode ( std::ostream &  os,
Program program 
)
virtual
virtual void Ogre::RTShader::ProgramWriter::writeSourceCode ( StringSerialiser os,
Program program 
)
pure virtualinherited

Write the program shader source code.

Parameters
osThe output stream to write to code into.
programThe source CPU program for the GPU program code.

Implemented in Ogre::RTShader::GLSLESProgramWriter.

void Ogre::RTShader::CGProgramWriter::writeUniformParameter ( std::ostream &  os,
UniformParameterPtr  parameter 
)
protected

Write a uniform parameter.

void Ogre::RTShader::ProgramWriter::writeUniformParametersTitle ( StringSerialiser os,
Program program 
)
protectedinherited

Write the uniform parameters title.

Member Data Documentation

GpuConstTypeToStringMap Ogre::RTShader::CGProgramWriter::mGpuConstTypeMap
protected

Definition at line 104 of file OgreShaderCGProgramWriter.h.

ParamSemanticToStringMap Ogre::RTShader::CGProgramWriter::mParamSemanticMap
protected

Definition at line 106 of file OgreShaderCGProgramWriter.h.

String Ogre::RTShader::CGProgramWriter::TargetLanguage
static

Definition at line 70 of file OgreShaderCGProgramWriter.h.


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