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

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