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 String & | getName () |
Get the name of this shared parameter set. | |
void | addConstantDefinition (const String &name, GpuConstantType constType, size_t arraySize=1) |
Add a new constant definition to this shared set of parameters. | |
void | removeConstantDefinition (const String &name) |
Remove a constant definition from this shared set of parameters. | |
void | removeAllConstantDefinitions () |
Remove a constant definition from this shared set of parameters. | |
unsigned long | getVersion () const |
Get the version number of this shared parameter set, can be used to identify when changes have occurred. | |
void | _markDirty () |
Mark the shared set as being dirty (values modified). | |
size_t | getFrameLastUpdated () const |
Get the frame in which this shared parameter set was last updated. | |
GpuConstantDefinitionIterator | getConstantDefinitionIterator (void) const |
Gets an iterator over the named GpuConstantDefinition instances as defined by the user. | |
const GpuConstantDefinition & | getConstantDefinition (const String &name) const |
Get a specific GpuConstantDefinition for a named parameter. | |
const GpuNamedConstants & | getConstantDefinitions () const |
Get the full list of GpuConstantDefinition instances. | |
void | setNamedConstant (const String &name, Real val) |
void | setNamedConstant (const String &name, int val) |
void | setNamedConstant (const String &name, const Vector4 &vec) |
void | setNamedConstant (const String &name, const Vector3 &vec) |
void | setNamedConstant (const String &name, const Matrix4 &m) |
void | setNamedConstant (const String &name, const Matrix4 *m, size_t numEntries) |
void | setNamedConstant (const String &name, const float *val, size_t count) |
void | setNamedConstant (const String &name, const double *val, size_t count) |
void | setNamedConstant (const String &name, const ColourValue &colour) |
void | setNamedConstant (const String &name, const int *val, size_t count) |
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. | |
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. | |
void | _setRenderSystemData (const Any &data) const |
Internal method that the RenderSystem might use to store optional data. | |
const Any & | _getRenderSystemData () const |
Internal method that the RenderSystem might use to store optional data. | |
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 Attributes | |
GpuNamedConstants | mNamedConstants |
FloatConstantList | mFloatConstants |
IntConstantList | mIntConstants |
String | mName |
Any | mRenderSystemData |
size_t | mFrameLastUpdated |
Not used when copying data, but might be useful to RS using shared buffers. | |
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 395 of file OgreGpuProgramParams.h.
Ogre::GpuSharedParameters::GpuSharedParameters | ( | const String & | name | ) |
virtual Ogre::GpuSharedParameters::~GpuSharedParameters | ( | ) | [virtual] |
const Any& Ogre::GpuSharedParameters::_getRenderSystemData | ( | ) | const |
Internal method that the RenderSystem might use to store optional data.
Definition at line 497 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 495 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.
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 float* Ogre::GpuSharedParameters::getFloatPointer | ( | size_t | pos | ) | const |
Get a pointer to the 'nth' item in the float buffer.
Definition at line 487 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 485 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 448 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 491 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 489 of file OgreGpuProgramParams.h.
const String& Ogre::GpuSharedParameters::getName | ( | void | ) |
Get the name of this shared parameter set.
Definition at line 417 of file OgreGpuProgramParams.h.
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 439 of file OgreGpuProgramParams.h.
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.
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 int * | val, | |||
size_t | count | |||
) |
Sets a single value constant floating-point parameter to the program.
name | The name of the parameter | |
val | The value to set |
void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, | |
const ColourValue & | colour | |||
) |
Sets a single value constant floating-point parameter to the program.
name | The name of the parameter | |
val | The value to set |
void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, | |
const double * | val, | |||
size_t | count | |||
) |
Sets a single value constant floating-point parameter to the program.
name | The name of the parameter | |
val | The value to set |
void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, | |
const float * | val, | |||
size_t | count | |||
) |
Sets a single value constant floating-point parameter to the program.
name | The name of the parameter | |
val | The value to set |
void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, | |
const Matrix4 * | m, | |||
size_t | numEntries | |||
) |
Sets a single value constant floating-point 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 |
Sets a single value constant floating-point 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 |
void Ogre::GpuSharedParameters::setNamedConstant | ( | const String & | name, | |
int | val | |||
) |
Sets a single value constant floating-point 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 |
Definition at line 399 of file OgreGpuProgramParams.h.
size_t Ogre::GpuSharedParameters::mFrameLastUpdated [protected] |
Not used when copying data, but might be useful to RS using shared buffers.
Definition at line 407 of file OgreGpuProgramParams.h.
Definition at line 400 of file OgreGpuProgramParams.h.
String Ogre::GpuSharedParameters::mName [protected] |
Definition at line 401 of file OgreGpuProgramParams.h.
Definition at line 398 of file OgreGpuProgramParams.h.
Any Ogre::GpuSharedParameters::mRenderSystemData [mutable, protected] |
Definition at line 404 of file OgreGpuProgramParams.h.
unsigned long Ogre::GpuSharedParameters::mVersion [protected] |
Version number of the definitions in this buffer.
Definition at line 410 of file OgreGpuProgramParams.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:33 2012