Class VecBuffer
java.lang.Object
com.jozufozu.flywheel.backend.gl.buffer.VecBuffer
- Direct Known Subclasses:
MappedBuffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VecBufferallocate(int bytes) intposition()position(int p) Position this buffer relative to the 0-index in GPU memory.put(byte b) put(ByteBuffer b) put(FloatBuffer floats) putByteArray(byte[] bytes) putColor(byte r, byte g, byte b, byte a) putColor(int r, int g, int b, int a) putFloat(float f) putFloatArray(float[] floats) putInt(int i) putShort(short s) putVec2(byte x, byte y) putVec2(float x, float y) putVec3(byte x, byte y, byte z) putVec3(float x, float y, float z) putVec4(float x, float y, float z, float w) rewind()unwrap()
-
Field Details
-
internal
-
-
Constructor Details
-
VecBuffer
public VecBuffer() -
VecBuffer
-
-
Method Details
-
allocate
-
unwrap
-
rewind
-
putFloatArray
-
putByteArray
-
put
-
position
public int position() -
position
Position this buffer relative to the 0-index in GPU memory.- Returns:
- This buffer.
-
putFloat
-
putInt
-
putShort
-
put
-
put
-
putVec4
-
putColor
-
putColor
-
putVec3
-
putVec2
-
putVec3
-
putVec2
-