This class makes the usage of a vertex and fragment programs (low-level or high-level), with a given set of parameters, explicit. More...
#include <OgreGpuProgramUsage.h>
Public Member Functions | |
GpuProgramUsage (GpuProgramType gptype, Pass *parent) | |
Default constructor. | |
GpuProgramUsage (const GpuProgramUsage &rhs, Pass *newparent) | |
Copy constructor. | |
~GpuProgramUsage () | |
GpuProgramType | getType (void) const |
Gets the type of program we're trying to link to. | |
void | setProgramName (const String &name, bool resetParams=true) |
Sets the name of the program to use. | |
void | setProgram (GpuProgramPtr &prog) |
Sets the program to use. | |
const GpuProgramPtr & | getProgram () const |
Gets the program being used. | |
const String & | getProgramName (void) const |
Gets the program being used. | |
void | setParameters (GpuProgramParametersSharedPtr params) |
Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects. | |
GpuProgramParametersSharedPtr | getParameters (void) |
Gets the parameters being used here. | |
void | _load (void) |
Load this usage (and ensure program is loaded). | |
void | _unload (void) |
Unload this usage. | |
void | unloadingComplete (Resource *prog) |
Called whenever the resource has been unloaded. | |
void | loadingComplete (Resource *prog) |
Called whenever the resource finishes loading. | |
virtual void | backgroundLoadingComplete (Resource *) |
Callback to indicate that background loading has completed. | |
virtual void | backgroundPreparingComplete (Resource *) |
Callback to indicate that background preparing has completed. | |
virtual void | preparingComplete (Resource *) |
called whenever the resource finishes preparing (paging into memory). | |
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 * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
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 *) |
Protected Member Functions | |
void | recreateParameters () |
Protected Attributes | |
GpuProgramType | mType |
Pass * | mParent |
GpuProgramPtr | mProgram |
GpuProgramParametersSharedPtr | mParameters |
program parameters | |
bool | mRecreateParams |
Whether to recreate parameters next load. |
This class makes the usage of a vertex and fragment programs (low-level or high-level), with a given set of parameters, explicit.
Definition at line 73 of file OgreGpuProgramUsage.h.
Ogre::GpuProgramUsage::GpuProgramUsage | ( | GpuProgramType | gptype, | |
Pass * | parent | |||
) |
Default constructor.
gptype | The type of program to link to |
Ogre::GpuProgramUsage::GpuProgramUsage | ( | const GpuProgramUsage & | rhs, | |
Pass * | newparent | |||
) |
Copy constructor.
Ogre::GpuProgramUsage::~GpuProgramUsage | ( | ) |
void Ogre::GpuProgramUsage::_load | ( | void | ) |
Load this usage (and ensure program is loaded).
void Ogre::GpuProgramUsage::_unload | ( | void | ) |
Unload this usage.
virtual void Ogre::Resource::Listener::backgroundLoadingComplete | ( | Resource * | ) | [virtual, inherited] |
Callback to indicate that background loading has completed.
Reimplemented in Ogre::Entity.
Definition at line 91 of file OgreResource.h.
virtual void Ogre::Resource::Listener::backgroundPreparingComplete | ( | Resource * | ) | [virtual, inherited] |
Callback to indicate that background preparing has completed.
Definition at line 97 of file OgreResource.h.
GpuProgramParametersSharedPtr Ogre::GpuProgramUsage::getParameters | ( | void | ) |
Gets the parameters being used here.
const GpuProgramPtr& Ogre::GpuProgramUsage::getProgram | ( | ) | const |
Gets the program being used.
Definition at line 122 of file OgreGpuProgramUsage.h.
const String& Ogre::GpuProgramUsage::getProgramName | ( | void | ) | const |
Gets the program being used.
Definition at line 124 of file OgreGpuProgramUsage.h.
GpuProgramType Ogre::GpuProgramUsage::getType | ( | void | ) | const |
Gets the type of program we're trying to link to.
Definition at line 101 of file OgreGpuProgramUsage.h.
void Ogre::GpuProgramUsage::loadingComplete | ( | Resource * | ) | [virtual] |
Called whenever the resource finishes loading.
Reimplemented from Ogre::Resource::Listener.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
virtual void Ogre::Resource::Listener::preparingComplete | ( | Resource * | ) | [virtual, inherited] |
called whenever the resource finishes preparing (paging into memory).
Definition at line 118 of file OgreResource.h.
void Ogre::GpuProgramUsage::recreateParameters | ( | ) | [protected] |
void Ogre::GpuProgramUsage::setParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects.
Otherwise, the parameters will be created for you when a program is linked.
void Ogre::GpuProgramUsage::setProgram | ( | GpuProgramPtr & | prog | ) |
Sets the program to use.
void Ogre::GpuProgramUsage::setProgramName | ( | const String & | name, | |
bool | resetParams = true | |||
) |
Sets the name of the program to use.
name | The name of the program to use | |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::GpuProgramUsage::unloadingComplete | ( | Resource * | ) | [virtual] |
Called whenever the resource has been unloaded.
Reimplemented from Ogre::Resource::Listener.
program parameters
Definition at line 82 of file OgreGpuProgramUsage.h.
Pass* Ogre::GpuProgramUsage::mParent [protected] |
Definition at line 77 of file OgreGpuProgramUsage.h.
GpuProgramPtr Ogre::GpuProgramUsage::mProgram [protected] |
Definition at line 79 of file OgreGpuProgramUsage.h.
bool Ogre::GpuProgramUsage::mRecreateParams [protected] |
Whether to recreate parameters next load.
Definition at line 85 of file OgreGpuProgramUsage.h.
GpuProgramType Ogre::GpuProgramUsage::mType [protected] |
Definition at line 76 of file OgreGpuProgramUsage.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:37:34 2012