VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Core
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 "vtkRenderingCoreModule.h"
// For export macro
29
#include "
vtkObject.h
"
30
31
class
vtkShaderProgram2
;
32
33
class
VTKRENDERINGCORE_EXPORT
vtkShaderDeviceAdapter2
:
public
vtkObject
34
{
35
public
:
36
vtkTypeMacro(
vtkShaderDeviceAdapter2
,
vtkObject
);
37
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
38
40
49
virtual
void
SendAttribute(
const
char
* attrname,
int
components,
int
type
,
50
const
void
* attribute,
51
unsigned
long
offset
= 0) = 0;
53
54
//BTX
56
58
void
SetShaderProgram(
vtkShaderProgram2
* program)
59
{ this->
ShaderProgram
= program; }
60
vtkGetObjectMacro(
ShaderProgram
,
vtkShaderProgram2
)
62
63
// Descrition:
64
// This method is called before rendering. This gives the shader device
65
// adapter an opportunity to collect information, such as attribute indices
66
// that it will need while rendering.
67
virtual
void
PrepareForRender() = 0;
68
protected:
69
vtkShaderDeviceAdapter2
();
70
~vtkShaderDeviceAdapter2();
71
72
vtkShaderProgram2
*
ShaderProgram
;
73
74
private:
75
vtkShaderDeviceAdapter2(const vtkShaderDeviceAdapter2&);
// Not implemented
76
void
operator=(const vtkShaderDeviceAdapter2&);
// Not implemented
77
//ETX
78
};
79
80
#endif
Generated on Thu May 24 2012 22:22:35 for VTK by
1.8.1