|
OGRE
1.9.0
|
A group of manually updated parameters that are shared between many parameter sets. More...
#include <OgreGpuProgramParams.h>

Public Member Functions | |
| GpuSharedParameters (const String &name) | |
| virtual | ~GpuSharedParameters () |
| const Any & | _getRenderSystemData () const |
| Internal method that the RenderSystem might use to store optional data. | |
| void | _markDirty () |
| Mark the shared set as being dirty (values modified). | |
| void | _setRenderSystemData (const Any &data) const |
| Internal method that the RenderSystem might use to store optional data. | |
| void | addConstantDefinition (const String &name, GpuConstantType constType, size_t arraySize=1) |
| Add a new constant definition to this shared set of parameters. | |
| size_t | calculateSize (void) const |
| const GpuConstantDefinition & | getConstantDefinition (const String &name) const |
| Get a specific GpuConstantDefinition for a named parameter. | |
| GpuConstantDefinitionIterator | getConstantDefinitionIterator (void) const |
| Gets an iterator over the named GpuConstantDefinition instances as defined by the user. | |
| const GpuNamedConstants & | getConstantDefinitions () const |
| Get the full list of GpuConstantDefinition instances. | |
| const DoubleConstantList & | getDoubleConstantList () const |
| Get a reference to the list of double constants. | |
| double * | getDoublePointer (size_t pos) |
| Get a pointer to the 'nth' item in the double buffer. | |
| const double * | getDoublePointer (size_t pos) const |
| Get a pointer to the 'nth' item in the double buffer. | |
| const FloatConstantList & | getFloatConstantList () const |
| Get a reference to the list of float constants. | |
| float * | getFloatPointer (size_t pos) |
| Get a pointer to the 'nth' item in the float buffer. | |
| const float * | getFloatPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the float buffer. | |
| size_t | getFrameLastUpdated () const |
| Get the frame in which this shared parameter set was last updated. | |
| const IntConstantList & | getIntConstantList () const |
| Get a reference to the list of int constants. | |
| int * | getIntPointer (size_t pos) |
| Get a pointer to the 'nth' item in the int buffer. | |
| const int * | getIntPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the int buffer. | |
| const String & | getName () |
| Get the name of this shared parameter set. | |
| unsigned long | getVersion () const |
| Get the version number of this shared parameter set, can be used to identify when changes have occurred. | |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz) |
| 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, 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 *ptr) |
| placement operator new | |
| void * | operator new[] (size_t sz) |
| 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 | |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| void | removeAllConstantDefinitions () |
| Remove a constant definition from this shared set of parameters. | |
| void | removeConstantDefinition (const String &name) |
| Remove a constant definition from this shared set of parameters. | |
| void | setNamedConstant (const String &name, const ColourValue &colour) |
| Sets a ColourValue parameter to the program. | |
| void | setNamedConstant (const String &name, const double *val, size_t count) |
| void | setNamedConstant (const String &name, const float *val, size_t count) |
| void | setNamedConstant (const String &name, const int *val, size_t count) |
| void | setNamedConstant (const String &name, const Matrix4 &m) |
| Sets a Matrix4 parameter to the program. | |
| void | setNamedConstant (const String &name, const Matrix4 *m, size_t numEntries) |
| Sets a list of Matrix4 parameters to the program. | |
| void | setNamedConstant (const String &name, const Vector2 &vec) |
| Sets a Vector2 parameter to the program. | |
| void | setNamedConstant (const String &name, const Vector3 &vec) |
| Sets a Vector3 parameter to the program. | |
| void | setNamedConstant (const String &name, const Vector4 &vec) |
| Sets a Vector4 parameter to the program. | |
| void | setNamedConstant (const String &name, int val) |
| Sets a single value constant integer parameter to the program. | |
| void | setNamedConstant (const String &name, Real val) |
| Sets a single value constant floating-point parameter to the program. | |
Protected Attributes | |
| DoubleConstantList | mDoubleConstants |
| FloatConstantList | mFloatConstants |
| size_t | mFrameLastUpdated |
| Not used when copying data, but might be useful to RS using shared buffers. | |
| IntConstantList | mIntConstants |
| String | mName |
| GpuNamedConstants | mNamedConstants |
| Any | mRenderSystemData |
| unsigned long | mVersion |
| Version number of the definitions in this buffer. | |
A group of manually updated parameters that are shared between many parameter sets.
Definition at line 490 of file OgreGpuProgramParams.h.
| Ogre::GpuSharedParameters::GpuSharedParameters | ( | const String & | name | ) |
|
virtual |
| const Any & Ogre::GpuSharedParameters::_getRenderSystemData | ( | ) | const |
Internal method that the RenderSystem might use to store optional data.
Definition at line 607 of file OgreGpuProgramParams.h.
References mRenderSystemData.
| void Ogre::GpuSharedParameters::_markDirty | ( | ) |
Mark the shared set as being dirty (values modified).
Referenced by getDoublePointer(), getFloatPointer(), and getIntPointer().
| void Ogre::GpuSharedParameters::_setRenderSystemData | ( | const Any & | data | ) | const |
Internal method that the RenderSystem might use to store optional data.
Definition at line 605 of file OgreGpuProgramParams.h.
References mRenderSystemData.
| void Ogre::GpuSharedParameters::addConstantDefinition | ( | const String & | name, |
| GpuConstantType | constType, | ||
| size_t | arraySize = 1 ) |
Add a new constant definition to this shared set of parameters.
| size_t Ogre::GpuSharedParameters::calculateSize | ( | void | ) | const |
| const GpuConstantDefinition & Ogre::GpuSharedParameters::getConstantDefinition | ( | const String & | name | ) | const |
Get a specific GpuConstantDefinition for a named parameter.
| GpuConstantDefinitionIterator Ogre::GpuSharedParameters::getConstantDefinitionIterator | ( | void | ) | const |
Gets an iterator over the named GpuConstantDefinition instances as defined by the user.
| const GpuNamedConstants & Ogre::GpuSharedParameters::getConstantDefinitions | ( | ) | const |
Get the full list of GpuConstantDefinition instances.
| const DoubleConstantList & Ogre::GpuSharedParameters::getDoubleConstantList | ( | ) | const |
Get a reference to the list of double constants.
Definition at line 600 of file OgreGpuProgramParams.h.
References mDoubleConstants.
| double * Ogre::GpuSharedParameters::getDoublePointer | ( | size_t | pos | ) |
Get a pointer to the 'nth' item in the double buffer.
Definition at line 589 of file OgreGpuProgramParams.h.
References _markDirty(), and mDoubleConstants.
| const double * Ogre::GpuSharedParameters::getDoublePointer | ( | size_t | pos | ) | const |
Get a pointer to the 'nth' item in the double buffer.
Definition at line 591 of file OgreGpuProgramParams.h.
References mDoubleConstants.
| const FloatConstantList & Ogre::GpuSharedParameters::getFloatConstantList | ( | ) | const |
Get a reference to the list of float constants.
Definition at line 598 of file OgreGpuProgramParams.h.
References mFloatConstants.
| float * Ogre::GpuSharedParameters::getFloatPointer | ( | size_t | pos | ) |
Get a pointer to the 'nth' item in the float buffer.
Definition at line 585 of file OgreGpuProgramParams.h.
References _markDirty(), and mFloatConstants.
| const float * Ogre::GpuSharedParameters::getFloatPointer | ( | size_t | pos | ) | const |
Get a pointer to the 'nth' item in the float buffer.
Definition at line 587 of file OgreGpuProgramParams.h.
References mFloatConstants.
| size_t Ogre::GpuSharedParameters::getFrameLastUpdated | ( | ) | const |
Get the frame in which this shared parameter set was last updated.
Definition at line 546 of file OgreGpuProgramParams.h.
References mFrameLastUpdated.
| const IntConstantList & Ogre::GpuSharedParameters::getIntConstantList | ( | ) | const |
Get a reference to the list of int constants.
Definition at line 602 of file OgreGpuProgramParams.h.
References mIntConstants.
| int * Ogre::GpuSharedParameters::getIntPointer | ( | size_t | pos | ) |
Get a pointer to the 'nth' item in the int buffer.
Definition at line 593 of file OgreGpuProgramParams.h.
References _markDirty(), and mIntConstants.
| const int * Ogre::GpuSharedParameters::getIntPointer | ( | size_t | pos | ) | const |
Get a pointer to the 'nth' item in the int buffer.
Definition at line 595 of file OgreGpuProgramParams.h.
References mIntConstants.
| const String & Ogre::GpuSharedParameters::getName | ( | ) |
Get the name of this shared parameter set.
Definition at line 513 of file OgreGpuProgramParams.h.
References mName.
| unsigned long Ogre::GpuSharedParameters::getVersion | ( | ) | const |
Get the version number of this shared parameter set, can be used to identify when changes have occurred.
Definition at line 535 of file OgreGpuProgramParams.h.
References mVersion.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
| void Ogre::GpuSharedParameters::removeAllConstantDefinitions | ( | ) |
Remove a constant definition from this shared set of parameters.
| void Ogre::GpuSharedParameters::removeConstantDefinition | ( | const String & | name | ) |
Remove a constant definition from this shared set of parameters.
| void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, |
| const ColourValue & | colour ) |
Sets a ColourValue parameter to the program.
| name | The name of the parameter |
| colour | The value to set |
| void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, |
| const double * | val, | ||
| size_t | count ) |
| void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, |
| const float * | val, | ||
| size_t | count ) |
| void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, |
| const int * | val, | ||
| size_t | count ) |
Sets a Matrix4 parameter to the program.
| name | The name of the parameter |
| m | The value to set |
| void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, |
| const Matrix4 * | m, | ||
| size_t | numEntries ) |
Sets a list of Matrix4 parameters to the program.
Sets a Vector2 parameter to the program.
| name | The name of the parameter |
| vec | The value to set |
Sets a Vector3 parameter to the program.
| name | The name of the parameter |
| vec | The value to set |
Sets a Vector4 parameter to the program.
| name | The name of the parameter |
| vec | The value to set |
| void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, |
| int | val ) |
Sets a single value constant integer parameter to the program.
| name | The name of the parameter |
| val | The value to set |
Sets a single value constant floating-point parameter to the program.
| name | The name of the parameter |
| val | The value to set |
|
protected |
Definition at line 495 of file OgreGpuProgramParams.h.
Referenced by getDoubleConstantList(), getDoublePointer(), and getDoublePointer().
|
protected |
Definition at line 494 of file OgreGpuProgramParams.h.
Referenced by getFloatConstantList(), getFloatPointer(), and getFloatPointer().
|
protected |
Not used when copying data, but might be useful to RS using shared buffers.
Definition at line 503 of file OgreGpuProgramParams.h.
Referenced by getFrameLastUpdated().
|
protected |
Definition at line 496 of file OgreGpuProgramParams.h.
Referenced by getIntConstantList(), getIntPointer(), and getIntPointer().
|
protected |
Definition at line 497 of file OgreGpuProgramParams.h.
Referenced by getName().
|
protected |
Definition at line 493 of file OgreGpuProgramParams.h.
|
mutableprotected |
Definition at line 500 of file OgreGpuProgramParams.h.
Referenced by _getRenderSystemData(), and _setRenderSystemData().
|
protected |
Version number of the definitions in this buffer.
Definition at line 506 of file OgreGpuProgramParams.h.
Referenced by getVersion().
1.13.2