Go to the documentation of this file.
27 #ifndef _ShaderProgramWriterGLSL_
28 #define _ShaderProgramWriterGLSL_
StringVector mFragInputParams
ParamContentToStringMap mContentToPerVertexAttributes
virtual ProgramWriter * create(void)
GLSL program writer factory implementation.
vector< String >::type StringVector
map< Parameter::Content, const char * >::type ParamContentToStringMap
ParamSemanticToStringMap mParamSemanticMap
virtual ~GLSLProgramWriter()
Class destructor.
void writeForwardDeclarations(std::ostream &os, Program *program)
Write forward declarations.
virtual const String & getTargetLanguage() const
virtual const String & getTargetLanguage(void) const
Base class interface for shader program writers.
void writeOutParameters(std::ostream &os, Function *function, GpuProgramType gpuType)
Write the output params of the function.
void initializeStringMaps()
Initialize string maps.
void writeInputParameters(std::ostream &os, Function *function, GpuProgramType gpuType)
Write the input params of the function.
GpuProgramType
Enumerates the types of programs which can run on the GPU.
static String TargetLanguage
StringMap mInputToGLStatesMap
A class that represents a shader based program.
ShaderProgramWriterGLSLFactory()
GpuConstTypeToStringMap mGpuConstTypeMap
void writeLocalParameter(std::ostream &os, ParameterPtr parameter)
Write a local parameter.
map< GpuConstantType, const char * >::type GpuConstTypeToStringMap
GLSL target language writer implementation.
map< Parameter::Semantic, const char * >::type ParamSemanticToStringMap
Interface definition for factories of ShaderProgramWriter.
GLSLProgramWriter()
Class constructor.
virtual void writeSourceCode(std::ostream &os, Program *program)
map< String, String >::type StringMap
A class that represents a shader based program function.
virtual ~ShaderProgramWriterGLSLFactory()
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.