12 #ifndef __PRM_BatchParm__
13 #define __PRM_BatchParm__
26 #define PRM_BATCH_CACHE_SIZE 4
34 int vsize,
void *userdata);
36 const char *
getName()
const {
return myName; }
49 bool isValueSet()
const {
return myValueSet && myEvaluated; }
51 int *
getInt() {
return myVector.myInt; }
58 {
return myEvaluated ? myVector.myInt[idx] : def; }
60 {
return myEvaluated ? myVector.myReal[idx] : def; }
64 def = (
const char *)myVector.myString[idx];
71 for (
int i = 0; i < myVectorSize; i++)
72 myVector.myInt[i] = (
int)val[i];
77 for (
int i = 0; i < myVectorSize; i++)
78 myVector.myInt[i] = (
int)val[i];
83 for (
int i = 0; i < myVectorSize; i++)
84 myVector.myReal[i] = (
fpreal)val[i];
89 for (
int i = 0; i < myVectorSize; i++)
90 myVector.myReal[i] = (
fpreal)val[i];
95 for (
int i = 0; i < myVectorSize; i++)
96 myVector.myString[i].harden(val[i]);
103 void setEvaluated(
int opid,
int pidx)
124 int myOpId, myParmIndex;
const char * getDefaultedString(const char *def, int idx=0)
int getVectorSize() const
int getEvaluatingParmIndex() const
int getEvaluatingOp() const
fpreal getDefaultedReal(fpreal def, int idx=0)
void setValue(const char **val)
void setValue(fpreal64 *val)
void setValue(int32 *val)
#define PRM_BATCH_CACHE_SIZE
PRM_BatchType getType() const
GLuint const GLchar * name
void setValue(int64 *val)
int getDefaultedInt(int def, int idx=0)
const char * getName() const
void setValue(fpreal32 *val)