OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Base class interface for shader program writers. More...
#include <OgreShaderProgramWriter.h>
Public Member Functions | |
virtual | ~ProgramWriter () |
Class destructor. | |
virtual const String & | getTargetLanguage () const =0 |
Return the target language of this writer. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
virtual void | writeSourceCode (std::ostream &os, Program *program)=0 |
Write the program shader source code. | |
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.
|
inlinevirtual |
Class destructor.
Return the target language of this writer.
Implemented in Ogre::RTShader::CGProgramWriter, Ogre::RTShader::GLSLESProgramWriter, Ogre::RTShader::GLSLProgramWriter, and Ogre::RTShader::HLSLProgramWriter.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
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::GLSLESProgramWriter, Ogre::RTShader::GLSLProgramWriter, and Ogre::RTShader::HLSLProgramWriter.