Win32: fixed compilation

This commit is contained in:
Elias Naur 2005-02-16 20:25:23 +00:00
parent ef7fea20ab
commit 5d53187baa
84 changed files with 1044 additions and 1097 deletions

View file

@ -57,20 +57,6 @@ public final class GL12 {
}
private static native void nglCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height, long function_pointer);
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 1, function_pointer);
}
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer);
}
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
@ -85,6 +71,20 @@ public final class GL12 {
BufferChecks.checkFunctionAddress(function_pointer);
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position(), function_pointer);
}
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 1, function_pointer);
}
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer);
}
private static native void nglTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels_buffer_offset) {
GLBufferChecks.ensureUnpackPBOenabled();
@ -94,22 +94,6 @@ public final class GL12 {
}
private static native void nglTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels_buffer_offset, long function_pointer);
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
if (pixels != null)
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
}
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
if (pixels != null)
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
}
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, FloatBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
if (pixels != null)
@ -126,6 +110,22 @@ public final class GL12 {
BufferChecks.checkFunctionAddress(function_pointer);
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer);
}
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
if (pixels != null)
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
}
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) {
GLBufferChecks.ensureUnpackPBOdisabled();
if (pixels != null)
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
}
private static native void nglTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int pixels_buffer_offset) {
GLBufferChecks.ensureUnpackPBOenabled();
@ -135,13 +135,6 @@ public final class GL12 {
}
private static native void nglTexImage3DBO(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int pixels_buffer_offset, long function_pointer);
public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(indices);
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
}
public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(indices);
@ -149,6 +142,13 @@ public final class GL12 {
BufferChecks.checkFunctionAddress(function_pointer);
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
}
public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(indices);
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
}
public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(indices);