Base class interface for shader program writers. More...
#include <OgreShaderProgramWriter.h>
Public Member Functions | |
virtual | ~ProgramWriter () |
Class destructor. More... | |
virtual const String & | getTargetLanguage () const =0 |
Return the target language of this writer. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
virtual void | writeSourceCode (std::ostream &os, Program *program)=0 |
Write the program shader source code. More... | |
Protected Member Functions | |
void | writeFunctionTitle (std::ostream &os, Function *function) |
Write a function title. More... | |
void | writeProgramTitle (std::ostream &os, Program *program) |
Write the program title. More... | |
void | writeUniformParametersTitle (std::ostream &os, Program *program) |
Write the uniform parameters title. More... | |
Base class interface for shader program writers.
The main usage of this class is to generate a shader source code from the given CPU program. In order to support specific shader language one should subclass this interface and implement the pure methods.
Definition at line 52 of file OgreShaderProgramWriter.h.
|
inlinevirtual |
Class destructor.
Definition at line 58 of file OgreShaderProgramWriter.h.
|
pure virtual |
Return the target language of this writer.
Implemented in Ogre::RTShader::CGProgramWriter, Ogre::RTShader::HLSLProgramWriter, and Ogre::RTShader::GLSLProgramWriter.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
|
protected |
Write a function title.
|
protected |
Write the program title.
|
pure virtual |
Write the program shader source code.
os | The output stream to write to code into. |
program | The source CPU program for the GPU program code. |
Implemented in Ogre::RTShader::CGProgramWriter, Ogre::RTShader::HLSLProgramWriter, and Ogre::RTShader::GLSLProgramWriter.
|
protected |
Write the uniform parameters title.