27 #ifndef _ShaderProgramWriterGLSL_ 28 #define _ShaderProgramWriterGLSL_ 61 virtual void writeSourceCode(std::ostream& os,
Program* program);
75 void initializeStringMaps();
78 void writeLocalParameter(std::ostream& os,
ParameterPtr parameter);
81 void writeForwardDeclarations(std::ostream& os,
Program* program);
Interface definition for factories of ShaderProgramWriter.
map< String, String >::type StringMap
GpuConstTypeToStringMap mGpuConstTypeMap
StringMap mInputToGLStatesMap
vector< String >::type StringVector
static String TargetLanguage
Base class interface for shader program writers.
virtual const String & getTargetLanguage() const
virtual const String & getTargetLanguage(void) const
virtual ProgramWriter * create(void)
ShaderProgramWriterGLSLFactory()
A class that represents a shader based program.
map< GpuConstantType, const char * >::type GpuConstTypeToStringMap
map< Parameter::Content, const char * >::type ParamContentToStringMap
GpuProgramType
Enumerates the types of programs which can run on the GPU.
GLSL program writer factory implementation.
ParamSemanticToStringMap mParamSemanticMap
A class that represents a shader based program function.
StringVector mFragInputParams
virtual ~ShaderProgramWriterGLSLFactory()
GLSL target language writer implementation.
map< Parameter::Semantic, const char * >::type ParamSemanticToStringMap
ParamContentToStringMap mContentToPerVertexAttributes