28package com.jogamp.math.util;
30import java.nio.Buffer;
31import java.nio.FloatBuffer;
33import com.jogamp.math.Matrix4f;
38 private final float[] f16;
39 private final FloatBuffer fbuf;
42 public void sync() { mat.
get(f16); }
47 this.f16 =
new float[16];
48 this.fbuf = FloatBuffer.wrap(f16);
53 this.f16 =
new float[16];
54 this.fbuf = FloatBuffer.wrap(f16);
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 SyncMatrix4f implementation for a single underlying Matrix4f using one float[16] backing a...
SyncAction getAction()
Return the SyncAction.
FloatBuffer getSyncFloats()
Return the FloatBuffer after synchronizing it w/ the underlying getMatrix().
Buffer getSyncBuffer()
Return the Buffer after synchronizing it.
Buffer getBuffer()
Return the Buffer, i.e.
Matrix4f getMatrix()
Return the underlying Matrix4f, used to synchronize to the getBuffer().
SyncMatrix4f16(final Matrix4f m)
SyncBuffer sync()
Synchronizes the underlying data before usage.
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 interface with a single underlying Matrix4f, used in SyncMatrix4f16 and PMVMatrix4f.