VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkShaderDeviceAdapter2.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkShaderDeviceAdapter2.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
=========================================================================*/
25
#ifndef __vtkShaderDeviceAdapter2_h
26
#define __vtkShaderDeviceAdapter2_h
27
28
#include "
vtkObject.h
"
29
30
class
vtkShaderProgram2
;
31
32
class
VTK_RENDERING_EXPORT
vtkShaderDeviceAdapter2
:
public
vtkObject
33
{
34
public
:
35
vtkTypeMacro(
vtkShaderDeviceAdapter2
,
vtkObject
);
36
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
37
39
48
virtual
void
SendAttribute(
const
char
* attrname,
int
components,
int
type
,
49
const
void
* attribute,
50
unsigned
long
offset
= 0) = 0;
52
53
//BTX
55
57
void
SetShaderProgram(
vtkShaderProgram2
* program)
58
{ this->
ShaderProgram
= program; }
59
vtkGetObjectMacro(
ShaderProgram
,
vtkShaderProgram2
)
61
62
// Descrition:
63
// This method is called before rendering. This gives the shader device
64
// adapter an opportunity to collect information, such as attribute indices
65
// that it will need while rendering.
66
virtual
void
PrepareForRender() = 0;
67
protected:
68
vtkShaderDeviceAdapter2
();
69
~vtkShaderDeviceAdapter2();
70
71
vtkShaderProgram2
*
ShaderProgram
;
72
73
private:
74
vtkShaderDeviceAdapter2(const vtkShaderDeviceAdapter2&);
// Not implemented
75
void
operator=(const vtkShaderDeviceAdapter2&);
// Not implemented
76
//ETX
77
};
78
79
#endif
Generated on Tue Jan 8 2013 05:45:39 for VTK by
1.8.1.2