#include <OgreGpuProgram.h>
Public Member Functions | |
void | generateConstantDefinitionArrayEntries (const String ¶mName, const GpuConstantDefinition &baseDef) |
Generate additional constant entries for arrays based on a base definition. | |
void | save (const String &filename) const |
Saves constant definitions to a file, compatible with GpuProgram::setManualNamedConstantsFile. | |
void | load (DataStreamPtr &stream) |
Loads constant definitions from a stream, compatible with GpuProgram::setManualNamedConstantsFile. | |
Static Public Member Functions | |
static bool | getGenerateAllConstantDefinitionArrayEntries () |
Indicates whether all array entries will be generated and added to the definitions map. | |
static void | setGenerateAllConstantDefinitionArrayEntries (bool generateAll) |
Sets whether all array entries will be generated and added to the definitions map. | |
Public Attributes | |
size_t | floatBufferSize |
Total size of the float buffer required. | |
size_t | intBufferSize |
Total size of the int buffer required. | |
GpuConstantDefinitionMap | map |
Map of parameter names to GpuConstantDefinition. | |
Static Protected Attributes | |
static bool | msGenerateAllConstantDefinitionArrayEntries |
Indicates whether all array entries will be generated and added to the definitions map. |
Definition at line 149 of file OgreGpuProgram.h.
void Ogre::GpuNamedConstants::generateConstantDefinitionArrayEntries | ( | const String & | paramName, | |
const GpuConstantDefinition & | baseDef | |||
) |
Generate additional constant entries for arrays based on a base definition.
static bool Ogre::GpuNamedConstants::getGenerateAllConstantDefinitionArrayEntries | ( | ) | [static] |
Indicates whether all array entries will be generated and added to the definitions map.
static void Ogre::GpuNamedConstants::setGenerateAllConstantDefinitionArrayEntries | ( | bool | generateAll | ) | [static] |
Sets whether all array entries will be generated and added to the definitions map.
void Ogre::GpuNamedConstants::save | ( | const String & | filename | ) | const |
Saves constant definitions to a file, compatible with GpuProgram::setManualNamedConstantsFile.
void Ogre::GpuNamedConstants::load | ( | DataStreamPtr & | stream | ) |
Loads constant definitions from a stream, compatible with GpuProgram::setManualNamedConstantsFile.
bool Ogre::GpuNamedConstants::msGenerateAllConstantDefinitionArrayEntries [static, protected] |
Indicates whether all array entries will be generated and added to the definitions map.
true
allows all of the entries to be generated and added to the map. Definition at line 199 of file OgreGpuProgram.h.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:03:26 2009