mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-17 21:24:28 +01:00
2410 lines
128 KiB
Java
2410 lines
128 KiB
Java
/* 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_TEXTURE_COMPONENTS = 0x1003;
|
|
public static final int GL_LOGIC_OP = 0xbf1;
|
|
public static final int GL_T4F_C4F_N3F_V4F = 0x2a2d;
|
|
public static final int GL_T2F_C4F_N3F_V3F = 0x2a2c;
|
|
public static final int GL_T2F_N3F_V3F = 0x2a2b;
|
|
public static final int GL_T2F_C3F_V3F = 0x2a2a;
|
|
public static final int GL_T2F_C4UB_V3F = 0x2a29;
|
|
public static final int GL_T4F_V4F = 0x2a28;
|
|
public static final int GL_T2F_V3F = 0x2a27;
|
|
public static final int GL_C4F_N3F_V3F = 0x2a26;
|
|
public static final int GL_N3F_V3F = 0x2a25;
|
|
public static final int GL_C3F_V3F = 0x2a24;
|
|
public static final int GL_C4UB_V3F = 0x2a23;
|
|
public static final int GL_C4UB_V2F = 0x2a22;
|
|
public static final int GL_V3F = 0x2a21;
|
|
public static final int GL_V2F = 0x2a20;
|
|
public static final int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093;
|
|
public static final int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092;
|
|
public static final int GL_INDEX_ARRAY_POINTER = 0x8091;
|
|
public static final int GL_COLOR_ARRAY_POINTER = 0x8090;
|
|
public static final int GL_NORMAL_ARRAY_POINTER = 0x808f;
|
|
public static final int GL_VERTEX_ARRAY_POINTER = 0x808e;
|
|
public static final int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808c;
|
|
public static final int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808a;
|
|
public static final int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089;
|
|
public static final int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088;
|
|
public static final int GL_INDEX_ARRAY_STRIDE = 0x8086;
|
|
public static final int GL_INDEX_ARRAY_TYPE = 0x8085;
|
|
public static final int GL_COLOR_ARRAY_STRIDE = 0x8083;
|
|
public static final int GL_COLOR_ARRAY_TYPE = 0x8082;
|
|
public static final int GL_COLOR_ARRAY_SIZE = 0x8081;
|
|
public static final int GL_NORMAL_ARRAY_STRIDE = 0x807f;
|
|
public static final int GL_NORMAL_ARRAY_TYPE = 0x807e;
|
|
public static final int GL_VERTEX_ARRAY_STRIDE = 0x807c;
|
|
public static final int GL_VERTEX_ARRAY_TYPE = 0x807b;
|
|
public static final int GL_VERTEX_ARRAY_SIZE = 0x807a;
|
|
public static final int GL_EDGE_FLAG_ARRAY = 0x8079;
|
|
public static final int GL_TEXTURE_COORD_ARRAY = 0x8078;
|
|
public static final int GL_INDEX_ARRAY = 0x8077;
|
|
public static final int GL_COLOR_ARRAY = 0x8076;
|
|
public static final int GL_NORMAL_ARRAY = 0x8075;
|
|
public static final int GL_VERTEX_ARRAY = 0x8074;
|
|
public static final int GL_TEXTURE_BINDING_2D = 0x8069;
|
|
public static final int GL_TEXTURE_BINDING_1D = 0x8068;
|
|
public static final int GL_TEXTURE_RESIDENT = 0x8067;
|
|
public static final int GL_TEXTURE_PRIORITY = 0x8066;
|
|
public static final int GL_PROXY_TEXTURE_2D = 0x8064;
|
|
public static final int GL_PROXY_TEXTURE_1D = 0x8063;
|
|
public static final int GL_TEXTURE_INTENSITY_SIZE = 0x8061;
|
|
public static final int GL_TEXTURE_LUMINANCE_SIZE = 0x8060;
|
|
public static final int GL_TEXTURE_ALPHA_SIZE = 0x805f;
|
|
public static final int GL_TEXTURE_BLUE_SIZE = 0x805e;
|
|
public static final int GL_TEXTURE_GREEN_SIZE = 0x805d;
|
|
public static final int GL_TEXTURE_RED_SIZE = 0x805c;
|
|
public static final int GL_RGBA16 = 0x805b;
|
|
public static final int GL_RGBA12 = 0x805a;
|
|
public static final int GL_RGB10_A2 = 0x8059;
|
|
public static final int GL_RGBA8 = 0x8058;
|
|
public static final int GL_RGB5_A1 = 0x8057;
|
|
public static final int GL_RGBA4 = 0x8056;
|
|
public static final int GL_RGBA2 = 0x8055;
|
|
public static final int GL_RGB16 = 0x8054;
|
|
public static final int GL_RGB12 = 0x8053;
|
|
public static final int GL_RGB10 = 0x8052;
|
|
public static final int GL_RGB8 = 0x8051;
|
|
public static final int GL_RGB5 = 0x8050;
|
|
public static final int GL_RGB4 = 0x804f;
|
|
public static final int GL_R3_G3_B2 = 0x2a10;
|
|
public static final int GL_INTENSITY16 = 0x804d;
|
|
public static final int GL_INTENSITY12 = 0x804c;
|
|
public static final int GL_INTENSITY8 = 0x804b;
|
|
public static final int GL_INTENSITY4 = 0x804a;
|
|
public static final int GL_INTENSITY = 0x8049;
|
|
public static final int GL_LUMINANCE16_ALPHA16 = 0x8048;
|
|
public static final int GL_LUMINANCE12_ALPHA12 = 0x8047;
|
|
public static final int GL_LUMINANCE12_ALPHA4 = 0x8046;
|
|
public static final int GL_LUMINANCE8_ALPHA8 = 0x8045;
|
|
public static final int GL_LUMINANCE6_ALPHA2 = 0x8044;
|
|
public static final int GL_LUMINANCE4_ALPHA4 = 0x8043;
|
|
public static final int GL_LUMINANCE16 = 0x8042;
|
|
public static final int GL_LUMINANCE12 = 0x8041;
|
|
public static final int GL_LUMINANCE8 = 0x8040;
|
|
public static final int GL_LUMINANCE4 = 0x803f;
|
|
public static final int GL_ALPHA16 = 0x803e;
|
|
public static final int GL_ALPHA12 = 0x803d;
|
|
public static final int GL_ALPHA8 = 0x803c;
|
|
public static final int GL_ALPHA4 = 0x803b;
|
|
public static final int GL_POLYGON_OFFSET_FILL = 0x8037;
|
|
public static final int GL_POLYGON_OFFSET_LINE = 0x2a02;
|
|
public static final int GL_POLYGON_OFFSET_POINT = 0x2a01;
|
|
public static final int GL_POLYGON_OFFSET_UNITS = 0x2a00;
|
|
public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038;
|
|
public static final int GL_ALL_CLIENT_ATTRIB_BITS = 0xffffffff;
|
|
public static final int GL_CLIENT_VERTEX_ARRAY_BIT = 0x2;
|
|
public static final int GL_CLIENT_PIXEL_STORE_BIT = 0x1;
|
|
public static final int GL_REPEAT = 0x2901;
|
|
public static final int GL_CLAMP = 0x2900;
|
|
public static final int GL_TEXTURE_WRAP_T = 0x2803;
|
|
public static final int GL_TEXTURE_WRAP_S = 0x2802;
|
|
public static final int GL_TEXTURE_MIN_FILTER = 0x2801;
|
|
public static final int GL_TEXTURE_MAG_FILTER = 0x2800;
|
|
public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703;
|
|
public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702;
|
|
public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701;
|
|
public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700;
|
|
public static final int GL_LINEAR = 0x2601;
|
|
public static final int GL_NEAREST = 0x2600;
|
|
public static final int GL_EYE_PLANE = 0x2502;
|
|
public static final int GL_OBJECT_PLANE = 0x2501;
|
|
public static final int GL_TEXTURE_GEN_MODE = 0x2500;
|
|
public static final int GL_SPHERE_MAP = 0x2402;
|
|
public static final int GL_OBJECT_LINEAR = 0x2401;
|
|
public static final int GL_EYE_LINEAR = 0x2400;
|
|
public static final int GL_TEXTURE_ENV = 0x2300;
|
|
public static final int GL_TEXTURE_ENV_COLOR = 0x2201;
|
|
public static final int GL_TEXTURE_ENV_MODE = 0x2200;
|
|
public static final int GL_DECAL = 0x2101;
|
|
public static final int GL_MODULATE = 0x2100;
|
|
public static final int GL_Q = 0x2003;
|
|
public static final int GL_R = 0x2002;
|
|
public static final int GL_T = 0x2001;
|
|
public static final int GL_S = 0x2000;
|
|
public static final int GL_EXTENSIONS = 0x1f03;
|
|
public static final int GL_VERSION = 0x1f02;
|
|
public static final int GL_RENDERER = 0x1f01;
|
|
public static final int GL_VENDOR = 0x1f00;
|
|
public static final int GL_DECR = 0x1e03;
|
|
public static final int GL_INCR = 0x1e02;
|
|
public static final int GL_REPLACE = 0x1e01;
|
|
public static final int GL_KEEP = 0x1e00;
|
|
public static final int GL_SMOOTH = 0x1d01;
|
|
public static final int GL_FLAT = 0x1d00;
|
|
public static final int GL_SELECT = 0x1c02;
|
|
public static final int GL_FEEDBACK = 0x1c01;
|
|
public static final int GL_RENDER = 0x1c00;
|
|
public static final int GL_FILL = 0x1b02;
|
|
public static final int GL_LINE = 0x1b01;
|
|
public static final int GL_POINT = 0x1b00;
|
|
public static final int GL_BITMAP = 0x1a00;
|
|
public static final int GL_LUMINANCE_ALPHA = 0x190a;
|
|
public static final int GL_LUMINANCE = 0x1909;
|
|
public static final int GL_RGBA = 0x1908;
|
|
public static final int GL_RGB = 0x1907;
|
|
public static final int GL_ALPHA = 0x1906;
|
|
public static final int GL_BLUE = 0x1905;
|
|
public static final int GL_GREEN = 0x1904;
|
|
public static final int GL_RED = 0x1903;
|
|
public static final int GL_DEPTH_COMPONENT = 0x1902;
|
|
public static final int GL_STENCIL_INDEX = 0x1901;
|
|
public static final int GL_COLOR_INDEX = 0x1900;
|
|
public static final int GL_STENCIL = 0x1802;
|
|
public static final int GL_DEPTH = 0x1801;
|
|
public static final int GL_COLOR = 0x1800;
|
|
public static final int GL_TEXTURE = 0x1702;
|
|
public static final int GL_PROJECTION = 0x1701;
|
|
public static final int GL_MODELVIEW = 0x1700;
|
|
public static final int GL_COLOR_INDEXES = 0x1603;
|
|
public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602;
|
|
public static final int GL_SHININESS = 0x1601;
|
|
public static final int GL_EMISSION = 0x1600;
|
|
public static final int GL_SET = 0x150f;
|
|
public static final int GL_NAND = 0x150e;
|
|
public static final int GL_OR_INVERTED = 0x150d;
|
|
public static final int GL_COPY_INVERTED = 0x150c;
|
|
public static final int GL_OR_REVERSE = 0x150b;
|
|
public static final int GL_INVERT = 0x150a;
|
|
public static final int GL_EQUIV = 0x1509;
|
|
public static final int GL_NOR = 0x1508;
|
|
public static final int GL_OR = 0x1507;
|
|
public static final int GL_XOR = 0x1506;
|
|
public static final int GL_NOOP = 0x1505;
|
|
public static final int GL_AND_INVERTED = 0x1504;
|
|
public static final int GL_COPY = 0x1503;
|
|
public static final int GL_AND_REVERSE = 0x1502;
|
|
public static final int GL_AND = 0x1501;
|
|
public static final int GL_CLEAR = 0x1500;
|
|
public static final int GL_COMPILE_AND_EXECUTE = 0x1301;
|
|
public static final int GL_COMPILE = 0x1300;
|
|
public static final int GL_QUADRATIC_ATTENUATION = 0x1209;
|
|
public static final int GL_LINEAR_ATTENUATION = 0x1208;
|
|
public static final int GL_CONSTANT_ATTENUATION = 0x1207;
|
|
public static final int GL_SPOT_CUTOFF = 0x1206;
|
|
public static final int GL_SPOT_EXPONENT = 0x1205;
|
|
public static final int GL_SPOT_DIRECTION = 0x1204;
|
|
public static final int GL_POSITION = 0x1203;
|
|
public static final int GL_SPECULAR = 0x1202;
|
|
public static final int GL_DIFFUSE = 0x1201;
|
|
public static final int GL_AMBIENT = 0x1200;
|
|
public static final int GL_LIGHT7 = 0x4007;
|
|
public static final int GL_LIGHT6 = 0x4006;
|
|
public static final int GL_LIGHT5 = 0x4005;
|
|
public static final int GL_LIGHT4 = 0x4004;
|
|
public static final int GL_LIGHT3 = 0x4003;
|
|
public static final int GL_LIGHT2 = 0x4002;
|
|
public static final int GL_LIGHT1 = 0x4001;
|
|
public static final int GL_LIGHT0 = 0x4000;
|
|
public static final int GL_NICEST = 0x1102;
|
|
public static final int GL_FASTEST = 0x1101;
|
|
public static final int GL_DONT_CARE = 0x1100;
|
|
public static final int GL_TEXTURE_BORDER = 0x1005;
|
|
public static final int GL_TEXTURE_BORDER_COLOR = 0x1004;
|
|
public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003;
|
|
public static final int GL_TEXTURE_HEIGHT = 0x1001;
|
|
public static final int GL_TEXTURE_WIDTH = 0x1000;
|
|
public static final int GL_SELECTION_BUFFER_SIZE = 0xdf4;
|
|
public static final int GL_SELECTION_BUFFER_POINTER = 0xdf3;
|
|
public static final int GL_FEEDBACK_BUFFER_TYPE = 0xdf2;
|
|
public static final int GL_FEEDBACK_BUFFER_SIZE = 0xdf1;
|
|
public static final int GL_FEEDBACK_BUFFER_POINTER = 0xdf0;
|
|
public static final int GL_TEXTURE_2D = 0xde1;
|
|
public static final int GL_TEXTURE_1D = 0xde0;
|
|
public static final int GL_MAP2_GRID_SEGMENTS = 0xdd3;
|
|
public static final int GL_MAP2_GRID_DOMAIN = 0xdd2;
|
|
public static final int GL_MAP1_GRID_SEGMENTS = 0xdd1;
|
|
public static final int GL_MAP1_GRID_DOMAIN = 0xdd0;
|
|
public static final int GL_MAP2_VERTEX_4 = 0xdb8;
|
|
public static final int GL_MAP2_VERTEX_3 = 0xdb7;
|
|
public static final int GL_MAP2_TEXTURE_COORD_4 = 0xdb6;
|
|
public static final int GL_MAP2_TEXTURE_COORD_3 = 0xdb5;
|
|
public static final int GL_MAP2_TEXTURE_COORD_2 = 0xdb4;
|
|
public static final int GL_MAP2_TEXTURE_COORD_1 = 0xdb3;
|
|
public static final int GL_MAP2_NORMAL = 0xdb2;
|
|
public static final int GL_MAP2_INDEX = 0xdb1;
|
|
public static final int GL_MAP2_COLOR_4 = 0xdb0;
|
|
public static final int GL_MAP1_VERTEX_4 = 0xd98;
|
|
public static final int GL_MAP1_VERTEX_3 = 0xd97;
|
|
public static final int GL_MAP1_TEXTURE_COORD_4 = 0xd96;
|
|
public static final int GL_MAP1_TEXTURE_COORD_3 = 0xd95;
|
|
public static final int GL_MAP1_TEXTURE_COORD_2 = 0xd94;
|
|
public static final int GL_MAP1_TEXTURE_COORD_1 = 0xd93;
|
|
public static final int GL_MAP1_NORMAL = 0xd92;
|
|
public static final int GL_MAP1_INDEX = 0xd91;
|
|
public static final int GL_MAP1_COLOR_4 = 0xd90;
|
|
public static final int GL_AUTO_NORMAL = 0xd80;
|
|
public static final int GL_NAME_STACK_DEPTH = 0xd70;
|
|
public static final int GL_ACCUM_ALPHA_BITS = 0xd5b;
|
|
public static final int GL_ACCUM_BLUE_BITS = 0xd5a;
|
|
public static final int GL_ACCUM_GREEN_BITS = 0xd59;
|
|
public static final int GL_ACCUM_RED_BITS = 0xd58;
|
|
public static final int GL_STENCIL_BITS = 0xd57;
|
|
public static final int GL_DEPTH_BITS = 0xd56;
|
|
public static final int GL_ALPHA_BITS = 0xd55;
|
|
public static final int GL_BLUE_BITS = 0xd54;
|
|
public static final int GL_GREEN_BITS = 0xd53;
|
|
public static final int GL_RED_BITS = 0xd52;
|
|
public static final int GL_INDEX_BITS = 0xd51;
|
|
public static final int GL_SUBPIXEL_BITS = 0xd50;
|
|
public static final int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0xd3b;
|
|
public static final int GL_MAX_VIEWPORT_DIMS = 0xd3a;
|
|
public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0xd39;
|
|
public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0xd38;
|
|
public static final int GL_MAX_NAME_STACK_DEPTH = 0xd37;
|
|
public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0xd36;
|
|
public static final int GL_MAX_ATTRIB_STACK_DEPTH = 0xd35;
|
|
public static final int GL_MAX_PIXEL_MAP_TABLE = 0xd34;
|
|
public static final int GL_MAX_TEXTURE_SIZE = 0xd33;
|
|
public static final int GL_MAX_CLIP_PLANES = 0xd32;
|
|
public static final int GL_MAX_LIGHTS = 0xd31;
|
|
public static final int GL_MAX_EVAL_ORDER = 0xd30;
|
|
public static final int GL_DEPTH_BIAS = 0xd1f;
|
|
public static final int GL_DEPTH_SCALE = 0xd1e;
|
|
public static final int GL_ALPHA_BIAS = 0xd1d;
|
|
public static final int GL_ALPHA_SCALE = 0xd1c;
|
|
public static final int GL_BLUE_BIAS = 0xd1b;
|
|
public static final int GL_BLUE_SCALE = 0xd1a;
|
|
public static final int GL_GREEN_BIAS = 0xd19;
|
|
public static final int GL_GREEN_SCALE = 0xd18;
|
|
public static final int GL_ZOOM_Y = 0xd17;
|
|
public static final int GL_ZOOM_X = 0xd16;
|
|
public static final int GL_RED_BIAS = 0xd15;
|
|
public static final int GL_RED_SCALE = 0xd14;
|
|
public static final int GL_INDEX_OFFSET = 0xd13;
|
|
public static final int GL_INDEX_SHIFT = 0xd12;
|
|
public static final int GL_MAP_STENCIL = 0xd11;
|
|
public static final int GL_MAP_COLOR = 0xd10;
|
|
public static final int GL_PACK_ALIGNMENT = 0xd05;
|
|
public static final int GL_PACK_SKIP_PIXELS = 0xd04;
|
|
public static final int GL_PACK_SKIP_ROWS = 0xd03;
|
|
public static final int GL_PACK_ROW_LENGTH = 0xd02;
|
|
public static final int GL_PACK_LSB_FIRST = 0xd01;
|
|
public static final int GL_PACK_SWAP_BYTES = 0xd00;
|
|
public static final int GL_UNPACK_ALIGNMENT = 0xcf5;
|
|
public static final int GL_UNPACK_SKIP_PIXELS = 0xcf4;
|
|
public static final int GL_UNPACK_SKIP_ROWS = 0xcf3;
|
|
public static final int GL_UNPACK_ROW_LENGTH = 0xcf2;
|
|
public static final int GL_UNPACK_LSB_FIRST = 0xcf1;
|
|
public static final int GL_UNPACK_SWAP_BYTES = 0xcf0;
|
|
public static final int GL_PIXEL_MAP_A_TO_A_SIZE = 0xcb9;
|
|
public static final int GL_PIXEL_MAP_B_TO_B_SIZE = 0xcb8;
|
|
public static final int GL_PIXEL_MAP_G_TO_G_SIZE = 0xcb7;
|
|
public static final int GL_PIXEL_MAP_R_TO_R_SIZE = 0xcb6;
|
|
public static final int GL_PIXEL_MAP_I_TO_A_SIZE = 0xcb5;
|
|
public static final int GL_PIXEL_MAP_I_TO_B_SIZE = 0xcb4;
|
|
public static final int GL_PIXEL_MAP_I_TO_G_SIZE = 0xcb3;
|
|
public static final int GL_PIXEL_MAP_I_TO_R_SIZE = 0xcb2;
|
|
public static final int GL_PIXEL_MAP_S_TO_S_SIZE = 0xcb1;
|
|
public static final int GL_PIXEL_MAP_I_TO_I_SIZE = 0xcb0;
|
|
public static final int GL_PIXEL_MAP_A_TO_A = 0xc79;
|
|
public static final int GL_PIXEL_MAP_B_TO_B = 0xc78;
|
|
public static final int GL_PIXEL_MAP_G_TO_G = 0xc77;
|
|
public static final int GL_PIXEL_MAP_R_TO_R = 0xc76;
|
|
public static final int GL_PIXEL_MAP_I_TO_A = 0xc75;
|
|
public static final int GL_PIXEL_MAP_I_TO_B = 0xc74;
|
|
public static final int GL_PIXEL_MAP_I_TO_G = 0xc73;
|
|
public static final int GL_PIXEL_MAP_I_TO_R = 0xc72;
|
|
public static final int GL_PIXEL_MAP_S_TO_S = 0xc71;
|
|
public static final int GL_PIXEL_MAP_I_TO_I = 0xc70;
|
|
public static final int GL_TEXTURE_GEN_Q = 0xc63;
|
|
public static final int GL_TEXTURE_GEN_R = 0xc62;
|
|
public static final int GL_TEXTURE_GEN_T = 0xc61;
|
|
public static final int GL_TEXTURE_GEN_S = 0xc60;
|
|
public static final int GL_FOG_HINT = 0xc54;
|
|
public static final int GL_POLYGON_SMOOTH_HINT = 0xc53;
|
|
public static final int GL_LINE_SMOOTH_HINT = 0xc52;
|
|
public static final int GL_POINT_SMOOTH_HINT = 0xc51;
|
|
public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0xc50;
|
|
public static final int GL_RENDER_MODE = 0xc40;
|
|
public static final int GL_STEREO = 0xc33;
|
|
public static final int GL_DOUBLEBUFFER = 0xc32;
|
|
public static final int GL_RGBA_MODE = 0xc31;
|
|
public static final int GL_INDEX_MODE = 0xc30;
|
|
public static final int GL_COLOR_WRITEMASK = 0xc23;
|
|
public static final int GL_COLOR_CLEAR_VALUE = 0xc22;
|
|
public static final int GL_INDEX_WRITEMASK = 0xc21;
|
|
public static final int GL_INDEX_CLEAR_VALUE = 0xc20;
|
|
public static final int GL_SCISSOR_TEST = 0xc11;
|
|
public static final int GL_SCISSOR_BOX = 0xc10;
|
|
public static final int GL_READ_BUFFER = 0xc02;
|
|
public static final int GL_DRAW_BUFFER = 0xc01;
|
|
public static final int GL_AUX_BUFFERS = 0xc00;
|
|
public static final int GL_COLOR_LOGIC_OP = 0xbf2;
|
|
public static final int GL_INDEX_LOGIC_OP = 0xbf1;
|
|
public static final int GL_LOGIC_OP_MODE = 0xbf0;
|
|
public static final int GL_BLEND = 0xbe2;
|
|
public static final int GL_BLEND_SRC = 0xbe1;
|
|
public static final int GL_BLEND_DST = 0xbe0;
|
|
public static final int GL_DITHER = 0xbd0;
|
|
public static final int GL_ALPHA_TEST_REF = 0xbc2;
|
|
public static final int GL_ALPHA_TEST_FUNC = 0xbc1;
|
|
public static final int GL_ALPHA_TEST = 0xbc0;
|
|
public static final int GL_CLIENT_ATTRIB_STACK_DEPTH = 0xbb1;
|
|
public static final int GL_ATTRIB_STACK_DEPTH = 0xbb0;
|
|
public static final int GL_TEXTURE_MATRIX = 0xba8;
|
|
public static final int GL_PROJECTION_MATRIX = 0xba7;
|
|
public static final int GL_MODELVIEW_MATRIX = 0xba6;
|
|
public static final int GL_TEXTURE_STACK_DEPTH = 0xba5;
|
|
public static final int GL_PROJECTION_STACK_DEPTH = 0xba4;
|
|
public static final int GL_MODELVIEW_STACK_DEPTH = 0xba3;
|
|
public static final int GL_VIEWPORT = 0xba2;
|
|
public static final int GL_NORMALIZE = 0xba1;
|
|
public static final int GL_MATRIX_MODE = 0xba0;
|
|
public static final int GL_STENCIL_WRITEMASK = 0xb98;
|
|
public static final int GL_STENCIL_REF = 0xb97;
|
|
public static final int GL_STENCIL_PASS_DEPTH_PASS = 0xb96;
|
|
public static final int GL_STENCIL_PASS_DEPTH_FAIL = 0xb95;
|
|
public static final int GL_STENCIL_FAIL = 0xb94;
|
|
public static final int GL_STENCIL_VALUE_MASK = 0xb93;
|
|
public static final int GL_STENCIL_FUNC = 0xb92;
|
|
public static final int GL_STENCIL_CLEAR_VALUE = 0xb91;
|
|
public static final int GL_STENCIL_TEST = 0xb90;
|
|
public static final int GL_ACCUM_CLEAR_VALUE = 0xb80;
|
|
public static final int GL_DEPTH_FUNC = 0xb74;
|
|
public static final int GL_DEPTH_CLEAR_VALUE = 0xb73;
|
|
public static final int GL_DEPTH_WRITEMASK = 0xb72;
|
|
public static final int GL_DEPTH_TEST = 0xb71;
|
|
public static final int GL_DEPTH_RANGE = 0xb70;
|
|
public static final int GL_FOG_COLOR = 0xb66;
|
|
public static final int GL_FOG_MODE = 0xb65;
|
|
public static final int GL_FOG_END = 0xb64;
|
|
public static final int GL_FOG_START = 0xb63;
|
|
public static final int GL_FOG_DENSITY = 0xb62;
|
|
public static final int GL_FOG_INDEX = 0xb61;
|
|
public static final int GL_FOG = 0xb60;
|
|
public static final int GL_COLOR_MATERIAL = 0xb57;
|
|
public static final int GL_COLOR_MATERIAL_PARAMETER = 0xb56;
|
|
public static final int GL_COLOR_MATERIAL_FACE = 0xb55;
|
|
public static final int GL_SHADE_MODEL = 0xb54;
|
|
public static final int GL_LIGHT_MODEL_AMBIENT = 0xb53;
|
|
public static final int GL_LIGHT_MODEL_TWO_SIDE = 0xb52;
|
|
public static final int GL_LIGHT_MODEL_LOCAL_VIEWER = 0xb51;
|
|
public static final int GL_LIGHTING = 0xb50;
|
|
public static final int GL_FRONT_FACE = 0xb46;
|
|
public static final int GL_CULL_FACE_MODE = 0xb45;
|
|
public static final int GL_CULL_FACE = 0xb44;
|
|
public static final int GL_EDGE_FLAG = 0xb43;
|
|
public static final int GL_POLYGON_STIPPLE = 0xb42;
|
|
public static final int GL_POLYGON_SMOOTH = 0xb41;
|
|
public static final int GL_POLYGON_MODE = 0xb40;
|
|
public static final int GL_LIST_INDEX = 0xb33;
|
|
public static final int GL_LIST_BASE = 0xb32;
|
|
public static final int GL_MAX_LIST_NESTING = 0xb31;
|
|
public static final int GL_LIST_MODE = 0xb30;
|
|
public static final int GL_LINE_STIPPLE_REPEAT = 0xb26;
|
|
public static final int GL_LINE_STIPPLE_PATTERN = 0xb25;
|
|
public static final int GL_LINE_STIPPLE = 0xb24;
|
|
public static final int GL_LINE_WIDTH_GRANULARITY = 0xb23;
|
|
public static final int GL_LINE_WIDTH_RANGE = 0xb22;
|
|
public static final int GL_LINE_WIDTH = 0xb21;
|
|
public static final int GL_LINE_SMOOTH = 0xb20;
|
|
public static final int GL_POINT_SIZE_GRANULARITY = 0xb13;
|
|
public static final int GL_POINT_SIZE_RANGE = 0xb12;
|
|
public static final int GL_POINT_SIZE = 0xb11;
|
|
public static final int GL_POINT_SMOOTH = 0xb10;
|
|
public static final int GL_CURRENT_RASTER_DISTANCE = 0xb09;
|
|
public static final int GL_CURRENT_RASTER_POSITION_VALID = 0xb08;
|
|
public static final int GL_CURRENT_RASTER_POSITION = 0xb07;
|
|
public static final int GL_CURRENT_RASTER_TEXTURE_COORDS = 0xb06;
|
|
public static final int GL_CURRENT_RASTER_INDEX = 0xb05;
|
|
public static final int GL_CURRENT_RASTER_COLOR = 0xb04;
|
|
public static final int GL_CURRENT_TEXTURE_COORDS = 0xb03;
|
|
public static final int GL_CURRENT_NORMAL = 0xb02;
|
|
public static final int GL_CURRENT_INDEX = 0xb01;
|
|
public static final int GL_CURRENT_COLOR = 0xb00;
|
|
public static final int GL_DOMAIN = 0xa02;
|
|
public static final int GL_ORDER = 0xa01;
|
|
public static final int GL_COEFF = 0xa00;
|
|
public static final int GL_CCW = 0x901;
|
|
public static final int GL_CW = 0x900;
|
|
public static final int GL_EXP2 = 0x801;
|
|
public static final int GL_EXP = 0x800;
|
|
public static final int GL_LINE_RESET_TOKEN = 0x707;
|
|
public static final int GL_COPY_PIXEL_TOKEN = 0x706;
|
|
public static final int GL_DRAW_PIXEL_TOKEN = 0x705;
|
|
public static final int GL_BITMAP_TOKEN = 0x704;
|
|
public static final int GL_POLYGON_TOKEN = 0x703;
|
|
public static final int GL_LINE_TOKEN = 0x702;
|
|
public static final int GL_POINT_TOKEN = 0x701;
|
|
public static final int GL_PASS_THROUGH_TOKEN = 0x700;
|
|
public static final int GL_4D_COLOR_TEXTURE = 0x604;
|
|
public static final int GL_3D_COLOR_TEXTURE = 0x603;
|
|
public static final int GL_3D_COLOR = 0x602;
|
|
public static final int GL_3D = 0x601;
|
|
public static final int GL_2D = 0x600;
|
|
public static final int GL_OUT_OF_MEMORY = 0x505;
|
|
public static final int GL_STACK_UNDERFLOW = 0x504;
|
|
public static final int GL_STACK_OVERFLOW = 0x503;
|
|
public static final int GL_INVALID_OPERATION = 0x502;
|
|
public static final int GL_INVALID_VALUE = 0x501;
|
|
public static final int GL_INVALID_ENUM = 0x500;
|
|
public static final int GL_NO_ERROR = 0x0;
|
|
public static final int GL_AUX3 = 0x40c;
|
|
public static final int GL_AUX2 = 0x40b;
|
|
public static final int GL_AUX1 = 0x40a;
|
|
public static final int GL_AUX0 = 0x409;
|
|
public static final int GL_FRONT_AND_BACK = 0x408;
|
|
public static final int GL_RIGHT = 0x407;
|
|
public static final int GL_LEFT = 0x406;
|
|
public static final int GL_BACK = 0x405;
|
|
public static final int GL_FRONT = 0x404;
|
|
public static final int GL_BACK_RIGHT = 0x403;
|
|
public static final int GL_BACK_LEFT = 0x402;
|
|
public static final int GL_FRONT_RIGHT = 0x401;
|
|
public static final int GL_FRONT_LEFT = 0x400;
|
|
public static final int GL_NONE = 0x0;
|
|
public static final int GL_DOUBLE = 0x140a;
|
|
public static final int GL_4_BYTES = 0x1409;
|
|
public static final int GL_3_BYTES = 0x1408;
|
|
public static final int GL_2_BYTES = 0x1407;
|
|
public static final int GL_FLOAT = 0x1406;
|
|
public static final int GL_UNSIGNED_INT = 0x1405;
|
|
public static final int GL_INT = 0x1404;
|
|
public static final int GL_UNSIGNED_SHORT = 0x1403;
|
|
public static final int GL_SHORT = 0x1402;
|
|
public static final int GL_UNSIGNED_BYTE = 0x1401;
|
|
public static final int GL_BYTE = 0x1400;
|
|
public static final int GL_CLIP_PLANE5 = 0x3005;
|
|
public static final int GL_CLIP_PLANE4 = 0x3004;
|
|
public static final int GL_CLIP_PLANE3 = 0x3003;
|
|
public static final int GL_CLIP_PLANE2 = 0x3002;
|
|
public static final int GL_CLIP_PLANE1 = 0x3001;
|
|
public static final int GL_CLIP_PLANE0 = 0x3000;
|
|
public static final int GL_FALSE = 0x0;
|
|
public static final int GL_TRUE = 0x1;
|
|
public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004;
|
|
public static final int GL_CONSTANT_ALPHA = 0x8003;
|
|
public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002;
|
|
public static final int GL_CONSTANT_COLOR = 0x8001;
|
|
public static final int GL_SRC_ALPHA_SATURATE = 0x308;
|
|
public static final int GL_ONE_MINUS_DST_COLOR = 0x307;
|
|
public static final int GL_DST_COLOR = 0x306;
|
|
public static final int GL_ONE_MINUS_DST_ALPHA = 0x305;
|
|
public static final int GL_DST_ALPHA = 0x304;
|
|
public static final int GL_ONE_MINUS_SRC_ALPHA = 0x303;
|
|
public static final int GL_SRC_ALPHA = 0x302;
|
|
public static final int GL_ONE_MINUS_SRC_COLOR = 0x301;
|
|
public static final int GL_SRC_COLOR = 0x300;
|
|
public static final int GL_ONE = 0x1;
|
|
public static final int GL_ZERO = 0x0;
|
|
public static final int GL_POLYGON = 0x9;
|
|
public static final int GL_QUAD_STRIP = 0x8;
|
|
public static final int GL_QUADS = 0x7;
|
|
public static final int GL_TRIANGLE_FAN = 0x6;
|
|
public static final int GL_TRIANGLE_STRIP = 0x5;
|
|
public static final int GL_TRIANGLES = 0x4;
|
|
public static final int GL_LINE_STRIP = 0x3;
|
|
public static final int GL_LINE_LOOP = 0x2;
|
|
public static final int GL_LINES = 0x1;
|
|
public static final int GL_POINTS = 0x0;
|
|
public static final int GL_ALL_ATTRIB_BITS = 0xfffff;
|
|
public static final int GL_SCISSOR_BIT = 0x80000;
|
|
public static final int GL_TEXTURE_BIT = 0x40000;
|
|
public static final int GL_LIST_BIT = 0x20000;
|
|
public static final int GL_EVAL_BIT = 0x10000;
|
|
public static final int GL_HINT_BIT = 0x8000;
|
|
public static final int GL_COLOR_BUFFER_BIT = 0x4000;
|
|
public static final int GL_ENABLE_BIT = 0x2000;
|
|
public static final int GL_TRANSFORM_BIT = 0x1000;
|
|
public static final int GL_VIEWPORT_BIT = 0x800;
|
|
public static final int GL_STENCIL_BUFFER_BIT = 0x400;
|
|
public static final int GL_ACCUM_BUFFER_BIT = 0x200;
|
|
public static final int GL_DEPTH_BUFFER_BIT = 0x100;
|
|
public static final int GL_FOG_BIT = 0x80;
|
|
public static final int GL_LIGHTING_BIT = 0x40;
|
|
public static final int GL_PIXEL_MODE_BIT = 0x20;
|
|
public static final int GL_POLYGON_STIPPLE_BIT = 0x10;
|
|
public static final int GL_POLYGON_BIT = 0x8;
|
|
public static final int GL_LINE_BIT = 0x4;
|
|
public static final int GL_POINT_BIT = 0x2;
|
|
public static final int GL_CURRENT_BIT = 0x1;
|
|
public static final int GL_ALWAYS = 0x207;
|
|
public static final int GL_GEQUAL = 0x206;
|
|
public static final int GL_NOTEQUAL = 0x205;
|
|
public static final int GL_GREATER = 0x204;
|
|
public static final int GL_LEQUAL = 0x203;
|
|
public static final int GL_EQUAL = 0x202;
|
|
public static final int GL_LESS = 0x201;
|
|
public static final int GL_NEVER = 0x200;
|
|
public static final int GL_ADD = 0x104;
|
|
public static final int GL_MULT = 0x103;
|
|
public static final int GL_RETURN = 0x102;
|
|
public static final int GL_LOAD = 0x101;
|
|
public static final int GL_ACCUM = 0x100;
|
|
|
|
private GL11() {
|
|
}
|
|
|
|
static native void initNativeStubs() throws LWJGLException;
|
|
|
|
public static void glViewport(int x, int y, int width, int height) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glViewport_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglViewport(x, y, width, height, function_pointer);
|
|
}
|
|
private static native void nglViewport(int x, int y, int width, int height, long function_pointer);
|
|
|
|
public static void glStencilMask(int mask) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glStencilMask_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglStencilMask(mask, function_pointer);
|
|
}
|
|
private static native void nglStencilMask(int mask, long function_pointer);
|
|
|
|
public static void glStencilOp(int fail, int zfail, int zpass) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glStencilOp_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglStencilOp(fail, zfail, zpass, function_pointer);
|
|
}
|
|
private static native void nglStencilOp(int fail, int zfail, int zpass, long function_pointer);
|
|
|
|
public static void glTexCoord4f(float s, float t, float r, float q) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexCoord4f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexCoord3f(float s, float t, float r) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexCoord3f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexCoord3f(s, t, r, function_pointer);
|
|
}
|
|
private static native void nglTexCoord3f(float s, float t, float r, long function_pointer);
|
|
|
|
public static void glTexCoord2f(float s, float t) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexCoord2f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexCoord2f(s, t, function_pointer);
|
|
}
|
|
private static native void nglTexCoord2f(float s, float t, long function_pointer);
|
|
|
|
public static void glTexCoord1f(float s) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexCoord1f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexCoord1f(s, function_pointer);
|
|
}
|
|
private static native void nglTexCoord1f(float s, long function_pointer);
|
|
|
|
public static void glTexCoordPointer(int size, int stride, FloatBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexCoordPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pointer_buffer_offset) {
|
|
GLBufferChecks.ensureArrayVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexCoordPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexCoordPointerBO(size, type, stride, pointer_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglTexCoordPointerBO(int size, int type, int stride, int pointer_buffer_offset, long function_pointer);
|
|
|
|
public static void glTexEnv(int target, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexEnviv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexEnv(int target, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexEnvfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexEnvi(int target, int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexEnvi_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexEnvi(target, pname, param, function_pointer);
|
|
}
|
|
private static native void nglTexEnvi(int target, int pname, int param, long function_pointer);
|
|
|
|
public static void glTexEnvf(int target, int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexEnvf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexEnvf(target, pname, param, function_pointer);
|
|
}
|
|
private static native void nglTexEnvf(int target, int pname, float param, long function_pointer);
|
|
|
|
public static void glTexGen(int coord, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexGeniv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexGeni(int coord, int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexGeni_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexGenfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexGenf(int coord, int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexGenf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexGenf(coord, pname, param, function_pointer);
|
|
}
|
|
private static native void nglTexGenf(int coord, int pname, float param, long function_pointer);
|
|
|
|
public static void glTexParameter(int target, int pname, IntBuffer param) {
|
|
BufferChecks.checkBuffer(param, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexParameteriv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexParameter(int target, int pname, FloatBuffer param) {
|
|
BufferChecks.checkBuffer(param, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexParameterfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glTexParameteri(int target, int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexParameteri_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexParameteri(target, pname, param, function_pointer);
|
|
}
|
|
private static native void nglTexParameteri(int target, int pname, int param, long function_pointer);
|
|
|
|
public static void glTexParameterf(int target, int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexParameterf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexParameterf(target, pname, param, function_pointer);
|
|
}
|
|
private static native void nglTexParameterf(int target, int pname, float param, long function_pointer);
|
|
|
|
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, FloatBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ByteBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ShortBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 1, function_pointer);
|
|
}
|
|
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pixels_buffer_offset, long function_pointer);
|
|
|
|
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, FloatBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ByteBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ShortBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 1, function_pointer);
|
|
}
|
|
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int 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, FloatBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ByteBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ShortBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 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) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pixels_buffer_offset, long function_pointer);
|
|
|
|
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ByteBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ShortBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
|
}
|
|
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
if (pixels != null)
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pixels_buffer_offset, long function_pointer);
|
|
|
|
public static void glTranslatef(float x, float y, float z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glTranslatef_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglTranslatef(x, y, z, function_pointer);
|
|
}
|
|
private static native void nglTranslatef(float x, float y, float z, long function_pointer);
|
|
|
|
public static void glVertex4i(int x, int y, int z, int w) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertex4i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glVertex4f(float x, float y, float z, float w) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertex4f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glVertex3i(int x, int y, int z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertex3i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglVertex3i(x, y, z, function_pointer);
|
|
}
|
|
private static native void nglVertex3i(int x, int y, int z, long function_pointer);
|
|
|
|
public static void glVertex3f(float x, float y, float z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertex3f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglVertex3f(x, y, z, function_pointer);
|
|
}
|
|
private static native void nglVertex3f(float x, float y, float z, long function_pointer);
|
|
|
|
public static void glVertex2i(int x, int y) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertex2i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglVertex2i(x, y, function_pointer);
|
|
}
|
|
private static native void nglVertex2i(int x, int y, long function_pointer);
|
|
|
|
public static void glVertex2f(float x, float y) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertex2f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglVertex2f(x, y, function_pointer);
|
|
}
|
|
private static native void nglVertex2f(float x, float y, long function_pointer);
|
|
|
|
public static void glVertexPointer(int size, int stride, FloatBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglVertexPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
|
|
}
|
|
public static void glVertexPointer(int size, int stride, IntBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pointer_buffer_offset) {
|
|
GLBufferChecks.ensureArrayVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglVertexPointerBO(size, type, stride, pointer_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglVertexPointerBO(int size, int type, int stride, int pointer_buffer_offset, long function_pointer);
|
|
|
|
public static void glStencilFunc(int func, int ref, int mask) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glStencilFunc_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglStencilFunc(func, ref, mask, function_pointer);
|
|
}
|
|
private static native void nglStencilFunc(int func, int ref, int mask, long function_pointer);
|
|
|
|
public static void glPopAttrib() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPopAttrib_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPopAttrib(function_pointer);
|
|
}
|
|
private static native void nglPopAttrib(long function_pointer);
|
|
|
|
public static void glPushAttrib(int mask) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPushAttrib_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPushAttrib(mask, function_pointer);
|
|
}
|
|
private static native void nglPushAttrib(int mask, long function_pointer);
|
|
|
|
public static void glPopClientAttrib() {
|
|
BufferObjectTracker.popAttrib();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPopClientAttrib_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPopClientAttrib(function_pointer);
|
|
}
|
|
private static native void nglPopClientAttrib(long function_pointer);
|
|
|
|
public static void glPushClientAttrib(int mask) {
|
|
BufferObjectTracker.pushAttrib(mask);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPushClientAttrib_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPushClientAttrib(mask, function_pointer);
|
|
}
|
|
private static native void nglPushClientAttrib(int mask, long function_pointer);
|
|
|
|
public static void glPopMatrix() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPopMatrix_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPopMatrix(function_pointer);
|
|
}
|
|
private static native void nglPopMatrix(long function_pointer);
|
|
|
|
public static void glPushMatrix() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPushMatrix_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPushMatrix(function_pointer);
|
|
}
|
|
private static native void nglPushMatrix(long function_pointer);
|
|
|
|
public static void glPopName() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPopName_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPopName(function_pointer);
|
|
}
|
|
private static native void nglPopName(long function_pointer);
|
|
|
|
public static void glPushName(int name) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPushName_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPushName(name, function_pointer);
|
|
}
|
|
private static native void nglPushName(int name, long function_pointer);
|
|
|
|
public static void glRasterPos4i(int x, int y, int z, int w) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRasterPos4i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glRasterPos4f(float x, float y, float z, float w) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRasterPos4f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glRasterPos3i(int x, int y, int z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRasterPos3i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglRasterPos3i(x, y, z, function_pointer);
|
|
}
|
|
private static native void nglRasterPos3i(int x, int y, int z, long function_pointer);
|
|
|
|
public static void glRasterPos3f(float x, float y, float z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRasterPos3f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglRasterPos3f(x, y, z, function_pointer);
|
|
}
|
|
private static native void nglRasterPos3f(float x, float y, float z, long function_pointer);
|
|
|
|
public static void glRasterPos2i(int x, int y) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRasterPos2i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglRasterPos2i(x, y, function_pointer);
|
|
}
|
|
private static native void nglRasterPos2i(int x, int y, long function_pointer);
|
|
|
|
public static void glRasterPos2f(float x, float y) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRasterPos2f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglRasterPos2f(x, y, function_pointer);
|
|
}
|
|
private static native void nglRasterPos2f(float x, float y, long function_pointer);
|
|
|
|
public static void glReadBuffer(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glReadBuffer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglReadBuffer(mode, function_pointer);
|
|
}
|
|
private static native void nglReadBuffer(int mode, long function_pointer);
|
|
|
|
public static void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, ShortBuffer pixels) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 1, function_pointer);
|
|
}
|
|
public static void glReadPixels(int x, int y, int width, int height, int format, int type, IntBuffer pixels) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2, 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensurePackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pixels_buffer_offset, long function_pointer);
|
|
|
|
public static void glRecti(int x1, int y1, int x2, int y2) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRecti_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glRectf(float x1, float y1, float x2, float y2) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRectf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 int glRenderMode(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRenderMode_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
int __result = nglRenderMode(mode, function_pointer);
|
|
return __result;
|
|
}
|
|
private static native int nglRenderMode(int mode, long function_pointer);
|
|
|
|
public static void glRotatef(float angle, float x, float y, float z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glRotatef_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 void glScalef(float x, float y, float z) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glScalef_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglScalef(x, y, z, function_pointer);
|
|
}
|
|
private static native void nglScalef(float x, float y, float z, long function_pointer);
|
|
|
|
public static void glScissor(int x, int y, int width, int height) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glScissor_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glSelectBuffer(IntBuffer buffer) {
|
|
BufferChecks.checkDirect(buffer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glSelectBuffer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glShadeModel(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glShadeModel_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglShadeModel(mode, function_pointer);
|
|
}
|
|
private static native void nglShadeModel(int mode, long function_pointer);
|
|
|
|
public static void glMultMatrix(FloatBuffer m) {
|
|
BufferChecks.checkBuffer(m, 16);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMultMatrixf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglMultMatrixf(m, m.position(), function_pointer);
|
|
}
|
|
private static native void nglMultMatrixf(FloatBuffer m, int m_position, long function_pointer);
|
|
|
|
public static void glEndList() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEndList_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEndList(function_pointer);
|
|
}
|
|
private static native void nglEndList(long function_pointer);
|
|
|
|
public static void glNewList(int list, int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNewList_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNewList(list, mode, function_pointer);
|
|
}
|
|
private static native void nglNewList(int list, int mode, long function_pointer);
|
|
|
|
public static void glNormal3i(int nx, int ny, int nz) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormal3i_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNormal3i(nx, ny, nz, function_pointer);
|
|
}
|
|
private static native void nglNormal3i(int nx, int ny, int nz, long function_pointer);
|
|
|
|
public static void glNormal3f(float nx, float ny, float nz) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormal3f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNormal3f(nx, ny, nz, function_pointer);
|
|
}
|
|
private static native void nglNormal3f(float nx, float ny, float nz, long function_pointer);
|
|
|
|
public static void glNormal3b(byte nx, byte ny, byte nz) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormal3b_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNormal3b(nx, ny, nz, function_pointer);
|
|
}
|
|
private static native void nglNormal3b(byte nx, byte ny, byte nz, long function_pointer);
|
|
|
|
public static void glNormalPointer(int stride, FloatBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNormalPointer(GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
|
|
}
|
|
public static void glNormalPointer(int stride, ByteBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNormalPointer(GL11.GL_BYTE, stride, pointer, pointer.position(), function_pointer);
|
|
}
|
|
public static void glNormalPointer(int stride, IntBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pointer_buffer_offset) {
|
|
GLBufferChecks.ensureArrayVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglNormalPointerBO(type, stride, pointer_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglNormalPointerBO(int type, int stride, int pointer_buffer_offset, long function_pointer);
|
|
|
|
public static void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glOrtho_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glPassThrough(float token) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPassThrough_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPassThrough(token, function_pointer);
|
|
}
|
|
private static native void nglPassThrough(float token, long function_pointer);
|
|
|
|
public static void glPixelMapu(int map, ShortBuffer values) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkDirect(values);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelMapusv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int values_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelMapusv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelMapusvBO(map, mapsize, values_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglPixelMapusvBO(int map, int mapsize, int values_buffer_offset, long function_pointer);
|
|
|
|
public static void glPixelMapu(int map, IntBuffer values) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkDirect(values);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelMapuiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int values_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelMapuiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelMapuivBO(map, mapsize, values_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglPixelMapuivBO(int map, int mapsize, int values_buffer_offset, long function_pointer);
|
|
|
|
public static void glPixelMap(int map, FloatBuffer values) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkDirect(values);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelMapfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int values_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelMapfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelMapfvBO(map, mapsize, values_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglPixelMapfvBO(int map, int mapsize, int values_buffer_offset, long function_pointer);
|
|
|
|
public static void glPixelStorei(int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelStorei_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelStorei(pname, param, function_pointer);
|
|
}
|
|
private static native void nglPixelStorei(int pname, int param, long function_pointer);
|
|
|
|
public static void glPixelStoref(int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelStoref_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelStoref(pname, param, function_pointer);
|
|
}
|
|
private static native void nglPixelStoref(int pname, float param, long function_pointer);
|
|
|
|
public static void glPixelTransferi(int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelTransferi_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelTransferi(pname, param, function_pointer);
|
|
}
|
|
private static native void nglPixelTransferi(int pname, int param, long function_pointer);
|
|
|
|
public static void glPixelTransferf(int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelTransferf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelTransferf(pname, param, function_pointer);
|
|
}
|
|
private static native void nglPixelTransferf(int pname, float param, long function_pointer);
|
|
|
|
public static void glPixelZoom(float xfactor, float yfactor) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPixelZoom_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPixelZoom(xfactor, yfactor, function_pointer);
|
|
}
|
|
private static native void nglPixelZoom(float xfactor, float yfactor, long function_pointer);
|
|
|
|
public static void glPointSize(float size) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPointSize_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPointSize(size, function_pointer);
|
|
}
|
|
private static native void nglPointSize(float size, long function_pointer);
|
|
|
|
public static void glPolygonMode(int face, int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPolygonMode_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPolygonMode(face, mode, function_pointer);
|
|
}
|
|
private static native void nglPolygonMode(int face, int mode, long function_pointer);
|
|
|
|
public static void glPolygonOffset(float factor, float units) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPolygonOffset_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPolygonOffset(factor, units, function_pointer);
|
|
}
|
|
private static native void nglPolygonOffset(float factor, float units, long function_pointer);
|
|
|
|
public static void glPolygonStipple(ByteBuffer mask) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(mask, 1024);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPolygonStipple_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPolygonStipple(mask, mask.position(), function_pointer);
|
|
}
|
|
private static native void nglPolygonStipple(ByteBuffer mask, int mask_position, long function_pointer);
|
|
public static void glPolygonStipple(int mask_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glPolygonStipple_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglPolygonStippleBO(mask_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglPolygonStippleBO(int mask_buffer_offset, long function_pointer);
|
|
|
|
public static void glMatrixMode(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMatrixMode_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglMatrixMode(mode, function_pointer);
|
|
}
|
|
private static native void nglMatrixMode(int mode, long function_pointer);
|
|
|
|
public static boolean glIsTexture(int texture) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glIsTexture_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
boolean __result = nglIsTexture(texture, function_pointer);
|
|
return __result;
|
|
}
|
|
private static native boolean nglIsTexture(int texture, long function_pointer);
|
|
|
|
public static void glLight(int light, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 void glLight(int light, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glLighti(int light, int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLighti_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLighti(light, pname, param, function_pointer);
|
|
}
|
|
private static native void nglLighti(int light, int pname, int param, long function_pointer);
|
|
|
|
public static void glLightf(int light, int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLightf(light, pname, param, function_pointer);
|
|
}
|
|
private static native void nglLightf(int light, int pname, float param, long function_pointer);
|
|
|
|
public static void glLightModel(int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightModeliv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glLightModel(int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightModelfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glLightModeli(int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightModeli_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLightModeli(pname, param, function_pointer);
|
|
}
|
|
private static native void nglLightModeli(int pname, int param, long function_pointer);
|
|
|
|
public static void glLightModelf(int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLightModelf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLightModelf(pname, param, function_pointer);
|
|
}
|
|
private static native void nglLightModelf(int pname, float param, long function_pointer);
|
|
|
|
public static void glLineStipple(int factor, short pattern) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLineStipple_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLineStipple(factor, pattern, function_pointer);
|
|
}
|
|
private static native void nglLineStipple(int factor, short pattern, long function_pointer);
|
|
|
|
public static void glLineWidth(float width) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLineWidth_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLineWidth(width, function_pointer);
|
|
}
|
|
private static native void nglLineWidth(float width, long function_pointer);
|
|
|
|
public static void glListBase(int base) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glListBase_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglListBase(base, function_pointer);
|
|
}
|
|
private static native void nglListBase(int base, long function_pointer);
|
|
|
|
public static void glLoadIdentity() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLoadIdentity_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLoadIdentity(function_pointer);
|
|
}
|
|
private static native void nglLoadIdentity(long function_pointer);
|
|
|
|
public static void glLoadMatrix(FloatBuffer m) {
|
|
BufferChecks.checkBuffer(m, 16);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLoadMatrixf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLoadMatrixf(m, m.position(), function_pointer);
|
|
}
|
|
private static native void nglLoadMatrixf(FloatBuffer m, int m_position, long function_pointer);
|
|
|
|
public static void glLoadName(int name) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLoadName_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLoadName(name, function_pointer);
|
|
}
|
|
private static native void nglLoadName(int name, long function_pointer);
|
|
|
|
public static void glLogicOp(int opcode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glLogicOp_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglLogicOp(opcode, function_pointer);
|
|
}
|
|
private static native void nglLogicOp(int opcode, long function_pointer);
|
|
|
|
public static void glMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points) {
|
|
BufferChecks.checkDirect(points);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMap1f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) {
|
|
BufferChecks.checkDirect(points);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMap2f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMapGrid2f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glMapGrid1f(int un, float u1, float u2) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMapGrid1f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglMapGrid1f(un, u1, u2, function_pointer);
|
|
}
|
|
private static native void nglMapGrid1f(int un, float u1, float u2, long function_pointer);
|
|
|
|
public static void glMaterial(int face, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMaterialiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glMaterial(int face, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMaterialfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glMateriali(int face, int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMateriali_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglMateriali(face, pname, param, function_pointer);
|
|
}
|
|
private static native void nglMateriali(int face, int pname, int param, long function_pointer);
|
|
|
|
public static void glMaterialf(int face, int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glMaterialf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglMaterialf(face, pname, param, function_pointer);
|
|
}
|
|
private static native void nglMaterialf(int face, int pname, float param, long function_pointer);
|
|
|
|
public static boolean glIsList(int list) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glIsList_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
boolean __result = nglIsList(list, function_pointer);
|
|
return __result;
|
|
}
|
|
private static native boolean nglIsList(int list, long function_pointer);
|
|
|
|
public static void glGetPolygonStipple(ByteBuffer mask) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(mask, 1024);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPolygonStipple_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetPolygonStipple(mask, mask.position(), function_pointer);
|
|
}
|
|
private static native void nglGetPolygonStipple(ByteBuffer mask, int mask_position, long function_pointer);
|
|
public static void glGetPolygonStipple(int mask_buffer_offset) {
|
|
GLBufferChecks.ensurePackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPolygonStipple_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetPolygonStippleBO(mask_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglGetPolygonStippleBO(int mask_buffer_offset, long function_pointer);
|
|
|
|
public static java.lang.String glGetString(int name) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetString_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetTexEnv(int coord, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexEnvfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 void glGetTexEnv(int coord, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexEnviv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetTexGen(int coord, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexGenfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexGeniv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, 1, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetTexImage(target, level, format, type, pixels, pixels.position(), function_pointer);
|
|
}
|
|
public static void glGetTexImage(int target, int level, int format, int type, ShortBuffer pixels) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, 1, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetTexImage(target, level, format, type, pixels, pixels.position() << 1, function_pointer);
|
|
}
|
|
public static void glGetTexImage(int target, int level, int format, int type, IntBuffer pixels) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, 1, 1, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2, 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensurePackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetTexImageBO(target, level, format, type, pixels_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglGetTexImageBO(int target, int level, int format, int type, int pixels_buffer_offset, long function_pointer);
|
|
|
|
public static void glGetTexLevelParameter(int target, int level, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexLevelParameteriv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetTexLevelParameter(int target, int level, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexLevelParameterfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetTexParameter(int target, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexParameteriv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetTexParameter(int target, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetTexParameterfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glHint(int target, int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glHint_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglHint(target, mode, function_pointer);
|
|
}
|
|
private static native void nglHint(int target, int mode, long function_pointer);
|
|
|
|
public static void glInitNames() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glInitNames_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglInitNames(function_pointer);
|
|
}
|
|
private static native void nglInitNames(long function_pointer);
|
|
|
|
public static void glInterleavedArrays(int format, int stride, FloatBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer);
|
|
}
|
|
public static void glInterleavedArrays(int format, int stride, ByteBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglInterleavedArrays(format, stride, pointer, pointer.position(), function_pointer);
|
|
}
|
|
public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglInterleavedArrays(format, stride, pointer, pointer.position() << 1, function_pointer);
|
|
}
|
|
public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, 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, int pointer_buffer_offset) {
|
|
GLBufferChecks.ensureArrayVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglInterleavedArraysBO(format, stride, pointer_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglInterleavedArraysBO(int format, int stride, int pointer_buffer_offset, long function_pointer);
|
|
|
|
public static boolean glIsEnabled(int cap) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glIsEnabled_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
boolean __result = nglIsEnabled(cap, function_pointer);
|
|
return __result;
|
|
}
|
|
private static native boolean nglIsEnabled(int cap, long function_pointer);
|
|
|
|
public static java.nio.ByteBuffer glGetPointer(int pname, int result_size) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPointerv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
java.nio.ByteBuffer __result = nglGetPointerv(pname, result_size, function_pointer);
|
|
return __result;
|
|
}
|
|
private static native java.nio.ByteBuffer nglGetPointerv(int pname, int result_size, long function_pointer);
|
|
|
|
public static void glFinish() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFinish_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglFinish(function_pointer);
|
|
}
|
|
private static native void nglFinish(long function_pointer);
|
|
|
|
public static void glFlush() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFlush_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglFlush(function_pointer);
|
|
}
|
|
private static native void nglFlush(long function_pointer);
|
|
|
|
public static void glFog(int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFogiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glFog(int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFogfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glFogi(int pname, int param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFogi_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglFogi(pname, param, function_pointer);
|
|
}
|
|
private static native void nglFogi(int pname, int param, long function_pointer);
|
|
|
|
public static void glFogf(int pname, float param) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFogf_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglFogf(pname, param, function_pointer);
|
|
}
|
|
private static native void nglFogf(int pname, float param, long function_pointer);
|
|
|
|
public static void glFrontFace(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFrontFace_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglFrontFace(mode, function_pointer);
|
|
}
|
|
private static native void nglFrontFace(int mode, long function_pointer);
|
|
|
|
public static void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFrustum_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 int glGenLists(int range) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGenLists_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
int __result = nglGenLists(range, function_pointer);
|
|
return __result;
|
|
}
|
|
private static native int nglGenLists(int range, long function_pointer);
|
|
|
|
public static void glGenTextures(IntBuffer textures) {
|
|
BufferChecks.checkDirect(textures);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGenTextures_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 void glGetInteger(int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 16);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetIntegerv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetFloat(int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 16);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetFloatv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetDouble(int pname, DoubleBuffer params) {
|
|
BufferChecks.checkBuffer(params, 16);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetDoublev_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetBoolean(int pname, ByteBuffer params) {
|
|
BufferChecks.checkBuffer(params, 16);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetBooleanv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetClipPlane(int plane, DoubleBuffer equation) {
|
|
BufferChecks.checkBuffer(equation, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetClipPlane_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 int glGetError() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetError_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
int __result = nglGetError(function_pointer);
|
|
return __result;
|
|
}
|
|
private static native int nglGetError(long function_pointer);
|
|
|
|
public static void glGetLight(int light, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetLightiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 void glGetLight(int light, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetLightfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetMap(int target, int query, IntBuffer v) {
|
|
BufferChecks.checkBuffer(v, 256);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetMapiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetMap(int target, int query, FloatBuffer v) {
|
|
BufferChecks.checkBuffer(v, 256);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetMapfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetMaterial(int face, int pname, IntBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetMaterialiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetMaterial(int face, int pname, FloatBuffer params) {
|
|
BufferChecks.checkBuffer(params, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetMaterialfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glGetPixelMapu(int map, ShortBuffer values) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(values, 256);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapusv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int values_buffer_offset) {
|
|
GLBufferChecks.ensurePackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapusv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetPixelMapusvBO(map, values_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglGetPixelMapusvBO(int map, int values_buffer_offset, long function_pointer);
|
|
|
|
public static void glGetPixelMapu(int map, IntBuffer values) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(values, 256);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapuiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int values_buffer_offset) {
|
|
GLBufferChecks.ensurePackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapuiv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetPixelMapuivBO(map, values_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglGetPixelMapuivBO(int map, int values_buffer_offset, long function_pointer);
|
|
|
|
public static void glGetPixelMap(int map, FloatBuffer values) {
|
|
GLBufferChecks.ensurePackPBOdisabled();
|
|
BufferChecks.checkBuffer(values, 256);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int values_buffer_offset) {
|
|
GLBufferChecks.ensurePackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapfv_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglGetPixelMapfvBO(map, values_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglGetPixelMapfvBO(int map, int values_buffer_offset, long function_pointer);
|
|
|
|
public static void glFeedbackBuffer(int type, FloatBuffer buffer) {
|
|
BufferChecks.checkDirect(buffer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glFeedbackBuffer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glDepthFunc(int func) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDepthFunc_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDepthFunc(func, function_pointer);
|
|
}
|
|
private static native void nglDepthFunc(int func, long function_pointer);
|
|
|
|
public static void glDepthMask(boolean flag) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDepthMask_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDepthMask(flag, function_pointer);
|
|
}
|
|
private static native void nglDepthMask(boolean flag, long function_pointer);
|
|
|
|
public static void glDepthRange(double zNear, double zFar) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDepthRange_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDepthRange(zNear, zFar, function_pointer);
|
|
}
|
|
private static native void nglDepthRange(double zNear, double zFar, long function_pointer);
|
|
|
|
public static void glDrawArrays(int mode, int first, int count) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawArrays_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawArrays(mode, first, count, function_pointer);
|
|
}
|
|
private static native void nglDrawArrays(int mode, int first, int count, long function_pointer);
|
|
|
|
public static void glDrawBuffer(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawBuffer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawBuffer(mode, function_pointer);
|
|
}
|
|
private static native void nglDrawBuffer(int mode, long function_pointer);
|
|
|
|
public static void glDrawElements(int mode, ShortBuffer indices) {
|
|
GLBufferChecks.ensureElementVBOdisabled();
|
|
BufferChecks.checkDirect(indices);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
|
|
}
|
|
public static void glDrawElements(int mode, IntBuffer indices) {
|
|
GLBufferChecks.ensureElementVBOdisabled();
|
|
BufferChecks.checkDirect(indices);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
|
}
|
|
public static void glDrawElements(int mode, ByteBuffer indices) {
|
|
GLBufferChecks.ensureElementVBOdisabled();
|
|
BufferChecks.checkDirect(indices);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), 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, int indices_buffer_offset) {
|
|
GLBufferChecks.ensureElementVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawElementsBO(mode, count, type, indices_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglDrawElementsBO(int mode, int count, int type, int indices_buffer_offset, long function_pointer);
|
|
|
|
public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawPixels(width, height, format, type, pixels, pixels.position(), function_pointer);
|
|
}
|
|
public static void glDrawPixels(int width, int height, int format, int type, ShortBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawPixels(width, height, format, type, pixels, pixels.position() << 1, function_pointer);
|
|
}
|
|
public static void glDrawPixels(int width, int height, int format, int type, IntBuffer pixels) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawPixels(width, height, format, type, pixels, pixels.position() << 2, 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, int pixels_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDrawPixelsBO(width, height, format, type, pixels_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglDrawPixelsBO(int width, int height, int format, int type, int pixels_buffer_offset, long function_pointer);
|
|
|
|
public static void glEdgeFlag(boolean flag) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEdgeFlag_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEdgeFlag(flag, function_pointer);
|
|
}
|
|
private static native void nglEdgeFlag(boolean flag, long function_pointer);
|
|
|
|
public static void glEdgeFlagPointer(int stride, ByteBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEdgeFlagPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pointer_buffer_offset) {
|
|
GLBufferChecks.ensureArrayVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEdgeFlagPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEdgeFlagPointerBO(stride, pointer_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglEdgeFlagPointerBO(int stride, int pointer_buffer_offset, long function_pointer);
|
|
|
|
public static void glDisable(int cap) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDisable_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDisable(cap, function_pointer);
|
|
}
|
|
private static native void nglDisable(int cap, long function_pointer);
|
|
|
|
public static void glEnable(int cap) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEnable_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEnable(cap, function_pointer);
|
|
}
|
|
private static native void nglEnable(int cap, long function_pointer);
|
|
|
|
public static void glDisableClientState(int cap) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDisableClientState_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDisableClientState(cap, function_pointer);
|
|
}
|
|
private static native void nglDisableClientState(int cap, long function_pointer);
|
|
|
|
public static void glEnableClientState(int cap) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEnableClientState_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEnableClientState(cap, function_pointer);
|
|
}
|
|
private static native void nglEnableClientState(int cap, long function_pointer);
|
|
|
|
public static void glEvalCoord2f(float u, float v) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEvalCoord2f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEvalCoord2f(u, v, function_pointer);
|
|
}
|
|
private static native void nglEvalCoord2f(float u, float v, long function_pointer);
|
|
|
|
public static void glEvalCoord1f(float u) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEvalCoord1f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEvalCoord1f(u, function_pointer);
|
|
}
|
|
private static native void nglEvalCoord1f(float u, long function_pointer);
|
|
|
|
public static void glEvalMesh2(int mode, int i1, int i2, int j1, int j2) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEvalMesh2_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glEvalMesh1(int mode, int i1, int i2) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEvalMesh1_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEvalMesh1(mode, i1, i2, function_pointer);
|
|
}
|
|
private static native void nglEvalMesh1(int mode, int i1, int i2, long function_pointer);
|
|
|
|
public static void glEvalPoint2(int i, int j) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEvalPoint2_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEvalPoint2(i, j, function_pointer);
|
|
}
|
|
private static native void nglEvalPoint2(int i, int j, long function_pointer);
|
|
|
|
public static void glEvalPoint1(int i) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEvalPoint1_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEvalPoint1(i, function_pointer);
|
|
}
|
|
private static native void nglEvalPoint1(int i, long function_pointer);
|
|
|
|
public static void glClearIndex(float c) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClearIndex_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglClearIndex(c, function_pointer);
|
|
}
|
|
private static native void nglClearIndex(float c, long function_pointer);
|
|
|
|
public static void glClearStencil(int s) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClearStencil_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglClearStencil(s, function_pointer);
|
|
}
|
|
private static native void nglClearStencil(int s, long function_pointer);
|
|
|
|
public static void glClipPlane(int plane, DoubleBuffer equation) {
|
|
BufferChecks.checkBuffer(equation, 4);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClipPlane_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glColor4ub(byte red, byte green, byte blue, byte alpha) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColor4ub_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glColor4f(float red, float green, float blue, float alpha) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColor4f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glColor4b(byte red, byte green, byte blue, byte alpha) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColor4b_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glColor3ub(byte red, byte green, byte blue) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColor3ub_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglColor3ub(red, green, blue, function_pointer);
|
|
}
|
|
private static native void nglColor3ub(byte red, byte green, byte blue, long function_pointer);
|
|
|
|
public static void glColor3f(float red, float green, float blue) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColor3f_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglColor3f(red, green, blue, function_pointer);
|
|
}
|
|
private static native void nglColor3f(float red, float green, float blue, long function_pointer);
|
|
|
|
public static void glColor3b(byte red, byte green, byte blue) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColor3b_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglColor3b(red, green, blue, function_pointer);
|
|
}
|
|
private static native void nglColor3b(byte red, byte green, byte blue, long function_pointer);
|
|
|
|
public static void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColorMask_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glColorMaterial(int face, int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColorMaterial_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglColorMaterial(face, mode, function_pointer);
|
|
}
|
|
private static native void nglColorMaterial(int face, int mode, long function_pointer);
|
|
|
|
public static void glColorPointer(int size, int stride, FloatBuffer pointer) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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) {
|
|
GLBufferChecks.ensureArrayVBOdisabled();
|
|
BufferChecks.checkDirect(pointer);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int pointer_buffer_offset) {
|
|
GLBufferChecks.ensureArrayVBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglColorPointerBO(size, type, stride, pointer_buffer_offset, function_pointer);
|
|
}
|
|
private static native void nglColorPointerBO(int size, int type, int stride, int pointer_buffer_offset, long function_pointer);
|
|
|
|
public static void glCopyPixels(int x, int y, int width, int height, int type) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCopyPixels_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCopyTexImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCopyTexImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCopyTexSubImage1D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCopyTexSubImage2D_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glCullFace(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCullFace_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglCullFace(mode, function_pointer);
|
|
}
|
|
private static native void nglCullFace(int mode, long function_pointer);
|
|
|
|
public static void glDeleteTextures(IntBuffer textures) {
|
|
BufferChecks.checkDirect(textures);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDeleteTextures_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glDeleteLists(int list, int range) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glDeleteLists_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglDeleteLists(list, range, function_pointer);
|
|
}
|
|
private static native void nglDeleteLists(int list, int range, long function_pointer);
|
|
|
|
public static void glClearDepth(double depth) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClearDepth_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglClearDepth(depth, function_pointer);
|
|
}
|
|
private static native void nglClearDepth(double depth, long function_pointer);
|
|
|
|
public static void glArrayElement(int i) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glArrayElement_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglArrayElement(i, function_pointer);
|
|
}
|
|
private static native void nglArrayElement(int i, long function_pointer);
|
|
|
|
public static void glEnd() {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glEnd_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglEnd(function_pointer);
|
|
}
|
|
private static native void nglEnd(long function_pointer);
|
|
|
|
public static void glBegin(int mode) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glBegin_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglBegin(mode, function_pointer);
|
|
}
|
|
private static native void nglBegin(int mode, long function_pointer);
|
|
|
|
public static void glBindTexture(int target, int texture) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glBindTexture_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglBindTexture(target, texture, function_pointer);
|
|
}
|
|
private static native void nglBindTexture(int target, int texture, long function_pointer);
|
|
|
|
public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap) {
|
|
GLBufferChecks.ensureUnpackPBOdisabled();
|
|
BufferChecks.checkBuffer(bitmap, (((width + 7)/8)*height));
|
|
long function_pointer = GLContext.getCapabilities().GL11_glBitmap_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int bitmap_buffer_offset) {
|
|
GLBufferChecks.ensureUnpackPBOenabled();
|
|
long function_pointer = GLContext.getCapabilities().GL11_glBitmap_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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, int bitmap_buffer_offset, long function_pointer);
|
|
|
|
public static void glBlendFunc(int sfactor, int dfactor) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glBlendFunc_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglBlendFunc(sfactor, dfactor, function_pointer);
|
|
}
|
|
private static native void nglBlendFunc(int sfactor, int dfactor, long function_pointer);
|
|
|
|
public static void glCallList(int list) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCallList_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglCallList(list, function_pointer);
|
|
}
|
|
private static native void nglCallList(int list, long function_pointer);
|
|
|
|
public static void glCallLists(ShortBuffer lists) {
|
|
BufferChecks.checkDirect(lists);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_SHORT, lists, lists.position() << 1, function_pointer);
|
|
}
|
|
public static void glCallLists(IntBuffer lists) {
|
|
BufferChecks.checkDirect(lists);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_INT, lists, lists.position() << 2, function_pointer);
|
|
}
|
|
public static void glCallLists(ByteBuffer lists) {
|
|
BufferChecks.checkDirect(lists);
|
|
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_BYTE, lists, lists.position(), function_pointer);
|
|
}
|
|
private static native void nglCallLists(int n, int type, Buffer lists, int lists_position, long function_pointer);
|
|
|
|
public static void glClear(int mask) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClear_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglClear(mask, function_pointer);
|
|
}
|
|
private static native void nglClear(int mask, long function_pointer);
|
|
|
|
public static void glClearAccum(float red, float green, float blue, float alpha) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClearAccum_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glClearColor(float red, float green, float blue, float alpha) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glClearColor_pointer;
|
|
BufferChecks.checkFunctionAddress(function_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 glAlphaFunc(int func, float ref) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glAlphaFunc_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglAlphaFunc(func, ref, function_pointer);
|
|
}
|
|
private static native void nglAlphaFunc(int func, float ref, long function_pointer);
|
|
|
|
public static void glAccum(int op, float value) {
|
|
long function_pointer = GLContext.getCapabilities().GL11_glAccum_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
nglAccum(op, value, function_pointer);
|
|
}
|
|
private static native void nglAccum(int op, float value, long function_pointer);
|
|
}
|