28package com.jogamp.math.util;
30import java.nio.Buffer;
31import java.nio.FloatBuffer;
33import com.jogamp.math.Matrix4f;
38 private final float[] f16s;
39 private final FloatBuffer fbuf;
44 for(
int i=0; i<mats.length; ++i, ioff+=16) {
45 mats[i].
get(f16s, ioff);
52 this.f16s =
new float[16*mats.length];
53 this.fbuf = FloatBuffer.wrap(f16s);
Basic 4x4 float matrix implementation using fields for intensive use-cases (host operations).
float get(final int i)
Gets the ith component, 0 <= i < 16.
SyncBuffer SyncMatrices4f16 implementation for multiple underlying Matrix4f instances using one float...
SyncAction getAction()
Return the SyncAction.
Buffer getBuffer()
Return the Buffer, i.e.
Buffer getSyncBuffer()
Return the Buffer after synchronizing it.
SyncBuffer sync()
Synchronizes the underlying data before usage.
Matrix4f[] getMatrices()
Return the underlying multiple Matrix4f, used to synchronize to the getBuffer().
FloatBuffer getSyncFloats()
Return the FloatBuffer after synchronizing it w/ the underlying getMatrices().
SyncMatrices4f16(final Matrix4f[] mats)
Specific data synchronization action implemented by the data provider to update the buffer with the u...
void sync()
Synchronizes the buffer with the underlying data before usage.
Convenient tuple of a SyncAction and Buffer.
SyncBuffer with a multiple underlying Matrix4f, used in SyncMatrices4f16 and PMVMatrix4f