mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-09 08:24:23 +00:00
removing parts of Math
removing examples removed small doc
This commit is contained in:
parent
f14e76ab8f
commit
cb23db8c47
42 changed files with 0 additions and 3021 deletions
|
|
@ -1,30 +0,0 @@
|
|||
package org.lwjgl.test.vector;
|
||||
|
||||
import java.nio.*;
|
||||
|
||||
import org.lwjgl.*;
|
||||
|
||||
public class MathTest {
|
||||
public static void main(String[] args) {
|
||||
ByteBuffer buf = ByteBuffer.allocateDirect(100);
|
||||
buf.order(ByteOrder.nativeOrder());
|
||||
FloatBuffer float_buf = buf.asFloatBuffer();
|
||||
float f = 0f;
|
||||
while (float_buf.hasRemaining()) {
|
||||
f += 0.5f;
|
||||
float_buf.put(f);
|
||||
}
|
||||
float_buf.rewind();
|
||||
System.out.println("Src buffer:");
|
||||
while (float_buf.hasRemaining())
|
||||
System.out.print(float_buf.get() + " ");
|
||||
System.out.println("");
|
||||
int buf_address = Sys.getDirectBufferAddress(float_buf);
|
||||
org.lwjgl.Math.matrixOp(org.lwjgl.Math.MATRIXOP_NEGATE, buf_address, 0, 100, 1, 1, false, buf_address, 0, false);
|
||||
System.out.println("Negated result:");
|
||||
float_buf.rewind();
|
||||
while (float_buf.hasRemaining())
|
||||
System.out.print(float_buf.get() + " ");
|
||||
System.out.println("");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue