#include <vtkKWEVertexBufferObject.h>


Public Types | |
| enum | BufferType { ARRAY_BUFFER, ELEMENT_ARRAY_BUFFER } |
Public Member Functions | |
| vtkTypeRevisionMacro (vtkKWEVertexBufferObject, vtkObject) | |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| void | UnBind () |
| virtual bool | GetInitialized () |
| void | SetContext (vtkRenderWindow *context) |
| vtkRenderWindow * | GetContext () |
| void | Bind (BufferType buffer) |
| bool | Upload (vtkDataArray *array, BufferType type=ARRAY_BUFFER) |
| bool | UploadIndices (vtkCellArray *ca, bool build_draw_multielements_arrays=false) |
| bool | RenderIndices (int vtkprimtype) |
Static Public Member Functions | |
| static vtkKWEVertexBufferObject * | New () |
Protected Member Functions | |
| vtkKWEVertexBufferObject () | |
| ~vtkKWEVertexBufferObject () | |
| bool | LoadRequiredExtensions (vtkOpenGLExtensionManager *mgr) |
| void | CreateBuffer () |
| void | DestroyBuffer () |
Protected Attributes | |
| vtkWeakPointer< vtkRenderWindow > | Context |
| unsigned int | BufferTarget |
| unsigned int | Handle |
| bool | Initialized |
Definition at line 38 of file vtkKWEVertexBufferObject.h.
Definition at line 55 of file vtkKWEVertexBufferObject.h.
| vtkKWEVertexBufferObject::vtkKWEVertexBufferObject | ( | ) | [protected] |
| vtkKWEVertexBufferObject::~vtkKWEVertexBufferObject | ( | ) | [protected] |
| static vtkKWEVertexBufferObject* vtkKWEVertexBufferObject::New | ( | ) | [static] |
Reimplemented from vtkObject.
| vtkKWEVertexBufferObject::vtkTypeRevisionMacro | ( | vtkKWEVertexBufferObject | , | |
| vtkObject | ||||
| ) |
| void vtkKWEVertexBufferObject::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkObject.
| void vtkKWEVertexBufferObject::SetContext | ( | vtkRenderWindow * | context | ) |
Get/Set the context. Context must be a vtkOpenGLRenderWindow. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions.
| vtkRenderWindow* vtkKWEVertexBufferObject::GetContext | ( | ) |
Get/Set the context. Context must be a vtkOpenGLRenderWindow. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions.
| void vtkKWEVertexBufferObject::Bind | ( | BufferType | buffer | ) |
Make the buffer active.
| void vtkKWEVertexBufferObject::UnBind | ( | ) |
Inactivate the buffer.
| bool vtkKWEVertexBufferObject::Upload | ( | vtkDataArray * | array, | |
| BufferType | type = ARRAY_BUFFER | |||
| ) |
Upload the data array.
| bool vtkKWEVertexBufferObject::UploadIndices | ( | vtkCellArray * | ca, | |
| bool | build_draw_multielements_arrays = false | |||
| ) |
Upload the data array.
| bool vtkKWEVertexBufferObject::RenderIndices | ( | int | vtkprimtype | ) |
Upload the data array.
| virtual bool vtkKWEVertexBufferObject::GetInitialized | ( | ) | [virtual] |
| bool vtkKWEVertexBufferObject::LoadRequiredExtensions | ( | vtkOpenGLExtensionManager * | mgr | ) | [protected] |
Loads all required OpenGL extensions. Must be called every time a new context is set.
| void vtkKWEVertexBufferObject::CreateBuffer | ( | ) | [protected] |
Create the pixel buffer object.
| void vtkKWEVertexBufferObject::DestroyBuffer | ( | ) | [protected] |
Destroys the pixel buffer object.
Definition at line 91 of file vtkKWEVertexBufferObject.h.
unsigned int vtkKWEVertexBufferObject::BufferTarget [protected] |
Definition at line 92 of file vtkKWEVertexBufferObject.h.
unsigned int vtkKWEVertexBufferObject::Handle [protected] |
Definition at line 93 of file vtkKWEVertexBufferObject.h.
bool vtkKWEVertexBufferObject::Initialized [protected] |
Definition at line 94 of file vtkKWEVertexBufferObject.h.
1.7.1