OGRE  1.9.0
Ogre::RTShader::GLSLProgramWriter Class Reference

GLSL target language writer implementation. More...

#include <OgreShaderGLSLProgramWriter.h>

Inheritance diagram for Ogre::RTShader::GLSLProgramWriter:

Public Member Functions

 GLSLProgramWriter ()
 Class constructor.
 
virtual ~GLSLProgramWriter ()
 Class destructor.
 
virtual const StringgetTargetLanguage () const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
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 *ptr)
 placement operator new
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
virtual void writeSourceCode (std::ostream &os, Program *program)
 

Static Public Attributes

static String TargetLanguage
 

Protected Types

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

Protected Member Functions

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

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 45 of file OgreShaderGLSLProgramWriter.h.

Member Typedef Documentation

◆ GpuConstTypeToStringMap

◆ ParamContentToStringMap

◆ ParamSemanticToStringMap

◆ StringMap

Constructor & Destructor Documentation

◆ GLSLProgramWriter()

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

Class constructor.

◆ ~GLSLProgramWriter()

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

Class destructor.

Member Function Documentation

◆ getTargetLanguage()

virtual const String & Ogre::RTShader::GLSLProgramWriter::getTargetLanguage ( ) const
virtual

◆ initializeStringMaps()

void Ogre::RTShader::GLSLProgramWriter::initializeStringMaps ( )
protected

Initialize string maps.

◆ operator delete() [1/3]

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

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.

◆ operator delete() [3/3]

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [1/2]

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/2]

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.

◆ operator new() [1/3]

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/3]

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.

◆ operator new() [3/3]

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.

◆ operator new[]() [1/2]

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/2]

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.

◆ writeForwardDeclarations()

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.

◆ writeFunctionTitle()

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

Write a function title.

◆ writeInputParameters()

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

Write the input params of the function.

◆ writeLocalParameter()

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

Write a local parameter.

◆ writeOutParameters()

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

Write the output params of the function.

◆ writeProgramTitle()

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

Write the program title.

◆ writeSourceCode()

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

◆ writeUniformParametersTitle()

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

Write the uniform parameters title.

Member Data Documentation

◆ mContentToPerVertexAttributes

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

Definition at line 105 of file OgreShaderGLSLProgramWriter.h.

◆ mFragInputParams

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

Definition at line 109 of file OgreShaderGLSLProgramWriter.h.

◆ mGLSLVersion

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

Definition at line 107 of file OgreShaderGLSLProgramWriter.h.

◆ mGpuConstTypeMap

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

Definition at line 98 of file OgreShaderGLSLProgramWriter.h.

◆ mInputToGLStatesMap

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

Definition at line 103 of file OgreShaderGLSLProgramWriter.h.

◆ mParamSemanticMap

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

Definition at line 100 of file OgreShaderGLSLProgramWriter.h.

◆ TargetLanguage

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

Definition at line 68 of file OgreShaderGLSLProgramWriter.h.


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