28#ifndef __ShaderProgramWriterCG_H__
29#define __ShaderProgramWriterCG_H__
CG target language writer implementation.
ParamSemanticToStringMap mParamSemanticMap
virtual ~CGProgramWriter()
Class destructor.
void writeFunctionDeclaration(std::ostream &os, Function *function)
Write a function declaration.
void initializeStringMaps()
Initialize string maps.
void writeUniformParameter(std::ostream &os, UniformParameterPtr parameter)
Write a uniform parameter.
map< Parameter::Semantic, constchar * >::type ParamSemanticToStringMap
GpuConstTypeToStringMap mGpuConstTypeMap
void writeAtomInstance(std::ostream &os, FunctionAtom *atom)
Write function atom instance.
void writeLocalParameter(std::ostream &os, ParameterPtr parameter)
Write a local parameter.
void writeProgramDependencies(std::ostream &os, Program *program)
Write the program dependencies.
virtual void writeSourceCode(std::ostream &os, Program *program)
CGProgramWriter()
Class constructor.
map< GpuConstantType, constchar * >::type GpuConstTypeToStringMap
virtual const String & getTargetLanguage() const
static String TargetLanguage
void writeFunctionParameter(std::ostream &os, ParameterPtr parameter)
Write a function parameter.
A class that represents an atomic code section of shader based program function.
A class that represents a shader based program function.
Interface definition for factories of ShaderProgramWriter.
Base class interface for shader program writers.
A class that represents a shader based program.
CG program writer factory implementation.
ShaderProgramWriterCGFactory()
virtual ~ShaderProgramWriterCGFactory()
virtual ProgramWriter * create(void)
virtual const String & getTargetLanguage(void) const
Reference-counted shared pointer, used for objects where implicit destruction is required.
std::map< K, V, P, A > type