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. More... | |
| void | _markDirty () |
| Mark the shared set as being dirty (values modified). More... | |
| void | _setRenderSystemData (const Any &data) const |
| Internal method that the RenderSystem might use to store optional data. More... | |
| void | addConstantDefinition (const String &name, GpuConstantType constType, size_t arraySize=1) |
| Add a new constant definition to this shared set of parameters. More... | |
| size_t | calculateSize (void) const |
| const GpuConstantDefinition & | getConstantDefinition (const String &name) const |
| Get a specific GpuConstantDefinition for a named parameter. More... | |
| GpuConstantDefinitionIterator | getConstantDefinitionIterator (void) const |
| Gets an iterator over the named GpuConstantDefinition instances as defined by the user. More... | |
| const GpuNamedConstants & | getConstantDefinitions () const |
| Get the full list of GpuConstantDefinition instances. More... | |
| const DoubleConstantList & | getDoubleConstantList () const |
| Get a reference to the list of double constants. More... | |
| double * | getDoublePointer (size_t pos) |
| Get a pointer to the 'nth' item in the double buffer. More... | |
| const double * | getDoublePointer (size_t pos) const |
| Get a pointer to the 'nth' item in the double buffer. More... | |
| const FloatConstantList & | getFloatConstantList () const |
| Get a reference to the list of float constants. More... | |
| float * | getFloatPointer (size_t pos) |
| Get a pointer to the 'nth' item in the float buffer. More... | |
| const float * | getFloatPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the float buffer. More... | |
| size_t | getFrameLastUpdated () const |
| Get the frame in which this shared parameter set was last updated. More... | |
| const IntConstantList & | getIntConstantList () const |
| Get a reference to the list of int constants. More... | |
| int * | getIntPointer (size_t pos) |
| Get a pointer to the 'nth' item in the int buffer. More... | |
| const int * | getIntPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the int buffer. More... | |
| const String & | getName () |
| Get the name of this shared parameter set. More... | |
| unsigned long | getVersion () const |
| Get the version number of this shared parameter set, can be used to identify when changes have occurred. More... | |
| 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 More... | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new More... | |
| 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 More... | |
| void | removeAllConstantDefinitions () |
| Remove a constant definition from this shared set of parameters. More... | |
| void | removeConstantDefinition (const String &name) |
| Remove a constant definition from this shared set of parameters. More... | |
| void | setNamedConstant (const String &name, const ColourValue &colour) |
| Sets a ColourValue parameter to the program. More... | |
| 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. More... | |
| void | setNamedConstant (const String &name, const Matrix4 *m, size_t numEntries) |
| Sets a list of Matrix4 parameters to the program. More... | |
| void | setNamedConstant (const String &name, const Vector2 &vec) |
| Sets a Vector2 parameter to the program. More... | |
| void | setNamedConstant (const String &name, const Vector3 &vec) |
| Sets a Vector3 parameter to the program. More... | |
| void | setNamedConstant (const String &name, const Vector4 &vec) |
| Sets a Vector4 parameter to the program. More... | |
| void | setNamedConstant (const String &name, int val) |
| Sets a single value constant integer parameter to the program. More... | |
| void | setNamedConstant (const String &name, Real val) |
| Sets a single value constant floating-point parameter to the program. More... | |
Protected Attributes | |
| DoubleConstantList | mDoubleConstants |
| FloatConstantList | mFloatConstants |
| size_t | mFrameLastUpdated |
| Not used when copying data, but might be useful to RS using shared buffers. More... | |
| IntConstantList | mIntConstants |
| String | mName |
| GpuNamedConstants | mNamedConstants |
| Any | mRenderSystemData |
| unsigned long | mVersion |
| Version number of the definitions in this buffer. More... | |
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.
| void Ogre::GpuSharedParameters::_markDirty | ( | ) |
Mark the shared set as being dirty (values modified).
| 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.
| 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.
| 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.
| 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.
| const FloatConstantList& Ogre::GpuSharedParameters::getFloatConstantList | ( | ) | const |
Get a reference to the list of float constants.
Definition at line 598 of file OgreGpuProgramParams.h.
| 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.
| 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.
| 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.
| const IntConstantList& Ogre::GpuSharedParameters::getIntConstantList | ( | ) | const |
Get a reference to the list of int constants.
Definition at line 602 of file OgreGpuProgramParams.h.
| 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.
| 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.
| const String& Ogre::GpuSharedParameters::getName | ( | ) |
Get the name of this shared parameter set.
Definition at line 513 of file OgreGpuProgramParams.h.
Referenced by Ogre::GpuSharedParametersUsage::getName().
| 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.
|
inherited |
Definition at line 96 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 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 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 |
placement operator new
Definition at line 79 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.
| 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.
|
protected |
Definition at line 494 of file OgreGpuProgramParams.h.
|
protected |
Not used when copying data, but might be useful to RS using shared buffers.
Definition at line 503 of file OgreGpuProgramParams.h.
|
protected |
Definition at line 496 of file OgreGpuProgramParams.h.
|
protected |
Definition at line 497 of file OgreGpuProgramParams.h.
|
protected |
Definition at line 493 of file OgreGpuProgramParams.h.
|
mutableprotected |
Definition at line 500 of file OgreGpuProgramParams.h.
|
protected |
Version number of the definitions in this buffer.
Definition at line 506 of file OgreGpuProgramParams.h.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.