Eidolon
Public Member Functions | List of all members
GPUProgram Class Reference

Represents a GPU program (vertex/fragment/geometry shader) More...

#include <RenderTypes.h>

Inheritance diagram for GPUProgram:
Inheritance graph
Collaboration diagram for GPUProgram:
Collaboration graph

Public Member Functions

virtual ~GPUProgram ()
 
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 void setSourceCode (const std::string &code)
 Set the source code for the program, this must be done in the main thread. 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 std::string getEntryPoint () const
 
virtual std::string getProfiles () const
 
virtual std::vector< std::string > getParameterNames () const
 
virtual void setEntryPoint (const std::string main)
 
virtual void setProfiles (const std::string profiles)
 

Detailed Description

Represents a GPU program (vertex/fragment/geometry shader)

Constructor & Destructor Documentation

◆ ~GPUProgram()

virtual ~GPUProgram ( )
inlinevirtual

Member Function Documentation

◆ getEntryPoint()

virtual std::string getEntryPoint ( ) const
inlinevirtual

◆ getLanguage()

virtual std::string getLanguage ( ) const
inlinevirtual

Reimplemented in OgreGPUProgram.

◆ getName()

virtual std::string getName ( ) const
inlinevirtual

Reimplemented in OgreGPUProgram.

Here is the caller graph for this function:

◆ getParameter()

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

Reimplemented in OgreGPUProgram.

◆ getParameterNames()

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

Reimplemented in OgreGPUProgram.

◆ getProfiles()

virtual std::string getProfiles ( ) const
inlinevirtual

◆ getSourceCode()

virtual std::string getSourceCode ( ) const
inlinevirtual

Return the text of the source for this program.

Reimplemented in OgreGPUProgram.

◆ getType()

virtual ProgramType getType ( ) const
inlinevirtual

Reimplemented in OgreGPUProgram.

Here is the caller graph for this function:

◆ hasError()

virtual bool hasError ( ) const
inlinevirtual

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

Reimplemented in OgreGPUProgram.

◆ setEntryPoint()

virtual void setEntryPoint ( const std::string  main)
inlinevirtual

◆ setLanguage()

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

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

Reimplemented in OgreGPUProgram.

◆ setParameter()

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

Reimplemented in OgreGPUProgram.

◆ setProfiles()

virtual void setProfiles ( const std::string  profiles)
inlinevirtual

◆ 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 in OgreGPUProgram.

◆ setType()

virtual void setType ( ProgramType  pt)
inlinevirtual

Reimplemented in OgreGPUProgram.


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