VTK
Classes | Macros | Enumerations | Functions | Variables
vtkShaderProgram2.h File Reference
#include <cassert>
#include "vtkRenderingOpenGLModule.h"
#include "vtkWeakPointer.h"
#include "vtkObject.h"
Include dependency graph for vtkShaderProgram2.h:

Go to the source code of this file.

Classes

class  vtkShaderProgram2
 GLSL Program. More...
 

Macros

#define vtkShaderProgram2SetUniformCopyCastMacro(toLetter, toType, num)
 

Enumerations

enum  vtkShaderProgram2BuildStatus { VTK_SHADER_PROGRAM2_COMPILE_FAILED =0, VTK_SHADER_PROGRAM2_LINK_FAILED =1, VTK_SHADER_PROGRAM2_LINK_SUCCEEDED =2 }
 
enum  vtkShaderProgram2GeometryInType {
  VTK_GEOMETRY_SHADER_IN_TYPE_POINTS, VTK_GEOMETRY_SHADER_IN_TYPE_LINES, VTK_GEOMETRY_SHADER_IN_TYPE_LINES_ADJACENCY, VTK_GEOMETRY_SHADER_IN_TYPE_TRIANGLES,
  VTK_GEOMETRY_SHADER_IN_TYPE_TRIANGLES_ADJACENCY
}
 
enum  vtkShaderProgram2GeometryOutType { VTK_GEOMETRY_SHADER_OUT_TYPE_POINTS, VTK_GEOMETRY_SHADER_OUT_TYPE_LINE_STRIP, VTK_GEOMETRY_SHADER_OUT_TYPE_TRIANGLE_STRIP }
 

Functions

 vtkShaderProgram2SetUniformCopyCastMacro (f, float, 1) vtkShaderProgram2SetUniformCopyCastMacro(f
 
 vtkShaderProgram2SetUniformCopyCastMacro (f, float, 3) vtkShaderProgram2SetUniformCopyCastMacro(f
 
 vtkShaderProgram2SetUniformCopyCastMacro (i, int, 1) vtkShaderProgram2SetUniformCopyCastMacro(i
 
 vtkShaderProgram2SetUniformCopyCastMacro (i, int, 3) vtkShaderProgram2SetUniformCopyCastMacro(i
 

Variables

 float
 
 int
 

Macro Definition Documentation

#define vtkShaderProgram2SetUniformCopyCastMacro (   toLetter,
  toType,
  num 
)
Value:
template<typename fromType> \
void vtkShaderProgram2::SetUniform##num##toLetter##t(const char *name, fromType *fvalues) \
{ \
toType tvalues[num]; \
for (int i=0; i<num; ++i) \
{ \
tvalues[i] = static_cast<toType>(fvalues[i]); \
} \
this->SetUniform##num##toLetter(name, tvalues); \
} \
template<typename fromType> \
void vtkShaderProgram2::SetUniform##num##toLetter##t(int location, fromType *fvalues) \
{ \
assert(location!=-1); \
toType tvalues[num]; \
for (int i=0; i<num; ++i) \
{ \
tvalues[i] = static_cast<toType>(fvalues[i]); \
} \
this->SetUniform##num##toLetter(location, tvalues); \
}

Definition at line 477 of file vtkShaderProgram2.h.

Enumeration Type Documentation

Enumerator
VTK_SHADER_PROGRAM2_COMPILE_FAILED 
VTK_SHADER_PROGRAM2_LINK_FAILED 
VTK_SHADER_PROGRAM2_LINK_SUCCEEDED 

Definition at line 42 of file vtkShaderProgram2.h.

Enumerator
VTK_GEOMETRY_SHADER_IN_TYPE_POINTS 
VTK_GEOMETRY_SHADER_IN_TYPE_LINES 
VTK_GEOMETRY_SHADER_IN_TYPE_LINES_ADJACENCY 
VTK_GEOMETRY_SHADER_IN_TYPE_TRIANGLES 
VTK_GEOMETRY_SHADER_IN_TYPE_TRIANGLES_ADJACENCY 

Definition at line 52 of file vtkShaderProgram2.h.

Enumerator
VTK_GEOMETRY_SHADER_OUT_TYPE_POINTS 
VTK_GEOMETRY_SHADER_OUT_TYPE_LINE_STRIP 
VTK_GEOMETRY_SHADER_OUT_TYPE_TRIANGLE_STRIP 

Definition at line 61 of file vtkShaderProgram2.h.

Function Documentation

vtkShaderProgram2SetUniformCopyCastMacro ( ,
float  ,
 
)
vtkShaderProgram2SetUniformCopyCastMacro ( ,
float  ,
 
)
vtkShaderProgram2SetUniformCopyCastMacro ( ,
int  ,
 
)
vtkShaderProgram2SetUniformCopyCastMacro ( ,
int  ,
 
)

Variable Documentation

float

Definition at line 500 of file vtkShaderProgram2.h.

int

Definition at line 504 of file vtkShaderProgram2.h.