diff options
author | Sven Gothel <[email protected]> | 2012-10-08 02:59:22 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-08 02:59:22 +0200 |
commit | 3119458b32c8620f971ba44488389ddf03b2d705 (patch) | |
tree | b1ebd265578e453b7f8a010fc26b816997469be5 | |
parent | 377c8b0c884067ea5c009a440992fef3afa92200 (diff) |
Remove lwjgl
19 files changed, 0 insertions, 5527 deletions
diff --git a/lib/lwjgl/linux/liblwjgl.so b/lib/lwjgl/linux/liblwjgl.so Binary files differdeleted file mode 100644 index e19d0dd..0000000 --- a/lib/lwjgl/linux/liblwjgl.so +++ /dev/null diff --git a/lib/lwjgl/linux/liblwjgl64.so b/lib/lwjgl/linux/liblwjgl64.so Binary files differdeleted file mode 100644 index 56a6e20..0000000 --- a/lib/lwjgl/linux/liblwjgl64.so +++ /dev/null diff --git a/lib/lwjgl/linux/libopenal.so b/lib/lwjgl/linux/libopenal.so Binary files differdeleted file mode 100644 index 31d24ed..0000000 --- a/lib/lwjgl/linux/libopenal.so +++ /dev/null diff --git a/lib/lwjgl/lwjgl.jar b/lib/lwjgl/lwjgl.jar Binary files differdeleted file mode 100644 index 7412fe6..0000000 --- a/lib/lwjgl/lwjgl.jar +++ /dev/null diff --git a/lib/lwjgl/lwjgl_util.jar b/lib/lwjgl/lwjgl_util.jar Binary files differdeleted file mode 100644 index ae648b8..0000000 --- a/lib/lwjgl/lwjgl_util.jar +++ /dev/null diff --git a/lib/lwjgl/osx/liblwjgl.jnilib b/lib/lwjgl/osx/liblwjgl.jnilib Binary files differdeleted file mode 100644 index cc385b3..0000000 --- a/lib/lwjgl/osx/liblwjgl.jnilib +++ /dev/null diff --git a/lib/lwjgl/osx/openal.dylib b/lib/lwjgl/osx/openal.dylib Binary files differdeleted file mode 100644 index cb8e458..0000000 --- a/lib/lwjgl/osx/openal.dylib +++ /dev/null diff --git a/lib/lwjgl/patch/org/lwjgl/BufferChecks.java b/lib/lwjgl/patch/org/lwjgl/BufferChecks.java deleted file mode 100644 index 82fbe19..0000000 --- a/lib/lwjgl/patch/org/lwjgl/BufferChecks.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'LWJGL' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -package org.lwjgl; - -import java.nio.Buffer; -import java.nio.ByteBuffer; -import java.nio.DoubleBuffer; -import java.nio.FloatBuffer; -import java.nio.IntBuffer; -import java.nio.ShortBuffer; -import java.nio.LongBuffer; - -/** - * <p>A class to check buffer boundaries in general. If there is unsufficient space - * in the buffer when the call is made then a buffer overflow would otherwise - * occur and cause unexpected behaviour, a crash, or worse, a security risk. - * - * Internal class, don't use. - * </p> - * @author cix_foo <[email protected]> - * @author elias_naur <[email protected]> - * @version $Revision: 1.4 $ - * $Id: BufferChecks.java,v 1.4 2007-05-11 22:02:27 cawe Exp $ - */ -public class BufferChecks { - /** Static methods only! */ - private BufferChecks() { - } - - /** - * Default buffer size for most buffer checks. - */ - private static final int DEFAULT_BUFFER_SIZE = 4; - - /** - * Helper methods to ensure a function pointer is not-null (0) - */ - public static void checkFunctionAddress(long pointer) { - } - - /** - * Helper methods to ensure a ByteBuffer is null-terminated - */ - public static void checkNullTerminated(ByteBuffer buf) { - } - - public static void checkNotNull(Object o) { - } - - /** - - * Helper methods to ensure a buffer is direct (and, implicitly, non-null). - */ - public static void checkDirect(ByteBuffer buf) { - } - - public static void checkDirect(ShortBuffer buf) { - } - - public static void checkDirect(IntBuffer buf) { - } - - public static void checkDirect(LongBuffer buf) { - } - - public static void checkDirect(FloatBuffer buf) { - } - - public static void checkDirect(DoubleBuffer buf) { - } - - /** - * This is a separate call to help inline checkBufferSize. - */ - private static void throwBufferSizeException(Buffer buf, int size) { - throw new IllegalArgumentException("Number of remaining buffer elements is " + buf.remaining() + ", must be at least " + size); - } - - /** - * Helper method to ensure a buffer is big enough to receive data from a - * glGet* operation. - * - * @param buf - * The buffer to check - * @param size - * The minimum buffer size - * @throws IllegalArgumentException - */ - public static void checkBufferSize(Buffer buf, int size) { - } - - public static void checkBuffer(ByteBuffer buf, int size) { - } - - public static void checkBuffer(ShortBuffer buf, int size) { - } - - public static void checkBuffer(IntBuffer buf, int size) { - } - - public static void checkBuffer(LongBuffer buf, int size) { - } - - public static void checkBuffer(FloatBuffer buf, int size) { - } - - public static void checkBuffer(DoubleBuffer buf, int size) { - } -} diff --git a/lib/lwjgl/patch/org/lwjgl/opengl/GL11.java b/lib/lwjgl/patch/org/lwjgl/opengl/GL11.java deleted file mode 100644 index 152a34d..0000000 --- a/lib/lwjgl/patch/org/lwjgl/opengl/GL11.java +++ /dev/null @@ -1,2900 +0,0 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */
-
-package org.lwjgl.opengl;
-
-import org.lwjgl.LWJGLException;
-import org.lwjgl.BufferChecks;
-import java.nio.*;
-
-public final class GL11 {
- public static final int GL_ACCUM = 0x100;
- public static final int GL_LOAD = 0x101;
- public static final int GL_RETURN = 0x102;
- public static final int GL_MULT = 0x103;
- public static final int GL_ADD = 0x104;
- public static final int GL_NEVER = 0x200;
- public static final int GL_LESS = 0x201;
- public static final int GL_EQUAL = 0x202;
- public static final int GL_LEQUAL = 0x203;
- public static final int GL_GREATER = 0x204;
- public static final int GL_NOTEQUAL = 0x205;
- public static final int GL_GEQUAL = 0x206;
- public static final int GL_ALWAYS = 0x207;
- public static final int GL_CURRENT_BIT = 0x1;
- public static final int GL_POINT_BIT = 0x2;
- public static final int GL_LINE_BIT = 0x4;
- public static final int GL_POLYGON_BIT = 0x8;
- public static final int GL_POLYGON_STIPPLE_BIT = 0x10;
- public static final int GL_PIXEL_MODE_BIT = 0x20;
- public static final int GL_LIGHTING_BIT = 0x40;
- public static final int GL_FOG_BIT = 0x80;
- public static final int GL_DEPTH_BUFFER_BIT = 0x100;
- public static final int GL_ACCUM_BUFFER_BIT = 0x200;
- public static final int GL_STENCIL_BUFFER_BIT = 0x400;
- public static final int GL_VIEWPORT_BIT = 0x800;
- public static final int GL_TRANSFORM_BIT = 0x1000;
- public static final int GL_ENABLE_BIT = 0x2000;
- public static final int GL_COLOR_BUFFER_BIT = 0x4000;
- public static final int GL_HINT_BIT = 0x8000;
- public static final int GL_EVAL_BIT = 0x10000;
- public static final int GL_LIST_BIT = 0x20000;
- public static final int GL_TEXTURE_BIT = 0x40000;
- public static final int GL_SCISSOR_BIT = 0x80000;
- public static final int GL_ALL_ATTRIB_BITS = 0xfffff;
- public static final int GL_POINTS = 0x0;
- public static final int GL_LINES = 0x1;
- public static final int GL_LINE_LOOP = 0x2;
- public static final int GL_LINE_STRIP = 0x3;
- public static final int GL_TRIANGLES = 0x4;
- public static final int GL_TRIANGLE_STRIP = 0x5;
- public static final int GL_TRIANGLE_FAN = 0x6;
- public static final int GL_QUADS = 0x7;
- public static final int GL_QUAD_STRIP = 0x8;
- public static final int GL_POLYGON = 0x9;
- public static final int GL_ZERO = 0x0;
- public static final int GL_ONE = 0x1;
- public static final int GL_SRC_COLOR = 0x300;
- public static final int GL_ONE_MINUS_SRC_COLOR = 0x301;
- public static final int GL_SRC_ALPHA = 0x302;
- public static final int GL_ONE_MINUS_SRC_ALPHA = 0x303;
- public static final int GL_DST_ALPHA = 0x304;
- public static final int GL_ONE_MINUS_DST_ALPHA = 0x305;
- public static final int GL_DST_COLOR = 0x306;
- public static final int GL_ONE_MINUS_DST_COLOR = 0x307;
- public static final int GL_SRC_ALPHA_SATURATE = 0x308;
- public static final int GL_CONSTANT_COLOR = 0x8001;
- public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002;
- public static final int GL_CONSTANT_ALPHA = 0x8003;
- public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004;
- public static final int GL_TRUE = 0x1;
- public static final int GL_FALSE = 0x0;
- public static final int GL_CLIP_PLANE0 = 0x3000;
- public static final int GL_CLIP_PLANE1 = 0x3001;
- public static final int GL_CLIP_PLANE2 = 0x3002;
- public static final int GL_CLIP_PLANE3 = 0x3003;
- public static final int GL_CLIP_PLANE4 = 0x3004;
- public static final int GL_CLIP_PLANE5 = 0x3005;
- public static final int GL_BYTE = 0x1400;
- public static final int GL_UNSIGNED_BYTE = 0x1401;
- public static final int GL_SHORT = 0x1402;
- public static final int GL_UNSIGNED_SHORT = 0x1403;
- public static final int GL_INT = 0x1404;
- public static final int GL_UNSIGNED_INT = 0x1405;
- public static final int GL_FLOAT = 0x1406;
- public static final int GL_2_BYTES = 0x1407;
- public static final int GL_3_BYTES = 0x1408;
- public static final int GL_4_BYTES = 0x1409;
- public static final int GL_DOUBLE = 0x140a;
- public static final int GL_NONE = 0x0;
- public static final int GL_FRONT_LEFT = 0x400;
- public static final int GL_FRONT_RIGHT = 0x401;
- public static final int GL_BACK_LEFT = 0x402;
- public static final int GL_BACK_RIGHT = 0x403;
- public static final int GL_FRONT = 0x404;
- public static final int GL_BACK = 0x405;
- public static final int GL_LEFT = 0x406;
- public static final int GL_RIGHT = 0x407;
- public static final int GL_FRONT_AND_BACK = 0x408;
- public static final int GL_AUX0 = 0x409;
- public static final int GL_AUX1 = 0x40a;
- public static final int GL_AUX2 = 0x40b;
- public static final int GL_AUX3 = 0x40c;
- public static final int GL_NO_ERROR = 0x0;
- public static final int GL_INVALID_ENUM = 0x500;
- public static final int GL_INVALID_VALUE = 0x501;
- public static final int GL_INVALID_OPERATION = 0x502;
- public static final int GL_STACK_OVERFLOW = 0x503;
- public static final int GL_STACK_UNDERFLOW = 0x504;
- public static final int GL_OUT_OF_MEMORY = 0x505;
- public static final int GL_2D = 0x600;
- public static final int GL_3D = 0x601;
- public static final int GL_3D_COLOR = 0x602;
- public static final int GL_3D_COLOR_TEXTURE = 0x603;
- public static final int GL_4D_COLOR_TEXTURE = 0x604;
- public static final int GL_PASS_THROUGH_TOKEN = 0x700;
- public static final int GL_POINT_TOKEN = 0x701;
- public static final int GL_LINE_TOKEN = 0x702;
- public static final int GL_POLYGON_TOKEN = 0x703;
- public static final int GL_BITMAP_TOKEN = 0x704;
- public static final int GL_DRAW_PIXEL_TOKEN = 0x705;
- public static final int GL_COPY_PIXEL_TOKEN = 0x706;
- public static final int GL_LINE_RESET_TOKEN = 0x707;
- public static final int GL_EXP = 0x800;
- public static final int GL_EXP2 = 0x801;
- public static final int GL_CW = 0x900;
- public static final int GL_CCW = 0x901;
- public static final int GL_COEFF = 0xa00;
- public static final int GL_ORDER = 0xa01;
- public static final int GL_DOMAIN = 0xa02;
- public static final int GL_CURRENT_COLOR = 0xb00;
- public static final int GL_CURRENT_INDEX = 0xb01;
- public static final int GL_CURRENT_NORMAL = 0xb02;
- public static final int GL_CURRENT_TEXTURE_COORDS = 0xb03;
- public static final int GL_CURRENT_RASTER_COLOR = 0xb04;
- public static final int GL_CURRENT_RASTER_INDEX = 0xb05;
- public static final int GL_CURRENT_RASTER_TEXTURE_COORDS = 0xb06;
- public static final int GL_CURRENT_RASTER_POSITION = 0xb07;
- public static final int GL_CURRENT_RASTER_POSITION_VALID = 0xb08;
- public static final int GL_CURRENT_RASTER_DISTANCE = 0xb09;
- public static final int GL_POINT_SMOOTH = 0xb10;
- public static final int GL_POINT_SIZE = 0xb11;
- public static final int GL_POINT_SIZE_RANGE = 0xb12;
- public static final int GL_POINT_SIZE_GRANULARITY = 0xb13;
- public static final int GL_LINE_SMOOTH = 0xb20;
- public static final int GL_LINE_WIDTH = 0xb21;
- public static final int GL_LINE_WIDTH_RANGE = 0xb22;
- public static final int GL_LINE_WIDTH_GRANULARITY = 0xb23;
- public static final int GL_LINE_STIPPLE = 0xb24;
- public static final int GL_LINE_STIPPLE_PATTERN = 0xb25;
- public static final int GL_LINE_STIPPLE_REPEAT = 0xb26;
- public static final int GL_LIST_MODE = 0xb30;
- public static final int GL_MAX_LIST_NESTING = 0xb31;
- public static final int GL_LIST_BASE = 0xb32;
- public static final int GL_LIST_INDEX = 0xb33;
- public static final int GL_POLYGON_MODE = 0xb40;
- public static final int GL_POLYGON_SMOOTH = 0xb41;
- public static final int GL_POLYGON_STIPPLE = 0xb42;
- public static final int GL_EDGE_FLAG = 0xb43;
- public static final int GL_CULL_FACE = 0xb44;
- public static final int GL_CULL_FACE_MODE = 0xb45;
- public static final int GL_FRONT_FACE = 0xb46;
- public static final int GL_LIGHTING = 0xb50;
- public static final int GL_LIGHT_MODEL_LOCAL_VIEWER = 0xb51;
- public static final int GL_LIGHT_MODEL_TWO_SIDE = 0xb52;
- public static final int GL_LIGHT_MODEL_AMBIENT = 0xb53;
- public static final int GL_SHADE_MODEL = 0xb54;
- public static final int GL_COLOR_MATERIAL_FACE = 0xb55;
- public static final int GL_COLOR_MATERIAL_PARAMETER = 0xb56;
- public static final int GL_COLOR_MATERIAL = 0xb57;
- public static final int GL_FOG = 0xb60;
- public static final int GL_FOG_INDEX = 0xb61;
- public static final int GL_FOG_DENSITY = 0xb62;
- public static final int GL_FOG_START = 0xb63;
- public static final int GL_FOG_END = 0xb64;
- public static final int GL_FOG_MODE = 0xb65;
- public static final int GL_FOG_COLOR = 0xb66;
- public static final int GL_DEPTH_RANGE = 0xb70;
- public static final int GL_DEPTH_TEST = 0xb71;
- public static final int GL_DEPTH_WRITEMASK = 0xb72;
- public static final int GL_DEPTH_CLEAR_VALUE = 0xb73;
- public static final int GL_DEPTH_FUNC = 0xb74;
- public static final int GL_ACCUM_CLEAR_VALUE = 0xb80;
- public static final int GL_STENCIL_TEST = 0xb90;
- public static final int GL_STENCIL_CLEAR_VALUE = 0xb91;
- public static final int GL_STENCIL_FUNC = 0xb92;
- public static final int GL_STENCIL_VALUE_MASK = 0xb93;
- public static final int GL_STENCIL_FAIL = 0xb94;
- public static final int GL_STENCIL_PASS_DEPTH_FAIL = 0xb95;
- public static final int GL_STENCIL_PASS_DEPTH_PASS = 0xb96;
- public static final int GL_STENCIL_REF = 0xb97;
- public static final int GL_STENCIL_WRITEMASK = 0xb98;
- public static final int GL_MATRIX_MODE = 0xba0;
- public static final int GL_NORMALIZE = 0xba1;
- public static final int GL_VIEWPORT = 0xba2;
- public static final int GL_MODELVIEW_STACK_DEPTH = 0xba3;
- public static final int GL_PROJECTION_STACK_DEPTH = 0xba4;
- public static final int GL_TEXTURE_STACK_DEPTH = 0xba5;
- public static final int GL_MODELVIEW_MATRIX = 0xba6;
- public static final int GL_PROJECTION_MATRIX = 0xba7;
- public static final int GL_TEXTURE_MATRIX = 0xba8;
- public static final int GL_ATTRIB_STACK_DEPTH = 0xbb0;
- public static final int GL_CLIENT_ATTRIB_STACK_DEPTH = 0xbb1;
- public static final int GL_ALPHA_TEST = 0xbc0;
- public static final int GL_ALPHA_TEST_FUNC = 0xbc1;
- public static final int GL_ALPHA_TEST_REF = 0xbc2;
- public static final int GL_DITHER = 0xbd0;
- public static final int GL_BLEND_DST = 0xbe0;
- public static final int GL_BLEND_SRC = 0xbe1;
- public static final int GL_BLEND = 0xbe2;
- public static final int GL_LOGIC_OP_MODE = 0xbf0;
- public static final int GL_INDEX_LOGIC_OP = 0xbf1;
- public static final int GL_COLOR_LOGIC_OP = 0xbf2;
- public static final int GL_AUX_BUFFERS = 0xc00;
- public static final int GL_DRAW_BUFFER = 0xc01;
- public static final int GL_READ_BUFFER = 0xc02;
- public static final int GL_SCISSOR_BOX = 0xc10;
- public static final int GL_SCISSOR_TEST = 0xc11;
- public static final int GL_INDEX_CLEAR_VALUE = 0xc20;
- public static final int GL_INDEX_WRITEMASK = 0xc21;
- public static final int GL_COLOR_CLEAR_VALUE = 0xc22;
- public static final int GL_COLOR_WRITEMASK = 0xc23;
- public static final int GL_INDEX_MODE = 0xc30;
- public static final int GL_RGBA_MODE = 0xc31;
- public static final int GL_DOUBLEBUFFER = 0xc32;
- public static final int GL_STEREO = 0xc33;
- public static final int GL_RENDER_MODE = 0xc40;
- public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0xc50;
- public static final int GL_POINT_SMOOTH_HINT = 0xc51;
- public static final int GL_LINE_SMOOTH_HINT = 0xc52;
- public static final int GL_POLYGON_SMOOTH_HINT = 0xc53;
- public static final int GL_FOG_HINT = 0xc54;
- public static final int GL_TEXTURE_GEN_S = 0xc60;
- public static final int GL_TEXTURE_GEN_T = 0xc61;
- public static final int GL_TEXTURE_GEN_R = 0xc62;
- public static final int GL_TEXTURE_GEN_Q = 0xc63;
- public static final int GL_PIXEL_MAP_I_TO_I = 0xc70;
- public static final int GL_PIXEL_MAP_S_TO_S = 0xc71;
- public static final int GL_PIXEL_MAP_I_TO_R = 0xc72;
- public static final int GL_PIXEL_MAP_I_TO_G = 0xc73;
- public static final int GL_PIXEL_MAP_I_TO_B = 0xc74;
- public static final int GL_PIXEL_MAP_I_TO_A = 0xc75;
- public static final int GL_PIXEL_MAP_R_TO_R = 0xc76;
- public static final int GL_PIXEL_MAP_G_TO_G = 0xc77;
- public static final int GL_PIXEL_MAP_B_TO_B = 0xc78;
- public static final int GL_PIXEL_MAP_A_TO_A = 0xc79;
- public static final int GL_PIXEL_MAP_I_TO_I_SIZE = 0xcb0;
- public static final int GL_PIXEL_MAP_S_TO_S_SIZE = 0xcb1;
- public static final int GL_PIXEL_MAP_I_TO_R_SIZE = 0xcb2;
- public static final int GL_PIXEL_MAP_I_TO_G_SIZE = 0xcb3;
- public static final int GL_PIXEL_MAP_I_TO_B_SIZE = 0xcb4;
- public static final int GL_PIXEL_MAP_I_TO_A_SIZE = 0xcb5;
- public static final int GL_PIXEL_MAP_R_TO_R_SIZE = 0xcb6;
- public static final int GL_PIXEL_MAP_G_TO_G_SIZE = 0xcb7;
- public static final int GL_PIXEL_MAP_B_TO_B_SIZE = 0xcb8;
- public static final int GL_PIXEL_MAP_A_TO_A_SIZE = 0xcb9;
- public static final int GL_UNPACK_SWAP_BYTES = 0xcf0;
- public static final int GL_UNPACK_LSB_FIRST = 0xcf1;
- public static final int GL_UNPACK_ROW_LENGTH = 0xcf2;
- public static final int GL_UNPACK_SKIP_ROWS = 0xcf3;
- public static final int GL_UNPACK_SKIP_PIXELS = 0xcf4;
- public static final int GL_UNPACK_ALIGNMENT = 0xcf5;
- public static final int GL_PACK_SWAP_BYTES = 0xd00;
- public static final int GL_PACK_LSB_FIRST = 0xd01;
- public static final int GL_PACK_ROW_LENGTH = 0xd02;
- public static final int GL_PACK_SKIP_ROWS = 0xd03;
- public static final int GL_PACK_SKIP_PIXELS = 0xd04;
- public static final int GL_PACK_ALIGNMENT = 0xd05;
- public static final int GL_MAP_COLOR = 0xd10;
- public static final int GL_MAP_STENCIL = 0xd11;
- public static final int GL_INDEX_SHIFT = 0xd12;
- public static final int GL_INDEX_OFFSET = 0xd13;
- public static final int GL_RED_SCALE = 0xd14;
- public static final int GL_RED_BIAS = 0xd15;
- public static final int GL_ZOOM_X = 0xd16;
- public static final int GL_ZOOM_Y = 0xd17;
- public static final int GL_GREEN_SCALE = 0xd18;
- public static final int GL_GREEN_BIAS = 0xd19;
- public static final int GL_BLUE_SCALE = 0xd1a;
- public static final int GL_BLUE_BIAS = 0xd1b;
- public static final int GL_ALPHA_SCALE = 0xd1c;
- public static final int GL_ALPHA_BIAS = 0xd1d;
- public static final int GL_DEPTH_SCALE = 0xd1e;
- public static final int GL_DEPTH_BIAS = 0xd1f;
- public static final int GL_MAX_EVAL_ORDER = 0xd30;
- public static final int GL_MAX_LIGHTS = 0xd31;
- public static final int GL_MAX_CLIP_PLANES = 0xd32;
- public static final int GL_MAX_TEXTURE_SIZE = 0xd33;
- public static final int GL_MAX_PIXEL_MAP_TABLE = 0xd34;
- public static final int GL_MAX_ATTRIB_STACK_DEPTH = 0xd35;
- public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0xd36;
- public static final int GL_MAX_NAME_STACK_DEPTH = 0xd37;
- public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0xd38;
- public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0xd39;
- public static final int GL_MAX_VIEWPORT_DIMS = 0xd3a;
- public static final int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0xd3b;
- public static final int GL_SUBPIXEL_BITS = 0xd50;
- public static final int GL_INDEX_BITS = 0xd51;
- public static final int GL_RED_BITS = 0xd52;
- public static final int GL_GREEN_BITS = 0xd53;
- public static final int GL_BLUE_BITS = 0xd54;
- public static final int GL_ALPHA_BITS = 0xd55;
- public static final int GL_DEPTH_BITS = 0xd56;
- public static final int GL_STENCIL_BITS = 0xd57;
- public static final int GL_ACCUM_RED_BITS = 0xd58;
- public static final int GL_ACCUM_GREEN_BITS = 0xd59;
- public static final int GL_ACCUM_BLUE_BITS = 0xd5a;
- public static final int GL_ACCUM_ALPHA_BITS = 0xd5b;
- public static final int GL_NAME_STACK_DEPTH = 0xd70;
- public static final int GL_AUTO_NORMAL = 0xd80;
- public static final int GL_MAP1_COLOR_4 = 0xd90;
- public static final int GL_MAP1_INDEX = 0xd91;
- public static final int GL_MAP1_NORMAL = 0xd92;
- public static final int GL_MAP1_TEXTURE_COORD_1 = 0xd93;
- public static final int GL_MAP1_TEXTURE_COORD_2 = 0xd94;
- public static final int GL_MAP1_TEXTURE_COORD_3 = 0xd95;
- public static final int GL_MAP1_TEXTURE_COORD_4 = 0xd96;
- public static final int GL_MAP1_VERTEX_3 = 0xd97;
- public static final int GL_MAP1_VERTEX_4 = 0xd98;
- public static final int GL_MAP2_COLOR_4 = 0xdb0;
- public static final int GL_MAP2_INDEX = 0xdb1;
- public static final int GL_MAP2_NORMAL = 0xdb2;
- public static final int GL_MAP2_TEXTURE_COORD_1 = 0xdb3;
- public static final int GL_MAP2_TEXTURE_COORD_2 = 0xdb4;
- public static final int GL_MAP2_TEXTURE_COORD_3 = 0xdb5;
- public static final int GL_MAP2_TEXTURE_COORD_4 = 0xdb6;
- public static final int GL_MAP2_VERTEX_3 = 0xdb7;
- public static final int GL_MAP2_VERTEX_4 = 0xdb8;
- public static final int GL_MAP1_GRID_DOMAIN = 0xdd0;
- public static final int GL_MAP1_GRID_SEGMENTS = 0xdd1;
- public static final int GL_MAP2_GRID_DOMAIN = 0xdd2;
- public static final int GL_MAP2_GRID_SEGMENTS = 0xdd3;
- public static final int GL_TEXTURE_1D = 0xde0;
- public static final int GL_TEXTURE_2D = 0xde1;
- public static final int GL_FEEDBACK_BUFFER_POINTER = 0xdf0;
- public static final int GL_FEEDBACK_BUFFER_SIZE = 0xdf1;
- public static final int GL_FEEDBACK_BUFFER_TYPE = 0xdf2;
- public static final int GL_SELECTION_BUFFER_POINTER = 0xdf3;
- public static final int GL_SELECTION_BUFFER_SIZE = 0xdf4;
- public static final int GL_TEXTURE_WIDTH = 0x1000;
- public static final int GL_TEXTURE_HEIGHT = 0x1001;
- public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003;
- public static final int GL_TEXTURE_BORDER_COLOR = 0x1004;
- public static final int GL_TEXTURE_BORDER = 0x1005;
- public static final int GL_DONT_CARE = 0x1100;
- public static final int GL_FASTEST = 0x1101;
- public static final int GL_NICEST = 0x1102;
- public static final int GL_LIGHT0 = 0x4000;
- public static final int GL_LIGHT1 = 0x4001;
- public static final int GL_LIGHT2 = 0x4002;
- public static final int GL_LIGHT3 = 0x4003;
- public static final int GL_LIGHT4 = 0x4004;
- public static final int GL_LIGHT5 = 0x4005;
- public static final int GL_LIGHT6 = 0x4006;
- public static final int GL_LIGHT7 = 0x4007;
- public static final int GL_AMBIENT = 0x1200;
- public static final int GL_DIFFUSE = 0x1201;
- public static final int GL_SPECULAR = 0x1202;
- public static final int GL_POSITION = 0x1203;
- public static final int GL_SPOT_DIRECTION = 0x1204;
- public static final int GL_SPOT_EXPONENT = 0x1205;
- public static final int GL_SPOT_CUTOFF = 0x1206;
- public static final int GL_CONSTANT_ATTENUATION = 0x1207;
- public static final int GL_LINEAR_ATTENUATION = 0x1208;
- public static final int GL_QUADRATIC_ATTENUATION = 0x1209;
- public static final int GL_COMPILE = 0x1300;
- public static final int GL_COMPILE_AND_EXECUTE = 0x1301;
- public static final int GL_CLEAR = 0x1500;
- public static final int GL_AND = 0x1501;
- public static final int GL_AND_REVERSE = 0x1502;
- public static final int GL_COPY = 0x1503;
- public static final int GL_AND_INVERTED = 0x1504;
- public static final int GL_NOOP = 0x1505;
- public static final int GL_XOR = 0x1506;
- public static final int GL_OR = 0x1507;
- public static final int GL_NOR = 0x1508;
- public static final int GL_EQUIV = 0x1509;
- public static final int GL_INVERT = 0x150a;
- public static final int GL_OR_REVERSE = 0x150b;
- public static final int GL_COPY_INVERTED = 0x150c;
- public static final int GL_OR_INVERTED = 0x150d;
- public static final int GL_NAND = 0x150e;
- public static final int GL_SET = 0x150f;
- public static final int GL_EMISSION = 0x1600;
- public static final int GL_SHININESS = 0x1601;
- public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602;
- public static final int GL_COLOR_INDEXES = 0x1603;
- public static final int GL_MODELVIEW = 0x1700;
- public static final int GL_PROJECTION = 0x1701;
- public static final int GL_TEXTURE = 0x1702;
- public static final int GL_COLOR = 0x1800;
- public static final int GL_DEPTH = 0x1801;
- public static final int GL_STENCIL = 0x1802;
- public static final int GL_COLOR_INDEX = 0x1900;
- public static final int GL_STENCIL_INDEX = 0x1901;
- public static final int GL_DEPTH_COMPONENT = 0x1902;
- public static final int GL_RED = 0x1903;
- public static final int GL_GREEN = 0x1904;
- public static final int GL_BLUE = 0x1905;
- public static final int GL_ALPHA = 0x1906;
- public static final int GL_RGB = 0x1907;
- public static final int GL_RGBA = 0x1908;
- public static final int GL_LUMINANCE = 0x1909;
- public static final int GL_LUMINANCE_ALPHA = 0x190a;
- public static final int GL_BITMAP = 0x1a00;
- public static final int GL_POINT = 0x1b00;
- public static final int GL_LINE = 0x1b01;
- public static final int GL_FILL = 0x1b02;
- public static final int GL_RENDER = 0x1c00;
- public static final int GL_FEEDBACK = 0x1c01;
- public static final int GL_SELECT = 0x1c02;
- public static final int GL_FLAT = 0x1d00;
- public static final int GL_SMOOTH = 0x1d01;
- public static final int GL_KEEP = 0x1e00;
- public static final int GL_REPLACE = 0x1e01;
- public static final int GL_INCR = 0x1e02;
- public static final int GL_DECR = 0x1e03;
- public static final int GL_VENDOR = 0x1f00;
- public static final int GL_RENDERER = 0x1f01;
- public static final int GL_VERSION = 0x1f02;
- public static final int GL_EXTENSIONS = 0x1f03;
- public static final int GL_S = 0x2000;
- public static final int GL_T = 0x2001;
- public static final int GL_R = 0x2002;
- public static final int GL_Q = 0x2003;
- public static final int GL_MODULATE = 0x2100;
- public static final int GL_DECAL = 0x2101;
- public static final int GL_TEXTURE_ENV_MODE = 0x2200;
- public static final int GL_TEXTURE_ENV_COLOR = 0x2201;
- public static final int GL_TEXTURE_ENV = 0x2300;
- public static final int GL_EYE_LINEAR = 0x2400;
- public static final int GL_OBJECT_LINEAR = 0x2401;
- public static final int GL_SPHERE_MAP = 0x2402;
- public static final int GL_TEXTURE_GEN_MODE = 0x2500;
- public static final int GL_OBJECT_PLANE = 0x2501;
- public static final int GL_EYE_PLANE = 0x2502;
- public static final int GL_NEAREST = 0x2600;
- public static final int GL_LINEAR = 0x2601;
- public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700;
- public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701;
- public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702;
- public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703;
- public static final int GL_TEXTURE_MAG_FILTER = 0x2800;
- public static final int GL_TEXTURE_MIN_FILTER = 0x2801;
- public static final int GL_TEXTURE_WRAP_S = 0x2802;
- public static final int GL_TEXTURE_WRAP_T = 0x2803;
- public static final int GL_CLAMP = 0x2900;
- public static final int GL_REPEAT = 0x2901;
- public static final int GL_CLIENT_PIXEL_STORE_BIT = 0x1;
- public static final int GL_CLIENT_VERTEX_ARRAY_BIT = 0x2;
- public static final int GL_ALL_CLIENT_ATTRIB_BITS = 0xffffffff;
- public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038;
- public static final int GL_POLYGON_OFFSET_UNITS = 0x2a00;
- public static final int GL_POLYGON_OFFSET_POINT = 0x2a01;
- public static final int GL_POLYGON_OFFSET_LINE = 0x2a02;
- public static final int GL_POLYGON_OFFSET_FILL = 0x8037;
- public static final int GL_ALPHA4 = 0x803b;
- public static final int GL_ALPHA8 = 0x803c;
- public static final int GL_ALPHA12 = 0x803d;
- public static final int GL_ALPHA16 = 0x803e;
- public static final int GL_LUMINANCE4 = 0x803f;
- public static final int GL_LUMINANCE8 = 0x8040;
- public static final int GL_LUMINANCE12 = 0x8041;
- public static final int GL_LUMINANCE16 = 0x8042;
- public static final int GL_LUMINANCE4_ALPHA4 = 0x8043;
- public static final int GL_LUMINANCE6_ALPHA2 = 0x8044;
- public static final int GL_LUMINANCE8_ALPHA8 = 0x8045;
- public static final int GL_LUMINANCE12_ALPHA4 = 0x8046;
- public static final int GL_LUMINANCE12_ALPHA12 = 0x8047;
- public static final int GL_LUMINANCE16_ALPHA16 = 0x8048;
- public static final int GL_INTENSITY = 0x8049;
- public static final int GL_INTENSITY4 = 0x804a;
- public static final int GL_INTENSITY8 = 0x804b;
- public static final int GL_INTENSITY12 = 0x804c;
- public static final int GL_INTENSITY16 = 0x804d;
- public static final int GL_R3_G3_B2 = 0x2a10;
- public static final int GL_RGB4 = 0x804f;
- public static final int GL_RGB5 = 0x8050;
- public static final int GL_RGB8 = 0x8051;
- public static final int GL_RGB10 = 0x8052;
- public static final int GL_RGB12 = 0x8053;
- public static final int GL_RGB16 = 0x8054;
- public static final int GL_RGBA2 = 0x8055;
- public static final int GL_RGBA4 = 0x8056;
- public static final int GL_RGB5_A1 = 0x8057;
- public static final int GL_RGBA8 = 0x8058;
- public static final int GL_RGB10_A2 = 0x8059;
- public static final int GL_RGBA12 = 0x805a;
- public static final int GL_RGBA16 = 0x805b;
- public static final int GL_TEXTURE_RED_SIZE = 0x805c;
- public static final int GL_TEXTURE_GREEN_SIZE = 0x805d;
- public static final int GL_TEXTURE_BLUE_SIZE = 0x805e;
- public static final int GL_TEXTURE_ALPHA_SIZE = 0x805f;
- public static final int GL_TEXTURE_LUMINANCE_SIZE = 0x8060;
- public static final int GL_TEXTURE_INTENSITY_SIZE = 0x8061;
- public static final int GL_PROXY_TEXTURE_1D = 0x8063;
- public static final int GL_PROXY_TEXTURE_2D = 0x8064;
- public static final int GL_TEXTURE_PRIORITY = 0x8066;
- public static final int GL_TEXTURE_RESIDENT = 0x8067;
- public static final int GL_TEXTURE_BINDING_1D = 0x8068;
- public static final int GL_TEXTURE_BINDING_2D = 0x8069;
- public static final int GL_VERTEX_ARRAY = 0x8074;
- public static final int GL_NORMAL_ARRAY = 0x8075;
- public static final int GL_COLOR_ARRAY = 0x8076;
- public static final int GL_INDEX_ARRAY = 0x8077;
- public static final int GL_TEXTURE_COORD_ARRAY = 0x8078;
- public static final int GL_EDGE_FLAG_ARRAY = 0x8079;
- public static final int GL_VERTEX_ARRAY_SIZE = 0x807a;
- public static final int GL_VERTEX_ARRAY_TYPE = 0x807b;
- public static final int GL_VERTEX_ARRAY_STRIDE = 0x807c;
- public static final int GL_NORMAL_ARRAY_TYPE = 0x807e;
- public static final int GL_NORMAL_ARRAY_STRIDE = 0x807f;
- public static final int GL_COLOR_ARRAY_SIZE = 0x8081;
- public static final int GL_COLOR_ARRAY_TYPE = 0x8082;
- public static final int GL_COLOR_ARRAY_STRIDE = 0x8083;
- public static final int GL_INDEX_ARRAY_TYPE = 0x8085;
- public static final int GL_INDEX_ARRAY_STRIDE = 0x8086;
- public static final int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088;
- public static final int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089;
- public static final int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808a;
- public static final int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808c;
- public static final int GL_VERTEX_ARRAY_POINTER = 0x808e;
- public static final int GL_NORMAL_ARRAY_POINTER = 0x808f;
- public static final int GL_COLOR_ARRAY_POINTER = 0x8090;
- public static final int GL_INDEX_ARRAY_POINTER = 0x8091;
- public static final int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092;
- public static final int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093;
- public static final int GL_V2F = 0x2a20;
- public static final int GL_V3F = 0x2a21;
- public static final int GL_C4UB_V2F = 0x2a22;
- public static final int GL_C4UB_V3F = 0x2a23;
- public static final int GL_C3F_V3F = 0x2a24;
- public static final int GL_N3F_V3F = 0x2a25;
- public static final int GL_C4F_N3F_V3F = 0x2a26;
- public static final int GL_T2F_V3F = 0x2a27;
- public static final int GL_T4F_V4F = 0x2a28;
- public static final int GL_T2F_C4UB_V3F = 0x2a29;
- public static final int GL_T2F_C3F_V3F = 0x2a2a;
- public static final int GL_T2F_N3F_V3F = 0x2a2b;
- public static final int GL_T2F_C4F_N3F_V3F = 0x2a2c;
- public static final int GL_T4F_C4F_N3F_V4F = 0x2a2d;
- public static final int GL_LOGIC_OP = 0xbf1;
- public static final int GL_TEXTURE_COMPONENTS = 0x1003;
-
- private GL11() {
- }
-
-
- public static void glAccum(int op, float value) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glAccum_pointer;
- - nglAccum(op, value, function_pointer);
- }
- private static native void nglAccum(int op, float value, long function_pointer);
-
- public static void glAlphaFunc(int func, float ref) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glAlphaFunc_pointer;
- - nglAlphaFunc(func, ref, function_pointer);
- }
- private static native void nglAlphaFunc(int func, float ref, long function_pointer);
-
- public static void glClearColor(float red, float green, float blue, float alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glClearColor_pointer;
-
- nglClearColor(red, green, blue, alpha, function_pointer);
- }
- private static native void nglClearColor(float red, float green, float blue, float alpha, long function_pointer);
-
- public static void glClearAccum(float red, float green, float blue, float alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glClearAccum_pointer;
-
- nglClearAccum(red, green, blue, alpha, function_pointer);
- }
- private static native void nglClearAccum(float red, float green, float blue, float alpha, long function_pointer);
-
- public static void glClear(int mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glClear_pointer;
-
- nglClear(mask, function_pointer);
- }
- private static native void nglClear(int mask, long function_pointer);
-
- public static void glCallLists(ByteBuffer lists) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCallLists_pointer;
-
-
- nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_BYTE, lists, lists.position(), function_pointer);
- }
- public static void glCallLists(IntBuffer lists) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCallLists_pointer;
-
-
- nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_INT, lists, lists.position() << 2, function_pointer);
- }
- public static void glCallLists(ShortBuffer lists) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCallLists_pointer;
-
-
- nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_SHORT, lists, lists.position() << 1, function_pointer);
- }
- private static native void nglCallLists(int n, int type, Buffer lists, int lists_position, long function_pointer);
-
- public static void glCallList(int list) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCallList_pointer;
- - nglCallList(list, function_pointer);
- }
- private static native void nglCallList(int list, long function_pointer);
-
- public static void glBlendFunc(int sfactor, int dfactor) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glBlendFunc_pointer;
- - nglBlendFunc(sfactor, dfactor, function_pointer);
- }
- private static native void nglBlendFunc(int sfactor, int dfactor, long function_pointer);
-
- public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glBitmap_pointer;
- - - - nglBitmap(width, height, xorig, yorig, xmove, ymove, bitmap, bitmap.position(), function_pointer);
- }
- private static native void nglBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap, int bitmap_position, long function_pointer);
- public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, long bitmap_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glBitmap_pointer;
-
-
- nglBitmapBO(width, height, xorig, yorig, xmove, ymove, bitmap_buffer_offset, function_pointer);
- }
- private static native void nglBitmapBO(int width, int height, float xorig, float yorig, float xmove, float ymove, long bitmap_buffer_offset, long function_pointer);
-
- public static void glBindTexture(int target, int texture) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glBindTexture_pointer;
-
- nglBindTexture(target, texture, function_pointer);
- }
- private static native void nglBindTexture(int target, int texture, long function_pointer);
-
- public static void glPrioritizeTextures(IntBuffer textures, FloatBuffer priorities) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPrioritizeTextures_pointer;
-
-
-
- nglPrioritizeTextures((textures.remaining()), textures, textures.position(), priorities, priorities.position(), function_pointer);
- }
- private static native void nglPrioritizeTextures(int n, IntBuffer textures, int textures_position, FloatBuffer priorities, int priorities_position, long function_pointer);
-
- public static boolean glAreTexturesResident(IntBuffer textures, ByteBuffer residences) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glAreTexturesResident_pointer;
-
-
-
- boolean __result = nglAreTexturesResident((textures.remaining()), textures, textures.position(), residences, residences.position(), function_pointer);
- return __result;
- }
- private static native boolean nglAreTexturesResident(int n, IntBuffer textures, int textures_position, ByteBuffer residences, int residences_position, long function_pointer);
-
- public static void glBegin(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glBegin_pointer;
-
- nglBegin(mode, function_pointer);
- }
- private static native void nglBegin(int mode, long function_pointer);
-
- public static void glEnd() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEnd_pointer;
-
- nglEnd(function_pointer);
- }
- private static native void nglEnd(long function_pointer);
-
- public static void glArrayElement(int i) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glArrayElement_pointer;
-
- nglArrayElement(i, function_pointer);
- }
- private static native void nglArrayElement(int i, long function_pointer);
-
- public static void glClearDepth(double depth) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glClearDepth_pointer;
-
- nglClearDepth(depth, function_pointer);
- }
- private static native void nglClearDepth(double depth, long function_pointer);
-
- public static void glDeleteLists(int list, int range) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDeleteLists_pointer;
-
- nglDeleteLists(list, range, function_pointer);
- }
- private static native void nglDeleteLists(int list, int range, long function_pointer);
-
- public static void glDeleteTextures(IntBuffer textures) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDeleteTextures_pointer;
-
-
- nglDeleteTextures((textures.remaining()), textures, textures.position(), function_pointer);
- }
- private static native void nglDeleteTextures(int n, IntBuffer textures, int textures_position, long function_pointer);
-
- public static void glCullFace(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCullFace_pointer;
-
- nglCullFace(mode, function_pointer);
- }
- private static native void nglCullFace(int mode, long function_pointer);
-
- public static void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCopyTexSubImage2D_pointer;
-
- nglCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height, function_pointer);
- }
- private static native void nglCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height, long function_pointer);
-
- public static void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCopyTexSubImage1D_pointer;
-
- nglCopyTexSubImage1D(target, level, xoffset, x, y, width, function_pointer);
- }
- private static native void nglCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width, long function_pointer);
-
- public static void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCopyTexImage2D_pointer;
-
- nglCopyTexImage2D(target, level, internalFormat, x, y, width, height, border, function_pointer);
- }
- private static native void nglCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border, long function_pointer);
-
- public static void glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCopyTexImage1D_pointer;
-
- nglCopyTexImage1D(target, level, internalFormat, x, y, width, border, function_pointer);
- }
- private static native void nglCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border, long function_pointer);
-
- public static void glCopyPixels(int x, int y, int width, int height, int type) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glCopyPixels_pointer;
-
- nglCopyPixels(x, y, width, height, type, function_pointer);
- }
- private static native void nglCopyPixels(int x, int y, int width, int height, int type, long function_pointer);
-
- public static void glColorPointer(int size, int stride, DoubleBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColorPointer_pointer;
-
-
-
-
- nglColorPointer(size, GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer);
- }
- public static void glColorPointer(int size, int stride, FloatBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColorPointer_pointer;
-
-
-
-
- nglColorPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
- }
- public static void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColorPointer_pointer;
-
-
-
- nglColorPointer(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pointer, pointer.position(), function_pointer);
- }
- private static native void nglColorPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer);
- public static void glColorPointer(int size, int type, int stride, long pointer_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColorPointer_pointer;
-
-
- nglColorPointerBO(size, type, stride, pointer_buffer_offset, function_pointer);
- }
- private static native void nglColorPointerBO(int size, int type, int stride, long pointer_buffer_offset, long function_pointer);
-
- public static void glColorMaterial(int face, int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColorMaterial_pointer;
-
- nglColorMaterial(face, mode, function_pointer);
- }
- private static native void nglColorMaterial(int face, int mode, long function_pointer);
-
- public static void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColorMask_pointer;
-
- nglColorMask(red, green, blue, alpha, function_pointer);
- }
- private static native void nglColorMask(boolean red, boolean green, boolean blue, boolean alpha, long function_pointer);
-
- public static void glColor3b(byte red, byte green, byte blue) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor3b_pointer;
-
- nglColor3b(red, green, blue, function_pointer);
- }
- private static native void nglColor3b(byte red, byte green, byte blue, long function_pointer);
-
- public static void glColor3f(float red, float green, float blue) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor3f_pointer;
-
- nglColor3f(red, green, blue, function_pointer);
- }
- private static native void nglColor3f(float red, float green, float blue, long function_pointer);
-
- public static void glColor3d(double red, double green, double blue) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor3d_pointer;
-
- nglColor3d(red, green, blue, function_pointer);
- }
- private static native void nglColor3d(double red, double green, double blue, long function_pointer);
-
- public static void glColor3ub(byte red, byte green, byte blue) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor3ub_pointer;
-
- nglColor3ub(red, green, blue, function_pointer);
- }
- private static native void nglColor3ub(byte red, byte green, byte blue, long function_pointer);
-
- public static void glColor4b(byte red, byte green, byte blue, byte alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor4b_pointer;
-
- nglColor4b(red, green, blue, alpha, function_pointer);
- }
- private static native void nglColor4b(byte red, byte green, byte blue, byte alpha, long function_pointer);
-
- public static void glColor4f(float red, float green, float blue, float alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor4f_pointer;
-
- nglColor4f(red, green, blue, alpha, function_pointer);
- }
- private static native void nglColor4f(float red, float green, float blue, float alpha, long function_pointer);
-
- public static void glColor4d(double red, double green, double blue, double alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor4d_pointer;
-
- nglColor4d(red, green, blue, alpha, function_pointer);
- }
- private static native void nglColor4d(double red, double green, double blue, double alpha, long function_pointer);
-
- public static void glColor4ub(byte red, byte green, byte blue, byte alpha) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glColor4ub_pointer;
-
- nglColor4ub(red, green, blue, alpha, function_pointer);
- }
- private static native void nglColor4ub(byte red, byte green, byte blue, byte alpha, long function_pointer);
-
- public static void glClipPlane(int plane, DoubleBuffer equation) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glClipPlane_pointer;
-
-
- nglClipPlane(plane, equation, equation.position(), function_pointer);
- }
- private static native void nglClipPlane(int plane, DoubleBuffer equation, int equation_position, long function_pointer);
-
- public static void glClearStencil(int s) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glClearStencil_pointer;
-
- nglClearStencil(s, function_pointer);
- }
- private static native void nglClearStencil(int s, long function_pointer);
-
- public static void glEvalPoint1(int i) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalPoint1_pointer;
-
- nglEvalPoint1(i, function_pointer);
- }
- private static native void nglEvalPoint1(int i, long function_pointer);
-
- public static void glEvalPoint2(int i, int j) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalPoint2_pointer;
-
- nglEvalPoint2(i, j, function_pointer);
- }
- private static native void nglEvalPoint2(int i, int j, long function_pointer);
-
- public static void glEvalMesh1(int mode, int i1, int i2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalMesh1_pointer;
-
- nglEvalMesh1(mode, i1, i2, function_pointer);
- }
- private static native void nglEvalMesh1(int mode, int i1, int i2, long function_pointer);
-
- public static void glEvalMesh2(int mode, int i1, int i2, int j1, int j2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalMesh2_pointer;
-
- nglEvalMesh2(mode, i1, i2, j1, j2, function_pointer);
- }
- private static native void nglEvalMesh2(int mode, int i1, int i2, int j1, int j2, long function_pointer);
-
- public static void glEvalCoord1f(float u) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalCoord1f_pointer;
-
- nglEvalCoord1f(u, function_pointer);
- }
- private static native void nglEvalCoord1f(float u, long function_pointer);
-
- public static void glEvalCoord1d(double u) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalCoord1d_pointer;
-
- nglEvalCoord1d(u, function_pointer);
- }
- private static native void nglEvalCoord1d(double u, long function_pointer);
-
- public static void glEvalCoord2f(float u, float v) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalCoord2f_pointer;
-
- nglEvalCoord2f(u, v, function_pointer);
- }
- private static native void nglEvalCoord2f(float u, float v, long function_pointer);
-
- public static void glEvalCoord2d(double u, double v) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEvalCoord2d_pointer;
-
- nglEvalCoord2d(u, v, function_pointer);
- }
- private static native void nglEvalCoord2d(double u, double v, long function_pointer);
-
- public static void glEnableClientState(int cap) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEnableClientState_pointer;
-
- nglEnableClientState(cap, function_pointer);
- }
- private static native void nglEnableClientState(int cap, long function_pointer);
-
- public static void glDisableClientState(int cap) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDisableClientState_pointer;
-
- nglDisableClientState(cap, function_pointer);
- }
- private static native void nglDisableClientState(int cap, long function_pointer);
-
- public static void glEnable(int cap) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEnable_pointer;
-
- nglEnable(cap, function_pointer);
- }
- private static native void nglEnable(int cap, long function_pointer);
-
- public static void glDisable(int cap) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDisable_pointer;
-
- nglDisable(cap, function_pointer);
- }
- private static native void nglDisable(int cap, long function_pointer);
-
- public static void glEdgeFlagPointer(int stride, ByteBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEdgeFlagPointer_pointer;
-
-
-
-
- nglEdgeFlagPointer(stride, pointer, pointer.position(), function_pointer);
- }
- private static native void nglEdgeFlagPointer(int stride, Buffer pointer, int pointer_position, long function_pointer);
- public static void glEdgeFlagPointer(int stride, long pointer_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEdgeFlagPointer_pointer;
-
-
- nglEdgeFlagPointerBO(stride, pointer_buffer_offset, function_pointer);
- }
- private static native void nglEdgeFlagPointerBO(int stride, long pointer_buffer_offset, long function_pointer);
-
- public static void glEdgeFlag(boolean flag) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEdgeFlag_pointer;
-
- nglEdgeFlag(flag, function_pointer);
- }
- private static native void nglEdgeFlag(boolean flag, long function_pointer);
-
- public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawPixels_pointer;
-
-
-
- nglDrawPixels(width, height, format, type, pixels, pixels.position(), function_pointer);
- }
- public static void glDrawPixels(int width, int height, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawPixels_pointer;
-
-
-
- nglDrawPixels(width, height, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glDrawPixels(int width, int height, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawPixels_pointer;
-
- - - nglDrawPixels(width, height, format, type, pixels, pixels.position() << 1, function_pointer);
- }
- private static native void nglDrawPixels(int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glDrawPixels(int width, int height, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawPixels_pointer;
-
- - nglDrawPixelsBO(width, height, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglDrawPixelsBO(int width, int height, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glDrawElements(int mode, ByteBuffer indices) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawElements_pointer;
-
- - - nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), function_pointer);
- }
- public static void glDrawElements(int mode, IntBuffer indices) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawElements_pointer;
- nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
- }
- public static void glDrawElements(int mode, ShortBuffer indices) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawElements_pointer;
- nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
- }
- private static native void nglDrawElements(int mode, int count, int type, Buffer indices, int indices_position, long function_pointer);
- public static void glDrawElements(int mode, int count, int type, long indices_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawElements_pointer;
- nglDrawElementsBO(mode, count, type, indices_buffer_offset, function_pointer);
- }
- private static native void nglDrawElementsBO(int mode, int count, int type, long indices_buffer_offset, long function_pointer);
-
- public static void glDrawBuffer(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawBuffer_pointer;
-
- nglDrawBuffer(mode, function_pointer);
- }
- private static native void nglDrawBuffer(int mode, long function_pointer);
-
- public static void glDrawArrays(int mode, int first, int count) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDrawArrays_pointer;
-
- nglDrawArrays(mode, first, count, function_pointer);
- }
- private static native void nglDrawArrays(int mode, int first, int count, long function_pointer);
-
- public static void glDepthRange(double zNear, double zFar) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDepthRange_pointer;
-
- nglDepthRange(zNear, zFar, function_pointer);
- }
- private static native void nglDepthRange(double zNear, double zFar, long function_pointer);
-
- public static void glDepthMask(boolean flag) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDepthMask_pointer;
-
- nglDepthMask(flag, function_pointer);
- }
- private static native void nglDepthMask(boolean flag, long function_pointer);
-
- public static void glDepthFunc(int func) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glDepthFunc_pointer;
-
- nglDepthFunc(func, function_pointer);
- }
- private static native void nglDepthFunc(int func, long function_pointer);
-
- public static void glFeedbackBuffer(int type, FloatBuffer buffer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFeedbackBuffer_pointer;
-
- - nglFeedbackBuffer((buffer.remaining()), type, buffer, buffer.position(), function_pointer);
- }
- private static native void nglFeedbackBuffer(int size, int type, FloatBuffer buffer, int buffer_position, long function_pointer);
-
- public static void glGetPixelMap(int map, FloatBuffer values) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPixelMapfv_pointer;
-
- - - nglGetPixelMapfv(map, values, values.position(), function_pointer);
- }
- private static native void nglGetPixelMapfv(int map, FloatBuffer values, int values_position, long function_pointer);
- public static void glGetPixelMapfv(int map, long values_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPixelMapfv_pointer;
-
- - nglGetPixelMapfvBO(map, values_buffer_offset, function_pointer);
- }
- private static native void nglGetPixelMapfvBO(int map, long values_buffer_offset, long function_pointer);
-
- public static void glGetPixelMapu(int map, IntBuffer values) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPixelMapuiv_pointer;
-
- - - nglGetPixelMapuiv(map, values, values.position(), function_pointer);
- }
- private static native void nglGetPixelMapuiv(int map, IntBuffer values, int values_position, long function_pointer);
- public static void glGetPixelMapuiv(int map, long values_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPixelMapuiv_pointer;
-
- - nglGetPixelMapuivBO(map, values_buffer_offset, function_pointer);
- }
- private static native void nglGetPixelMapuivBO(int map, long values_buffer_offset, long function_pointer);
-
- public static void glGetPixelMapu(int map, ShortBuffer values) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPixelMapusv_pointer;
-
- - - nglGetPixelMapusv(map, values, values.position(), function_pointer);
- }
- private static native void nglGetPixelMapusv(int map, ShortBuffer values, int values_position, long function_pointer);
- public static void glGetPixelMapusv(int map, long values_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPixelMapusv_pointer;
-
- - nglGetPixelMapusvBO(map, values_buffer_offset, function_pointer);
- }
- private static native void nglGetPixelMapusvBO(int map, long values_buffer_offset, long function_pointer);
-
- public static void glGetMaterial(int face, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetMaterialfv_pointer;
-
- - nglGetMaterialfv(face, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetMaterialfv(int face, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glGetMaterial(int face, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetMaterialiv_pointer;
-
- - nglGetMaterialiv(face, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetMaterialiv(int face, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glGetMap(int target, int query, FloatBuffer v) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetMapfv_pointer;
-
- - nglGetMapfv(target, query, v, v.position(), function_pointer);
- }
- private static native void nglGetMapfv(int target, int query, FloatBuffer v, int v_position, long function_pointer);
-
- public static void glGetMap(int target, int query, DoubleBuffer v) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetMapdv_pointer;
-
- - nglGetMapdv(target, query, v, v.position(), function_pointer);
- }
- private static native void nglGetMapdv(int target, int query, DoubleBuffer v, int v_position, long function_pointer);
-
- public static void glGetMap(int target, int query, IntBuffer v) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetMapiv_pointer;
-
- - nglGetMapiv(target, query, v, v.position(), function_pointer);
- }
- private static native void nglGetMapiv(int target, int query, IntBuffer v, int v_position, long function_pointer);
-
- public static void glGetLight(int light, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetLightfv_pointer;
-
- - nglGetLightfv(light, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetLightfv(int light, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glGetLight(int light, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetLightiv_pointer;
-
- - nglGetLightiv(light, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetLightiv(int light, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static int glGetError() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetError_pointer;
-
- int __result = nglGetError(function_pointer);
- return __result;
- }
- private static native int nglGetError(long function_pointer);
-
- public static void glGetClipPlane(int plane, DoubleBuffer equation) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetClipPlane_pointer;
-
- - nglGetClipPlane(plane, equation, equation.position(), function_pointer);
- }
- private static native void nglGetClipPlane(int plane, DoubleBuffer equation, int equation_position, long function_pointer);
-
- public static void glGetBoolean(int pname, ByteBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetBooleanv_pointer;
-
- - nglGetBooleanv(pname, params, params.position(), function_pointer);
- }
- private static native void nglGetBooleanv(int pname, ByteBuffer params, int params_position, long function_pointer);
-
- public static void glGetDouble(int pname, DoubleBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetDoublev_pointer;
-
- - nglGetDoublev(pname, params, params.position(), function_pointer);
- }
- private static native void nglGetDoublev(int pname, DoubleBuffer params, int params_position, long function_pointer);
-
- public static void glGetFloat(int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetFloatv_pointer;
-
- - nglGetFloatv(pname, params, params.position(), function_pointer);
- }
- private static native void nglGetFloatv(int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glGetInteger(int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetIntegerv_pointer;
-
- - nglGetIntegerv(pname, params, params.position(), function_pointer);
- }
- private static native void nglGetIntegerv(int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glGenTextures(IntBuffer textures) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGenTextures_pointer;
-
- - nglGenTextures((textures.remaining()), textures, textures.position(), function_pointer);
- }
- private static native void nglGenTextures(int n, IntBuffer textures, int textures_position, long function_pointer);
-
- public static int glGenLists(int range) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGenLists_pointer;
-
- int __result = nglGenLists(range, function_pointer);
- return __result;
- }
- private static native int nglGenLists(int range, long function_pointer);
-
- public static void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFrustum_pointer;
-
- nglFrustum(left, right, bottom, top, zNear, zFar, function_pointer);
- }
- private static native void nglFrustum(double left, double right, double bottom, double top, double zNear, double zFar, long function_pointer);
-
- public static void glFrontFace(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFrontFace_pointer;
-
- nglFrontFace(mode, function_pointer);
- }
- private static native void nglFrontFace(int mode, long function_pointer);
-
- public static void glFogf(int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFogf_pointer;
-
- nglFogf(pname, param, function_pointer);
- }
- private static native void nglFogf(int pname, float param, long function_pointer);
-
- public static void glFogi(int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFogi_pointer;
-
- nglFogi(pname, param, function_pointer);
- }
- private static native void nglFogi(int pname, int param, long function_pointer);
-
- public static void glFog(int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFogfv_pointer;
-
- - nglFogfv(pname, params, params.position(), function_pointer);
- }
- private static native void nglFogfv(int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glFog(int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFogiv_pointer;
-
- - nglFogiv(pname, params, params.position(), function_pointer);
- }
- private static native void nglFogiv(int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glFlush() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFlush_pointer;
-
- nglFlush(function_pointer);
- }
- private static native void nglFlush(long function_pointer);
-
- public static void glFinish() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glFinish_pointer;
-
- nglFinish(function_pointer);
- }
- private static native void nglFinish(long function_pointer);
-
- public static java.nio.ByteBuffer glGetPointer(int pname, long result_size) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPointerv_pointer;
-
- java.nio.ByteBuffer __result = nglGetPointerv(pname, result_size, function_pointer);
- return __result;
- }
- private static native java.nio.ByteBuffer nglGetPointerv(int pname, long result_size, long function_pointer);
-
- public static boolean glIsEnabled(int cap) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glIsEnabled_pointer;
-
- boolean __result = nglIsEnabled(cap, function_pointer);
- return __result;
- }
- private static native boolean nglIsEnabled(int cap, long function_pointer);
-
- public static void glInterleavedArrays(int format, int stride, ByteBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInterleavedArrays_pointer;
-
- - - nglInterleavedArrays(format, stride, pointer, pointer.position(), function_pointer);
- }
- public static void glInterleavedArrays(int format, int stride, DoubleBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInterleavedArrays_pointer;
-
- - - nglInterleavedArrays(format, stride, pointer, pointer.position() << 3, function_pointer);
- }
- public static void glInterleavedArrays(int format, int stride, FloatBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInterleavedArrays_pointer;
-
- - - nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer);
- }
- public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInterleavedArrays_pointer;
-
- - - nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer);
- }
- public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInterleavedArrays_pointer;
-
- - - nglInterleavedArrays(format, stride, pointer, pointer.position() << 1, function_pointer);
- }
- private static native void nglInterleavedArrays(int format, int stride, Buffer pointer, int pointer_position, long function_pointer);
- public static void glInterleavedArrays(int format, int stride, long pointer_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInterleavedArrays_pointer;
-
- - nglInterleavedArraysBO(format, stride, pointer_buffer_offset, function_pointer);
- }
- private static native void nglInterleavedArraysBO(int format, int stride, long pointer_buffer_offset, long function_pointer);
-
- public static void glInitNames() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glInitNames_pointer;
-
- nglInitNames(function_pointer);
- }
- private static native void nglInitNames(long function_pointer);
-
- public static void glHint(int target, int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glHint_pointer;
-
- nglHint(target, mode, function_pointer);
- }
- private static native void nglHint(int target, int mode, long function_pointer);
-
- public static void glGetTexParameter(int target, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexParameterfv_pointer;
-
- - nglGetTexParameterfv(target, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetTexParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexParameter(int target, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexParameteriv_pointer;
-
- - nglGetTexParameteriv(target, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetTexParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexLevelParameter(int target, int level, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexLevelParameterfv_pointer;
-
- - nglGetTexLevelParameterfv(target, level, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetTexLevelParameterfv(int target, int level, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexLevelParameter(int target, int level, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexLevelParameteriv_pointer;
-
- - nglGetTexLevelParameteriv(target, level, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetTexLevelParameteriv(int target, int level, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexImage_pointer;
-
- - - nglGetTexImage(target, level, format, type, pixels, pixels.position(), function_pointer);
- }
- public static void glGetTexImage(int target, int level, int format, int type, DoubleBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexImage_pointer;
-
- - - nglGetTexImage(target, level, format, type, pixels, pixels.position() << 3, function_pointer);
- }
- public static void glGetTexImage(int target, int level, int format, int type, FloatBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexImage_pointer;
-
- nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2, function_pointer);
-
- }
- public static void glGetTexImage(int target, int level, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexImage_pointer;
-
- nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2, function_pointer);
-
- }
- public static void glGetTexImage(int target, int level, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexImage_pointer;
-
- nglGetTexImage(target, level, format, type, pixels, pixels.position() << 1, function_pointer);
-
- }
- private static native void nglGetTexImage(int target, int level, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glGetTexImage(int target, int level, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexImage_pointer;
-
- nglGetTexImageBO(target, level, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglGetTexImageBO(int target, int level, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glGetTexGen(int coord, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexGeniv_pointer;
-
- nglGetTexGeniv(coord, pname, params, params.position(), function_pointer);
-
- }
- private static native void nglGetTexGeniv(int coord, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexGen(int coord, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexGenfv_pointer;
-
-
- nglGetTexGenfv(coord, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetTexGenfv(int coord, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexGen(int coord, int pname, DoubleBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexGendv_pointer;
-
- nglGetTexGendv(coord, pname, params, params.position(), function_pointer);
- }
- private static native void nglGetTexGendv(int coord, int pname, DoubleBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexEnv(int coord, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexEnviv_pointer;
-
- nglGetTexEnviv(coord, pname, params, params.position(), function_pointer);
-
- }
- private static native void nglGetTexEnviv(int coord, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glGetTexEnv(int coord, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetTexEnvfv_pointer;
-
- nglGetTexEnvfv(coord, pname, params, params.position(), function_pointer);
-
- }
- private static native void nglGetTexEnvfv(int coord, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static java.lang.String glGetString(int name) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetString_pointer;
-
- java.lang.String __result = nglGetString(name, function_pointer);
- return __result;
- }
- private static native java.lang.String nglGetString(int name, long function_pointer);
-
- public static void glGetPolygonStipple(ByteBuffer mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPolygonStipple_pointer;
-
- nglGetPolygonStipple(mask, mask.position(), function_pointer);
-
- }
- private static native void nglGetPolygonStipple(ByteBuffer mask, int mask_position, long function_pointer);
- public static void glGetPolygonStipple(long mask_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glGetPolygonStipple_pointer;
-
- nglGetPolygonStippleBO(mask_buffer_offset, function_pointer);
- }
- private static native void nglGetPolygonStippleBO(long mask_buffer_offset, long function_pointer);
-
- public static boolean glIsList(int list) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glIsList_pointer;
-
- boolean __result = nglIsList(list, function_pointer);
- return __result;
- }
- private static native boolean nglIsList(int list, long function_pointer);
-
- public static void glMaterialf(int face, int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMaterialf_pointer;
-
- nglMaterialf(face, pname, param, function_pointer);
- }
- private static native void nglMaterialf(int face, int pname, float param, long function_pointer);
-
- public static void glMateriali(int face, int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMateriali_pointer;
-
- nglMateriali(face, pname, param, function_pointer);
- }
- private static native void nglMateriali(int face, int pname, int param, long function_pointer);
-
- public static void glMaterial(int face, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMaterialfv_pointer;
-
- nglMaterialfv(face, pname, params, params.position(), function_pointer);
- }
- private static native void nglMaterialfv(int face, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glMaterial(int face, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMaterialiv_pointer;
-
- nglMaterialiv(face, pname, params, params.position(), function_pointer);
- }
- private static native void nglMaterialiv(int face, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glMapGrid1f(int un, float u1, float u2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMapGrid1f_pointer;
-
- nglMapGrid1f(un, u1, u2, function_pointer);
- }
- private static native void nglMapGrid1f(int un, float u1, float u2, long function_pointer);
-
- public static void glMapGrid1d(int un, double u1, double u2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMapGrid1d_pointer;
-
- nglMapGrid1d(un, u1, u2, function_pointer);
- }
- private static native void nglMapGrid1d(int un, double u1, double u2, long function_pointer);
-
- public static void glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMapGrid2f_pointer;
-
- nglMapGrid2f(un, u1, u2, vn, v1, v2, function_pointer);
- }
- private static native void nglMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2, long function_pointer);
-
- public static void glMapGrid2d(int un, double u1, double u2, int vn, double v1, double v2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMapGrid2d_pointer;
-
- nglMapGrid2d(un, u1, u2, vn, v1, v2, function_pointer);
- }
- private static native void nglMapGrid2d(int un, double u1, double u2, int vn, double v1, double v2, long function_pointer);
-
- public static void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMap2f_pointer;
-
- nglMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points, points.position(), function_pointer);
- }
- private static native void nglMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points, int points_position, long function_pointer);
-
- public static void glMap2d(int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, DoubleBuffer points) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMap2d_pointer;
-
- nglMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points, points.position(), function_pointer);
- }
- private static native void nglMap2d(int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, DoubleBuffer points, int points_position, long function_pointer);
-
- public static void glMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMap1f_pointer;
-
- nglMap1f(target, u1, u2, stride, order, points, points.position(), function_pointer);
- }
- private static native void nglMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points, int points_position, long function_pointer);
-
- public static void glMap1d(int target, double u1, double u2, int stride, int order, DoubleBuffer points) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMap1d_pointer;
-
- nglMap1d(target, u1, u2, stride, order, points, points.position(), function_pointer);
- }
- private static native void nglMap1d(int target, double u1, double u2, int stride, int order, DoubleBuffer points, int points_position, long function_pointer);
-
- public static void glLogicOp(int opcode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLogicOp_pointer;
-
- nglLogicOp(opcode, function_pointer);
- }
- private static native void nglLogicOp(int opcode, long function_pointer);
-
- public static void glLoadName(int name) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLoadName_pointer;
-
- nglLoadName(name, function_pointer);
- }
- private static native void nglLoadName(int name, long function_pointer);
-
- public static void glLoadMatrix(FloatBuffer m) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLoadMatrixf_pointer;
-
- nglLoadMatrixf(m, m.position(), function_pointer);
- }
- private static native void nglLoadMatrixf(FloatBuffer m, int m_position, long function_pointer);
-
- public static void glLoadMatrix(DoubleBuffer m) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLoadMatrixd_pointer;
-
- nglLoadMatrixd(m, m.position(), function_pointer);
- }
- private static native void nglLoadMatrixd(DoubleBuffer m, int m_position, long function_pointer);
-
- public static void glLoadIdentity() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLoadIdentity_pointer;
-
- nglLoadIdentity(function_pointer);
- }
- private static native void nglLoadIdentity(long function_pointer);
-
- public static void glListBase(int base) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glListBase_pointer;
-
- nglListBase(base, function_pointer);
- }
- private static native void nglListBase(int base, long function_pointer);
-
- public static void glLineWidth(float width) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLineWidth_pointer;
-
- nglLineWidth(width, function_pointer);
- }
- private static native void nglLineWidth(float width, long function_pointer);
-
- public static void glLineStipple(int factor, short pattern) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLineStipple_pointer;
-
- nglLineStipple(factor, pattern, function_pointer);
- }
- private static native void nglLineStipple(int factor, short pattern, long function_pointer);
-
- public static void glLightModelf(int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightModelf_pointer;
-
- nglLightModelf(pname, param, function_pointer);
- }
- private static native void nglLightModelf(int pname, float param, long function_pointer);
-
- public static void glLightModeli(int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightModeli_pointer;
-
- nglLightModeli(pname, param, function_pointer);
- }
- private static native void nglLightModeli(int pname, int param, long function_pointer);
-
- public static void glLightModel(int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightModelfv_pointer;
-
- nglLightModelfv(pname, params, params.position(), function_pointer);
- }
- private static native void nglLightModelfv(int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glLightModel(int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightModeliv_pointer;
-
- nglLightModeliv(pname, params, params.position(), function_pointer);
- }
- private static native void nglLightModeliv(int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glLightf(int light, int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightf_pointer;
-
- nglLightf(light, pname, param, function_pointer);
- }
- private static native void nglLightf(int light, int pname, float param, long function_pointer);
-
- public static void glLighti(int light, int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLighti_pointer;
-
- nglLighti(light, pname, param, function_pointer);
- }
- private static native void nglLighti(int light, int pname, int param, long function_pointer);
-
- public static void glLight(int light, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightfv_pointer;
-
- nglLightfv(light, pname, params, params.position(), function_pointer);
- }
- private static native void nglLightfv(int light, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glLight(int light, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glLightiv_pointer;
-
- nglLightiv(light, pname, params, params.position(), function_pointer);
- }
- private static native void nglLightiv(int light, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static boolean glIsTexture(int texture) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glIsTexture_pointer;
-
- boolean __result = nglIsTexture(texture, function_pointer);
- return __result;
- }
- private static native boolean nglIsTexture(int texture, long function_pointer);
-
- public static void glMatrixMode(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMatrixMode_pointer;
-
- nglMatrixMode(mode, function_pointer);
- }
- private static native void nglMatrixMode(int mode, long function_pointer);
-
- public static void glPolygonStipple(ByteBuffer mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPolygonStipple_pointer;
-
-
- nglPolygonStipple(mask, mask.position(), function_pointer);
- }
- private static native void nglPolygonStipple(ByteBuffer mask, int mask_position, long function_pointer);
- public static void glPolygonStipple(long mask_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPolygonStipple_pointer;
-
-
- nglPolygonStippleBO(mask_buffer_offset, function_pointer);
- }
- private static native void nglPolygonStippleBO(long mask_buffer_offset, long function_pointer);
-
- public static void glPolygonOffset(float factor, float units) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPolygonOffset_pointer;
-
- nglPolygonOffset(factor, units, function_pointer);
- }
- private static native void nglPolygonOffset(float factor, float units, long function_pointer);
-
- public static void glPolygonMode(int face, int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPolygonMode_pointer;
-
- nglPolygonMode(face, mode, function_pointer);
- }
- private static native void nglPolygonMode(int face, int mode, long function_pointer);
-
- public static void glPointSize(float size) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPointSize_pointer;
-
- nglPointSize(size, function_pointer);
- }
- private static native void nglPointSize(float size, long function_pointer);
-
- public static void glPixelZoom(float xfactor, float yfactor) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelZoom_pointer;
-
- nglPixelZoom(xfactor, yfactor, function_pointer);
- }
- private static native void nglPixelZoom(float xfactor, float yfactor, long function_pointer);
-
- public static void glPixelTransferf(int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelTransferf_pointer;
-
- nglPixelTransferf(pname, param, function_pointer);
- }
- private static native void nglPixelTransferf(int pname, float param, long function_pointer);
-
- public static void glPixelTransferi(int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelTransferi_pointer;
-
- nglPixelTransferi(pname, param, function_pointer);
- }
- private static native void nglPixelTransferi(int pname, int param, long function_pointer);
-
- public static void glPixelStoref(int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelStoref_pointer;
-
- nglPixelStoref(pname, param, function_pointer);
- }
- private static native void nglPixelStoref(int pname, float param, long function_pointer);
-
- public static void glPixelStorei(int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelStorei_pointer;
-
- nglPixelStorei(pname, param, function_pointer);
- }
- private static native void nglPixelStorei(int pname, int param, long function_pointer);
-
- public static void glPixelMap(int map, FloatBuffer values) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelMapfv_pointer;
-
-
- nglPixelMapfv(map, (values.remaining()), values, values.position(), function_pointer);
- }
- private static native void nglPixelMapfv(int map, int mapsize, FloatBuffer values, int values_position, long function_pointer);
- public static void glPixelMapfv(int map, int mapsize, long values_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelMapfv_pointer;
-
-
- nglPixelMapfvBO(map, mapsize, values_buffer_offset, function_pointer);
- }
- private static native void nglPixelMapfvBO(int map, int mapsize, long values_buffer_offset, long function_pointer);
-
- public static void glPixelMapu(int map, IntBuffer values) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelMapuiv_pointer;
-
-
- nglPixelMapuiv(map, (values.remaining()), values, values.position(), function_pointer);
- }
- private static native void nglPixelMapuiv(int map, int mapsize, IntBuffer values, int values_position, long function_pointer);
- public static void glPixelMapuiv(int map, int mapsize, long values_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelMapuiv_pointer;
-
-
- nglPixelMapuivBO(map, mapsize, values_buffer_offset, function_pointer);
- }
- private static native void nglPixelMapuivBO(int map, int mapsize, long values_buffer_offset, long function_pointer);
-
- public static void glPixelMapu(int map, ShortBuffer values) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelMapusv_pointer;
-
-
- nglPixelMapusv(map, (values.remaining()), values, values.position(), function_pointer);
- }
- private static native void nglPixelMapusv(int map, int mapsize, ShortBuffer values, int values_position, long function_pointer);
- public static void glPixelMapusv(int map, int mapsize, long values_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPixelMapusv_pointer;
-
-
- nglPixelMapusvBO(map, mapsize, values_buffer_offset, function_pointer);
- }
- private static native void nglPixelMapusvBO(int map, int mapsize, long values_buffer_offset, long function_pointer);
-
- public static void glPassThrough(float token) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPassThrough_pointer;
-
- nglPassThrough(token, function_pointer);
- }
- private static native void nglPassThrough(float token, long function_pointer);
-
- public static void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glOrtho_pointer;
-
- nglOrtho(left, right, bottom, top, zNear, zFar, function_pointer);
- }
- private static native void nglOrtho(double left, double right, double bottom, double top, double zNear, double zFar, long function_pointer);
-
- public static void glNormalPointer(int stride, ByteBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormalPointer_pointer;
-
-
-
- nglNormalPointer(GL11.GL_BYTE, stride, pointer, pointer.position(), function_pointer);
- }
- public static void glNormalPointer(int stride, DoubleBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormalPointer_pointer;
-
-
-
- nglNormalPointer(GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer);
- }
- public static void glNormalPointer(int stride, FloatBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormalPointer_pointer;
-
-
-
- nglNormalPointer(GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
- }
- public static void glNormalPointer(int stride, IntBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormalPointer_pointer;
-
-
-
- nglNormalPointer(GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer);
- }
- private static native void nglNormalPointer(int type, int stride, Buffer pointer, int pointer_position, long function_pointer);
- public static void glNormalPointer(int type, int stride, long pointer_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormalPointer_pointer;
-
-
- nglNormalPointerBO(type, stride, pointer_buffer_offset, function_pointer);
- }
- private static native void nglNormalPointerBO(int type, int stride, long pointer_buffer_offset, long function_pointer);
-
- public static void glNormal3b(byte nx, byte ny, byte nz) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormal3b_pointer;
-
- nglNormal3b(nx, ny, nz, function_pointer);
- }
- private static native void nglNormal3b(byte nx, byte ny, byte nz, long function_pointer);
-
- public static void glNormal3f(float nx, float ny, float nz) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormal3f_pointer;
-
- nglNormal3f(nx, ny, nz, function_pointer);
- }
- private static native void nglNormal3f(float nx, float ny, float nz, long function_pointer);
-
- public static void glNormal3d(double nx, double ny, double nz) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormal3d_pointer;
-
- nglNormal3d(nx, ny, nz, function_pointer);
- }
- private static native void nglNormal3d(double nx, double ny, double nz, long function_pointer);
-
- public static void glNormal3i(int nx, int ny, int nz) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNormal3i_pointer;
-
- nglNormal3i(nx, ny, nz, function_pointer);
- }
- private static native void nglNormal3i(int nx, int ny, int nz, long function_pointer);
-
- public static void glNewList(int list, int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glNewList_pointer;
-
- nglNewList(list, mode, function_pointer);
- }
- private static native void nglNewList(int list, int mode, long function_pointer);
-
- public static void glEndList() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glEndList_pointer;
-
- nglEndList(function_pointer);
- }
- private static native void nglEndList(long function_pointer);
-
- public static void glMultMatrix(FloatBuffer m) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMultMatrixf_pointer;
-
- nglMultMatrixf(m, m.position(), function_pointer);
- }
- private static native void nglMultMatrixf(FloatBuffer m, int m_position, long function_pointer);
-
- public static void glMultMatrix(DoubleBuffer m) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glMultMatrixd_pointer;
-
- nglMultMatrixd(m, m.position(), function_pointer);
- }
- private static native void nglMultMatrixd(DoubleBuffer m, int m_position, long function_pointer);
-
- public static void glShadeModel(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glShadeModel_pointer;
-
- nglShadeModel(mode, function_pointer);
- }
- private static native void nglShadeModel(int mode, long function_pointer);
-
- public static void glSelectBuffer(IntBuffer buffer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glSelectBuffer_pointer;
-
-
- nglSelectBuffer((buffer.remaining()), buffer, buffer.position(), function_pointer);
- }
- private static native void nglSelectBuffer(int size, IntBuffer buffer, int buffer_position, long function_pointer);
-
- public static void glScissor(int x, int y, int width, int height) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glScissor_pointer;
-
- nglScissor(x, y, width, height, function_pointer);
- }
- private static native void nglScissor(int x, int y, int width, int height, long function_pointer);
-
- public static void glScalef(float x, float y, float z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glScalef_pointer;
-
- nglScalef(x, y, z, function_pointer);
- }
- private static native void nglScalef(float x, float y, float z, long function_pointer);
-
- public static void glScaled(double x, double y, double z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glScaled_pointer;
-
- nglScaled(x, y, z, function_pointer);
- }
- private static native void nglScaled(double x, double y, double z, long function_pointer);
-
- public static void glRotatef(float angle, float x, float y, float z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRotatef_pointer;
-
- nglRotatef(angle, x, y, z, function_pointer);
- }
- private static native void nglRotatef(float angle, float x, float y, float z, long function_pointer);
-
- public static int glRenderMode(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRenderMode_pointer;
-
- int __result = nglRenderMode(mode, function_pointer);
- return __result;
- }
- private static native int nglRenderMode(int mode, long function_pointer);
-
- public static void glRectf(float x1, float y1, float x2, float y2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRectf_pointer;
-
- nglRectf(x1, y1, x2, y2, function_pointer);
- }
- private static native void nglRectf(float x1, float y1, float x2, float y2, long function_pointer);
-
- public static void glRectd(double x1, double y1, double x2, double y2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRectd_pointer;
-
- nglRectd(x1, y1, x2, y2, function_pointer);
- }
- private static native void nglRectd(double x1, double y1, double x2, double y2, long function_pointer);
-
- public static void glRecti(int x1, int y1, int x2, int y2) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRecti_pointer;
-
- nglRecti(x1, y1, x2, y2, function_pointer);
- }
- private static native void nglRecti(int x1, int y1, int x2, int y2, long function_pointer);
-
- public static void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadPixels_pointer;
-
-
- nglReadPixels(x, y, width, height, format, type, pixels, pixels.position(), function_pointer);
- }
- public static void glReadPixels(int x, int y, int width, int height, int format, int type, DoubleBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadPixels_pointer;
-
- nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 3, function_pointer);
- }
- public static void glReadPixels(int x, int y, int width, int height, int format, int type, FloatBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadPixels_pointer;
-
- nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glReadPixels(int x, int y, int width, int height, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadPixels_pointer;
-
- nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glReadPixels(int x, int y, int width, int height, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadPixels_pointer;
-
- nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 1, function_pointer);
- }
- private static native void nglReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glReadPixels(int x, int y, int width, int height, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadPixels_pointer;
-
- nglReadPixelsBO(x, y, width, height, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglReadPixelsBO(int x, int y, int width, int height, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glReadBuffer(int mode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glReadBuffer_pointer;
-
- nglReadBuffer(mode, function_pointer);
- }
- private static native void nglReadBuffer(int mode, long function_pointer);
-
- public static void glRasterPos2f(float x, float y) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos2f_pointer;
-
- nglRasterPos2f(x, y, function_pointer);
- }
- private static native void nglRasterPos2f(float x, float y, long function_pointer);
-
- public static void glRasterPos2d(double x, double y) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos2d_pointer;
-
- nglRasterPos2d(x, y, function_pointer);
- }
- private static native void nglRasterPos2d(double x, double y, long function_pointer);
-
- public static void glRasterPos2i(int x, int y) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos2i_pointer;
-
- nglRasterPos2i(x, y, function_pointer);
- }
- private static native void nglRasterPos2i(int x, int y, long function_pointer);
-
- public static void glRasterPos3f(float x, float y, float z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos3f_pointer;
-
- nglRasterPos3f(x, y, z, function_pointer);
- }
- private static native void nglRasterPos3f(float x, float y, float z, long function_pointer);
-
- public static void glRasterPos3d(double x, double y, double z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos3d_pointer;
-
- nglRasterPos3d(x, y, z, function_pointer);
- }
- private static native void nglRasterPos3d(double x, double y, double z, long function_pointer);
-
- public static void glRasterPos3i(int x, int y, int z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos3i_pointer;
-
- nglRasterPos3i(x, y, z, function_pointer);
- }
- private static native void nglRasterPos3i(int x, int y, int z, long function_pointer);
-
- public static void glRasterPos4f(float x, float y, float z, float w) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos4f_pointer;
-
- nglRasterPos4f(x, y, z, w, function_pointer);
- }
- private static native void nglRasterPos4f(float x, float y, float z, float w, long function_pointer);
-
- public static void glRasterPos4d(double x, double y, double z, double w) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos4d_pointer;
-
- nglRasterPos4d(x, y, z, w, function_pointer);
- }
- private static native void nglRasterPos4d(double x, double y, double z, double w, long function_pointer);
-
- public static void glRasterPos4i(int x, int y, int z, int w) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glRasterPos4i_pointer;
-
- nglRasterPos4i(x, y, z, w, function_pointer);
- }
- private static native void nglRasterPos4i(int x, int y, int z, int w, long function_pointer);
-
- public static void glPushName(int name) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPushName_pointer;
-
- nglPushName(name, function_pointer);
- }
- private static native void nglPushName(int name, long function_pointer);
-
- public static void glPopName() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPopName_pointer;
-
- nglPopName(function_pointer);
- }
- private static native void nglPopName(long function_pointer);
-
- public static void glPushMatrix() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPushMatrix_pointer;
-
- nglPushMatrix(function_pointer);
- }
- private static native void nglPushMatrix(long function_pointer);
-
- public static void glPopMatrix() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPopMatrix_pointer;
-
- nglPopMatrix(function_pointer);
- }
- private static native void nglPopMatrix(long function_pointer);
-
- public static void glPushClientAttrib(int mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPushClientAttrib_pointer;
-
- StateTracker.pushAttrib(caps, mask);
- nglPushClientAttrib(mask, function_pointer);
- }
- private static native void nglPushClientAttrib(int mask, long function_pointer);
-
- public static void glPopClientAttrib() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPopClientAttrib_pointer;
-
- StateTracker.popAttrib(caps);
- nglPopClientAttrib(function_pointer);
- }
- private static native void nglPopClientAttrib(long function_pointer);
-
- public static void glPushAttrib(int mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPushAttrib_pointer;
-
- nglPushAttrib(mask, function_pointer);
- }
- private static native void nglPushAttrib(int mask, long function_pointer);
-
- public static void glPopAttrib() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glPopAttrib_pointer;
-
- nglPopAttrib(function_pointer);
- }
- private static native void nglPopAttrib(long function_pointer);
-
- public static void glStencilFunc(int func, int ref, int mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glStencilFunc_pointer;
-
- nglStencilFunc(func, ref, mask, function_pointer);
- }
- private static native void nglStencilFunc(int func, int ref, int mask, long function_pointer);
-
- public static void glVertexPointer(int size, int stride, DoubleBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertexPointer_pointer;
-
- nglVertexPointer(size, GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer);
- }
- public static void glVertexPointer(int size, int stride, FloatBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertexPointer_pointer;
-
- nglVertexPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
- }
- public static void glVertexPointer(int size, int stride, IntBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertexPointer_pointer;
-
- nglVertexPointer(size, GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer);
- }
- private static native void nglVertexPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer);
- public static void glVertexPointer(int size, int type, int stride, long pointer_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertexPointer_pointer;
-
- nglVertexPointerBO(size, type, stride, pointer_buffer_offset, function_pointer);
- }
- private static native void nglVertexPointerBO(int size, int type, int stride, long pointer_buffer_offset, long function_pointer);
-
- public static void glVertex2f(float x, float y) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex2f_pointer;
-
- nglVertex2f(x, y, function_pointer);
- }
- private static native void nglVertex2f(float x, float y, long function_pointer);
-
- public static void glVertex2d(double x, double y) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex2d_pointer;
-
- nglVertex2d(x, y, function_pointer);
- }
- private static native void nglVertex2d(double x, double y, long function_pointer);
-
- public static void glVertex2i(int x, int y) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex2i_pointer;
-
- nglVertex2i(x, y, function_pointer);
- }
- private static native void nglVertex2i(int x, int y, long function_pointer);
-
- public static void glVertex3f(float x, float y, float z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex3f_pointer;
-
- nglVertex3f(x, y, z, function_pointer);
- }
- private static native void nglVertex3f(float x, float y, float z, long function_pointer);
-
- public static void glVertex3d(double x, double y, double z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex3d_pointer;
-
- nglVertex3d(x, y, z, function_pointer);
- }
- private static native void nglVertex3d(double x, double y, double z, long function_pointer);
-
- public static void glVertex3i(int x, int y, int z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex3i_pointer;
-
- nglVertex3i(x, y, z, function_pointer);
- }
- private static native void nglVertex3i(int x, int y, int z, long function_pointer);
-
- public static void glVertex4f(float x, float y, float z, float w) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex4f_pointer;
-
- nglVertex4f(x, y, z, w, function_pointer);
- }
- private static native void nglVertex4f(float x, float y, float z, float w, long function_pointer);
-
- public static void glVertex4d(double x, double y, double z, double w) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex4d_pointer;
-
- nglVertex4d(x, y, z, w, function_pointer);
- }
- private static native void nglVertex4d(double x, double y, double z, double w, long function_pointer);
-
- public static void glVertex4i(int x, int y, int z, int w) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glVertex4i_pointer;
-
- nglVertex4i(x, y, z, w, function_pointer);
- }
- private static native void nglVertex4i(int x, int y, int z, int w, long function_pointer);
-
- public static void glTranslatef(float x, float y, float z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTranslatef_pointer;
-
- nglTranslatef(x, y, z, function_pointer);
- }
- private static native void nglTranslatef(float x, float y, float z, long function_pointer);
-
- public static void glTranslated(double x, double y, double z) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTranslated_pointer;
-
- nglTranslated(x, y, z, function_pointer);
- }
- private static native void nglTranslated(double x, double y, double z, long function_pointer);
-
- public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage1D_pointer;
-
- nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer);
- }
- public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, DoubleBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage1D_pointer;
-
- nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 3 : 0, function_pointer);
- }
- public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage1D_pointer;
-
- nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
- }
- public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage1D_pointer;
-
- nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
- }
- public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage1D_pointer;
-
- nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
- }
- private static native void nglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage1D_pointer;
-
- nglTexImage1DBO(target, level, internalformat, width, border, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglTexImage1DBO(int target, int level, int internalformat, int width, int border, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage2D_pointer;
-
- nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer);
- }
- public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, DoubleBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage2D_pointer;
-
- nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 3 : 0, function_pointer);
- }
- public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, FloatBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage2D_pointer;
-
- nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
- }
- public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage2D_pointer;
-
- nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
- }
- public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage2D_pointer;
-
- nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
- }
- private static native void nglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexImage2D_pointer;
-
- nglTexImage2DBO(target, level, internalformat, width, height, border, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglTexImage2DBO(int target, int level, int internalformat, int width, int height, int border, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage1D_pointer;
-
- nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position(), function_pointer);
- }
- public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, DoubleBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage1D_pointer;
-
- nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 3, function_pointer);
- }
- public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, FloatBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage1D_pointer;
-
- nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage1D_pointer;
-
- nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage1D_pointer;
-
- nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 1, function_pointer);
- }
- private static native void nglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage1D_pointer;
-
- nglTexSubImage1DBO(target, level, xoffset, width, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglTexSubImage1DBO(int target, int level, int xoffset, int width, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ByteBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage2D_pointer;
-
- nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position(), function_pointer);
- }
- public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, DoubleBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage2D_pointer;
-
- nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 3, function_pointer);
- }
- public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, FloatBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage2D_pointer;
-
- nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage2D_pointer;
-
- nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
- }
- public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ShortBuffer pixels) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage2D_pointer;
-
- nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 1, function_pointer);
- }
- private static native void nglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
- public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexSubImage2D_pointer;
-
- nglTexSubImage2DBO(target, level, xoffset, yoffset, width, height, format, type, pixels_buffer_offset, function_pointer);
- }
- private static native void nglTexSubImage2DBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels_buffer_offset, long function_pointer);
-
- public static void glTexParameterf(int target, int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexParameterf_pointer;
-
- nglTexParameterf(target, pname, param, function_pointer);
- }
- private static native void nglTexParameterf(int target, int pname, float param, long function_pointer);
-
- public static void glTexParameteri(int target, int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexParameteri_pointer;
-
- nglTexParameteri(target, pname, param, function_pointer);
- }
- private static native void nglTexParameteri(int target, int pname, int param, long function_pointer);
-
- public static void glTexParameter(int target, int pname, FloatBuffer param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexParameterfv_pointer;
-
- nglTexParameterfv(target, pname, param, param.position(), function_pointer);
- }
- private static native void nglTexParameterfv(int target, int pname, FloatBuffer param, int param_position, long function_pointer);
-
- public static void glTexParameter(int target, int pname, IntBuffer param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexParameteriv_pointer;
-
- nglTexParameteriv(target, pname, param, param.position(), function_pointer);
- }
- private static native void nglTexParameteriv(int target, int pname, IntBuffer param, int param_position, long function_pointer);
-
- public static void glTexGenf(int coord, int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexGenf_pointer;
-
- nglTexGenf(coord, pname, param, function_pointer);
- }
- private static native void nglTexGenf(int coord, int pname, float param, long function_pointer);
-
- public static void glTexGend(int coord, int pname, double param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexGend_pointer;
-
- nglTexGend(coord, pname, param, function_pointer);
- }
- private static native void nglTexGend(int coord, int pname, double param, long function_pointer);
-
- public static void glTexGen(int coord, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexGenfv_pointer;
-
- nglTexGenfv(coord, pname, params, params.position(), function_pointer);
- }
- private static native void nglTexGenfv(int coord, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glTexGen(int coord, int pname, DoubleBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexGendv_pointer;
-
- nglTexGendv(coord, pname, params, params.position(), function_pointer);
- }
- private static native void nglTexGendv(int coord, int pname, DoubleBuffer params, int params_position, long function_pointer);
-
- public static void glTexGeni(int coord, int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexGeni_pointer;
-
- nglTexGeni(coord, pname, param, function_pointer);
- }
- private static native void nglTexGeni(int coord, int pname, int param, long function_pointer);
-
- public static void glTexGen(int coord, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexGeniv_pointer;
-
- nglTexGeniv(coord, pname, params, params.position(), function_pointer);
- }
- private static native void nglTexGeniv(int coord, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glTexEnvf(int target, int pname, float param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexEnvf_pointer;
-
- nglTexEnvf(target, pname, param, function_pointer);
- }
- private static native void nglTexEnvf(int target, int pname, float param, long function_pointer);
-
- public static void glTexEnvi(int target, int pname, int param) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexEnvi_pointer;
-
- nglTexEnvi(target, pname, param, function_pointer);
- }
- private static native void nglTexEnvi(int target, int pname, int param, long function_pointer);
-
- public static void glTexEnv(int target, int pname, FloatBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexEnvfv_pointer;
-
- nglTexEnvfv(target, pname, params, params.position(), function_pointer);
- }
- private static native void nglTexEnvfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
-
- public static void glTexEnv(int target, int pname, IntBuffer params) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexEnviv_pointer;
-
- nglTexEnviv(target, pname, params, params.position(), function_pointer);
- }
- private static native void nglTexEnviv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
-
- public static void glTexCoordPointer(int size, int stride, DoubleBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoordPointer_pointer;
-
- nglTexCoordPointer(size, GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer);
- }
- public static void glTexCoordPointer(int size, int stride, FloatBuffer pointer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoordPointer_pointer;
-
-
-
-
- nglTexCoordPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
- }
- private static native void nglTexCoordPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer);
- public static void glTexCoordPointer(int size, int type, int stride, long pointer_buffer_offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoordPointer_pointer;
-
-
- nglTexCoordPointerBO(size, type, stride, pointer_buffer_offset, function_pointer);
- }
- private static native void nglTexCoordPointerBO(int size, int type, int stride, long pointer_buffer_offset, long function_pointer);
-
- public static void glTexCoord1f(float s) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord1f_pointer;
-
- nglTexCoord1f(s, function_pointer);
- }
- private static native void nglTexCoord1f(float s, long function_pointer);
-
- public static void glTexCoord1d(double s) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord1d_pointer;
-
- nglTexCoord1d(s, function_pointer);
- }
- private static native void nglTexCoord1d(double s, long function_pointer);
-
- public static void glTexCoord2f(float s, float t) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord2f_pointer;
-
- nglTexCoord2f(s, t, function_pointer);
- }
- private static native void nglTexCoord2f(float s, float t, long function_pointer);
-
- public static void glTexCoord2d(double s, double t) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord2d_pointer;
-
- nglTexCoord2d(s, t, function_pointer);
- }
- private static native void nglTexCoord2d(double s, double t, long function_pointer);
-
- public static void glTexCoord3f(float s, float t, float r) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord3f_pointer;
-
- nglTexCoord3f(s, t, r, function_pointer);
- }
- private static native void nglTexCoord3f(float s, float t, float r, long function_pointer);
-
- public static void glTexCoord3d(double s, double t, double r) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord3d_pointer;
-
- nglTexCoord3d(s, t, r, function_pointer);
- }
- private static native void nglTexCoord3d(double s, double t, double r, long function_pointer);
-
- public static void glTexCoord4f(float s, float t, float r, float q) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord4f_pointer;
-
- nglTexCoord4f(s, t, r, q, function_pointer);
- }
- private static native void nglTexCoord4f(float s, float t, float r, float q, long function_pointer);
-
- public static void glTexCoord4d(double s, double t, double r, double q) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glTexCoord4d_pointer;
-
- nglTexCoord4d(s, t, r, q, function_pointer);
- }
- private static native void nglTexCoord4d(double s, double t, double r, double q, long function_pointer);
-
- public static void glStencilOp(int fail, int zfail, int zpass) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glStencilOp_pointer;
-
- nglStencilOp(fail, zfail, zpass, function_pointer);
- }
- private static native void nglStencilOp(int fail, int zfail, int zpass, long function_pointer);
-
- public static void glStencilMask(int mask) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glStencilMask_pointer;
-
- nglStencilMask(mask, function_pointer);
- }
- private static native void nglStencilMask(int mask, long function_pointer);
-
- public static void glViewport(int x, int y, int width, int height) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.GL11_glViewport_pointer;
-
- nglViewport(x, y, width, height, function_pointer);
- }
- private static native void nglViewport(int x, int y, int width, int height, long function_pointer);
-}
diff --git a/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java b/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java deleted file mode 100644 index 6a7d396..0000000 --- a/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'LWJGL' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -package org.lwjgl.opengl; - -import java.nio.Buffer; -import java.nio.IntBuffer; - -import org.lwjgl.BufferUtils; - -/** - * A class to check buffer boundaries in GL methods. Many GL - * methods read data from the GL into a native Buffer at its current position. If there is unsufficient space in the buffer when - * the call is made then a buffer overflow would otherwise occur and cause unexpected behaviour, a crash, or worse, a security - * risk. Therefore in those methods where GL reads data back into a buffer, we will call a bounds check method from this class - * to ensure that there is sufficient space in the buffer. - * <p/> - * Thrown by the debug build library of the LWJGL if any OpenGL operation causes an error. - * - * @author cix_foo <[email protected]> - * @version $Revision: 1.3 $ - * $Id: GLChecks.java,v 1.3 2007-05-11 20:55:17 cawe Exp $ - */ -class GLChecks { - - /** Static methods only! */ - private GLChecks() { - } - - static References getReferences(ContextCapabilities caps) { - return StateTracker.getReferencesStack(caps).getReferences(); - } - - static int getBufferObjectSize(ContextCapabilities caps, int buffer_enum) { - IntBuffer scratch_buffer = caps.scratch_int_buffer; - GL15.glGetBufferParameter(buffer_enum, GL15.GL_BUFFER_SIZE, scratch_buffer); - return scratch_buffer.get(0); - } - - static int getBufferObjectSizeARB(ContextCapabilities caps, int buffer_enum) { - IntBuffer scratch_buffer = caps.scratch_int_buffer; - ARBBufferObject.glGetBufferParameterARB(buffer_enum, ARBBufferObject.GL_BUFFER_SIZE_ARB, scratch_buffer); - return scratch_buffer.get(0); - } - - private static boolean checkBufferObject(ContextCapabilities caps, int buffer_enum, boolean state) { - IntBuffer scratch_buffer = caps.scratch_int_buffer; - GL11.glGetInteger(buffer_enum, scratch_buffer); - boolean is_enabled = scratch_buffer.get(0) != 0; - return state == is_enabled; - } - - /** Helper method to ensure that array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensureArrayVBOdisabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensureArrayVBOenabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that element array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensureElementVBOdisabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that element array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensureElementVBOenabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that pixel pack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensurePackPBOdisabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that pixel pack buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensurePackPBOenabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that pixel unpack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensureUnpackPBOdisabled(ContextCapabilities caps) { - } - - /** Helper method to ensure that pixel unpack buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensureUnpackPBOenabled(ContextCapabilities caps) { - } - - /** - * Calculate the storage required for an image in elements - * - * @param format The format of the image (example: GL_RGBA) - * @param type The type of the image elements (example: GL_UNSIGNED_BYTE) - * @param width The width of the image - * @param height The height of the image (1 for 1D images) - * @param depth The depth of the image (1 for 2D images) - * - * @return the size, in elements, of the image - */ - static int calculateImageStorage(Buffer buffer, int format, int type, int width, int height, int depth) { - return calculateImageStorage(format, type, width, height, depth) >> BufferUtils.getElementSizeExponent(buffer); - } - - static int calculateTexImage1DStorage(Buffer buffer, int format, int type, int width) { - return calculateTexImage1DStorage(format, type, width) >> BufferUtils.getElementSizeExponent(buffer); - } - - static int calculateTexImage2DStorage(Buffer buffer, int format, int type, int width, int height) { - return calculateTexImage2DStorage(format, type, width, height) >> BufferUtils.getElementSizeExponent(buffer); - } - - static int calculateTexImage3DStorage(Buffer buffer, int format, int type, int width, int height, int depth) { - return calculateTexImage3DStorage(format, type, width, height, depth) >> BufferUtils.getElementSizeExponent(buffer); - } - - /** - * Calculate the storage required for an image in bytes. - * - * @param format The format of the image (example: GL_RGBA) - * @param type The type of the image elements (example: GL_UNSIGNED_BYTE) - * @param width The width of the image - * @param height The height of the image (1 for 1D images) - * @param depth The depth of the image (1 for 2D images) - * - * @return the size, in bytes, of the image - */ - private static int calculateImageStorage(int format, int type, int width, int height, int depth) { - return calculateBytesPerPixel(format, type) * width * height * depth; - } - - private static int calculateTexImage1DStorage(int format, int type, int width) { - return calculateBytesPerPixel(format, type) * width; - } - - private static int calculateTexImage2DStorage(int format, int type, int width, int height) { - return calculateTexImage1DStorage(format, type, width) * height; - } - - private static int calculateTexImage3DStorage(int format, int type, int width, int height, int depth) { - return calculateTexImage2DStorage(format, type, width, height) * depth; - } - - private static int calculateBytesPerPixel(int format, int type) { - int bpe; - switch ( type ) { - case GL11.GL_UNSIGNED_BYTE: - case GL11.GL_BYTE: - bpe = 1; - break; - case GL11.GL_UNSIGNED_SHORT: - case GL11.GL_SHORT: - bpe = 2; - break; - case GL11.GL_UNSIGNED_INT: - case GL11.GL_INT: - case GL11.GL_FLOAT: - bpe = 4; - break; - default : - // TODO: Add more types (like the GL12 types GL_UNSIGNED_INT_8_8_8_8 - return 0; - // throw new IllegalArgumentException("Unknown type " + type); - } - int epp; - switch ( format ) { - case GL11.GL_LUMINANCE: - case GL11.GL_ALPHA: - epp = 1; - break; - - case GL11.GL_LUMINANCE_ALPHA: - epp = 2; - break; - case GL11.GL_RGB: - case EXTBgra.GL_BGR_EXT: - epp = 3; - break; - case GL11.GL_RGBA: - case EXTAbgr.GL_ABGR_EXT: - case EXTBgra.GL_BGRA_EXT: - epp = 4; - break; - default : - // TODO: Add more formats. Assuming 4 is too wasteful on buffer sizes where e.g. 1 is enough (like GL_DEPTH_COMPONENT) - return 0; -/* // Assume 4 elements per pixel - epp = 4;*/ - } - - return bpe * epp; - } -} diff --git a/lib/lwjgl/windows/OpenAL32.dll b/lib/lwjgl/windows/OpenAL32.dll Binary files differdeleted file mode 100644 index 3fe0d89..0000000 --- a/lib/lwjgl/windows/OpenAL32.dll +++ /dev/null diff --git a/lib/lwjgl/windows/lwjgl.dll b/lib/lwjgl/windows/lwjgl.dll Binary files differdeleted file mode 100644 index 65bf8e4..0000000 --- a/lib/lwjgl/windows/lwjgl.dll +++ /dev/null diff --git a/src/jake2/render/LwjglRenderer.java b/src/jake2/render/LwjglRenderer.java deleted file mode 100644 index 1add3d3..0000000 --- a/src/jake2/render/LwjglRenderer.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * LwjglRenderer.java - * Copyright (C) 2004 - * - * $Id: LwjglRenderer.java,v 1.5 2007-01-11 23:20:40 cawe Exp $ - */ -/* -Copyright (C) 1997-2001 Id Software, Inc. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ -package jake2.render; - -import jake2.Defines; -import jake2.client.refdef_t; -import jake2.client.refexport_t; -import jake2.render.opengl.LwjglDriver; -import jake2.sys.KBD; -import jake2.sys.LWJGLKBD; - -import java.awt.Dimension; - -/** - * LwjglRenderer - * - * @author dsanders/cwei - */ -final class LwjglRenderer extends LwjglDriver implements refexport_t, Ref { - - public static final String DRIVER_NAME = "lwjgl"; - - private KBD kbd = new LWJGLKBD(); - - // is set from Renderer factory - private RenderAPI impl; - - static { - Renderer.register(new LwjglRenderer()); - }; - - private LwjglRenderer() { - } - - // ============================================================================ - // public interface for Renderer implementations - // - // refexport_t (ref.h) - // ============================================================================ - - /** - * @see jake2.client.refexport_t#Init() - */ - public boolean Init(int vid_xpos, int vid_ypos) { - // init the OpenGL drivers - impl.setGLDriver(this); - - // pre init - if (!impl.R_Init(vid_xpos, vid_ypos)) return false; - // post init - return impl.R_Init2(); - } - - /** - * @see jake2.client.refexport_t#Shutdown() - */ - public void Shutdown() { - impl.R_Shutdown(); - } - - /** - * @see jake2.client.refexport_t#BeginRegistration(java.lang.String) - */ - public final void BeginRegistration(String map) { - impl.R_BeginRegistration(map); - } - - /** - * @see jake2.client.refexport_t#RegisterModel(java.lang.String) - */ - public final model_t RegisterModel(String name) { - return impl.R_RegisterModel(name); - } - - /** - * @see jake2.client.refexport_t#RegisterSkin(java.lang.String) - */ - public final image_t RegisterSkin(String name) { - return impl.R_RegisterSkin(name); - } - - /** - * @see jake2.client.refexport_t#RegisterPic(java.lang.String) - */ - public final image_t RegisterPic(String name) { - return impl.Draw_FindPic(name); - } - /** - * @see jake2.client.refexport_t#SetSky(java.lang.String, float, float[]) - */ - public final void SetSky(String name, float rotate, float[] axis) { - impl.R_SetSky(name, rotate, axis); - } - - /** - * @see jake2.client.refexport_t#EndRegistration() - */ - public final void EndRegistration() { - impl.R_EndRegistration(); - } - - /** - * @see jake2.client.refexport_t#RenderFrame(jake2.client.refdef_t) - */ - public final void RenderFrame(refdef_t fd) { - impl.R_RenderFrame(fd); - } - - /** - * @see jake2.client.refexport_t#DrawGetPicSize(java.awt.Dimension, java.lang.String) - */ - public final void DrawGetPicSize(Dimension dim, String name) { - impl.Draw_GetPicSize(dim, name); - } - - /** - * @see jake2.client.refexport_t#DrawPic(int, int, java.lang.String) - */ - public final void DrawPic(int x, int y, String name) { - impl.Draw_Pic(x, y, name); - } - - /** - * @see jake2.client.refexport_t#DrawStretchPic(int, int, int, int, java.lang.String) - */ - public final void DrawStretchPic(int x, int y, int w, int h, String name) { - impl.Draw_StretchPic(x, y, w, h, name); - } - - /** - * @see jake2.client.refexport_t#DrawChar(int, int, int) - */ - public final void DrawChar(int x, int y, int num) { - impl.Draw_Char(x, y, num); - } - - /** - * @see jake2.client.refexport_t#DrawTileClear(int, int, int, int, java.lang.String) - */ - public final void DrawTileClear(int x, int y, int w, int h, String name) { - impl.Draw_TileClear(x, y, w, h, name); - } - - /** - * @see jake2.client.refexport_t#DrawFill(int, int, int, int, int) - */ - public final void DrawFill(int x, int y, int w, int h, int c) { - impl.Draw_Fill(x, y, w, h, c); - } - - /** - * @see jake2.client.refexport_t#DrawFadeScreen() - */ - public final void DrawFadeScreen() { - impl.Draw_FadeScreen(); - } - - /** - * @see jake2.client.refexport_t#DrawStretchRaw(int, int, int, int, int, int, byte[]) - */ - public final void DrawStretchRaw(int x, int y, int w, int h, int cols, int rows, byte[] data) { - impl.Draw_StretchRaw(x, y, w, h, cols, rows, data); - } - - /** - * @see jake2.client.refexport_t#CinematicSetPalette(byte[]) - */ - public final void CinematicSetPalette(byte[] palette) { - impl.R_SetPalette(palette); - } - - /** - * @see jake2.client.refexport_t#BeginFrame(float) - */ - public final void BeginFrame(float camera_separation) { - impl.R_BeginFrame(camera_separation); - } - - /** - * @see jake2.client.refexport_t#EndFrame() - */ - public final void EndFrame() { - endFrame(); - } - - /** - * @see jake2.client.refexport_t#AppActivate(boolean) - */ - public final void AppActivate(boolean activate) { - appActivate(activate); - } - - public void screenshot() { - impl.GL_ScreenShot_f(); - } - - public final int apiVersion() { - return Defines.API_VERSION; - } - - public KBD getKeyboardHandler() { - return kbd; - } - - // ============================================================================ - // Ref interface - // ============================================================================ - - public final String getName() { - return DRIVER_NAME; - } - - public final String toString() { - return DRIVER_NAME; - } - - public final refexport_t GetRefAPI(RenderAPI renderer) { - this.impl = renderer; - return this; - } -}
\ No newline at end of file diff --git a/src/jake2/render/opengl/LwjglDriver.java b/src/jake2/render/opengl/LwjglDriver.java deleted file mode 100644 index e44dffc..0000000 --- a/src/jake2/render/opengl/LwjglDriver.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * LWJGLBase.java - * Copyright (C) 2004 - * - * $Id: LwjglDriver.java,v 1.5 2007-11-03 13:04:23 cawe Exp $ - */ -/* - Copyright (C) 1997-2001 Id Software, Inc. - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - */ -package jake2.render.opengl; - -import jake2.Defines; -import jake2.client.VID; -import jake2.qcommon.Com; -import jake2.qcommon.xcommand_t; -import jake2.render.Base; - -import java.awt.Dimension; -import java.util.LinkedList; - -import org.lwjgl.LWJGLException; -import org.lwjgl.opengl.Display; -import org.lwjgl.opengl.DisplayMode; - -/** - * LWJGLBase - * - * @author dsanders/cwei - */ -public abstract class LwjglDriver extends LwjglGL implements GLDriver { - - protected LwjglDriver() { - // see LwjglRenderer - } - - private DisplayMode oldDisplayMode; - - // window position on the screen - int window_xpos, window_ypos; - - private java.awt.DisplayMode toAwtDisplayMode(DisplayMode m) { - return new java.awt.DisplayMode(m.getWidth(), m.getHeight(), m - .getBitsPerPixel(), m.getFrequency()); - } - - public java.awt.DisplayMode[] getModeList() { - DisplayMode[] modes; - try { - modes = Display.getAvailableDisplayModes(); - } catch (LWJGLException e) { - Com.Println(e.getMessage()); - return new java.awt.DisplayMode[0]; - } - LinkedList l = new LinkedList(); - l.add(toAwtDisplayMode(oldDisplayMode)); - - for (int i = 0; i < modes.length; i++) { - DisplayMode m = modes[i]; - - if (m.getBitsPerPixel() != oldDisplayMode.getBitsPerPixel()) - continue; - if (m.getFrequency() > oldDisplayMode.getFrequency()) - continue; - if (m.getHeight() < 240 || m.getWidth() < 320) - continue; - - int j = 0; - java.awt.DisplayMode ml = null; - for (j = 0; j < l.size(); j++) { - ml = (java.awt.DisplayMode) l.get(j); - if (ml.getWidth() > m.getWidth()) - break; - if (ml.getWidth() == m.getWidth() - && ml.getHeight() >= m.getHeight()) - break; - } - if (j == l.size()) { - l.addLast(toAwtDisplayMode(m)); - } else if (ml.getWidth() > m.getWidth() - || ml.getHeight() > m.getHeight()) { - l.add(j, toAwtDisplayMode(m)); - } else if (m.getFrequency() > ml.getRefreshRate()) { - l.remove(j); - l.add(j, toAwtDisplayMode(m)); - } - } - java.awt.DisplayMode[] ma = new java.awt.DisplayMode[l.size()]; - l.toArray(ma); - return ma; - } - - public DisplayMode[] getLWJGLModeList() { - DisplayMode[] modes; - try { - modes = Display.getAvailableDisplayModes(); - } catch (LWJGLException e) { - Com.Println(e.getMessage()); - return new DisplayMode[0]; - } - - LinkedList l = new LinkedList(); - l.add(oldDisplayMode); - - for (int i = 0; i < modes.length; i++) { - DisplayMode m = modes[i]; - - if (m.getBitsPerPixel() != oldDisplayMode.getBitsPerPixel()) - continue; - if (m.getFrequency() > Math.max(60, oldDisplayMode.getFrequency())) - continue; - if (m.getHeight() < 240 || m.getWidth() < 320) - continue; - if (m.getHeight() > oldDisplayMode.getHeight() || m.getWidth() > oldDisplayMode.getWidth()) - continue; - - int j = 0; - DisplayMode ml = null; - for (j = 0; j < l.size(); j++) { - ml = (DisplayMode) l.get(j); - if (ml.getWidth() > m.getWidth()) - break; - if (ml.getWidth() == m.getWidth() - && ml.getHeight() >= m.getHeight()) - break; - } - if (j == l.size()) { - l.addLast(m); - } else if (ml.getWidth() > m.getWidth() - || ml.getHeight() > m.getHeight()) { - l.add(j, m); - } else if (m.getFrequency() > ml.getFrequency()) { - l.remove(j); - l.add(j, m); - } - } - DisplayMode[] ma = new DisplayMode[l.size()]; - l.toArray(ma); - return ma; - } - - private DisplayMode findDisplayMode(Dimension dim) { - DisplayMode mode = null; - DisplayMode m = null; - DisplayMode[] modes = getLWJGLModeList(); - int w = dim.width; - int h = dim.height; - - for (int i = 0; i < modes.length; i++) { - m = modes[i]; - if (m.getWidth() == w && m.getHeight() == h) { - mode = m; - break; - } - } - if (mode == null) - mode = oldDisplayMode; - return mode; - } - - String getModeString(DisplayMode m) { - StringBuffer sb = new StringBuffer(); - sb.append(m.getWidth()); - sb.append('x'); - sb.append(m.getHeight()); - sb.append('x'); - sb.append(m.getBitsPerPixel()); - sb.append('@'); - sb.append(m.getFrequency()); - sb.append("Hz"); - return sb.toString(); - } - - /** - * @param dim - * @param mode - * @param fullscreen - * @return enum rserr_t - */ - public int setMode(Dimension dim, int mode, boolean fullscreen) { - - Dimension newDim = new Dimension(); - - VID.Printf(Defines.PRINT_ALL, "Initializing OpenGL display\n"); - - VID.Printf(Defines.PRINT_ALL, "...setting mode " + mode + ":"); - - /* - * fullscreen handling - */ - if (oldDisplayMode == null) { - oldDisplayMode = Display.getDisplayMode(); - } - - if (!VID.GetModeInfo(newDim, mode)) { - VID.Printf(Defines.PRINT_ALL, " invalid mode\n"); - return Base.rserr_invalid_mode; - } - - VID.Printf(Defines.PRINT_ALL, " " + newDim.width + " " + newDim.height - + '\n'); - - // destroy the existing window - shutdown(); - - Display.setTitle("Jake2 (lwjgl)"); - - DisplayMode displayMode = findDisplayMode(newDim); - newDim.width = displayMode.getWidth(); - newDim.height = displayMode.getHeight(); - - if (fullscreen) { - try { - Display.setDisplayMode(displayMode); - } catch (LWJGLException e) { - return Base.rserr_invalid_mode; - } - - Display.setLocation(0, 0); - - try { - Display.setFullscreen(fullscreen); - } catch (LWJGLException e) { - return Base.rserr_invalid_fullscreen; - } - - VID.Printf(Defines.PRINT_ALL, "...setting fullscreen " - + getModeString(displayMode) + '\n'); - - } else { - try { - Display.setDisplayMode(displayMode); - } catch (LWJGLException e) { - return Base.rserr_invalid_mode; - } - - try { - Display.setFullscreen(false); - } catch (LWJGLException e) { - return Base.rserr_invalid_fullscreen; - } - //Display.setLocation(window_xpos, window_ypos); - } - - Base.setVid(newDim.width, newDim.height); - - // vid.width = newDim.width; - // vid.height = newDim.height; - - try { - Display.create(); - } catch (LWJGLException e) { - return Base.rserr_unknown; - } - - // let the sound and input subsystems know about the new window - VID.NewWindow(newDim.width, newDim.height); - return Base.rserr_ok; - } - - public void shutdown() { - if (oldDisplayMode != null && Display.isFullscreen()) { - try { - Display.setDisplayMode(oldDisplayMode); - } catch (Exception e) { - e.printStackTrace(); - } - } - - while (Display.isCreated()) { - Display.destroy(); - } - } - - /** - * @return true - */ - public boolean init(int xpos, int ypos) { - // do nothing - window_xpos = xpos; - window_ypos = ypos; - return true; - } - - public void beginFrame(float camera_separation) { - // do nothing - } - - public void endFrame() { - glFlush(); - // swap buffers - Display.update(); - } - - public void appActivate(boolean activate) { - // do nothing - } - - public void enableLogging(boolean enable) { - // do nothing - } - - public void logNewFrame() { - // do nothing - } - - /** - * this is a hack for jogl renderers. - * - * @param callback - */ - public final void updateScreen(xcommand_t callback) { - callback.execute(); - } - -} diff --git a/src/jake2/render/opengl/LwjglGL.java b/src/jake2/render/opengl/LwjglGL.java deleted file mode 100644 index c248c3a..0000000 --- a/src/jake2/render/opengl/LwjglGL.java +++ /dev/null @@ -1,311 +0,0 @@ -package jake2.render.opengl; - -import java.nio.*; - -import org.lwjgl.opengl.*; - -public class LwjglGL implements QGL { - - LwjglGL() { - // singleton - } - - public final void glAlphaFunc(int func, float ref) { - GL11.glAlphaFunc(func, ref); - } - - public final void glBegin(int mode) { - GL11.glBegin(mode); - } - - public final void glBindTexture(int target, int texture) { - GL11.glBindTexture(target, texture); - } - - public final void glBlendFunc(int sfactor, int dfactor) { - GL11.glBlendFunc(sfactor, dfactor); - } - - public final void glClear(int mask) { - GL11.glClear(mask); - } - - public final void glClearColor(float red, float green, float blue, float alpha) { - GL11.glClearColor(red, green, blue, alpha); - } - - public final void glColor3f(float red, float green, float blue) { - GL11.glColor3f(red, green, blue); - } - - public final void glColor3ub(byte red, byte green, byte blue) { - GL11.glColor3ub(red, green, blue); - } - - public final void glColor4f(float red, float green, float blue, float alpha) { - GL11.glColor4f(red, green, blue, alpha); - } - - public final void glColor4ub(byte red, byte green, byte blue, byte alpha) { - GL11.glColor4ub(red, green, blue, alpha); - } - - public final void glColorPointer(int size, boolean unsigned, int stride, - ByteBuffer pointer) { - GL11.glColorPointer(size, unsigned, stride, pointer); - } - - public final void glColorPointer(int size, int stride, FloatBuffer pointer) { - GL11.glColorPointer(size, stride, pointer); - } - - public final void glCullFace(int mode) { - GL11.glCullFace(mode); - } - - public final void glDeleteTextures(IntBuffer textures) { - GL11.glDeleteTextures(textures); - } - - public final void glDepthFunc(int func) { - GL11.glDepthFunc(func); - } - - public final void glDepthMask(boolean flag) { - GL11.glDepthMask(flag); - } - - public final void glDepthRange(double zNear, double zFar) { - GL11.glDepthRange(zNear, zFar); - } - - public final void glDisable(int cap) { - GL11.glDisable(cap); - } - - public final void glDisableClientState(int cap) { - GL11.glDisableClientState(cap); - } - - public final void glDrawArrays(int mode, int first, int count) { - GL11.glDrawArrays(mode, first, count); - } - - public final void glDrawBuffer(int mode) { - GL11.glDrawBuffer(mode); - } - - public final void glDrawElements(int mode, IntBuffer indices) { - GL11.glDrawElements(mode, indices); - } - - public final void glEnable(int cap) { - GL11.glEnable(cap); - } - - public final void glEnableClientState(int cap) { - GL11.glEnableClientState(cap); - } - - public final void glEnd() { - GL11.glEnd(); - } - - public final void glFinish() { - GL11.glFinish(); - } - - public final void glFlush() { - GL11.glFlush(); - } - - public final void glFrustum(double left, double right, double bottom, - double top, double zNear, double zFar) { - GL11.glFrustum(left, right, bottom, top, zNear, zFar); - } - - public final int glGetError() { - return GL11.glGetError(); - } - - public final void glGetFloat(int pname, FloatBuffer params) { - GL11.glGetFloat(pname, params); - } - - public final String glGetString(int name) { - return GL11.glGetString(name); - } - - public void glHint(int target, int mode) { - GL11.glHint(target, mode); - } - - public final void glInterleavedArrays(int format, int stride, - FloatBuffer pointer) { - GL11.glInterleavedArrays(format, stride, pointer); - } - - public final void glLoadIdentity() { - GL11.glLoadIdentity(); - } - - public final void glLoadMatrix(FloatBuffer m) { - GL11.glLoadMatrix(m); - } - - public final void glMatrixMode(int mode) { - GL11.glMatrixMode(mode); - } - - public final void glOrtho(double left, double right, double bottom, - double top, double zNear, double zFar) { - GL11.glOrtho(left, right, bottom, top, zNear, zFar); - } - - public final void glPixelStorei(int pname, int param) { - GL11.glPixelStorei(pname, param); - } - - public final void glPointSize(float size) { - GL11.glPointSize(size); - } - - public final void glPolygonMode(int face, int mode) { - GL11.glPolygonMode(face, mode); - } - - public final void glPopMatrix() { - GL11.glPopMatrix(); - } - - public final void glPushMatrix() { - GL11.glPushMatrix(); - } - - public final void glReadPixels(int x, int y, int width, int height, - int format, int type, ByteBuffer pixels) { - GL11.glReadPixels(x, y, width, height, format, type, pixels); - } - - public final void glRotatef(float angle, float x, float y, float z) { - GL11.glRotatef(angle, x, y, z); - } - - public final void glScalef(float x, float y, float z) { - GL11.glScalef(x, y, z); - } - - public final void glScissor(int x, int y, int width, int height) { - GL11.glScissor(x, y, width, height); - } - - public final void glShadeModel(int mode) { - GL11.glShadeModel(mode); - } - - public final void glTexCoord2f(float s, float t) { - GL11.glTexCoord2f(s, t); - } - - public final void glTexCoordPointer(int size, int stride, FloatBuffer pointer) { - GL11.glTexCoordPointer(size, stride, pointer); - } - - public final void glTexEnvi(int target, int pname, int param) { - GL11.glTexEnvi(target, pname, param); - } - - public final void glTexImage2D(int target, int level, int internalformat, - int width, int height, int border, int format, int type, - ByteBuffer pixels) { - GL11.glTexImage2D(target, level, internalformat, width, height, border, - format, type, pixels); - } - - public final void glTexImage2D(int target, int level, int internalformat, - int width, int height, int border, int format, int type, - IntBuffer pixels) { - GL11.glTexImage2D(target, level, internalformat, width, height, border, - format, type, pixels); - } - - public final void glTexParameterf(int target, int pname, float param) { - GL11.glTexParameterf(target, pname, param); - } - - public final void glTexParameteri(int target, int pname, int param) { - GL11.glTexParameteri(target, pname, param); - } - - public final void glTexSubImage2D(int target, int level, int xoffset, - int yoffset, int width, int height, int format, int type, - IntBuffer pixels) { - GL11.glTexSubImage2D(target, level, xoffset, yoffset, width, height, - format, type, pixels); - } - - public final void glTranslatef(float x, float y, float z) { - GL11.glTranslatef(x, y, z); - } - - public final void glVertex2f(float x, float y) { - GL11.glVertex2f(x, y); - } - - public final void glVertex3f(float x, float y, float z) { - GL11.glVertex3f(x, y, z); - } - - public final void glVertexPointer(int size, int stride, FloatBuffer pointer) { - GL11.glVertexPointer(size, stride, pointer); - } - - public final void glViewport(int x, int y, int width, int height) { - GL11.glViewport(x, y, width, height); - } - - public final void glColorTable(int target, int internalFormat, int width, - int format, int type, ByteBuffer data) { - EXTPalettedTexture.glColorTableEXT(target, internalFormat, width, format, type, data); - } - - public final void glActiveTextureARB(int texture) { - ARBMultitexture.glActiveTextureARB(texture); - } - - public final void glClientActiveTextureARB(int texture) { - ARBMultitexture.glClientActiveTextureARB(texture); - } - - public final void glPointParameterEXT(int pname, FloatBuffer pfParams) { - EXTPointParameters.glPointParameterEXT(pname, pfParams); - } - - public final void glPointParameterfEXT(int pname, float param) { - EXTPointParameters.glPointParameterfEXT(pname, param); - } - - public final void glLockArraysEXT(int first, int count) { - EXTCompiledVertexArray.glLockArraysEXT(first, count); - } - - public final void glArrayElement(int index) { - GL11.glArrayElement(index); - } - - public final void glUnlockArraysEXT() { - EXTCompiledVertexArray.glUnlockArraysEXT(); - } - - public final void glMultiTexCoord2f(int target, float s, float t) { - GL13.glMultiTexCoord2f(target, s, t); - } - - /* - * util extensions - */ - public void setSwapInterval(int interval) { - Display.setSwapInterval(interval); - } - -} diff --git a/src/jake2/sound/lwjgl/Channel.java b/src/jake2/sound/lwjgl/Channel.java deleted file mode 100644 index 05a2802..0000000 --- a/src/jake2/sound/lwjgl/Channel.java +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Created on Jun 19, 2004 - * - * Copyright (C) 2003 - * - * $Id: Channel.java,v 1.12 2006-11-23 13:31:58 cawe Exp $ - */ -/* -Copyright (C) 1997-2001 Id Software, Inc. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - */ -package jake2.sound.lwjgl; - -import jake2.Defines; -import jake2.Globals; -import jake2.client.CL_ents; -import jake2.game.entity_state_t; -import jake2.qcommon.Com; -import jake2.sound.*; -import jake2.util.Lib; -import jake2.util.Math3D; - -import java.nio.*; -import java.util.Hashtable; -import java.util.Iterator; -import java.util.Map; - -import org.lwjgl.openal.AL10; -import org.lwjgl.openal.OpenALException; - -/** - * Channel - * - * @author dsanders/cwei - */ -public class Channel { - - final static int LISTENER = 0; - final static int FIXED = 1; - final static int DYNAMIC = 2; - final static int MAX_CHANNELS = 32; - private final static FloatBuffer NULLVECTOR = Lib.newFloatBuffer(3); - - private static Channel[] channels = new Channel[MAX_CHANNELS]; - private static IntBuffer sources = Lib.newIntBuffer(MAX_CHANNELS); - // a reference of L:WJGLSoundImpl.buffers - private static IntBuffer buffers; - private static Map looptable = new Hashtable(MAX_CHANNELS); - - private static int numChannels; - - // stream handling - private static boolean streamingEnabled = false; - private static int streamQueue = 0; - - // sound attributes - private int type; - private int entnum; - private int entchannel; - private int bufferId; - private int sourceId; - private float volume; - private float rolloff; - private float[] origin = {0, 0, 0}; - - // update flags - private boolean autosound; - private boolean active; - private boolean modified; - private boolean bufferChanged; - private boolean volumeChanged; - - private Channel(int sourceId) { - this.sourceId = sourceId; - clear(); - volumeChanged = false; - volume = 1.0f; - } - - private void clear() { - entnum = entchannel = bufferId = -1; - bufferChanged = false; - rolloff = 0; - autosound = false; - active = false; - modified = false; - } - - private static IntBuffer tmp = Lib.newIntBuffer(1); - - static int init(IntBuffer buffers) { - Channel.buffers = buffers; - // create channels - int sourceId; - numChannels = 0; - for (int i = 0; i < MAX_CHANNELS; i++) { - try { - AL10.alGenSources(tmp); - sourceId = tmp.get(0); - // can't generate more sources - if (sourceId <= 0) break; - } catch (OpenALException e) { - // can't generate more sources - break; - } - - sources.put(i, sourceId); - - channels[i] = new Channel(sourceId); - numChannels++; - - // set default values for AL sources - AL10.alSourcef (sourceId, AL10.AL_GAIN, 1.0f); - AL10.alSourcef (sourceId, AL10.AL_PITCH, 1.0f); - AL10.alSourcei (sourceId, AL10.AL_SOURCE_RELATIVE, AL10.AL_FALSE); - AL10.alSource(sourceId, AL10.AL_VELOCITY, NULLVECTOR); - AL10.alSourcei (sourceId, AL10.AL_LOOPING, AL10.AL_FALSE); - AL10.alSourcef (sourceId, AL10.AL_REFERENCE_DISTANCE, 200.0f); - AL10.alSourcef (sourceId, AL10.AL_MIN_GAIN, 0.0005f); - AL10.alSourcef (sourceId, AL10.AL_MAX_GAIN, 1.0f); - } - sources.limit(numChannels); - return numChannels; - } - - static void reset() { - for (int i = 0; i < numChannels; i++) { - AL10.alSourceStop(sources.get(i)); - AL10.alSourcei(sources.get(i), AL10.AL_BUFFER, 0); - channels[i].clear(); - } - } - - static void shutdown() { - AL10.alDeleteSources(sources); - numChannels = 0; - } - - static void enableStreaming() { - if (streamingEnabled) return; - - // use the last source - numChannels--; - streamingEnabled = true; - streamQueue = 0; - - int source = channels[numChannels].sourceId; - AL10.alSourcei (source, AL10.AL_SOURCE_RELATIVE, AL10.AL_TRUE); - AL10.alSourcef(source, AL10.AL_GAIN, 1.0f); - channels[numChannels].volumeChanged = true; - - Com.DPrintf("streaming enabled\n"); - } - - static void disableStreaming() { - if (!streamingEnabled) return; - unqueueStreams(); - int source = channels[numChannels].sourceId; - AL10.alSourcei (source, AL10.AL_SOURCE_RELATIVE, AL10.AL_FALSE); - - // free the last source - numChannels++; - streamingEnabled = false; - Com.DPrintf("streaming disabled\n"); - } - - static void unqueueStreams() { - if (!streamingEnabled) return; - int source = channels[numChannels].sourceId; - - // stop streaming - AL10.alSourceStop(source); - int count = AL10.alGetSourcei(source, AL10.AL_BUFFERS_QUEUED); - Com.DPrintf("unqueue " + count + " buffers\n"); - while (count-- > 0) { - AL10.alSourceUnqueueBuffers(source, tmp); - } - streamQueue = 0; - } - - static void updateStream(ByteBuffer samples, int count, int format, int rate) { - enableStreaming(); - int source = channels[numChannels].sourceId; - int processed = AL10.alGetSourcei(source, AL10.AL_BUFFERS_PROCESSED); - - boolean playing = (AL10.alGetSourcei(source, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING); - boolean interupted = !playing && streamQueue > 2; - - IntBuffer buffer = tmp; - if (interupted) { - unqueueStreams(); - buffer.put(0, buffers.get(Sound.MAX_SFX + streamQueue++)); - Com.DPrintf("queue " + (streamQueue - 1) + '\n'); - } else if (processed < 2) { - // check queue overrun - if (streamQueue >= Sound.STREAM_QUEUE) return; - buffer.put(0, buffers.get(Sound.MAX_SFX + streamQueue++)); - Com.DPrintf("queue " + (streamQueue - 1) + '\n'); - } else { - // reuse the buffer - AL10.alSourceUnqueueBuffers(source, buffer); - } - - samples.position(0); - samples.limit(count); - AL10.alBufferData(buffer.get(0), format, samples, rate); - AL10.alSourceQueueBuffers(source, buffer); - - if (streamQueue > 1 && !playing) { - Com.DPrintf("start sound\n"); - AL10.alSourcePlay(source); - } - } - - static void addPlaySounds() { - while (Channel.assign(PlaySound.nextPlayableSound())); - } - - private static boolean assign(PlaySound ps) { - if (ps == null) return false; - Channel ch = null; - int i; - for (i = 0; i < numChannels; i++) { - ch = channels[i]; - - if (ps.entchannel != 0 && ch.entnum == ps.entnum && ch.entchannel == ps.entchannel) { - // always override sound from same entity - if (ch.bufferId != ps.bufferId) { - AL10.alSourceStop(ch.sourceId); - } - break; - } - - // don't let monster sounds override player sounds - if ((ch.entnum == Globals.cl.playernum+1) && (ps.entnum != Globals.cl.playernum+1) && ch.bufferId != -1) - continue; - - // looking for a free AL source - if (!ch.active) { - break; - } - } - - if (i == numChannels) - return false; - - ch.type = ps.type; - if (ps.type == Channel.FIXED) - Math3D.VectorCopy(ps.origin, ch.origin); - ch.entnum = ps.entnum; - ch.entchannel = ps.entchannel; - ch.bufferChanged = (ch.bufferId != ps.bufferId); - ch.bufferId = ps.bufferId; - ch.rolloff = ps.attenuation * 2; - ch.volumeChanged = (ch.volume != ps.volume); - ch.volume = ps.volume; - ch.active = true; - ch.modified = true; - return true; - } - - private static Channel pickForLoop(int bufferId, float attenuation) { - Channel ch; - for (int i = 0; i < numChannels; i++) { - ch = channels[i]; - // looking for a free AL source - if (!ch.active) { - ch.entnum = 0; - ch.entchannel = 0; - ch.bufferChanged = (ch.bufferId != bufferId); - ch.bufferId = bufferId; - ch.volumeChanged = (ch.volume != 1.0f); - ch.volume = 1.0f; - ch.rolloff = attenuation * 2; - ch.active = true; - ch.modified = true; - return ch; - } - } - return null; - } - - private static FloatBuffer sourceOriginBuffer = Lib.newFloatBuffer(3); - - //stack variable - private static float[] entityOrigin = {0, 0, 0}; - - static void playAllSounds(FloatBuffer listenerOrigin) { - FloatBuffer sourceOrigin = sourceOriginBuffer; - Channel ch; - int sourceId; - int state; - - for (int i = 0; i < numChannels; i++) { - ch = channels[i]; - if (ch.active) { - sourceId = ch.sourceId; - switch (ch.type) { - case Channel.LISTENER: - sourceOrigin.put(0, listenerOrigin.get(0)); - sourceOrigin.put(1, listenerOrigin.get(1)); - sourceOrigin.put(2, listenerOrigin.get(2)); - break; - case Channel.DYNAMIC: - CL_ents.GetEntitySoundOrigin(ch.entnum, entityOrigin); - convertVector(entityOrigin, sourceOrigin); - break; - case Channel.FIXED: - convertVector(ch.origin, sourceOrigin); - break; - } - - if (ch.modified) { - if (ch.bufferChanged) { - try { - AL10.alSourcei(sourceId, AL10.AL_BUFFER, ch.bufferId); - } catch (OpenALException e) { - // fallback for buffer changing - AL10.alSourceStop(sourceId); - AL10.alSourcei(sourceId, AL10.AL_BUFFER, ch.bufferId); - } - } - if (ch.volumeChanged) { - AL10.alSourcef (sourceId, AL10.AL_GAIN, ch.volume); - } - AL10.alSourcef (sourceId, AL10.AL_ROLLOFF_FACTOR, ch.rolloff); - AL10.alSource(sourceId, AL10.AL_POSITION, sourceOrigin); - AL10.alSourcePlay(sourceId); - ch.modified = false; - } else { - state = AL10.alGetSourcei(sourceId, AL10.AL_SOURCE_STATE); - if (state == AL10.AL_PLAYING) { - AL10.alSource(sourceId, AL10.AL_POSITION, sourceOrigin); - } else { - ch.clear(); - } - } - ch.autosound = false; - } - } - } - - /* - * adddLoopSounds - * Entities with a ->sound field will generated looped sounds - * that are automatically started, stopped, and merged together - * as the entities are sent to the client - */ - static void addLoopSounds() { - - if ((Globals.cl_paused.value != 0.0f) || (Globals.cls.state != Globals.ca_active) || !Globals.cl.sound_prepped) { - removeUnusedLoopSounds(); - return; - } - - Channel ch; - sfx_t sfx; - sfxcache_t sc; - int num; - entity_state_t ent; - Object key; - int sound = 0; - - for (int i=0 ; i<Globals.cl.frame.num_entities ; i++) { - num = (Globals.cl.frame.parse_entities + i)&(Defines.MAX_PARSE_ENTITIES-1); - ent = Globals.cl_parse_entities[num]; - sound = ent.sound; - - if (sound == 0) continue; - - key = new Integer(ent.number); - ch = (Channel)looptable.get(key); - - if (ch != null) { - // keep on looping - ch.autosound = true; - Math3D.VectorCopy(ent.origin, ch.origin); - continue; - } - - sfx = Globals.cl.sound_precache[sound]; - if (sfx == null) - continue; // bad sound effect - - sc = sfx.cache; - if (sc == null) - continue; - - // allocate a channel - ch = Channel.pickForLoop(buffers.get(sfx.bufferId), 6); - if (ch == null) - break; - - ch.type = FIXED; - Math3D.VectorCopy(ent.origin, ch.origin); - ch.autosound = true; - - looptable.put(key, ch); - AL10.alSourcei(ch.sourceId, AL10.AL_LOOPING, AL10.AL_TRUE); - } - - removeUnusedLoopSounds(); - - } - - private static void removeUnusedLoopSounds() { - Channel ch; - // stop unused loopsounds - for (Iterator iter = looptable.values().iterator(); iter.hasNext();) { - ch = (Channel)iter.next(); - if (!ch.autosound) { - AL10.alSourceStop(ch.sourceId); - AL10.alSourcei(ch.sourceId, AL10.AL_LOOPING, AL10.AL_FALSE); - iter.remove(); - ch.clear(); - } - } - } - - static void convertVector(float[] from, FloatBuffer to) { - to.put(0, from[0]); - to.put(1, from[2]); - to.put(2, -from[1]); - } - - static void convertOrientation(float[] forward, float[] up, FloatBuffer orientation) { - orientation.put(0, forward[0]); - orientation.put(1, forward[2]); - orientation.put(2, -forward[1]); - orientation.put(3, up[0]); - orientation.put(4, up[2]); - orientation.put(5, -up[1]); - } - -} diff --git a/src/jake2/sound/lwjgl/LWJGLSoundImpl.java b/src/jake2/sound/lwjgl/LWJGLSoundImpl.java deleted file mode 100644 index 3a12494..0000000 --- a/src/jake2/sound/lwjgl/LWJGLSoundImpl.java +++ /dev/null @@ -1,554 +0,0 @@ -/* - * LWJGLSoundImpl.java - * Copyright (C) 2004 - * - * $Id: LWJGLSoundImpl.java,v 1.10 2007-05-11 20:33:53 cawe Exp $ - */ -package jake2.sound.lwjgl; - -import jake2.Defines; -import jake2.Globals; -import jake2.game.Cmd; -import jake2.game.cvar_t; -import jake2.game.entity_state_t; -import jake2.qcommon.*; -import jake2.sound.*; -import jake2.util.Lib; -import jake2.util.Vargs; - -import java.nio.*; - -import org.lwjgl.LWJGLException; -import org.lwjgl.openal.*; - - -/** - * LWJGLSoundImpl - * - * @author dsanders/cwei - */ -public final class LWJGLSoundImpl implements Sound { - - static { - S.register(new LWJGLSoundImpl()); - }; - - private cvar_t s_volume; - - // the last 4 buffers are used for cinematics streaming - private IntBuffer buffers = Lib.newIntBuffer(MAX_SFX + STREAM_QUEUE); - - // singleton - private LWJGLSoundImpl() { - } - - /* (non-Javadoc) - * @see jake2.sound.SoundImpl#Init() - */ - public boolean Init() { - - try { - initOpenAL(); - checkError(); - } catch (OpenALException e) { - Com.Printf(e.getMessage() + '\n'); - return false; - } catch (Exception e) { - Com.DPrintf(e.getMessage() + '\n'); - return false; - } - - // set the listerner (master) volume - s_volume = Cvar.Get("s_volume", "0.7", Defines.CVAR_ARCHIVE); - AL10.alGenBuffers(buffers); - int count = Channel.init(buffers); - Com.Printf("... using " + count + " channels\n"); - AL10.alDistanceModel(AL10.AL_INVERSE_DISTANCE_CLAMPED); - Cmd.AddCommand("play", new xcommand_t() { - public void execute() { - Play(); - } - }); - Cmd.AddCommand("stopsound", new xcommand_t() { - public void execute() { - StopAllSounds(); - } - }); - Cmd.AddCommand("soundlist", new xcommand_t() { - public void execute() { - SoundList(); - } - }); - Cmd.AddCommand("soundinfo", new xcommand_t() { - public void execute() { - SoundInfo_f(); - } - }); - - num_sfx = 0; - - Com.Printf("sound sampling rate: 44100Hz\n"); - - StopAllSounds(); - Com.Printf("------------------------------------\n"); - return true; - } - - - private void initOpenAL() throws OpenALException - { - try { AL.create(); } catch (LWJGLException e) { throw new OpenALException(e); } - String deviceName = null; - - String os = System.getProperty("os.name"); - if (os.startsWith("Windows")) { - deviceName = "DirectSound3D"; - } - - String defaultSpecifier = ALC10.alcGetString(AL.getDevice(), ALC10.ALC_DEFAULT_DEVICE_SPECIFIER); - - Com.Printf(os + " using " + ((deviceName == null) ? defaultSpecifier : deviceName) + '\n'); - - // Check for an error. - if (ALC10.alcGetError(AL.getDevice()) != ALC10.ALC_NO_ERROR) - { - Com.DPrintf("Error with SoundDevice"); - } - } - - void exitOpenAL() - { - AL.destroy(); - } - - // TODO check the sfx direct buffer size - // 2MB sfx buffer - private ByteBuffer sfxDataBuffer = Lib.newByteBuffer(2 * 1024 * 1024); - - /* (non-Javadoc) - * @see jake2.sound.SoundImpl#RegisterSound(jake2.sound.sfx_t) - */ - private void initBuffer(byte[] samples, int bufferId, int freq) { - ByteBuffer data = sfxDataBuffer.slice(); - data.put(samples).flip(); - AL10.alBufferData(buffers.get(bufferId), AL10.AL_FORMAT_MONO16, - data, freq); - } - - private void checkError() { - Com.DPrintf("AL Error: " + alErrorString() +'\n'); - } - - private String alErrorString(){ - int error; - String message = ""; - if ((error = AL10.alGetError()) != AL10.AL_NO_ERROR) { - switch(error) { - case AL10.AL_INVALID_OPERATION: message = "invalid operation"; break; - case AL10.AL_INVALID_VALUE: message = "invalid value"; break; - case AL10.AL_INVALID_ENUM: message = "invalid enum"; break; - case AL10.AL_INVALID_NAME: message = "invalid name"; break; - default: message = "" + error; - } - } - return message; - } - - /* (non-Javadoc) - * @see jake2.sound.SoundImpl#Shutdown() - */ - public void Shutdown() { - StopAllSounds(); - Channel.shutdown(); - AL10.alDeleteBuffers(buffers); - exitOpenAL(); - - Cmd.RemoveCommand("play"); - Cmd.RemoveCommand("stopsound"); - Cmd.RemoveCommand("soundlist"); - Cmd.RemoveCommand("soundinfo"); - - // free all sounds - for (int i = 0; i < num_sfx; i++) { - if (known_sfx[i].name == null) - continue; - known_sfx[i].clear(); - } - num_sfx = 0; - } - - /* (non-Javadoc) - * @see jake2.sound.SoundImpl#StartSound(float[], int, int, jake2.sound.sfx_t, float, float, float) - */ - public void StartSound(float[] origin, int entnum, int entchannel, sfx_t sfx, float fvol, float attenuation, float timeofs) { - - if (sfx == null) - return; - - if (sfx.name.charAt(0) == '*') - sfx = RegisterSexedSound(Globals.cl_entities[entnum].current, sfx.name); - - if (LoadSound(sfx) == null) - return; // can't load sound - - if (attenuation != Defines.ATTN_STATIC) - attenuation *= 0.5f; - - PlaySound.allocate(origin, entnum, entchannel, buffers.get(sfx.bufferId), fvol, attenuation, timeofs); - } - - private FloatBuffer listenerOrigin = Lib.newFloatBuffer(3); - private FloatBuffer listenerOrientation = Lib.newFloatBuffer(6); - - /* (non-Javadoc) - * @see jake2.sound.SoundImpl#Update(float[], float[], float[], float[]) - */ - public void Update(float[] origin, float[] forward, float[] right, float[] up) { - - Channel.convertVector(origin, listenerOrigin); - AL10.alListener(AL10.AL_POSITION, listenerOrigin); - - Channel.convertOrientation(forward, up, listenerOrientation); - AL10.alListener(AL10.AL_ORIENTATION, listenerOrientation); - - // set the master volume - AL10.alListenerf(AL10.AL_GAIN, s_volume.value); - - Channel.addLoopSounds(); - Channel.addPlaySounds(); - Channel.playAllSounds(listenerOrigin); - } - - /* (non-Javadoc) - * @see jake2.sound.SoundImpl#StopAllSounds() - */ - public void StopAllSounds() { - // mute the listener (master) - AL10.alListenerf(AL10.AL_GAIN, 0); - PlaySound.reset(); - Channel.reset(); - } - - /* (non-Javadoc) - * @see jake2.sound.Sound#getName() - */ - public String getName() { - return "lwjgl"; - } - - int s_registration_sequence; - boolean s_registering; - - /* (non-Javadoc) - * @see jake2.sound.Sound#BeginRegistration() - */ - public void BeginRegistration() { - s_registration_sequence++; - s_registering = true; - } - - /* (non-Javadoc) - * @see jake2.sound.Sound#RegisterSound(java.lang.String) - */ - public sfx_t RegisterSound(String name) { - sfx_t sfx = FindName(name, true); - sfx.registration_sequence = s_registration_sequence; - - if (!s_registering) - LoadSound(sfx); - - return sfx; - } - - /* (non-Javadoc) - * @see jake2.sound.Sound#EndRegistration() - */ - public void EndRegistration() { - int i; - sfx_t sfx; - // free any sounds not from this registration sequence - for (i = 0; i < num_sfx; i++) { - sfx = known_sfx[i]; - if (sfx.name == null) - continue; - if (sfx.registration_sequence != s_registration_sequence) { - // don't need this sound - sfx.clear(); - } - } - - // load everything in - for (i = 0; i < num_sfx; i++) { - sfx = known_sfx[i]; - if (sfx.name == null) - continue; - LoadSound(sfx); - } - - s_registering = false; - } - - sfx_t RegisterSexedSound(entity_state_t ent, String base) { - - sfx_t sfx = null; - - // determine what model the client is using - String model = null; - int n = Globals.CS_PLAYERSKINS + ent.number - 1; - if (Globals.cl.configstrings[n] != null) { - int p = Globals.cl.configstrings[n].indexOf('\\'); - if (p >= 0) { - p++; - model = Globals.cl.configstrings[n].substring(p); - //strcpy(model, p); - p = model.indexOf('/'); - if (p > 0) - model = model.substring(0, p); - } - } - // if we can't figure it out, they're male - if (model == null || model.length() == 0) - model = "male"; - - // see if we already know of the model specific sound - String sexedFilename = "#players/" + model + "/" + base.substring(1); - //Com_sprintf (sexedFilename, sizeof(sexedFilename), "#players/%s/%s", model, base+1); - sfx = FindName(sexedFilename, false); - - if (sfx != null) return sfx; - - // - // fall back strategies - // - // not found , so see if it exists - if (FS.FileLength(sexedFilename.substring(1)) > 0) { - // yes, register it - return RegisterSound(sexedFilename); - } - // try it with the female sound in the pak0.pak - if (model.equalsIgnoreCase("female")) { - String femaleFilename = "player/female/" + base.substring(1); - if (FS.FileLength("sound/" + femaleFilename) > 0) - return AliasName(sexedFilename, femaleFilename); - } - // no chance, revert to the male sound in the pak0.pak - String maleFilename = "player/male/" + base.substring(1); - return AliasName(sexedFilename, maleFilename); - } - - - static sfx_t[] known_sfx = new sfx_t[MAX_SFX]; - static { - for (int i = 0; i< known_sfx.length; i++) - known_sfx[i] = new sfx_t(); - } - static int num_sfx; - - sfx_t FindName(String name, boolean create) { - int i; - sfx_t sfx = null; - - if (name == null) - Com.Error(Defines.ERR_FATAL, "S_FindName: NULL\n"); - if (name.length() == 0) - Com.Error(Defines.ERR_FATAL, "S_FindName: empty name\n"); - - if (name.length() >= Defines.MAX_QPATH) - Com.Error(Defines.ERR_FATAL, "Sound name too long: " + name); - - // see if already loaded - for (i = 0; i < num_sfx; i++) - if (name.equals(known_sfx[i].name)) { - return known_sfx[i]; - } - - if (!create) - return null; - - // find a free sfx - for (i = 0; i < num_sfx; i++) - if (known_sfx[i].name == null) - // registration_sequence < s_registration_sequence) - break; - - if (i == num_sfx) { - if (num_sfx == MAX_SFX) - Com.Error(Defines.ERR_FATAL, "S_FindName: out of sfx_t"); - num_sfx++; - } - - sfx = known_sfx[i]; - sfx.clear(); - sfx.name = name; - sfx.registration_sequence = s_registration_sequence; - sfx.bufferId = i; - - return sfx; - } - - /* - ================== - S_AliasName - - ================== - */ - sfx_t AliasName(String aliasname, String truename) - { - sfx_t sfx = null; - String s; - int i; - - s = new String(truename); - - // find a free sfx - for (i=0 ; i < num_sfx ; i++) - if (known_sfx[i].name == null) - break; - - if (i == num_sfx) - { - if (num_sfx == MAX_SFX) - Com.Error(Defines.ERR_FATAL, "S_FindName: out of sfx_t"); - num_sfx++; - } - - sfx = known_sfx[i]; - sfx.clear(); - sfx.name = new String(aliasname); - sfx.registration_sequence = s_registration_sequence; - sfx.truename = s; - // set the AL bufferId - sfx.bufferId = i; - - return sfx; - } - - /* - ============== - S_LoadSound - ============== - */ - public sfxcache_t LoadSound(sfx_t s) { - if (s.isCached) return s.cache; - sfxcache_t sc = WaveLoader.LoadSound(s); - if (sc != null) { - initBuffer(sc.data, s.bufferId, sc.speed); - s.isCached = true; - // free samples for GC - s.cache.data = null; - } - return sc; - } - - /* (non-Javadoc) - * @see jake2.sound.Sound#StartLocalSound(java.lang.String) - */ - public void StartLocalSound(String sound) { - sfx_t sfx; - - sfx = RegisterSound(sound); - if (sfx == null) { - Com.Printf("S_StartLocalSound: can't cache " + sound + "\n"); - return; - } - StartSound(null, Globals.cl.playernum + 1, 0, sfx, 1, 1, 0); - } - - private ShortBuffer streamBuffer = sfxDataBuffer.slice().order(ByteOrder.BIG_ENDIAN).asShortBuffer(); - - /* (non-Javadoc) - * @see jake2.sound.Sound#RawSamples(int, int, int, int, byte[]) - */ - public void RawSamples(int samples, int rate, int width, int channels, ByteBuffer data) { - int format; - if (channels == 2) { - format = (width == 2) ? AL10.AL_FORMAT_STEREO16 - : AL10.AL_FORMAT_STEREO8; - } else { - format = (width == 2) ? AL10.AL_FORMAT_MONO16 - : AL10.AL_FORMAT_MONO8; - } - - // convert to signed 16 bit samples - if (format == AL10.AL_FORMAT_MONO8) { - ShortBuffer sampleData = streamBuffer; - int value; - for (int i = 0; i < samples; i++) { - value = (data.get(i) & 0xFF) - 128; - sampleData.put(i, (short) value); - } - format = AL10.AL_FORMAT_MONO16; - width = 2; - data = sfxDataBuffer.slice(); - } - - Channel.updateStream(data, samples * channels * width, format, rate); - } - - public void disableStreaming() { - Channel.disableStreaming(); - } - /* - =============================================================================== - - console functions - - =============================================================================== - */ - - void Play() { - int i; - String name; - sfx_t sfx; - - i = 1; - while (i < Cmd.Argc()) { - name = new String(Cmd.Argv(i)); - if (name.indexOf('.') == -1) - name += ".wav"; - - sfx = RegisterSound(name); - StartSound(null, Globals.cl.playernum + 1, 0, sfx, 1.0f, 1.0f, 0.0f); - i++; - } - } - - void SoundList() { - int i; - sfx_t sfx; - sfxcache_t sc; - int size, total; - - total = 0; - for (i = 0; i < num_sfx; i++) { - sfx = known_sfx[i]; - if (sfx.registration_sequence == 0) - continue; - sc = sfx.cache; - if (sc != null) { - size = sc.length * sc.width * (sc.stereo + 1); - total += size; - if (sc.loopstart >= 0) - Com.Printf("L"); - else - Com.Printf(" "); - Com.Printf("(%2db) %6i : %s\n", new Vargs(3).add(sc.width * 8).add(size).add(sfx.name)); - } else { - if (sfx.name.charAt(0) == '*') - Com.Printf(" placeholder : " + sfx.name + "\n"); - else - Com.Printf(" not loaded : " + sfx.name + "\n"); - } - } - Com.Printf("Total resident: " + total + "\n"); - } - - void SoundInfo_f() { - - Com.Printf("%5d stereo\n", new Vargs(1).add(1)); - Com.Printf("%5d samples\n", new Vargs(1).add(22050)); - Com.Printf("%5d samplebits\n", new Vargs(1).add(16)); - Com.Printf("%5d speed\n", new Vargs(1).add(44100)); - } - -} diff --git a/src/jake2/sound/lwjgl/PlaySound.java b/src/jake2/sound/lwjgl/PlaySound.java deleted file mode 100644 index 1e3c4f8..0000000 --- a/src/jake2/sound/lwjgl/PlaySound.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Created on Dec 22, 2004 - * - * Copyright (C) 2003 - * - * $Id: PlaySound.java,v 1.2 2005-05-08 13:37:46 cawe Exp $ - */ -/* -Copyright (C) 1997-2001 Id Software, Inc. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ -package jake2.sound.lwjgl; - -import jake2.Globals; -import jake2.util.Math3D; - -/** - * PlaySound - * - * @author cwei - */ -public class PlaySound { - - final static int MAX_PLAYSOUNDS = 128; - - // list with sentinel - private static PlaySound freeList; - private static PlaySound playableList; - - private static PlaySound[] backbuffer = new PlaySound[MAX_PLAYSOUNDS]; - static { - for (int i = 0; i < backbuffer.length; i++) { - backbuffer[i] = new PlaySound(); - } - // init the sentinels - freeList = new PlaySound(); - playableList = new PlaySound(); - // reset the lists - reset(); - } - - // sound attributes - int type; - int entnum; - int entchannel; - int bufferId; - float volume; - float attenuation; - float[] origin = {0,0,0}; - - // begin time in ms - private long beginTime; - - // for linked list - private PlaySound prev, next; - - private PlaySound() { - prev = next = null; - this.clear(); - } - - private void clear() { - type = bufferId = entnum = entchannel = -1; - // volume = attenuation = beginTime = 0; - attenuation = beginTime = 0; - // Math3D.VectorClear(origin); - } - - static void reset() { - // init the sentinels - freeList.next = freeList.prev = freeList; - playableList.next = playableList.prev = playableList; - - // concat the the freeList - PlaySound ps; - for (int i = 0; i < backbuffer.length; i++) { - ps = backbuffer[i]; - ps.clear(); - ps.prev = freeList; - ps.next = freeList.next; - ps.prev.next = ps; - ps.next.prev = ps; - } - } - - static PlaySound nextPlayableSound() { - PlaySound ps = null; - while (true) { - ps = playableList.next; - if (ps == playableList || ps.beginTime > Globals.cl.time) - return null; - PlaySound.release(ps); - return ps; - } - } - - private static PlaySound get() { - PlaySound ps = freeList.next; - if (ps == freeList) - return null; - - ps.prev.next = ps.next; - ps.next.prev = ps.prev; - return ps; - } - - private static void add(PlaySound ps) { - - PlaySound sort = playableList.next; - - for (; sort != playableList && sort.beginTime < ps.beginTime; sort = sort.next); - ps.next = sort; - ps.prev = sort.prev; - ps.next.prev = ps; - ps.prev.next = ps; - } - - private static void release(PlaySound ps) { - ps.prev.next = ps.next; - ps.next.prev = ps.prev; - // add to free list - ps.next = freeList.next; - freeList.next.prev = ps; - ps.prev = freeList; - freeList.next = ps; - } - - static void allocate(float[] origin, int entnum, int entchannel, - int bufferId, float volume, float attenuation, float timeoffset) { - - PlaySound ps = PlaySound.get(); - - if (ps != null) { - // find the right sound type - if (entnum == Globals.cl.playernum + 1) { - ps.type = Channel.LISTENER; - } else if (origin != null) { - ps.type = Channel.FIXED; - Math3D.VectorCopy(origin, ps.origin); - } else { - ps.type = Channel.DYNAMIC; - } - ps.entnum = entnum; - ps.entchannel = entchannel; - ps.bufferId = bufferId; - ps.volume = volume; - ps.attenuation = attenuation; - ps.beginTime = Globals.cl.time + (long)(timeoffset * 1000); - PlaySound.add(ps); - } else { - System.err.println("PlaySounds out of Limit"); - } - } -} diff --git a/src/jake2/sys/LWJGLKBD.java b/src/jake2/sys/LWJGLKBD.java deleted file mode 100644 index 8826360..0000000 --- a/src/jake2/sys/LWJGLKBD.java +++ /dev/null @@ -1,214 +0,0 @@ -package jake2.sys; - -import jake2.Defines; -import jake2.Globals; -import jake2.client.Key; -import jake2.qcommon.Cbuf; - -import org.lwjgl.input.Keyboard; -import org.lwjgl.input.Mouse; -import org.lwjgl.opengl.Display; - -/** - * @author dsanders - */ -public class LWJGLKBD extends KBD { - - private char[] lwjglKeycodeMap = null; - private int pressed[] = null; - - public void Init() - { - try - { - if (!Keyboard.isCreated()) Keyboard.create(); - if (!Mouse.isCreated()) Mouse.create(); - - if (lwjglKeycodeMap == null) lwjglKeycodeMap = new char[256]; - if (pressed == null) pressed = new int[256]; - - lastRepeat = Timer.Milliseconds(); - } catch (Exception e) {;} - } - - public void Update() { - // get events - HandleEvents(); - } - - public void Close() { - Keyboard.destroy(); - Mouse.destroy(); - // free the memory for GC - lwjglKeycodeMap = null; - pressed = null; - } - - private void HandleEvents() - { - Keyboard.poll(); - - if (Display.isCloseRequested()) - { - Cbuf.ExecuteText(Defines.EXEC_APPEND, "quit"); - } - - while (Keyboard.next()) - { - int key = Keyboard.getEventKey(); - char ch = Keyboard.getEventCharacter(); - boolean down = Keyboard.getEventKeyState(); - - // fill the character translation table - // this is needed because the getEventCharacter() returns \0 if a key is released - // keycode is correct but the charachter value is not - if (down) { - lwjglKeycodeMap[key] = ch; - pressed[key] = Globals.sys_frame_time; - } else { - pressed[key] = 0; - } - - Do_Key_Event(XLateKey(key,ch), down); - } - - generateRepeats(); - - if (IN.mouse_active) - { - mx = Mouse.getDX() << 1; - my = -Mouse.getDY() << 1; - } - else - { - mx=0; - my=0; - } - - while (Mouse.next()) { - int button = Mouse.getEventButton(); - if (button >= 0) { - Do_Key_Event(Key.K_MOUSE1 + button, Mouse.getEventButtonState()); - } else { - button = Mouse.getEventDWheel(); - if (button > 0) { - Do_Key_Event(Key.K_MWHEELUP, true); - Do_Key_Event(Key.K_MWHEELUP, false); - } else if (button < 0) { - Do_Key_Event(Key.K_MWHEELDOWN, true); - Do_Key_Event(Key.K_MWHEELDOWN, false); - } - } - } - } - - private static int lastRepeat; - private void generateRepeats() { - int time = Globals.sys_frame_time; - if (time - lastRepeat > 50) { - for (int i = 0; i < pressed.length; i++) { - if (pressed[i] > 0 && time - pressed[i] > 500) - Do_Key_Event(XLateKey(i, lwjglKeycodeMap[i]), true); - } - lastRepeat = time; - } - } - - private int XLateKey(int code, int ch) - { - int key = 0; - - switch(code) - { -// 00626 case XK_KP_Page_Up: key = K_KP_PGUP; break; - case Keyboard.KEY_PRIOR: key = Key.K_PGUP; break; - -// 00629 case XK_KP_Page_Down: key = K_KP_PGDN; break; - case Keyboard.KEY_NEXT: key = Key.K_PGDN; break; - -// 00632 case XK_KP_Home: key = K_KP_HOME; break; - case Keyboard.KEY_HOME: key = Key.K_HOME; break; - -// 00635 case XK_KP_End: key = K_KP_END; break; - case Keyboard.KEY_END: key = Key.K_END; break; - - // case Keyboard.KEY_LEFT: key = Key.K_KP_LEFTARROW; break; - case Keyboard.KEY_LEFT: key = Key.K_LEFTARROW; break; - - // case Keyboard.KEY_RIGHT: key = Key.K_KP_RIGHTARROW; break; - case Keyboard.KEY_RIGHT: key = Key.K_RIGHTARROW; break; - - // case Keyboard.KEY_DOWN: key = Key.K_KP_DOWNARROW; break; - case Keyboard.KEY_DOWN: key = Key.K_DOWNARROW; break; - - // case Keyboard.KEY_UP: key = Key.K_KP_UPARROW; break; - case Keyboard.KEY_UP: key = Key.K_UPARROW; break; - - case Keyboard.KEY_ESCAPE: key = Key.K_ESCAPE; break; - - - case Keyboard.KEY_RETURN: key = Key.K_ENTER; break; -// 00652 case XK_KP_Enter: key = K_KP_ENTER; break; - - case Keyboard.KEY_TAB: key = Key.K_TAB; break; - - case Keyboard.KEY_F1: key = Key.K_F1; break; - case Keyboard.KEY_F2: key = Key.K_F2; break; - case Keyboard.KEY_F3: key = Key.K_F3; break; - case Keyboard.KEY_F4: key = Key.K_F4; break; - case Keyboard.KEY_F5: key = Key.K_F5; break; - case Keyboard.KEY_F6: key = Key.K_F6; break; - case Keyboard.KEY_F7: key = Key.K_F7; break; - case Keyboard.KEY_F8: key = Key.K_F8; break; - case Keyboard.KEY_F9: key = Key.K_F9; break; - case Keyboard.KEY_F10: key = Key.K_F10; break; - case Keyboard.KEY_F11: key = Key.K_F11; break; - case Keyboard.KEY_F12: key = Key.K_F12; break; - - case Keyboard.KEY_BACK: key = Key.K_BACKSPACE; break; - - case Keyboard.KEY_DELETE: key = Key.K_DEL; break; -// 00683 case XK_KP_Delete: key = K_KP_DEL; break; - - case Keyboard.KEY_PAUSE: key = Key.K_PAUSE; break; - - case Keyboard.KEY_RSHIFT: - case Keyboard.KEY_LSHIFT: key = Key.K_SHIFT; break; - - case Keyboard.KEY_RCONTROL: - case Keyboard.KEY_LCONTROL: key = Key.K_CTRL; break; - - case Keyboard.KEY_LMENU: - case Keyboard.KEY_RMENU: key = Key.K_ALT; break; - -// 00700 case XK_KP_Begin: key = K_KP_5; break; -// 00701 - case Keyboard.KEY_INSERT: key = Key.K_INS; break; - // toggle console for DE and US keyboards - case Keyboard.KEY_GRAVE: - case Keyboard.KEY_CIRCUMFLEX: key = '`'; break; - - default: - key = lwjglKeycodeMap[code]; - if (key >= 'A' && key <= 'Z') - key = key - 'A' + 'a'; - break; - } - if (key > 255) key = 0; - return key; - } - - public void Do_Key_Event(int key, boolean down) { - Key.Event(key, down, Timer.Milliseconds()); - } - - public void installGrabs() - { - Mouse.setGrabbed(true); - } - - public void uninstallGrabs() - { - Mouse.setGrabbed(false); - } -} |