com.jogamp.opengl.util
Class GLBuffers

java.lang.Object
  extended by com.jogamp.common.nio.Buffers
      extended by com.jogamp.opengl.util.GLBuffers

public class GLBuffers
extends Buffers

Utility routines for dealing with direct buffers.

Author:
Kenneth Russel, Michael Bien

Field Summary
 
Fields inherited from class com.jogamp.common.nio.Buffers
SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT
 
Constructor Summary
GLBuffers()
           
 
Method Summary
static float[] getFloatArray(double[] source)
           
static Buffer newDirectGLBuffer(int glType, int numElements)
           
static int sizeOfGLType(int glType)
           
static Buffer sliceGLBuffer(ByteBuffer parent, int bytePos, int byteLen, int glType)
           
 
Methods inherited from class com.jogamp.common.nio.Buffers
copyByteBuffer, copyFloatBuffer, copyFloatBufferAsByteBuffer, copyIntBuffer, copyIntBufferAsByteBuffer, copyShortBuffer, copyShortBufferAsByteBuffer, getArray, getDirectBufferByteOffset, getDoubleArray, getDoubleBuffer, getFloatArray, getFloatBuffer, getIndirectBufferByteOffset, isDirect, nativeOrder, newDirectByteBuffer, newDirectByteBuffer, newDirectByteBuffer, newDirectByteBuffer, newDirectCharBuffer, newDirectCharBuffer, newDirectCharBuffer, newDirectCharBuffer, newDirectDoubleBuffer, newDirectDoubleBuffer, newDirectDoubleBuffer, newDirectDoubleBuffer, newDirectFloatBuffer, newDirectFloatBuffer, newDirectFloatBuffer, newDirectFloatBuffer, newDirectIntBuffer, newDirectIntBuffer, newDirectIntBuffer, newDirectIntBuffer, newDirectLongBuffer, newDirectLongBuffer, newDirectLongBuffer, newDirectLongBuffer, newDirectShortBuffer, newDirectShortBuffer, newDirectShortBuffer, newDirectShortBuffer, put, putb, putd, putf, puti, puts, rangeCheck, rangeCheck, rangeCheck, rangeCheck, rangeCheck, rangeCheck, rangeCheck, rangeCheck, rangeCheckBytes, sizeOfBufferElem, slice, slice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLBuffers

public GLBuffers()
Method Detail

sizeOfGLType

public static final int sizeOfGLType(int glType)

newDirectGLBuffer

public static final Buffer newDirectGLBuffer(int glType,
                                             int numElements)

sliceGLBuffer

public static final Buffer sliceGLBuffer(ByteBuffer parent,
                                         int bytePos,
                                         int byteLen,
                                         int glType)

getFloatArray

public static final float[] getFloatArray(double[] source)


Copyright 2010 JogAmp Community.