#include <OgreD3D9GpuProgram.h>
Inheritance diagram for Ogre::D3D9GpuFragmentProgram:

Public Member Functions | |
| D3D9GpuFragmentProgram (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual, ManualResourceLoader *loader, LPDIRECT3DDEVICE9 pDev) | |
| ~D3D9GpuFragmentProgram () | |
| LPDIRECT3DPIXELSHADER9 | getPixelShader (void) const |
| Gets the pixel shader. | |
| void | setExternalMicrocode (LPD3DXBUFFER pMicrocode) |
| Tells the program to load from some externally created microcode instead of a file or source. | |
| LPD3DXBUFFER | getExternalMicrocode (void) |
| Gets the external microcode buffer, if any. | |
| virtual void | setSourceFile (const String &filename) |
| Sets the filename of the source assembly for this program. | |
| virtual void | setSource (const String &source) |
| Sets the source assembly for this program from an in-memory string. | |
| virtual const String & | getSyntaxCode (void) const |
| Gets the syntax code for this program e.g. | |
| virtual void | setSyntaxCode (const String &syntax) |
| Sets the syntax code for this program e.g. | |
| virtual const String & | getSourceFile (void) const |
| Gets the name of the file used as source for this program. | |
| virtual const String & | getSource (void) const |
| Gets the assembler source for this program. | |
| virtual void | setType (GpuProgramType t) |
| Set the program type (only valid before load). | |
| virtual GpuProgramType | getType (void) const |
| Get the program type. | |
| virtual GpuProgram * | _getBindingDelegate (void) |
| Returns the GpuProgram which should be bound to the pipeline. | |
| virtual bool | isSupported (void) const |
| Returns whether this program can be supported on the current renderer and hardware. | |
| virtual GpuProgramParametersSharedPtr | createParameters (void) |
| Creates a new parameters object compatible with this program definition. | |
| virtual void | setSkeletalAnimationIncluded (bool included) |
| Sets whether a vertex program includes the required instructions to perform skeletal animation. | |
| virtual bool | isSkeletalAnimationIncluded (void) const |
| Returns whether a vertex program includes the required instructions to perform skeletal animation. | |
| virtual GpuProgramParametersSharedPtr | getDefaultParameters (void) |
| Get a reference to the default parameters which are to be used for all uses of this program. | |
| virtual void | setSurfaceAndPassLightStates (bool state) |
| Sets whether a vertex program requires light and material states to be passed to through fixed pipeline low level API rendering calls. | |
| virtual bool | getPassSurfaceAndLightStates (void) const |
| Returns whether a vertex program wants light and material states to be passed through fixed pipeline low level API rendering calls. | |
| virtual void | load (void) |
| Loads the resource, if it is not already. | |
| virtual void | reload (void) |
| Reloads the resource, if it is already loaded. | |
| bool | isReloadable (void) const |
| Returns true if the Resource is reloadable, false otherwise. | |
| bool | isManuallyLoaded (void) const |
| Is this resource manually loaded? | |
| virtual void | unload (void) |
| Unloads the resource; this is not permanent, the resource can be reloaded later if required. | |
| size_t | getSize (void) const |
| Retrieves info about the size of the resource. | |
| virtual void | touch (void) |
| 'Touches' the resource to indicate it has been used. | |
| const String & | getName (void) const |
| Gets resource name. | |
| ResourceHandle | getHandle (void) const |
| bool | isLoaded (void) const |
| Returns true if the Resource has been loaded, false otherwise. | |
| const String & | getGroup (void) |
| Gets the group which this resource is a member of. | |
| ResourceManager * | getCreator (void) |
| Gets the manager which created this resource. | |
| const String & | getOrigin (void) const |
| Get the origin of this resource, e.g. | |
| void | _notifyOrigin (const String &origin) |
| Notify this resource of it's origin. | |
| ParamDictionary * | getParamDictionary (void) |
| Retrieves the parameter dictionary for this class. | |
| const ParamDictionary * | getParamDictionary (void) const |
| const ParameterList & | getParameters (void) const |
| Retrieves a list of parameters valid for this object. | |
| virtual bool | setParameter (const String &name, const String &value) |
| Generic parameter setting method. | |
| virtual void | setParameterList (const NameValuePairList ¶mList) |
| Generic multiple parameter setting method. | |
| virtual String | getParameter (const String &name) const |
| Generic parameter retrieval method. | |
| virtual void | copyParametersTo (StringInterface *dest) const |
| Method for copying this object's parameters to another object. | |
Static Public Member Functions | |
| void | cleanupDictionary () |
| Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g. | |
Protected Member Functions | |
| void | unloadImpl (void) |
| | |
| void | loadFromMicrocode (LPD3DXBUFFER microcode) |
| Internal method to load from microcode, must be overridden by subclasses. | |
| void | loadImpl (void) |
| | |
| void | loadFromSource (void) |
| Overridden from GpuProgram. | |
| void | setupBaseParamDictionary (void) |
| Internal method for setting up the basic parameter definitions for a subclass. | |
| size_t | calculateSize (void) const |
| | |
| bool | createParamDictionary (const String &className) |
| Internal method for creating a parameter dictionary for the class, if it does not already exist. | |
Protected Attributes | |
| LPDIRECT3DPIXELSHADER9 | mpPixelShader |
| LPDIRECT3DDEVICE9 | mpDevice |
| LPD3DXBUFFER | mpExternalMicrocode |
| GpuProgramType | mType |
| The type of the program. | |
| String | mFilename |
| The name of the file to load source from (may be blank). | |
| String | mSource |
| The assembler source of the program (may be blank until file loaded). | |
| bool | mLoadFromFile |
| Whether we need to load source from file or not. | |
| String | mSyntaxCode |
| Syntax code eg arbvp1, vs_2_0 etc. | |
| bool | mSkeletalAnimation |
| Does this (vertex) program include skeletal animation? | |
| GpuProgramParametersSharedPtr | mDefaultParams |
| The default parameters for use with this object. | |
| bool | mPassSurfaceAndLightStates |
| Does this program want light states passed through fixed pipeline. | |
| ResourceManager * | mCreator |
| Creator. | |
| String | mName |
| Unique name of the resource. | |
| String | mGroup |
| The name of the resource group. | |
| ResourceHandle | mHandle |
| Numeric handle for more efficient look up than name. | |
| bool | mIsLoaded |
| Is the resource currently loaded? | |
| size_t | mSize |
| The size of the resource in bytes. | |
| bool | mIsManual |
| Is this file manually loaded? | |
| String | mOrigin |
| Origin of this resource (e.g. script name) - optional. | |
| ManualResourceLoader * | mLoader |
| Optional manual loader; if provided, data is loaded from here instead of a file. | |
| String | mParamDictName |
| Class name for this instance to be used as a lookup (must be initialised by subclasses). | |
Static Protected Attributes | |
| CmdType | msTypeCmd |
| CmdSyntax | msSyntaxCmd |
| CmdSkeletal | msSkeletalCmd |
| ParamDictionaryMap | msDictionary |
| Dictionary of parameters. | |
Definition at line 81 of file OgreD3D9GpuProgram.h.
|
||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
Returns the GpuProgram which should be bound to the pipeline.
Reimplemented in Ogre::HighLevelGpuProgram. Definition at line 806 of file OgreGpuProgram.h. |
|
|
Notify this resource of it's origin.
Definition at line 214 of file OgreResource.h. References Ogre::String. |
|
|
Implements Ogre::Resource. Definition at line 764 of file OgreGpuProgram.h. |
|
|
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g. MaterialManager) initializes. |
|
|
Method for copying this object's parameters to another object.
Definition at line 296 of file OgreStringInterface.h. References Ogre::ParamDictionary::mParamDefs, and Ogre::StringInterface::setParameter(). |
|
|
Internal method for creating a parameter dictionary for the class, if it does not already exist.
Definition at line 172 of file OgreStringInterface.h. References Ogre::String. |
|
|
Creates a new parameters object compatible with this program definition.
Reimplemented in Ogre::HighLevelGpuProgram, and Ogre::D3D9HLSLProgram. |
|
|
Gets the manager which created this resource.
Definition at line 205 of file OgreResource.h. |
|
|
Get a reference to the default parameters which are to be used for all uses of this program.
|
|
|
Gets the external microcode buffer, if any.
Definition at line 51 of file OgreD3D9GpuProgram.h. References Ogre::D3D9GpuProgram::mpExternalMicrocode. |
|
|
Gets the group which this resource is a member of.
Definition at line 202 of file OgreResource.h. References Ogre::String. |
|
|
Definition at line 188 of file OgreResource.h. References Ogre::ResourceHandle. |
|
|
Gets resource name.
Definition at line 183 of file OgreResource.h. References Ogre::String. |
|
|
Get the origin of this resource, e.g. a script file name.
Definition at line 212 of file OgreResource.h. References Ogre::String. |
|
|
Definition at line 209 of file OgreStringInterface.h. |
|
|
Retrieves the parameter dictionary for this class.
Definition at line 196 of file OgreStringInterface.h. |
|
|
Generic parameter retrieval method.
Definition at line 265 of file OgreStringInterface.h. References Ogre::ParamCommand::doGet(), Ogre::ParamDictionary::getParamCommand(), and Ogre::String. |
|
|
Retrieves a list of parameters valid for this object.
|
|
|
Returns whether a vertex program wants light and material states to be passed through fixed pipeline low level API rendering calls.
Definition at line 863 of file OgreGpuProgram.h. |
|
|
Gets the pixel shader.
Definition at line 90 of file OgreD3D9GpuProgram.h. References mpPixelShader. |
|
|
Retrieves info about the size of the resource.
Definition at line 172 of file OgreResource.h. |
|
|
Gets the assembler source for this program.
Definition at line 796 of file OgreGpuProgram.h. References Ogre::String. |
|
|
Gets the name of the file used as source for this program.
Definition at line 794 of file OgreGpuProgram.h. |
|
|
Gets the syntax code for this program e.g. arbvp1, fp20, vs_1_1 etc Definition at line 788 of file OgreGpuProgram.h. References Ogre::String. |
|
|
Get the program type.
Definition at line 800 of file OgreGpuProgram.h. References Ogre::GpuProgramType. |
|
|
Returns true if the Resource has been loaded, false otherwise.
Definition at line 195 of file OgreResource.h. References OGRE_LOCK_AUTO_MUTEX. |
|
|
Is this resource manually loaded?
Definition at line 160 of file OgreResource.h. |
|
|
Returns true if the Resource is reloadable, false otherwise.
Definition at line 153 of file OgreResource.h. |
|
|
Returns whether a vertex program includes the required instructions to perform skeletal animation.
Definition at line 835 of file OgreGpuProgram.h. |
|
|
Returns whether this program can be supported on the current renderer and hardware.
Reimplemented in Ogre::CgProgram, and Ogre::D3D9HLSLProgram. |
|
|
Loads the resource, if it is not already.
Reimplemented in Ogre::Mesh, and Ogre::GLSLGpuProgram. |
|
|
Internal method to load from microcode, must be overridden by subclasses.
Implements Ogre::D3D9GpuProgram. |
|
|
Overridden from GpuProgram.
Implements Ogre::GpuProgram. |
|
|
Reimplemented from Ogre::GpuProgram. |
|
|
Reloads the resource, if it is already loaded.
|
|
|
Tells the program to load from some externally created microcode instead of a file or source.
Definition at line 49 of file OgreD3D9GpuProgram.h. References Ogre::D3D9GpuProgram::mpExternalMicrocode. |
|
||||||||||||
|
Generic parameter setting method.
Referenced by Ogre::StringInterface::copyParametersTo(). |
|
|
Generic multiple parameter setting method.
|
|
|
Sets whether a vertex program includes the required instructions to perform skeletal animation.
Definition at line 826 of file OgreGpuProgram.h. |
|
|
Sets the source assembly for this program from an in-memory string.
|
|
|
Sets the filename of the source assembly for this program.
|
|
|
Sets whether a vertex program requires light and material states to be passed to through fixed pipeline low level API rendering calls.
Definition at line 857 of file OgreGpuProgram.h. |
|
|
Sets the syntax code for this program e.g. arbvp1, fp20, vs_1_1 etc |
|
|
Set the program type (only valid before load).
Reimplemented in Ogre::GLArbGpuProgram. |
|
|
Internal method for setting up the basic parameter definitions for a subclass.
|
|
|
'Touches' the resource to indicate it has been used.
Reimplemented in Ogre::Material. |
|
|
Unloads the resource; this is not permanent, the resource can be reloaded later if required.
Reimplemented in Ogre::GLSLGpuProgram. |
|
|
Implements Ogre::Resource. |
|
|
Creator.
Definition at line 73 of file OgreResource.h. |
|
|
The default parameters for use with this object.
Definition at line 749 of file OgreGpuProgram.h. |
|
|
The name of the file to load source from (may be blank).
Definition at line 739 of file OgreGpuProgram.h. |
|
|
The name of the resource group.
Definition at line 77 of file OgreResource.h. |
|
|
Numeric handle for more efficient look up than name.
Definition at line 79 of file OgreResource.h. |
|
|
Is the resource currently loaded?
Definition at line 81 of file OgreResource.h. |
|
|
Is this file manually loaded?
Definition at line 85 of file OgreResource.h. |
|
|
Optional manual loader; if provided, data is loaded from here instead of a file.
Definition at line 89 of file OgreResource.h. |
|
|
Whether we need to load source from file or not.
Definition at line 743 of file OgreGpuProgram.h. |
|
|
Unique name of the resource.
Definition at line 75 of file OgreResource.h. |
|
|
Origin of this resource (e.g. script name) - optional.
Definition at line 87 of file OgreResource.h. |
|
|
Class name for this instance to be used as a lookup (must be initialised by subclasses).
Definition at line 160 of file OgreStringInterface.h. |
|
|
Does this program want light states passed through fixed pipeline.
Definition at line 751 of file OgreGpuProgram.h. |
|
|
Definition at line 38 of file OgreD3D9GpuProgram.h. |
|
|
Definition at line 39 of file OgreD3D9GpuProgram.h. Referenced by Ogre::D3D9GpuProgram::getExternalMicrocode(), and Ogre::D3D9GpuProgram::setExternalMicrocode(). |
|
|
Definition at line 84 of file OgreD3D9GpuProgram.h. Referenced by getPixelShader(). |
|
|
Dictionary of parameters.
Definition at line 157 of file OgreStringInterface.h. |
|
|
The size of the resource in bytes.
Definition at line 83 of file OgreResource.h. |
|
|
Does this (vertex) program include skeletal animation?
Definition at line 747 of file OgreGpuProgram.h. |
|
|
The assembler source of the program (may be blank until file loaded).
Definition at line 741 of file OgreGpuProgram.h. |
|
|
Definition at line 734 of file OgreGpuProgram.h. |
|
|
Definition at line 733 of file OgreGpuProgram.h. |
|
|
Definition at line 732 of file OgreGpuProgram.h. |
|
|
Syntax code eg arbvp1, vs_2_0 etc.
Definition at line 745 of file OgreGpuProgram.h. |
|
|
The type of the program.
Definition at line 737 of file OgreGpuProgram.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Sun Nov 20 12:44:59 2005