Top Description Methods
jogamp.opengl.util

public Interface GLArrayHandler

Known Direct Implementers
jogamp.opengl.util.GLVBOArrayHandler
Imports
com.jogamp.opengl.*

Handles consistency of buffer data and array state.
Implementations shall consider buffer types (VBO, ..), interleaved, etc.
They also need to consider array state types, i.e. fixed function or GLSL.

Method Summary

Modifier and TypeMethod and Description
public void
addSubHandler(GLArrayHandlerFlat
the sub handler
handler
)

Supporting interleaved arrays, where sub handlers may handle the array state and the master handler the buffer consistency.

public boolean

Returns:

true if data uses VBO and action was performed, otherwise false
bindBuffer
(GL
current GL object
gl
,
boolean
true if VBO shall be bound and data written, otherwise clear VBO binding.
bind
)

if bind is true and the data uses VBO, the latter will be bound and data written to the GPU if required.

public void
enableState(GL
current GL object
gl
,
boolean
true if array shall be enabled, otherwise false.
enable
,
Object
extension object allowing passing of an implementation detail
ext
)

Implementation shall enable or disable the array state.

public void
setSubArrayVBOName(int vboName)

Method Detail

addSubHandlerback to summary
public void addSubHandler(GLArrayHandlerFlat handler) throws UnsupportedOperationException

Supporting interleaved arrays, where sub handlers may handle the array state and the master handler the buffer consistency.

Parameters
handler:GLArrayHandlerFlat

the sub handler

Exceptions
UnsupportedOperationException:
if this array handler does not support interleaved arrays
bindBufferback to summary
public boolean bindBuffer(GL gl, boolean bind)

if bind is true and the data uses VBO, the latter will be bound and data written to the GPU if required.

If bind is false and the data uses VBO, the latter will be unbound.

Parameters
gl:GL

current GL object

bind:boolean

true if VBO shall be bound and data written, otherwise clear VBO binding.

Returns:boolean

true if data uses VBO and action was performed, otherwise false

enableStateback to summary
public void enableState(GL gl, boolean enable, Object ext)

Implementation shall enable or disable the array state.

Before enabling the array state, implementation shall synchronize the data with the GPU and associate the data with the array.

Parameters
gl:GL

current GL object

enable:boolean

true if array shall be enabled, otherwise false.

ext:Object

extension object allowing passing of an implementation detail

setSubArrayVBONameback to summary
public void setSubArrayVBOName(int vboName)