27 #ifndef vtkUniformVariables_h 28 #define vtkUniformVariables_h 30 #include "vtkRenderingOpenGLModule.h" 33 class vtkUniformVariablesMap;
48 void SetUniformi(
const char *
name,
49 int numberOfComponents,
53 void SetUniformit(
const char *
name,
54 int numberOfComponents,
67 void SetUniformf(
const char *
name,
68 int numberOfComponents,
72 void SetUniformft(
const char *
name,
73 int numberOfComponents,
88 void SetUniformiv(
const char *
name,
89 int numberOfComponents,
101 void SetUniformfv(
const char *
name,
102 int numberOfComponents,
113 void SetUniformMatrix(
const char *
name,
121 void RemoveUniform(
const char *
name);
126 void RemoveAllUniforms();
131 void Send(
const char *
name,
148 const char *GetCurrentName();
154 void SendCurrentUniform(
int uniformIndex);
186 vtkUniformVariablesMap *Map;
192 int numberOfComponents,
196 for (
int i=0; i<numberOfComponents; ++i)
198 ivalues[i] =
static_cast<int>(
value[i]);
200 this->SetUniformi(
name, numberOfComponents, ivalues);
206 int numberOfComponents,
210 for (
int i=0; i<numberOfComponents; ++i)
212 fvalues[i] =
static_cast<float>(
value[i]);
214 this->SetUniformf(
name, numberOfComponents, fvalues);
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
static const unsigned int numberOfElements
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...