Go to the documentation of this file.
14 #ifndef vtkOpenGLBufferObject_h
15 #define vtkOpenGLBufferObject_h
17 #include "vtkRenderingOpenGL2Module.h"
56 bool IsReady()
const {
return this->Dirty ==
false; }
68 bool Upload(
const T &array, ObjectType
type);
72 bool Upload(
const T *array,
size_t numElements, ObjectType
type);
118 this->
Error =
"Refusing to upload empty array.";
123 array.size() *
sizeof(
typename T::value_type),
129 const T *array,
size_t numElements,
134 this->
Error =
"Refusing to upload empty array.";
138 numElements *
sizeof(T),
represent and manipulate 3D points
bool IsReady() const
Determine if the buffer object is ready to be used.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkOpenGLBufferObject * New()
void ReleaseGraphicsResources()
bool Upload(const T &array, ObjectType type)
Upload data to the buffer object.
bool UploadInternal(const void *buffer, size_t size, ObjectType objectType)
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
bool Bind()
Bind the buffer object ready for rendering.
GLsizei const GLfloat * value
a simple class to control print indentation
object to represent cell connectivity
bool Release()
Release the buffer.
std::string GetError() const
Return a string describing errors.
int GetHandle() const
Get the handle of the buffer object.
ObjectType GetType() const
Get the type of the buffer object.
GLuint GLuint GLsizei GLenum type
void SetType(ObjectType value)
Set the type of the buffer object.
GLsizei const GLchar ** string