class vaseOpenGl::ArrayBuffer

sys::Obj
  vaseOpenGl::ArrayBuffer

@Js

Wrapping a native array buffer.

allocateDirect

static ArrayBuffer allocateDirect(Int size, NumType type := NumType.tByte)

createView

This createView(NumType v, Int offset := 0, Int size := this.size() / this.type().size)

getFloat

Int getFloat(Int index)

getInt

Int getInt(Int index)

makeFloat

static ArrayBuffer makeFloat(List<Float> data)

makeFloatArray

static ArrayBuffer makeFloatArray(FloatArray data)

makeInt

static ArrayBuffer makeInt(List<Int> data)

makeIntArray

static ArrayBuffer makeIntArray(IntArray data)

makeShort

static ArrayBuffer makeShort(List<Int> data)

putFloat

This putFloat(List<Float> data)

putInt

This putInt(List<Int> data)

putShort

This putShort(List<Int> data)

setFloat

This setFloat(Int index, Int v)

setFloatArray

This setFloatArray(FloatArray data)

setInt

This setInt(Int index, Int v)

setIntArray

This setIntArray(IntArray data)

size

Int size()

type

NumType type()