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>
|
| GpuProgramUsage (const GpuProgramUsage &rhs, Pass *newparent) |
| Copy constructor.
|
|
| GpuProgramUsage (GpuProgramType gptype, Pass *parent) |
| Default constructor.
|
|
| ~GpuProgramUsage () |
|
void | _load (void) |
| Load this usage (and ensure program is loaded)
|
|
void | _unload (void) |
| Unload this usage.
|
|
size_t | calculateSize (void) const |
|
GpuProgramParametersSharedPtr | getParameters (void) |
| Gets the parameters being used here.
|
|
const GpuProgramPtr & | getProgram () const |
| Gets the program being used.
|
|
const String & | getProgramName (void) const |
| Gets the program being used.
|
|
GpuProgramType | getType (void) const |
| Gets the type of program we're trying to link to.
|
|
void | loadingComplete (Resource *prog) |
| Called whenever the resource finishes loading.
|
|
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 | preparingComplete (Resource *) |
| Called whenever the resource finishes preparing (paging into memory).
|
|
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.
|
|
void | setProgram (GpuProgramPtr &prog) |
| Sets the program to use.
|
|
void | setProgramName (const String &name, bool resetParams=true) |
| Sets the name of the program to use.
|
|
void | unloadingComplete (Resource *prog) |
| Called whenever the resource has been unloaded.
|
|
This class makes the usage of a vertex and fragment programs (low-level or high-level), with a given set of parameters, explicit.
- Just incase it wasn't clear from the above, this class provides linkage to both GpuProgram and HighLevelGpuProgram, despite its name.
◆ GpuProgramUsage() [1/2]
Default constructor.
- Parameters
-
gptype | The type of program to link to |
◆ GpuProgramUsage() [2/2]
◆ ~GpuProgramUsage()
Ogre::GpuProgramUsage::~GpuProgramUsage |
( |
| ) |
|
◆ _load()
void Ogre::GpuProgramUsage::_load |
( |
void |
| ) |
|
Load this usage (and ensure program is loaded)
◆ _unload()
void Ogre::GpuProgramUsage::_unload |
( |
void |
| ) |
|
◆ calculateSize()
size_t Ogre::GpuProgramUsage::calculateSize |
( |
void |
| ) |
const |
◆ getParameters()
Gets the parameters being used here.
◆ getProgram()
Gets the program being used.
◆ getProgramName()
◆ getType()
Gets the type of program we're trying to link to.
◆ loadingComplete()
Called whenever the resource finishes loading.
- See also
- Resource::setBackgroundLoaded), the call does not itself occur in the thread which is doing the loading; when loading is complete a response indicator is placed with the ResourceGroupManager, which will then be sent back to the listener as part of the application's primary frame loop thread.
Reimplemented from Ogre::Resource::Listener.
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
◆ operator new() [2/3]
operator new, with debug line info
◆ operator new() [3/3]
◆ operator new[]() [1/2]
◆ operator new[]() [2/2]
array operator new, with debug line info
◆ preparingComplete()
Called whenever the resource finishes preparing (paging into memory).
- See also
- Resource::setBackgroundLoaded) the call does not itself occur in the thread which is doing the preparing; when preparing is complete a response indicator is placed with the ResourceGroupManager, which will then be sent back to the listener as part of the application's primary frame loop thread.
◆ setParameters()
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.
◆ setProgram()
◆ setProgramName()
Sets the name of the program to use.
- Parameters
-
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. |
◆ unloadingComplete()
void Ogre::GpuProgramUsage::unloadingComplete |
( |
Resource * |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: