29 #ifndef vtkUniformVariables_h
30 #define vtkUniformVariables_h
35 class vtkUniformVariablesMap;
48 void SetUniformi(
const char *
name,
49 int numberOfComponents,
55 void SetUniformit(
const char *
name,
56 int numberOfComponents,
61 { this->SetUniformit(name, 1, &value); }
68 void SetUniformf(
const char *
name,
69 int numberOfComponents,
75 void SetUniformft(
const char *
name,
76 int numberOfComponents,
81 { this->SetUniformft(name, 1, &value); }
90 void SetUniformiv(
const char *
name,
91 int numberOfComponents,
102 void SetUniformfv(
const char *
name,
103 int numberOfComponents,
104 int numberOfElements,
112 void SetUniformMatrix(
const char *
name,
119 void RemoveUniform(
const char *
name);
122 void RemoveAllUniforms();
126 void Send(
const char *
name,
138 const char *GetCurrentName();
142 void SendCurrentUniform(
int uniformIndex);
163 vtkUniformVariablesMap *Map;
170 int numberOfComponents,
174 for (
int i=0; i<numberOfComponents; ++i)
176 ivalues[i] =
static_cast<int>(value[i]);
178 this->
SetUniformi(name, numberOfComponents, ivalues);
184 int numberOfComponents,
188 for (
int i=0; i<numberOfComponents; ++i)
190 fvalues[i] =
static_cast<float>(value[i]);
192 this->
SetUniformf(name, numberOfComponents, fvalues);
abstract base class for most VTK objects
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
#define VTKRENDERINGOPENGL_EXPORT