VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkGLSLShaderDeviceAdapter2.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGLSLShaderDeviceAdapter2.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
22
#ifndef __vtkGLSLShaderDeviceAdapter2_h
23
#define __vtkGLSLShaderDeviceAdapter2_h
24
25
#include "
vtkShaderDeviceAdapter2.h
"
26
27
class
vtkShaderProgram2
;
28
29
class
VTK_RENDERING_EXPORT
vtkGLSLShaderDeviceAdapter2
30
:
public
vtkShaderDeviceAdapter2
31
{
32
public
:
33
vtkTypeMacro(
vtkGLSLShaderDeviceAdapter2
,
vtkShaderDeviceAdapter2
);
34
static
vtkGLSLShaderDeviceAdapter2
*
New
();
35
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
36
37
// Descrition:
38
// This method is called before rendering. This gives the shader device
39
// adapter an opportunity to collect information, such as attribute indices
40
// that it will need while rendering.
41
virtual
void
PrepareForRender
();
42
44
55
virtual
void
SendAttribute
(
const
char
* attrname,
56
int
components,
57
int
type
,
58
const
void
*attribute,
59
unsigned
long
offset
=0);
61
62
//BTX
64
66
void
SetShaderProgram
(
vtkShaderProgram2
*program);
67
vtkGetObjectMacro(
ShaderProgram
,
vtkShaderProgram2
);
69
70
protected
:
71
vtkGLSLShaderDeviceAdapter2
();
72
~
vtkGLSLShaderDeviceAdapter2
();
73
74
int
GetAttributeLocation(
const
char
* attrName);
75
76
vtkShaderProgram2
*
ShaderProgram
;
77
78
private
:
79
vtkGLSLShaderDeviceAdapter2
(
const
vtkGLSLShaderDeviceAdapter2
&);
80
// Not implemented
81
void
operator=(
const
vtkGLSLShaderDeviceAdapter2
&);
// Not implemented
82
83
class
vtkInternal;
84
vtkInternal* Internal;
85
//ETX
86
};
87
88
#endif
Generated on Tue Jan 8 2013 05:45:38 for VTK by
1.8.1.2