Package com.metsci.glimpse.core.gl
Class GLEditableBuffer
- java.lang.Object
-
- com.metsci.glimpse.core.gl.GLEditableBuffer
-
public class GLEditableBuffer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intusage
-
Constructor Summary
Constructors Constructor Description GLEditableBuffer(int usage, int capacityBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intdeviceBuffer(com.jogamp.opengl.GL gl)IntRangeSetdirtyByteRanges()voiddispose(com.jogamp.opengl.GL gl)ByteBuffereditBytes(int firstByte, int countBytes)FloatBuffereditFloats(int firstFloat, int countFloats)voidensureCapacityBytes(int minCapacityBytes)voidensureCapacityFloats(int minCapacityFloats)voidensureRemainingBytes(int minRemainingBytes)voidensureRemainingFloats(int minRemainingFloats)voidgrow1f(float a)voidgrow2f(float a, float b)voidgrow3f(float a, float b, float c)voidgrow4f(float a, float b, float c, float d)voidgrow6f(float a, float b, float c, float d, float e, float f)ByteBuffergrowBytes(int countBytes)FloatBuffergrowFloats(int countFloats)voidgrowNfv(float[] array, int offset, int length)voidgrowQuad1f(float leftBottom, float leftTop, float rightBottom, float rightTop)voidgrowQuad2f(float left, float bottom, float right, float top)voidgrowQuadSolidColor(float[] color)ByteBufferhostBytes()FloatBufferhostFloats()intsizeBytes()intsizeFloats()voidtruncateBytes(int sizeBytes)voidtruncateFloats(int sizeFloats)
-
-
-
Method Detail
-
sizeBytes
public int sizeBytes()
-
hostBytes
public ByteBuffer hostBytes()
-
dirtyByteRanges
public IntRangeSet dirtyByteRanges()
-
growBytes
public ByteBuffer growBytes(int countBytes)
-
ensureRemainingBytes
public void ensureRemainingBytes(int minRemainingBytes)
-
ensureCapacityBytes
public void ensureCapacityBytes(int minCapacityBytes)
-
editBytes
public ByteBuffer editBytes(int firstByte, int countBytes)
-
clear
public void clear()
-
truncateBytes
public void truncateBytes(int sizeBytes)
-
deviceBuffer
public int deviceBuffer(com.jogamp.opengl.GL gl)
-
dispose
public void dispose(com.jogamp.opengl.GL gl)
-
sizeFloats
public int sizeFloats()
-
hostFloats
public FloatBuffer hostFloats()
-
truncateFloats
public void truncateFloats(int sizeFloats)
-
grow1f
public void grow1f(float a)
-
grow2f
public void grow2f(float a, float b)
-
grow3f
public void grow3f(float a, float b, float c)
-
grow4f
public void grow4f(float a, float b, float c, float d)
-
grow6f
public void grow6f(float a, float b, float c, float d, float e, float f)
-
growNfv
public void growNfv(float[] array, int offset, int length)
-
growFloats
public FloatBuffer growFloats(int countFloats)
-
ensureRemainingFloats
public void ensureRemainingFloats(int minRemainingFloats)
-
ensureCapacityFloats
public void ensureCapacityFloats(int minCapacityFloats)
-
editFloats
public FloatBuffer editFloats(int firstFloat, int countFloats)
-
growQuad2f
public void growQuad2f(float left, float bottom, float right, float top)
-
growQuad1f
public void growQuad1f(float leftBottom, float leftTop, float rightBottom, float rightTop)
-
growQuadSolidColor
public void growQuadSolidColor(float[] color)
-
-