Skip to content

BufferObject

Introduction

Object containing the newInstance and extend functions for vtkOpenGLBufferObject.

Methods

bind

Binds the buffer object.

Returns

TypeDescription
booleanWhether the binding was successful.

extend

Extends the given object with the properties and methods of vtkOpenGLBufferObject.

ArgumentTypeRequiredDescription
publicAPIYesThe public API to extend.
modelYesThe model to extend.
initialValuesYesThe initial values to apply.

getError

Retrieves the error message, if any.

Returns

TypeDescription
stringThe error message.

newInstance

Creates a new instance of vtkOpenGLBufferObject with the given initial values.

ArgumentTypeRequiredDescription
initialValuesYesThe initial values to use.

Returns

TypeDescription
vtkOpenGLBufferObjectThe new instance.

release

Releases the buffer object.

Returns

TypeDescription
booleanWhether the release was successful.

releaseGraphicsResources

Releases graphics resources associated with the buffer object.

setOpenGLRenderWindow

Sets the OpenGL render window.

ArgumentTypeRequiredDescription
renWinYesThe render window to set.

upload

Uploads data to the buffer object.

ArgumentTypeRequiredDescription
dataYesThe data to be uploaded.
typeYesThe type of the data.

Returns

TypeDescription
booleanWhether the upload was successful.