![]() |
OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
The purpose of this class is to contain a set of both auto and manual parameters that may apply to multiple shaders; without having the shader to be created first (the drawback of GpuProgramParameters). More...
#include <OgreShaderParams.h>
Classes | |
struct | AutoParam |
struct | ManualParam |
struct | Param |
Public Types | |
enum | ElementType { ElementInt , ElementUInt , ElementFloat } |
typedef vector< Param >::type | ParamVec |
Public Member Functions | |
ShaderParams () | |
Param * | findParameter (const String &name) |
Finds a parameter. | |
uint32 | getUpdateCounter (void) const |
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 | |
void | setDirty (void) |
Call this whenever you've updated a parameter in mParams. | |
void | updateParameters (GpuProgramParametersSharedPtr params, bool bForce) |
Public Attributes | |
ParamVec | mParams |
bool | mSilenceMissingParameterWarnings |
Don't log exceptions about missing parameters. | |
uint32 | mUpdateCounter |
The purpose of this class is to contain a set of both auto and manual parameters that may apply to multiple shaders; without having the shader to be created first (the drawback of GpuProgramParameters).
Ogre::ShaderParams::ShaderParams | ( | ) |
Finds a parameter.
Returns null if not found. This operation is O(N) as it makes a linear search. You can cache the return pointer (as long as the iterators from mParams aren't invalidated)
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Call this whenever you've updated a parameter in mParams.
void Ogre::ShaderParams::updateParameters | ( | GpuProgramParametersSharedPtr | params, |
bool | bForce | ||
) |
ParamVec Ogre::ShaderParams::mParams |
bool Ogre::ShaderParams::mSilenceMissingParameterWarnings |
Don't log exceptions about missing parameters.
uint32 Ogre::ShaderParams::mUpdateCounter |