Eidolon
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OgreGPUProgram Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for OgreGPUProgram:
Inheritance graph
Collaboration diagram for OgreGPUProgram:
Collaboration graph

Public Member Functions

 OgreGPUProgram (const std::string &name, ProgramType ptype, OgreRenderScene *scene, const std::string &language="cg")
 
virtual ~OgreGPUProgram ()
 
virtual std::string getName () const
 
virtual void setType (ProgramType pt)
 
virtual ProgramType getType () const
 
virtual std::string getLanguage () const
 
virtual void setLanguage (const std::string &lang)
 Set the language for the source of the program, eg. cg. More...
 
virtual bool hasError () const
 Returns true if the source code given for the program has failed to parse. More...
 
virtual std::string getSourceCode () const
 Return the text of the source for this program. More...
 
virtual bool setParameter (const std::string &param, const std::string &val)
 
virtual std::string getParameter (const std::string &param) const
 
virtual void setSourceCode (const std::string &code)
 Set the source code for the program, this must be done in the main thread. More...
 
virtual std::vector< std::string > getParameterNames () const
 
void setDefaultProfiles ()
 
- Public Member Functions inherited from GPUProgram
virtual ~GPUProgram ()
 
virtual std::string getEntryPoint () const
 
virtual std::string getProfiles () const
 
virtual void setEntryPoint (const std::string main)
 
virtual void setProfiles (const std::string profiles)
 

Private Member Functions

void createProgram ()
 
void setAutoConstants ()
 

Private Attributes

OgreRenderScenescene
 
Ogre::HighLevelGpuProgramPtr ptrProgram
 
std::string name
 
std::string namecounted
 
std::string language
 
std::string source
 
ProgramType ptype
 
sval createCount
 
bool hasCompileError
 

Constructor & Destructor Documentation

◆ OgreGPUProgram()

OgreGPUProgram ( const std::string &  name,
ProgramType  ptype,
OgreRenderScene scene,
const std::string &  language = "cg" 
)
inline

◆ ~OgreGPUProgram()

~OgreGPUProgram ( )
virtual

Member Function Documentation

◆ createProgram()

void createProgram ( )
inlineprivate
Here is the call graph for this function:

◆ getLanguage()

virtual std::string getLanguage ( ) const
inlinevirtual

Reimplemented from GPUProgram.

◆ getName()

virtual std::string getName ( ) const
inlinevirtual

Reimplemented from GPUProgram.

Here is the caller graph for this function:

◆ getParameter()

virtual std::string getParameter ( const std::string &  param) const
inlinevirtual

Reimplemented from GPUProgram.

◆ getParameterNames()

virtual std::vector<std::string> getParameterNames ( ) const
inlinevirtual

Reimplemented from GPUProgram.

◆ getSourceCode()

virtual std::string getSourceCode ( ) const
inlinevirtual

Return the text of the source for this program.

Reimplemented from GPUProgram.

◆ getType()

virtual ProgramType getType ( ) const
inlinevirtual

Reimplemented from GPUProgram.

◆ hasError()

virtual bool hasError ( ) const
inlinevirtual

Returns true if the source code given for the program has failed to parse.

Reimplemented from GPUProgram.

Here is the caller graph for this function:

◆ setAutoConstants()

void setAutoConstants ( )
inlineprivate

◆ setDefaultProfiles()

void setDefaultProfiles ( )
inline

◆ setLanguage()

virtual void setLanguage ( const std::string &  lang)
inlinevirtual

Set the language for the source of the program, eg. cg.

Reimplemented from GPUProgram.

◆ setParameter()

virtual bool setParameter ( const std::string &  param,
const std::string &  val 
)
inlinevirtual

Reimplemented from GPUProgram.

◆ setSourceCode()

virtual void setSourceCode ( const std::string &  code)
inlinevirtual

Set the source code for the program, this must be done in the main thread.

Reimplemented from GPUProgram.

◆ setType()

virtual void setType ( ProgramType  pt)
inlinevirtual

Reimplemented from GPUProgram.

Here is the call graph for this function:

Member Data Documentation

◆ createCount

sval createCount
private

◆ hasCompileError

bool hasCompileError
private

◆ language

std::string language
private

◆ name

std::string name
private

◆ namecounted

std::string namecounted
private

◆ ptrProgram

Ogre::HighLevelGpuProgramPtr ptrProgram
private

◆ ptype

ProgramType ptype
private

◆ scene

OgreRenderScene* scene
private

◆ source

std::string source
private

The documentation for this class was generated from the following files: