mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Converted GL native
This commit is contained in:
parent
70f3ca8664
commit
ee08be5b75
15 changed files with 542 additions and 1071 deletions
|
|
@ -76,7 +76,10 @@ public class CoreGL11 implements CoreGL11Constants {
|
|||
public static native void glArrayElement(int i);
|
||||
public static native void glClearDepth(double depth);
|
||||
public static native void glDeleteLists(int list, int range);
|
||||
public static native void glDeleteTextures(int n, IntBuffer textures);
|
||||
public static void glDeleteTextures(int n, IntBuffer textures) {
|
||||
nglDeleteTextures(n, textures, textures.position());
|
||||
}
|
||||
private static native void nglDeleteTextures(int n, IntBuffer textures, int textures_offset);
|
||||
public static native void glCullFace(int mode);
|
||||
public static native void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height);
|
||||
public static native void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width);
|
||||
|
|
|
|||
|
|
@ -57,10 +57,10 @@ public class CoreGL14 extends CoreGL13 implements CoreGL14Constants {
|
|||
private static native void nglMultiDrawArrays(int mode, IntBuffer piFirst, int piFirst_offset, IntBuffer piCount, int piCount_offset, int primcount);
|
||||
/* public static native void glMultiDrawElements(int mode, int piCount, int type, int pIndices, int primcount);*/
|
||||
public static native void glPointParameterf (int pname, float param);
|
||||
public static void glPointParameterfv (int pname, FloatBuffer params) {
|
||||
nglPointParameter(pname, params, params.position());
|
||||
public static void glPointParameter(int pname, FloatBuffer params) {
|
||||
nglPointParameterfv(pname, params, params.position());
|
||||
}
|
||||
private static native void nglPointParameter (int pname, FloatBuffer params, int params_offset);
|
||||
private static native void nglPointParameterfv(int pname, FloatBuffer params, int params_offset);
|
||||
public static native void glSecondaryColor3b (byte red, byte green, byte blue);
|
||||
public static native void glSecondaryColor3f (float red, float green, float blue);
|
||||
public static native void glSecondaryColor3ub (byte red, byte green, byte blue);
|
||||
|
|
|
|||
|
|
@ -707,9 +707,9 @@ public class GL extends CoreGL14 implements GLConstants {
|
|||
private static native void nglMatrixIndexusvARB(int size, ShortBuffer psIndices, int psIndices_offset);
|
||||
|
||||
public static void glMultiDrawArraysEXT(int mode, IntBuffer piFirst, IntBuffer piCount, int primcount) {
|
||||
nglMultiDrawArraysEXT(mode, piFirst, piFirst.position(), piCount, piCount.position());
|
||||
nglMultiDrawArraysEXT(mode, piFirst, piFirst.position(), piCount, piCount.position(), primcount);
|
||||
}
|
||||
private static native void nglMultiDrawArraysEXT(int mode, IntBuffer piFirst, int piFirst_offset, IntBuffer piCount, int piCount_offset);
|
||||
private static native void nglMultiDrawArraysEXT(int mode, IntBuffer piFirst, int piFirst_offset, IntBuffer piCount, int piCount_offset, int primcount);
|
||||
|
||||
// public static native void glMultiDrawElementsEXT(int mode, int piCount, int type, int pIndices, int primcount);
|
||||
|
||||
|
|
@ -1320,10 +1320,7 @@ public class GL extends CoreGL14 implements GLConstants {
|
|||
float writeFrequency,
|
||||
float priority);
|
||||
|
||||
public static void glXFreeMemoryNV(ByteBuffer pointer) {
|
||||
nglXFreeMemoryNV(pointer, pointer.position());
|
||||
}
|
||||
private static native void nglXFreeMemoryNV(ByteBuffer pointer, int pointer_offset);
|
||||
private static native void glXFreeMemoryNV(ByteBuffer pointer);
|
||||
|
||||
// #ifdef _WIN32
|
||||
|
||||
|
|
@ -1481,7 +1478,19 @@ public class GL extends CoreGL14 implements GLConstants {
|
|||
nglBufferSubDataARB(target, offset, size, data, data.position()<<2);
|
||||
}
|
||||
private static native void nglBufferSubDataARB(int target, int offset, int size, Buffer data, int data_offset);
|
||||
public static native void glGetBufferSubDataARB(int target, int offset, int size, Buffer data);
|
||||
public static void glGetBufferSubDataARB(int target, int offset, int size, ByteBuffer data) {
|
||||
nglGetBufferSubDataARB(target, offset, size, data, data.position());
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, int size, ShortBuffer data) {
|
||||
nglGetBufferSubDataARB(target, offset, size, data, data.position()<<1);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, int size, IntBuffer data) {
|
||||
nglGetBufferSubDataARB(target, offset, size, data, data.position()<<2);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, int size, FloatBuffer data) {
|
||||
nglGetBufferSubDataARB(target, offset, size, data, data.position()<<2);
|
||||
}
|
||||
private static native void nglGetBufferSubDataARB(int target, int offset, int size, Buffer data, int data_offset);
|
||||
/**
|
||||
* glMapBufferARB maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null, in
|
||||
* which case a new ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null,
|
||||
|
|
|
|||
|
|
@ -74,13 +74,10 @@ public class GLU implements GLUConstants {
|
|||
double zNear,
|
||||
double zFar);
|
||||
|
||||
public static native void gluPickMatrix(
|
||||
double x,
|
||||
double y,
|
||||
double width,
|
||||
double height,
|
||||
IntBuffer viewport
|
||||
);
|
||||
public static void gluPickMatrix(double x, double y, double width, double height, IntBuffer viewport) {
|
||||
ngluPickMatrix(x, y, width, height, viewport, viewport.position());
|
||||
}
|
||||
private static native void ngluPickMatrix(double x, double y, double width, double height, IntBuffer viewport, int viewport_offset);
|
||||
|
||||
public static native void gluLookAt(
|
||||
double eyex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue