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