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