27 #ifndef vtkTransformFeedback_h
28 #define vtkTransformFeedback_h
30 #include "vtkRenderingOpenGL2Module.h"
44 virtual
void PrintSelf(ostream &os,
vtkIndent indent);
58 : Role(role), Identifier(id) {}
78 return this->Varyings;
84 static size_t GetBytesPerVertex(VaryingRole role);
89 size_t GetBytesPerVertex()
const;
103 void SetNumberOfVertices(
int drawMode,
size_t inputVerts);
104 vtkGetMacro(NumberOfVertices,
size_t)
111 size_t GetBufferSize() const;
133 vtkGetMacro(BufferHandle,
int)
143 vtkGetMacro(PrimitiveMode,
int)
165 vtkGetMacro(BufferData,
void*)
171 void ReleaseGraphicsResources();
178 void ReleaseBufferData(
bool freeBuffer = true);
182 ~vtkTransformFeedback();
185 vtkTransformFeedback(const vtkTransformFeedback &) VTK_DELETE_FUNCTION;
186 void operator=(const vtkTransformFeedback &) VTK_DELETE_FUNCTION;
190 std::
vector<VaryingMetaData> Varyings;
191 size_t NumberOfVertices;
197 unsigned char *BufferData;
201 inline
size_t vtkTransformFeedback::GetBytesPerVertex(
206 case Vertex_ClipCoordinate_F:
207 return 4 *
sizeof(
float);
209 return 4 *
sizeof(
float);
212 vtkGenericWarningMacro(
"Unknown role enum value: " << role);
216 #endif // vtkTransformFeedback_h
abstract base class for most VTK objects
window superclass for vtkRenderWindow
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
The ShaderProgram uses one or more Shader objects.