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

GLSL target language writer implementation. More...

#include <OgreShaderGLSLProgramWriter.h>

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

Public Member Functions

 GLSLProgramWriter ()
 Class constructor. More...
 
virtual ~GLSLProgramWriter ()
 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)
 

Static Public Attributes

static String TargetLanguage
 

Protected Types

typedef map< GpuConstantType,
const char * >::type 
GpuConstTypeToStringMap
 
typedef map
< Parameter::Content, const
char * >::type 
ParamContentToStringMap
 
typedef map
< Parameter::Semantic, const
char * >::type 
ParamSemanticToStringMap
 
typedef map< String, String >::type StringMap
 

Protected Member Functions

void initializeStringMaps ()
 Initialize string maps. More...
 
void writeForwardDeclarations (std::ostream &os, Program *program)
 Write forward declarations. More...
 
void writeFunctionTitle (std::ostream &os, Function *function)
 Write a function title. More...
 
void writeInputParameters (std::ostream &os, Function *function, GpuProgramType gpuType)
 Write the input params of the function. More...
 
void writeLocalParameter (std::ostream &os, ParameterPtr parameter)
 Write a local parameter. More...
 
void writeOutParameters (std::ostream &os, Function *function, GpuProgramType gpuType)
 Write the output params of the function. More...
 
void writeProgramTitle (std::ostream &os, Program *program)
 Write the program title. More...
 
void writeUniformParametersTitle (std::ostream &os, Program *program)
 Write the uniform parameters title. More...
 

Protected Attributes

ParamContentToStringMap mContentToPerVertexAttributes
 
StringVector mFragInputParams
 
int mGLSLVersion
 
GpuConstTypeToStringMap mGpuConstTypeMap
 
StringMap mInputToGLStatesMap
 
ParamSemanticToStringMap mParamSemanticMap
 

Detailed Description

GLSL target language writer implementation.

See also
ProgramWriter.

Definition at line 51 of file OgreShaderGLSLProgramWriter.h.

Member Typedef Documentation

Definition at line 96 of file OgreShaderGLSLProgramWriter.h.

Definition at line 99 of file OgreShaderGLSLProgramWriter.h.

Constructor & Destructor Documentation

Ogre::RTShader::GLSLProgramWriter::GLSLProgramWriter ( )

Class constructor.

virtual Ogre::RTShader::GLSLProgramWriter::~GLSLProgramWriter ( )
virtual

Class destructor.

Member Function Documentation

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

Initialize string maps.

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

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 
)
inlineinherited

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)
inlineinherited

Definition at line 73 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 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 
)
inlineinherited

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)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::RTShader::GLSLProgramWriter::writeForwardDeclarations ( std::ostream &  os,
Program program 
)
protected

Write forward declarations.

This is needed so that we can attach library shader at a later step.

void Ogre::RTShader::ProgramWriter::writeFunctionTitle ( std::ostream &  os,
Function function 
)
protectedinherited

Write a function title.

void Ogre::RTShader::GLSLProgramWriter::writeInputParameters ( std::ostream &  os,
Function function,
GpuProgramType  gpuType 
)
protected

Write the input params of the function.

void Ogre::RTShader::GLSLProgramWriter::writeLocalParameter ( std::ostream &  os,
ParameterPtr  parameter 
)
protected

Write a local parameter.

void Ogre::RTShader::GLSLProgramWriter::writeOutParameters ( std::ostream &  os,
Function function,
GpuProgramType  gpuType 
)
protected

Write the output params of the function.

void Ogre::RTShader::ProgramWriter::writeProgramTitle ( std::ostream &  os,
Program program 
)
protectedinherited

Write the program title.

virtual void Ogre::RTShader::GLSLProgramWriter::writeSourceCode ( std::ostream &  os,
Program program 
)
virtual
void Ogre::RTShader::ProgramWriter::writeUniformParametersTitle ( std::ostream &  os,
Program program 
)
protectedinherited

Write the uniform parameters title.

Member Data Documentation

ParamContentToStringMap Ogre::RTShader::GLSLProgramWriter::mContentToPerVertexAttributes
protected

Definition at line 111 of file OgreShaderGLSLProgramWriter.h.

StringVector Ogre::RTShader::GLSLProgramWriter::mFragInputParams
protected

Definition at line 115 of file OgreShaderGLSLProgramWriter.h.

int Ogre::RTShader::GLSLProgramWriter::mGLSLVersion
protected

Definition at line 113 of file OgreShaderGLSLProgramWriter.h.

GpuConstTypeToStringMap Ogre::RTShader::GLSLProgramWriter::mGpuConstTypeMap
protected

Definition at line 104 of file OgreShaderGLSLProgramWriter.h.

StringMap Ogre::RTShader::GLSLProgramWriter::mInputToGLStatesMap
protected

Definition at line 109 of file OgreShaderGLSLProgramWriter.h.

ParamSemanticToStringMap Ogre::RTShader::GLSLProgramWriter::mParamSemanticMap
protected

Definition at line 106 of file OgreShaderGLSLProgramWriter.h.

String Ogre::RTShader::GLSLProgramWriter::TargetLanguage
static

Definition at line 74 of file OgreShaderGLSLProgramWriter.h.


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