#include <cassert>
#include "vtkRenderingOpenGLModule.h"
#include "vtkWeakPointer.h"
#include "vtkObject.h"
Go to the source code of this file.
Classes |
class | vtkShaderProgram2 |
| GLSL Program. More...
|
Defines |
#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 |
Define Documentation
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 395 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 41 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 51 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 60 of file vtkShaderProgram2.h.
Function Documentation
Variable Documentation