lwjgl-2.9.3/ 0000755 0001750 0001750 00000000000 12702226521 010763 5 ustar apo apo lwjgl-2.9.3/src/ 0000755 0001750 0001750 00000000000 12405331076 011554 5 ustar apo apo lwjgl-2.9.3/src/templates/ 0000755 0001750 0001750 00000000000 12052003020 013531 5 ustar apo apo lwjgl-2.9.3/src/templates/org/ 0000755 0001750 0001750 00000000000 12052003020 014320 5 ustar apo apo lwjgl-2.9.3/src/templates/org/lwjgl/ 0000755 0001750 0001750 00000000000 12052003020 015437 5 ustar apo apo lwjgl-2.9.3/src/templates/org/lwjgl/opencl/ 0000755 0001750 0001750 00000000000 12702226520 016735 5 ustar apo apo lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_gl_msaa_sharing.java 0000644 0001750 0001750 00000003530 12702226520 023423 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.Extension;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
@Extension(postfix = "KHR", className = "KHRGLMsaaSharing")
public interface KHR_gl_msaa_sharing {
/** cl_gl_texture_info */
int CL_GL_NUM_SAMPLES = 0x2012;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/NV_device_attribute_query.java 0000644 0001750 0001750 00000004070 12702226520 024753 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface NV_device_attribute_query {
/** Accepted as the <param_name> parameter of clGetDeviceInfo. */
int CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV = 0x4000,
CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV = 0x4001,
CL_DEVICE_REGISTERS_PER_BLOCK_NV = 0x4002,
CL_DEVICE_WARP_SIZE_NV = 0x4003,
CL_DEVICE_GPU_OVERLAP_NV = 0x4004,
CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV = 0x4005,
CL_DEVICE_INTEGRATED_MEMORY_NV = 0x4006;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_select_fprounding_mode.java 0000644 0001750 0001750 00000003273 12702226520 025027 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_select_fprounding_mode {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/APPLE_SetMemObjectDestructor.java 0000644 0001750 0001750 00000005217 12702226520 025126 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.Code;
import org.lwjgl.util.generator.Constant;
import org.lwjgl.util.generator.Extension;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.CLPlatformExtension;
import org.lwjgl.util.generator.opencl.cl_int;
@CLPlatformExtension
@CLDeviceExtension
@Extension(postfix = "APPLE", nativeName = "cl_APPLE_SetMemObjectDestructor")
public interface APPLE_SetMemObjectDestructor {
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj,
@PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/CL12.java 0000644 0001750 0001750 00000057445 12702226520 020260 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
/** The core OpenCL 1.1 API */
public interface CL12 {
/** Error Codes */
int CL_COMPILE_PROGRAM_FAILURE = -15,
CL_LINKER_NOT_AVAILABLE = -16,
CL_LINK_PROGRAM_FAILURE = -17,
CL_DEVICE_PARTITION_FAILED = -18,
CL_KERNEL_ARG_INFO_NOT_AVAILABLE = -19,
CL_INVALID_IMAGE_DESCRIPTOR = -65,
CL_INVALID_COMPILER_OPTIONS = -66,
CL_INVALID_LINKER_OPTIONS = -67,
CL_INVALID_DEVICE_PARTITION_COUNT = -68;
/** OpenCL Version */
int CL_VERSION_1_2 = 1;
/** cl_bool */
int CL_BLOCKING = CL10.CL_TRUE,
CL_NON_BLOCKING = CL10.CL_FALSE;
/** cl_device_type - bitfield */
int CL_DEVICE_TYPE_CUSTOM = (1 << 4);
/* cl_device_info */
int CL_DEVICE_DOUBLE_FP_CONFIG = 0x1032,
CL_DEVICE_LINKER_AVAILABLE = 0x103E,
CL_DEVICE_BUILT_IN_KERNELS = 0x103F,
CL_DEVICE_IMAGE_MAX_BUFFER_SIZE = 0x1040,
CL_DEVICE_IMAGE_MAX_ARRAY_SIZE = 0x1041,
CL_DEVICE_PARENT_DEVICE = 0x1042,
CL_DEVICE_PARTITION_MAX_SUB_DEVICES = 0x1043,
CL_DEVICE_PARTITION_PROPERTIES = 0x1044,
CL_DEVICE_PARTITION_AFFINITY_DOMAIN = 0x1045,
CL_DEVICE_PARTITION_TYPE = 0x1046,
CL_DEVICE_REFERENCE_COUNT = 0x1047,
CL_DEVICE_PREFERRED_INTEROP_USER_SYNC = 0x1048,
CL_DEVICE_PRINTF_BUFFER_SIZE = 0x1049;
/* cl_device_fp_config - bitfield */
int CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT = (1 << 7);
/* cl_context_properties */
int CL_CONTEXT_INTEROP_USER_SYNC = 0x1085;
/* cl_device_partition_property */
int CL_DEVICE_PARTITION_EQUALLY = 0x1086,
CL_DEVICE_PARTITION_BY_COUNTS = 0x1087,
CL_DEVICE_PARTITION_BY_COUNTS_LIST_END = 0x0,
CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN = 0x1088;
/* cl_device_affinity_domain */
int CL_DEVICE_AFFINITY_DOMAIN_NUMA = (1 << 0),
CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE = (1 << 1),
CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE = (1 << 2),
CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE = (1 << 3),
CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE = (1 << 4),
CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE = (1 << 5);
/* cl_mem_flags - bitfield */
int CL_MEM_HOST_WRITE_ONLY = (1 << 7),
CL_MEM_HOST_READ_ONLY = (1 << 8),
CL_MEM_HOST_NO_ACCESS = (1 << 9);
/* cl_mem_migration_flags - bitfield */
int CL_MIGRATE_MEM_OBJECT_HOST = (1 << 0),
CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED = (1 << 1);
/* cl_mem_object_type */
int CL_MEM_OBJECT_IMAGE2D_ARRAY = 0x10F3,
CL_MEM_OBJECT_IMAGE1D = 0x10F4,
CL_MEM_OBJECT_IMAGE1D_ARRAY = 0x10F5,
CL_MEM_OBJECT_IMAGE1D_BUFFER = 0x10F6;
/* cl_image_info */
int CL_IMAGE_ARRAY_SIZE = 0x1117,
CL_IMAGE_BUFFER = 0x1118,
CL_IMAGE_NUM_MIP_LEVELS = 0x1119,
CL_IMAGE_NUM_SAMPLES = 0x111A;
/* cl_map_flags - bitfield */
int CL_MAP_WRITE_INVALIDATE_REGION = (1 << 2);
/* cl_program_info */
int CL_PROGRAM_NUM_KERNELS = 0x1167,
CL_PROGRAM_KERNEL_NAMES = 0x1168;
/* cl_program_build_info */
int CL_PROGRAM_BINARY_TYPE = 0x1184;
/* cl_program_binary_type */
int CL_PROGRAM_BINARY_TYPE_NONE = 0x0,
CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT = 0x1,
CL_PROGRAM_BINARY_TYPE_LIBRARY = 0x2,
CL_PROGRAM_BINARY_TYPE_EXECUTABLE = 0x4;
/* cl_kernel_info */
int CL_KERNEL_ATTRIBUTES = 0x1195;
/* cl_kernel_arg_info */
int CL_KERNEL_ARG_ADDRESS_QUALIFIER = 0x1196,
CL_KERNEL_ARG_ACCESS_QUALIFIER = 0x1197,
CL_KERNEL_ARG_TYPE_NAME = 0x1198,
CL_KERNEL_ARG_TYPE_QUALIFIER = 0x1199,
CL_KERNEL_ARG_NAME = 0x119A;
/* cl_kernel_arg_address_qualifier */
int CL_KERNEL_ARG_ADDRESS_GLOBAL = 0x119A,
CL_KERNEL_ARG_ADDRESS_LOCAL = 0x119B,
CL_KERNEL_ARG_ADDRESS_CONSTANT = 0x119C,
CL_KERNEL_ARG_ADDRESS_PRIVATE = 0x119D;
/* cl_kernel_arg_access_qualifier */
int CL_KERNEL_ARG_ACCESS_READ_ONLY = 0x11A0,
CL_KERNEL_ARG_ACCESS_WRITE_ONLY = 0x11A1,
CL_KERNEL_ARG_ACCESS_READ_WRITE = 0x11A2,
CL_KERNEL_ARG_ACCESS_NONE = 0x11A3;
/* cl_kernel_arg_type_qualifer */
int CL_KERNEL_ARG_TYPE_NONE = 0,
CL_KERNEL_ARG_TYPE_CONST = (1 << 0),
CL_KERNEL_ARG_TYPE_RESTRICT = (1 << 1),
CL_KERNEL_ARG_TYPE_VOLATILE = (1 << 2);
/* cl_kernel_work_group_info */
int CL_KERNEL_GLOBAL_WORK_SIZE = 0x11B5;
/* cl_command_type */
int CL_COMMAND_BARRIER = 0x1205,
CL_COMMAND_MIGRATE_MEM_OBJECTS = 0x1206,
CL_COMMAND_FILL_BUFFER = 0x1207,
CL_COMMAND_FILL_IMAGE = 0x1208;
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) device.retain();")
@cl_int
int clRetainDevice(@PointerWrapper("cl_device_id") CLDevice device);
/**
* Warning: LWJGL will not automatically release any objects associated with sub-devices.
* The user is responsible for tracking and releasing everything prior to calling this method.
*
* @param device the parent CLDevice
*
* @return the error code
*/
@Code(
javaBeforeNative = "\t\tAPIUtil.releaseObjects(device);",
javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) device.release();"
)
@cl_int
int clReleaseDevice(@PointerWrapper("cl_device_id") CLDevice device);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS && out_devices != null ) in_device.registerSubCLDevices(out_devices);")
@cl_int
int clCreateSubDevices(
@PointerWrapper("cl_device_id") CLDevice in_device,
@NullTerminated @Const @NativeType("cl_device_partition_property") LongBuffer properties,
@AutoSize(value = "out_devices", canBeNull = true) @cl_uint int num_devices,
@OutParameter @Check(canBeNull = true) @NativeType("cl_device_id") PointerBuffer out_devices,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_devices_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateImage(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@Check("2 * 4") @Const @NativeType("cl_image_format") ByteBuffer image_format,
// On x64 there's 4 byte padding after image_type (to align image_width)
@Check("7 * PointerBuffer.getPointerSize() + 2 * 4 + PointerBuffer.getPointerSize()") @Const @NativeType("cl_image_desc") ByteBuffer image_desc,
@Check(canBeNull = true)
@cl_byte
@cl_short
@cl_int
@cl_float Buffer host_ptr,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithBuiltInKernels(@PointerWrapper("cl_context") CLContext context,
@AutoSize("device_list") @cl_uint int num_devices,
@Check("1") @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Check @Const @cl_char ByteBuffer kernel_names,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate("clCreateProgramWithBuiltInKernels")
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithBuiltInKernels(@PointerWrapper("cl_context") CLContext context,
@AutoSize("device_list") @cl_uint int num_devices,
@Check("1") @Const @NativeType("cl_device_id") PointerBuffer device_list,
CharSequence kernel_names,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
/** Single null-terminated header include name. */
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clCompileProgram(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Check @NullTerminated @Const @cl_char ByteBuffer options,
@Constant("1") @cl_uint int num_input_headers,
@Check("1") @Const @NativeType("cl_program") PointerBuffer input_header,
@NullTerminated @Check @Const @cl_char @Indirect ByteBuffer header_include_name,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLCompileProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
/** Multiple null-terminated header include names, one after the other. */
@Alternate(value = "clCompileProgram", nativeAlt = true, javaAlt = true)
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clCompileProgramMulti(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Check @NullTerminated @Const @cl_char ByteBuffer options,
@AutoSize("input_headers") @cl_uint int num_input_headers,
@Check("1") @Const @NativeType("cl_program") PointerBuffer input_headers,
@NullTerminated("input_headers.remaining()") @Check @Const @Indirect @cl_char @PointerArray("num_input_headers") ByteBuffer header_include_names,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLCompileProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Alternate(value = "clCompileProgram", nativeAlt = true)
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clCompileProgram3(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Check @NullTerminated @Const @cl_char ByteBuffer options,
@Constant("header_include_names.length") @cl_uint int num_input_headers,
@Check("header_include_names.length") @Const @NativeType("cl_program") PointerBuffer input_headers,
@NullTerminated @Check("1") @PointerArray(value = "num_input_headers") @Const @NativeType("cl_char") ByteBuffer[] header_include_names,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLCompileProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Alternate("clCompileProgram")
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clCompileProgram(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@NullTerminated CharSequence options,
@Constant("1") @cl_uint int num_input_headers,
@Check("1") @Const @NativeType("cl_program") PointerBuffer input_header,
@NullTerminated @Const CharSequence header_include_name,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLCompileProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Alternate(value = "clCompileProgram", nativeAlt = true, skipNative = true)
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clCompileProgramMulti(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@NullTerminated CharSequence options,
@AutoSize("input_header") @cl_uint int num_input_headers,
@Check("1") @Const @NativeType("cl_program") PointerBuffer input_header,
@NullTerminated @PointerArray(value = "num_input_headers") @Const CharSequence[] header_include_name,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLCompileProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(context);",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(errcode_ret.get(errcode_ret.position()), user_data);"
)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clLinkProgram(@PointerWrapper("cl_context") CLContext context,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@NullTerminated @Check @Const @cl_char ByteBuffer options,
@AutoSize("input_programs") @cl_uint int num_input_programs,
@Check @Const @NativeType("cl_program") PointerBuffer input_programs,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLLinkProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data,
@OutParameter @Check("1") @cl_int IntBuffer errcode_ret);
@Alternate("clLinkProgram")
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(context);",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(errcode_ret.get(errcode_ret.position()), user_data);"
)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clLinkProgram(@PointerWrapper("cl_context") CLContext context,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@NullTerminated CharSequence options,
@AutoSize("input_programs") @cl_uint int num_input_programs,
@Check @Const @NativeType("cl_program") PointerBuffer input_programs,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLLinkProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data,
@OutParameter @Check("1") @cl_int IntBuffer errcode_ret);
@cl_int
int clUnloadPlatformCompiler(@PointerWrapper("cl_platform_id") CLPlatform platform);
@cl_int
int clGetKernelArgInfo(@PointerWrapper("cl_kernel") CLKernel kernel,
@cl_uint int arg_indx,
@NativeType("cl_kernel_arg_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@cl_int
int clEnqueueFillBuffer(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem buffer,
@Check @Const @cl_void ByteBuffer pattern,
@AutoSize("pattern") @size_t long pattern_size,
@size_t long offset,
@size_t long size,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@cl_int
int clEnqueueFillImage(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem image,
@Check("4 * 4") @Const @cl_void ByteBuffer fill_color,
@Check("3") @Const @NativeType("size_t") PointerBuffer origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@cl_int
int clEnqueueMigrateMemObjects(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize("mem_objects") @cl_uint int num_mem_objects,
@Check @Const @NativeType("cl_mem") PointerBuffer mem_objects,
@NativeType("cl_mem_migration_flags") long flags,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@cl_int
int clEnqueueMarkerWithWaitList(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@cl_int
int clEnqueueBarrierWithWaitList(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Optional(reason = "Missing from AMD CL 1.2 preview drivers.")
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tcontext.setPrintfCallback(user_data, __result);"
)
@cl_int
int clSetPrintfCallback(@PointerWrapper("cl_context") CLContext context,
@PointerWrapper("cl_printf_callback") CLPrintfCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddressForPlatform(@PointerWrapper("cl_platform_id") CLPlatform platform,
@NullTerminated @Const @cl_char ByteBuffer func_name);
@Alternate("clGetExtensionFunctionAddressForPlatform")
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddressForPlatform(@PointerWrapper("cl_platform_id") CLPlatform platform,
@NullTerminated CharSequence func_name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/INTEL_immediate_execution.java 0000644 0001750 0001750 00000003703 12702226520 024557 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface INTEL_immediate_execution {
// TODO: Update when spec is released publicly.
/** cl_command_queue_properties - bitfield */
int CL_QUEUE_IMMEDIATE_EXECUTION_ENABLE_INTEL = (1 << 2);
/** cl_device_exec_capabilities - bitfield */
int CL_EXEC_IMMEDIATE_EXECUTION_INTEL = (1 << 2);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_initialize_memory.java 0000644 0001750 0001750 00000003636 12702226520 024045 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_initialize_memory {
/** cl_context_properties */
int CL_CONTEXT_MEMORY_INITIALIZE_KHR = 0x200E;
/** */
int CL_CONTEXT_MEMORY_INITIALIZE_LOCAL_KHR = 0x1, // TODO: Find value
CL_CONTEXT_MEMORY_INITIALIZE_PRIVATE_KHR = 0x2; // TODO: Find value
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_srgb_image_writes.java 0000644 0001750 0001750 00000003266 12702226520 024007 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_srgb_image_writes {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_vec3.java 0000644 0001750 0001750 00000003251 12702226520 021122 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_vec3 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_offline_devices.java 0000644 0001750 0001750 00000003343 12702226520 023410 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_offline_devices {
int CL_CONTEXT_OFFLINE_DEVICES_AMD = 0x403F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/CL12GL.java 0000644 0001750 0001750 00000005175 12702226520 020474 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.NativeType;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.opencl.cl_int;
import java.nio.IntBuffer;
/** The core OpenCL 1.2 OpenGL interrop functionality. */
public interface CL12GL {
/* cl_gl_object_type */
int CL_GL_OBJECT_TEXTURE2D_ARRAY = 0x200E,
CL_GL_OBJECT_TEXTURE1D = 0x200F,
CL_GL_OBJECT_TEXTURE1D_ARRAY = 0x2010,
CL_GL_OBJECT_TEXTURE_BUFFER = 0x2011;
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateFromGLTexture(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@NativeType("GLenum") int target,
@NativeType("GLint") int miplevel,
@NativeType("GLuint") int texture,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/CL11.java 0000644 0001750 0001750 00000023655 12702226520 020253 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
/** The core OpenCL 1.1 API */
public interface CL11 {
/** Error Codes */
int CL_MISALIGNED_SUB_BUFFER_OFFSET = -13,
CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST = -14,
CL_INVALID_PROPERTY = -64;
/** OpenCL Version */
int CL_VERSION_1_1 = 1;
/** cl_device_info */
int CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF = 0x1034,
CL_DEVICE_HOST_UNIFIED_MEMORY = 0x1035,
CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR = 0x1036,
CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT = 0x1037,
CL_DEVICE_NATIVE_VECTOR_WIDTH_INT = 0x1038,
CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG = 0x1039,
CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT = 0x103A,
CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE = 0x103B,
CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF = 0x103C,
CL_DEVICE_OPENCL_C_VERSION = 0x103D;
/** cl_device_fp_config - bitfield */
int CL_FP_SOFT_FLOAT = (1 << 6);
/** cl_context_info */
int CL_CONTEXT_NUM_DEVICES = 0x1083;
/** cl_channel_order */
int CL_Rx = 0x10BA,
CL_RGx = 0x10BB,
CL_RGBx = 0x10BC;
/** cl_mem_info */
int CL_MEM_ASSOCIATED_MEMOBJECT = 0x1107,
CL_MEM_OFFSET = 0x1108;
/** cl_addressing_mode */
int CL_ADDRESS_MIRRORED_REPEAT = 0x1134;
/** cl_kernel_work_group_info */
int CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE = 0x11B3,
CL_KERNEL_PRIVATE_MEM_SIZE = 0x11B4;
/** cl_event_info */
int CL_EVENT_CONTEXT = 0x11D4;
/** cl_command_type */
int CL_COMMAND_READ_BUFFER_RECT = 0x1201,
CL_COMMAND_WRITE_BUFFER_RECT = 0x1202,
CL_COMMAND_COPY_BUFFER_RECT = 0x1203,
CL_COMMAND_USER = 0x1204;
/** cl_buffer_create_type */
int CL_BUFFER_CREATE_TYPE_REGION = 0x1220;
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", factory = "CLMem.create", params = "buffer.getParent()")
CLMem clCreateSubBuffer(@PointerWrapper("cl_mem") CLMem buffer,
@NativeType("cl_mem_flags") long flags,
@NativeType("cl_buffer_create_type") int buffer_create_type,
@Const @Check("2 * PointerBuffer.getPointerSize()") @NativeType("cl_void") ByteBuffer buffer_create_info,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorCallback(@PointerWrapper("cl_mem") CLMem memobj,
@PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueReadBufferRect(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem buffer,
@cl_bool int blocking_read,
@Const @Check("3") @NativeType("size_t") PointerBuffer buffer_offset,
@Const @Check("3") @NativeType("size_t") PointerBuffer host_offset,
@Const @Check("3") @NativeType("size_t") PointerBuffer region,
@size_t long buffer_row_pitch,
@size_t long buffer_slice_pitch,
@size_t long host_row_pitch,
@size_t long host_slice_pitch,
@OutParameter @Check("CLChecks.calculateBufferRectSize(host_offset, region, host_row_pitch, host_slice_pitch)")
@cl_byte
@cl_short
@cl_int
@cl_long
@cl_float
@cl_double Buffer ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Const @Check(canBeNull = true) @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueWriteBufferRect(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem buffer,
@cl_bool int blocking_write,
@Const @Check("3") @NativeType("size_t") PointerBuffer buffer_offset,
@Const @Check("3") @NativeType("size_t") PointerBuffer host_offset,
@Const @Check("3") @NativeType("size_t") PointerBuffer region,
@size_t long buffer_row_pitch,
@size_t long buffer_slice_pitch,
@size_t long host_row_pitch,
@size_t long host_slice_pitch,
@Const @Check("CLChecks.calculateBufferRectSize(host_offset, region, host_row_pitch, host_slice_pitch)")
@cl_byte
@cl_short
@cl_int
@cl_long
@cl_float
@cl_double Buffer ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Const @Check(canBeNull = true) @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueCopyBufferRect(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem src_buffer,
@PointerWrapper("cl_mem") CLMem dst_buffer,
@Const @Check("3") @NativeType("size_t") PointerBuffer src_origin,
@Const @Check("3") @NativeType("size_t") PointerBuffer dst_origin,
@Const @Check("3") @NativeType("size_t") PointerBuffer region,
@size_t long src_row_pitch,
@size_t long src_slice_pitch,
@size_t long dst_row_pitch,
@size_t long dst_slice_pitch,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Const @Check(canBeNull = true) @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_event", params = "context")
CLEvent clCreateUserEvent(@PointerWrapper("cl_context") CLContext context,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@cl_int
int clSetUserEventStatus(@PointerWrapper("cl_event") CLEvent event,
@cl_int int execution_status);
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tpfn_notify.setRegistry(event.getParentRegistry());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetEventCallback(@PointerWrapper("cl_event") CLEvent event,
@cl_int int command_exec_callback_type,
@PointerWrapper("cl_event_callback") CLEventCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/EXT_migrate_memobject.java 0000644 0001750 0001750 00000007776 12702226520 024016 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.cl_bitfield;
import org.lwjgl.util.generator.opencl.cl_int;
import org.lwjgl.util.generator.opencl.cl_uint;
@CLDeviceExtension
public interface EXT_migrate_memobject {
/**
* Besides a value of zero, the following cl_mem_migration_flags_ext values are
* allowed:
*/
int CL_MIGRATE_MEM_OBJECT_HOST_EXT = 0x1;
/**
* Returned in the <param_value> parameter of the clGetEventInfo when
* <param_name> is CL_EVENT_COMMAND_TYPE:
*/
int CL_COMMAND_MIGRATE_MEM_OBJECT_EXT = 0x4040;
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueMigrateMemObjectEXT(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize("mem_objects") @cl_uint int num_mem_objects,
@Check("1") @Const @NativeType("cl_mem") PointerBuffer mem_objects,
@cl_bitfield @NativeType("cl_mem_migration_flags_ext") long flags,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Alternate("clEnqueueMigrateMemObjectEXT")
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueMigrateMemObjectEXT(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@Constant("1") @cl_uint int num_mem_objects,
@Constant(value = "APIUtil.getPointer(mem_object)", keepParam = true) CLMem mem_object,
@cl_bitfield @NativeType("cl_mem_migration_flags_ext") long flags,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_printf.java 0000644 0001750 0001750 00000003253 12702226520 021566 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_printf {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_gl_depth_images.java 0000644 0001750 0001750 00000003614 12702226520 023423 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.Extension;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
@Extension(postfix = "KHR", className = "KHRGLDepthImages")
public interface KHR_gl_depth_images {
/** cl_channel_order */
int CL_DEPTH_STENCIL = 0x10BE;
/** cl_channel_type */
int CL_UNORM_INT24 = 0x10DF;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/EXT_atomic_counters_64.java 0000644 0001750 0001750 00000003475 12702226520 024040 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface EXT_atomic_counters_64 {
/** CLDevice query: Max number of atomic counters that can be used by a kernel. */
int CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT = 0x4032;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/EXT_device_fission.java 0000644 0001750 0001750 00000012546 12702226520 023321 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.cl_int;
import org.lwjgl.util.generator.opencl.cl_uint;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
@CLDeviceExtension
public interface EXT_device_fission {
/**
* Accepted as a property name in the <properties> parameter of
* clCreateSubDeviceEXT:
*/
int CL_DEVICE_PARTITION_EQUALLY_EXT = 0x4050,
CL_DEVICE_PARTITION_BY_COUNTS_EXT = 0x4051,
CL_DEVICE_PARTITION_BY_NAMES_EXT = 0x4052,
CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT = 0x4053;
/**
* Accepted as a property name, when accompanying the
* CL_DEVICE_PARITION_BY_AFFINITY_DOMAIN_EXT property, in the <properties>
* parameter of clCreateSubDeviceEXT:
*/
int CL_AFFINITY_DOMAIN_L1_CACHE_EXT = 0x1,
CL_AFFINITY_DOMAIN_L2_CACHE_EXT = 0x2,
CL_AFFINITY_DOMAIN_L3_CACHE_EXT = 0x3,
CL_AFFINITY_DOMAIN_L4_CACHE_EXT = 0x4,
CL_AFFINITY_DOMAIN_NUMA_EXT = 0x10,
CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT = 0x100;
/**
* Accepted as a property being queried in the <param_name> argument of
* clGetDeviceInfo:
*/
int CL_DEVICE_PARENT_DEVICE_EXT = 0x4054,
CL_DEVICE_PARITION_TYPES_EXT = 0x4055,
CL_DEVICE_AFFINITY_DOMAINS_EXT = 0x4056,
CL_DEVICE_REFERENCE_COUNT_EXT = 0x4057,
CL_DEVICE_PARTITION_STYLE_EXT = 0x4058;
/**
* Accepted as the property list terminator in the <properties> parameter of
* clCreateSubDeviceEXT:
*/
int CL_PROPERTIES_LIST_END_EXT = 0x0;
/**
* Accepted as the partition counts list terminator in the <properties>
* parameter of clCreateSubDeviceEXT:
*/
int CL_PARTITION_BY_COUNTS_LIST_END_EXT = 0x0;
/**
* Accepted as the partition names list terminator in the <properties>
* parameter of clCreateSubDeviceEXT:
*/
int CL_PARTITION_BY_NAMES_LIST_END_EXT = -1;
/**
* Returned by clCreateSubDevicesEXT when the indicated partition scheme is
* supported by the implementation, but the implementation can not further
* partition the device in this way.
*/
int CL_DEVICE_PARTITION_FAILED_EXT = -1057;
/**
* Returned by clCreateSubDevicesEXT when the total number of compute units
* requested exceeds CL_DEVICE_MAX_COMPUTE_UNITS, or the number of compute
* units for any one sub-device is less than 1.
*/
int CL_INVALID_PARTITION_COUNT_EXT = -1058;
/**
* Returned by clCreateSubDevicesEXT when a compute unit name appearing in a
* name list following CL_DEVICE_PARTITION_BY_NAMES_EXT is not in range.
*/
int CL_INVALID_PARTITION_NAME_EXT = -1059;
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) device.retain();")
@cl_int
int clRetainDeviceEXT(@PointerWrapper("cl_device_id") CLDevice device);
/**
* Warning: LWJGL will not automatically release any objects associated with sub-devices.
* The user is responsible for tracking and releasing everything prior to calling this method.
*
* @param device the parent CLDevice
*
* @return the error code
*/
@Code(
javaBeforeNative = "\t\tAPIUtil.releaseObjects(device);",
javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) device.release();"
)
@cl_int
int clReleaseDeviceEXT(@PointerWrapper("cl_device_id") CLDevice device);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS && out_devices != null ) in_device.registerSubCLDevices(out_devices);")
@cl_int
int clCreateSubDevicesEXT(
@PointerWrapper("cl_device_id") CLDevice in_device,
@NullTerminated @Const @NativeType("cl_device_partition_property_ext") LongBuffer properties,
@AutoSize(value = "out_devices", canBeNull = true) @cl_uint int num_entries,
@OutParameter @Check(canBeNull = true) @NativeType("cl_device_id") PointerBuffer out_devices,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_devices);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_3d_image_writes.java 0000644 0001750 0001750 00000003264 12702226520 023356 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_3d_image_writes {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/CL10GL.java 0000644 0001750 0001750 00000020071 12702226520 020462 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.cl_int;
import org.lwjgl.util.generator.opencl.cl_uint;
import org.lwjgl.util.generator.opencl.cl_void;
import org.lwjgl.util.generator.opencl.size_t;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
/** The core OpenCL 1.0 OpenGL interrop functionality. */
public interface CL10GL {
/** cl_gl_object_type */
int CL_GL_OBJECT_BUFFER = 0x2000,
CL_GL_OBJECT_TEXTURE2D = 0x2001,
CL_GL_OBJECT_TEXTURE3D = 0x2002,
CL_GL_OBJECT_RENDERBUFFER = 0x2003;
/** cl_gl_texture_info */
int CL_GL_TEXTURE_TARGET = 0x2004,
CL_GL_MIPMAP_LEVEL = 0x2005;
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateFromGLBuffer(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@NativeType("GLuint") int bufobj,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateFromGLTexture2D(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@NativeType("GLenum") int target,
@NativeType("GLint") int miplevel,
@NativeType("GLuint") int texture,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateFromGLTexture3D(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@NativeType("GLenum") int target,
@NativeType("GLint") int miplevel,
@NativeType("GLuint") int texture,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateFromGLRenderbuffer(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@NativeType("GLuint") int renderbuffer,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@cl_int
int clGetGLObjectInfo(@PointerWrapper("cl_mem") CLMem memobj,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_gl_object_type") IntBuffer gl_object_type,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("GLuint") IntBuffer gl_object_name);
@cl_int
int clGetGLTextureInfo(@PointerWrapper("cl_mem") CLMem memobj,
@NativeType("cl_gl_texture_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueAcquireGLObjects(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize("mem_objects") @cl_uint int num_objects,
@Check("1") @Const @NativeType("cl_mem") PointerBuffer mem_objects,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Alternate("clEnqueueAcquireGLObjects")
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueAcquireGLObjects(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@Constant("1") @cl_uint int num_objects,
@Constant(value = "APIUtil.getPointer(mem_object)", keepParam = true) CLMem mem_object,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueReleaseGLObjects(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize("mem_objects") @cl_uint int num_objects,
@Check("1") @Const @NativeType("cl_mem") PointerBuffer mem_objects,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Alternate("clEnqueueReleaseGLObjects")
@Code(javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueReleaseGLObjects(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@Constant("1") @cl_uint int num_objects,
@Constant(value = "APIUtil.getPointer(mem_object)", keepParam = true) CLMem mem_object,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_bus_addressable_memory.java 0000644 0001750 0001750 00000006507 12702226520 025003 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.cl_int;
import org.lwjgl.util.generator.opencl.cl_uint;
import org.lwjgl.util.generator.opencl.cl_ulong;
@CLDeviceExtension
public interface AMD_bus_addressable_memory {
/** cl_mem flag - bitfield */
int CL_MEM_BUS_ADDRESSABLE_AMD = (1 << 30),
CL_MEM_EXTERNAL_PHYSICAL_AMD = (1 << 31);
int CL_COMMAND_WAIT_SIGNAL_AMD = 0x4080,
CL_COMMAND_WRITE_SIGNAL_AMD = 0x4081,
CL_COMMAND_MAKE_BUFFERS_RESIDENT_AMD = 0x4082;
/*
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueWaitSignalAMD(
@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem mem_object,
@cl_uint int value,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event
);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueWriteSignalAMD(
@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem mem_object,
@cl_uint int value,
@cl_ulong long offset,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event
);
// TODO: Implement
int clEnqueueMakeBuffersResidentAMD();
*/
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_d3d10_sharing.java 0000644 0001750 0001750 00000003311 12702226520 022630 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLPlatformExtension;
@CLPlatformExtension
public interface KHR_d3d10_sharing {
// Not implemented
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/APPLE_gl_sharing.java 0000644 0001750 0001750 00000007474 12702226520 022652 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.*;
import java.nio.ByteBuffer;
@CLPlatformExtension
@CLDeviceExtension
@Extension(postfix = "APPLE", className = "APPLEGLSharing", nativeName = "cl_APPLE_gl_sharing")
public interface APPLE_gl_sharing {
/**
* This enumerated value can be specified as part of the <properties> argument passed to clCreateContext
* to allow OpenCL compliant devices in an existing CGL share group to be used as the devices in
* the newly created CL context. GL objects that were allocated in the given CGL share group can
* now be shared between CL and GL.
*/
int CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE = 0x10000000;
/**
* Returns a cl_device_id for the CL device associated with the virtual screen for
* the given CGL context. Return type: cl_device_id
*/
int CL_CGL_DEVICE_FOR_CURRENT_VIRTUAL_SCREEN_APPLE = 0x10000002;
/**
* Returns an array of cl_device_ids for the CL device(s) corresponding to
* the virtual screen(s) for the given CGL context. Return type: cl_device_id[]
*/
int CL_CGL_DEVICES_FOR_SUPPORTED_VIRTUAL_SCREENS_APPLE = 0x10000003;
/** Error code returned by clGetGLContextInfoAPPLE if an invalid platform_gl_ctx is provided */
int CL_INVALID_GL_CONTEXT_APPLE = -1000;
@Code(
javaBeforeNative = "\t\tif ( param_value_size_ret == null && APIUtil.isDevicesParam(param_name) ) param_value_size_ret = APIUtil.getBufferPointer();",
javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS && param_value != null && APIUtil.isDevicesParam(param_name) ) context.getParent().registerCLDevices(param_value, param_value_size_ret);"
)
@cl_int
int clGetGLContextInfoAPPLE(@PointerWrapper("cl_context") CLContext context,
@Check("1") @NativeType("cl_void") PointerBuffer platform_gl_ctx,
@NativeType("cl_gl_platform_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_popcnt.java 0000644 0001750 0001750 00000003253 12702226520 021567 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_popcnt {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_local_int32_extended_atomics.java 0000644 0001750 0001750 00000003301 12702226520 026011 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_local_int32_extended_atomics {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/INTEL_thread_local_exec.java 0000644 0001750 0001750 00000004331 12702226520 024161 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface INTEL_thread_local_exec {
/**
* Allows the user to execute OpenCL tasks and kernels with
* the user application's threads. This token that can
* be passed to clCreateCommandQueue, creating a queue with the "thread
* local exec" capability.
*
* All enqueue APIs (e.g., clEnqueueRead) submitted to such a queue
* never enqueue commands. An Enqueue API call is executed by the
* caller host-thread itself without involving any of the OpenCL
* runtime threads, much like function calls.
*/
int CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL = (1 << 31);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_spir.java 0000644 0001750 0001750 00000003406 12702226520 021264 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.Extension;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
@Extension(postfix = "KHR", className = "KHRSPIR")
public interface KHR_spir {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_fp64.java 0000644 0001750 0001750 00000003251 12702226520 021041 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_fp64 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/CL10.java 0000644 0001750 0001750 00000171477 12702226520 020260 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
/** The core OpenCL 1.0 API */
public interface CL10 {
/** Error Codes */
int CL_SUCCESS = 0,
CL_DEVICE_NOT_FOUND = -1,
CL_DEVICE_NOT_AVAILABLE = -2,
CL_COMPILER_NOT_AVAILABLE = -3,
CL_MEM_OBJECT_ALLOCATION_FAILURE = -4,
CL_OUT_OF_RESOURCES = -5,
CL_OUT_OF_HOST_MEMORY = -6,
CL_PROFILING_INFO_NOT_AVAILABLE = -7,
CL_MEM_COPY_OVERLAP = -8,
CL_IMAGE_FORMAT_MISMATCH = -9,
CL_IMAGE_FORMAT_NOT_SUPPORTED = -10,
CL_BUILD_PROGRAM_FAILURE = -11,
CL_MAP_FAILURE = -12,
CL_INVALID_VALUE = -30,
CL_INVALID_DEVICE_TYPE = -31,
CL_INVALID_PLATFORM = -32,
CL_INVALID_DEVICE = -33,
CL_INVALID_CONTEXT = -34,
CL_INVALID_QUEUE_PROPERTIES = -35,
CL_INVALID_COMMAND_QUEUE = -36,
CL_INVALID_HOST_PTR = -37,
CL_INVALID_MEM_OBJECT = -38,
CL_INVALID_IMAGE_FORMAT_DESCRIPTOR = -39,
CL_INVALID_IMAGE_SIZE = -40,
CL_INVALID_SAMPLER = -41,
CL_INVALID_BINARY = -42,
CL_INVALID_BUILD_OPTIONS = -43,
CL_INVALID_PROGRAM = -44,
CL_INVALID_PROGRAM_EXECUTABLE = -45,
CL_INVALID_KERNEL_NAME = -46,
CL_INVALID_KERNEL_DEFINITION = -47,
CL_INVALID_KERNEL = -48,
CL_INVALID_ARG_INDEX = -49,
CL_INVALID_ARG_VALUE = -50,
CL_INVALID_ARG_SIZE = -51,
CL_INVALID_KERNEL_ARGS = -52,
CL_INVALID_WORK_DIMENSION = -53,
CL_INVALID_WORK_GROUP_SIZE = -54,
CL_INVALID_WORK_ITEM_SIZE = -55,
CL_INVALID_GLOBAL_OFFSET = -56,
CL_INVALID_EVENT_WAIT_LIST = -57,
CL_INVALID_EVENT = -58,
CL_INVALID_OPERATION = -59,
CL_INVALID_GL_OBJECT = -60,
CL_INVALID_BUFFER_SIZE = -61,
CL_INVALID_MIP_LEVEL = -62,
CL_INVALID_GLOBAL_WORK_SIZE = -63;
/** OpenCL Version */
int CL_VERSION_1_0 = 1;
/** cl_bool */
int CL_FALSE = 0,
CL_TRUE = 1;
/** cl_platform_info */
int CL_PLATFORM_PROFILE = 0x0900,
CL_PLATFORM_VERSION = 0x0901,
CL_PLATFORM_NAME = 0x0902,
CL_PLATFORM_VENDOR = 0x0903,
CL_PLATFORM_EXTENSIONS = 0x0904;
/** cl_device_type - bitfield */
int CL_DEVICE_TYPE_DEFAULT = (1 << 0),
CL_DEVICE_TYPE_CPU = (1 << 1),
CL_DEVICE_TYPE_GPU = (1 << 2),
CL_DEVICE_TYPE_ACCELERATOR = (1 << 3),
CL_DEVICE_TYPE_ALL = 0xFFFFFFFF;
/** cl_device_info */
int CL_DEVICE_TYPE = 0x1000,
CL_DEVICE_VENDOR_ID = 0x1001,
CL_DEVICE_MAX_COMPUTE_UNITS = 0x1002,
CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 0x1003,
CL_DEVICE_MAX_WORK_GROUP_SIZE = 0x1004,
CL_DEVICE_MAX_WORK_ITEM_SIZES = 0x1005,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 0x1006,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 0x1007,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_ = 0x1008,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG = 0x1009,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT = 0x100A,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = 0x100B,
CL_DEVICE_MAX_CLOCK_FREQUENCY = 0x100C,
CL_DEVICE_ADDRESS_BITS = 0x100D,
CL_DEVICE_MAX_READ_IMAGE_ARGS = 0x100E,
CL_DEVICE_MAX_WRITE_IMAGE_ARGS = 0x100F,
CL_DEVICE_MAX_MEM_ALLOC_SIZE = 0x1010,
CL_DEVICE_IMAGE2D_MAX_WIDTH = 0x1011,
CL_DEVICE_IMAGE2D_MAX_HEIGHT = 0x1012,
CL_DEVICE_IMAGE3D_MAX_WIDTH = 0x1013,
CL_DEVICE_IMAGE3D_MAX_HEIGHT = 0x1014,
CL_DEVICE_IMAGE3D_MAX_DEPTH = 0x1015,
CL_DEVICE_IMAGE_SUPPORT = 0x1016,
CL_DEVICE_MAX_PARAMETER_SIZE = 0x1017,
CL_DEVICE_MAX_SAMPLERS = 0x1018,
CL_DEVICE_MEM_BASE_ADDR_ALIGN = 0x1019,
CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 0x101A,
CL_DEVICE_SINGLE_FP_CONFIG = 0x101B,
CL_DEVICE_GLOBAL_MEM_CACHE_TYPE = 0x101C,
CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE = 0x101D,
CL_DEVICE_GLOBAL_MEM_CACHE_SIZE = 0x101E,
CL_DEVICE_GLOBAL_MEM_SIZE = 0x101F,
CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE = 0x1020,
CL_DEVICE_MAX_CONSTANT_ARGS = 0x1021,
CL_DEVICE_LOCAL_MEM_TYPE = 0x1022,
CL_DEVICE_LOCAL_MEM_SIZE = 0x1023,
CL_DEVICE_ERROR_CORRECTION_SUPPORT = 0x1024,
CL_DEVICE_PROFILING_TIMER_RESOLUTION = 0x1025,
CL_DEVICE_ENDIAN_LITTLE = 0x1026,
CL_DEVICE_AVAILABLE = 0x1027,
CL_DEVICE_COMPILER_AVAILABLE = 0x1028,
CL_DEVICE_EXECUTION_CAPABILITIES = 0x1029,
CL_DEVICE_QUEUE_PROPERTIES = 0x102A,
CL_DEVICE_NAME = 0x102B,
CL_DEVICE_VENDOR = 0x102C,
CL_DRIVER_VERSION = 0x102D,
CL_DEVICE_PROFILE = 0x102E,
CL_DEVICE_VERSION = 0x102F,
CL_DEVICE_EXTENSIONS = 0x1030,
CL_DEVICE_PLATFORM = 0x1031;
/* 0x1032 reserved for CL_DEVICE_DOUBLE_FP_CONFIG */
/* 0x1033 reserved for CL_DEVICE_HALF_FP_CONFIG */
/** cl_device_fp_config - bitfield */
int CL_FP_DENORM = (1 << 0),
CL_FP_INF_NAN = (1 << 1),
CL_FP_ROUND_TO_NEAREST = (1 << 2),
CL_FP_ROUND_TO_ZERO = (1 << 3),
CL_FP_ROUND_TO_INF = (1 << 4),
CL_FP_FMA = (1 << 5);
/** cl_device_mem_cache_type */
int CL_NONE = 0x0,
CL_READ_ONLY_CACHE = 0x1,
CL_READ_WRITE_CACHE = 0x2;
/** cl_device_local_mem_type */
int CL_LOCAL = 0x1,
CL_GLOBAL = 0x2;
/** cl_device_exec_capabilities - bitfield */
int CL_EXEC_KERNEL = (1 << 0),
CL_EXEC_NATIVE_KERNEL = (1 << 1);
/** cl_command_queue_properties - bitfield */
int CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE = (1 << 0),
CL_QUEUE_PROFILING_ENABLE = (1 << 1);
/** cl_context_info */
int CL_CONTEXT_REFERENCE_COUNT = 0x1080,
CL_CONTEXT_DEVICES = 0x1081,
CL_CONTEXT_PROPERTIES = 0x1082;
/** cl_context_info + cl_context_properties */
int CL_CONTEXT_PLATFORM = 0x1084;
/** cl_command_queue_info */
int CL_QUEUE_CONTEXT = 0x1090,
CL_QUEUE_DEVICE = 0x1091,
CL_QUEUE_REFERENCE_COUNT = 0x1092,
CL_QUEUE_PROPERTIES = 0x1093;
/** cl_mem_flags - bitfield */
int CL_MEM_READ_WRITE = (1 << 0),
CL_MEM_WRITE_ONLY = (1 << 1),
CL_MEM_READ_ONLY = (1 << 2),
CL_MEM_USE_HOST_PTR = (1 << 3),
CL_MEM_ALLOC_HOST_PTR = (1 << 4),
CL_MEM_COPY_HOST_PTR = (1 << 5);
/** cl_channel_order */
int CL_R = 0x10B0,
CL_A = 0x10B1,
CL_RG = 0x10B2,
CL_RA = 0x10B3,
CL_RGB = 0x10B4,
CL_RGBA = 0x10B5,
CL_BGRA = 0x10B6,
CL_ARGB = 0x10B7,
CL_INTENSITY = 0x10B8,
CL_LUMINANCE = 0x10B9;
/** cl_channel_type */
int CL_SNORM_INT8 = 0x10D0,
CL_SNORM_INT16 = 0x10D1,
CL_UNORM_INT8 = 0x10D2,
CL_UNORM_INT16 = 0x10D3,
CL_UNORM_SHORT_565 = 0x10D4,
CL_UNORM_SHORT_555 = 0x10D5,
CL_UNORM_INT_101010 = 0x10D6,
CL_SIGNED_INT8 = 0x10D7,
CL_SIGNED_INT16 = 0x10D8,
CL_SIGNED_INT32 = 0x10D9,
CL_UNSIGNED_INT8 = 0x10DA,
CL_UNSIGNED_INT16 = 0x10DB,
CL_UNSIGNED_INT32 = 0x10DC,
CL_HALF_FLOAT = 0x10DD,
CL_FLOAT = 0x10DE;
/** cl_mem_object_type */
int CL_MEM_OBJECT_BUFFER = 0x10F0,
CL_MEM_OBJECT_IMAGE2D = 0x10F1,
CL_MEM_OBJECT_IMAGE3D = 0x10F2;
/** cl_mem_info */
int CL_MEM_TYPE = 0x1100,
CL_MEM_FLAGS = 0x1101,
CL_MEM_SIZE = 0x1102,
CL_MEM_HOST_PTR = 0x1103,
CL_MEM_MAP_COUNT = 0x1104,
CL_MEM_REFERENCE_COUNT = 0x1105,
CL_MEM_CONTEXT = 0x1106;
/** cl_image_info */
int CL_IMAGE_FORMAT = 0x1110,
CL_IMAGE_ELEMENT_SIZE = 0x1111,
CL_IMAGE_ROW_PITCH = 0x1112,
CL_IMAGE_SLICE_PITCH = 0x1113,
CL_IMAGE_WIDTH = 0x1114,
CL_IMAGE_HEIGHT = 0x1115,
CL_IMAGE_DEPTH = 0x1116;
/** cl_addressing_mode */
int CL_ADDRESS_NONE = 0x1130,
CL_ADDRESS_CLAMP_TO_EDGE = 0x1131,
CL_ADDRESS_CLAMP = 0x1132,
CL_ADDRESS_REPEAT = 0x1133;
/** cl_filter_mode */
int CL_FILTER_NEAREST = 0x1140,
CL_FILTER_LINEAR = 0x1141;
/** cl_sampler_info */
int CL_SAMPLER_REFERENCE_COUNT = 0x1150,
CL_SAMPLER_CONTEXT = 0x1151,
CL_SAMPLER_NORMALIZED_COORDS = 0x1152,
CL_SAMPLER_ADDRESSING_MODE = 0x1153,
CL_SAMPLER_FILTER_MODE = 0x1154;
/** cl_map_flags - bitfield */
int CL_MAP_READ = (1 << 0),
CL_MAP_WRITE = (1 << 1);
/** cl_program_info */
int CL_PROGRAM_REFERENCE_COUNT = 0x1160,
CL_PROGRAM_CONTEXT = 0x1161,
CL_PROGRAM_NUM_DEVICES = 0x1162,
CL_PROGRAM_DEVICES = 0x1163,
CL_PROGRAM_SOURCE = 0x1164,
CL_PROGRAM_BINARY_SIZES = 0x1165,
CL_PROGRAM_BINARIES = 0x1166;
/** cl_program_build_info */
int CL_PROGRAM_BUILD_STATUS = 0x1181,
CL_PROGRAM_BUILD_OPTIONS = 0x1182,
CL_PROGRAM_BUILD_LOG = 0x1183;
/** cl_build_status */
int CL_BUILD_SUCCESS = 0,
CL_BUILD_NONE = -1,
CL_BUILD_ERROR = -2,
CL_BUILD_IN_PROGRESS = -3;
/** cl_kernel_info */
int CL_KERNEL_FUNCTION_NAME = 0x1190,
CL_KERNEL_NUM_ARGS = 0x1191,
CL_KERNEL_REFERENCE_COUNT = 0x1192,
CL_KERNEL_CONTEXT = 0x1193,
CL_KERNEL_PROGRAM = 0x1194;
/** cl_kernel_work_group_info */
int CL_KERNEL_WORK_GROUP_SIZE = 0x11B0,
CL_KERNEL_COMPILE_WORK_GROUP_SIZE = 0x11B1,
CL_KERNEL_LOCAL_MEM_SIZE = 0x11B2;
/** cl_event_info */
int CL_EVENT_COMMAND_QUEUE = 0x11D0,
CL_EVENT_COMMAND_TYPE = 0x11D1,
CL_EVENT_REFERENCE_COUNT = 0x11D2,
CL_EVENT_COMMAND_EXECUTION_STATUS = 0x11D3;
/** cl_command_type */
int CL_COMMAND_NDRANGE_KERNEL = 0x11F0,
CL_COMMAND_TASK = 0x11F1,
CL_COMMAND_NATIVE_KERNEL = 0x11F2,
CL_COMMAND_READ_BUFFER = 0x11F3,
CL_COMMAND_WRITE_BUFFER = 0x11F4,
CL_COMMAND_COPY_BUFFER = 0x11F5,
CL_COMMAND_READ_IMAGE = 0x11F6,
CL_COMMAND_WRITE_IMAGE = 0x11F7,
CL_COMMAND_COPY_IMAGE = 0x11F8,
CL_COMMAND_COPY_IMAGE_TO_BUFFER = 0x11F9,
CL_COMMAND_COPY_BUFFER_TO_IMAGE = 0x11FA,
CL_COMMAND_MAP_BUFFER = 0x11FB,
CL_COMMAND_MAP_IMAGE = 0x11FC,
CL_COMMAND_UNMAP_MEM_OBJECT = 0x11FD,
CL_COMMAND_MARKER = 0x11FE,
CL_COMMAND_ACQUIRE_GL_OBJECTS = 0x11FF,
CL_COMMAND_RELEASE_GL_OBJECTS = 0x1200;
/** command execution status */
int CL_COMPLETE = 0x0,
CL_RUNNING = 0x1,
CL_SUBMITTED = 0x2,
CL_QUEUED = 0x3;
/** cl_profiling_info */
int CL_PROFILING_COMMAND_QUEUED = 0x1280,
CL_PROFILING_COMMAND_SUBMIT = 0x1281,
CL_PROFILING_COMMAND_START = 0x1282,
CL_PROFILING_COMMAND_END = 0x1283;
/* Platform API */
@Code(
javaBeforeNative = "\t\tif ( num_platforms == null ) num_platforms = APIUtil.getBufferInt();",
javaAfterNative = "\t\tif ( __result == CL_SUCCESS && platforms != null ) CLPlatform.registerCLPlatforms(platforms, num_platforms);"
)
@cl_int
int clGetPlatformIDs(@AutoSize(value = "platforms", canBeNull = true) @cl_uint int num_entries,
@OutParameter @Check(canBeNull = true) @NativeType("cl_platform_id") PointerBuffer platforms,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_platforms);
@cl_int
int clGetPlatformInfo(@PointerWrapper(value = "cl_platform_id", canBeNull = true) CLPlatform platform,
@NativeType("cl_platform_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Code(
javaBeforeNative = "\t\telse\n" +
"\t\t\tnum_devices = APIUtil.getBufferInt();",
javaAfterNative = "\t\tif ( __result == CL_SUCCESS && devices != null ) platform.registerCLDevices(devices, num_devices);"
)
@cl_int
int clGetDeviceIDs(@PointerWrapper("cl_platform_id") CLPlatform platform,
@NativeType("cl_device_type") long device_type,
@AutoSize(value = "devices", canBeNull = true) @cl_uint int num_entries,
@OutParameter @Check(canBeNull = true) @NativeType("cl_device_id") PointerBuffer devices,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_devices);
@cl_int
int clGetDeviceInfo(@PointerWrapper("cl_device_id") CLDevice device,
@NativeType("cl_device_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
/** LWJGL requires CL_CONTEXT_PLATFORM to be present in the cl_context_properties buffer. */
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = pfn_notify == null || pfn_notify.isCustom() ? 0 : CallbackUtil.createGlobalRef(pfn_notify);",
// Associate context with the GlobalRef, so we can delete it later.
javaFinally = "\t\t\tif ( __result != null ) __result.setContextCallback(user_data);"
)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_context", params = "APIUtil.getCLPlatform(properties)")
CLContext clCreateContext(@NullTerminated @Check("3") @Const @NativeType("cl_context_properties") PointerBuffer properties,
@AutoSize("devices") @cl_uint int num_devices,
@Check("1") @Const @NativeType("cl_device_id") PointerBuffer devices,
@PointerWrapper(value = "cl_create_context_callback", canBeNull = true) CLContextCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
/** LWJGL requires CL_CONTEXT_PLATFORM to be present in the cl_context_properties buffer. */
@Alternate("clCreateContext")
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = pfn_notify == null || pfn_notify.isCustom() ? 0 : CallbackUtil.createGlobalRef(pfn_notify);",
// Associate context with the GlobalRef, so we can delete it later.
javaFinally = "\t\t\tif ( __result != null ) __result.setContextCallback(user_data);"
)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_context", params = "APIUtil.getCLPlatform(properties)")
CLContext clCreateContext(@NullTerminated @Check("3") @Const @NativeType("cl_context_properties") PointerBuffer properties,
@Constant("1") @cl_uint int num_devices,
@Constant(value = "APIUtil.getPointer(device)", keepParam = true) CLDevice device,
@PointerWrapper(value = "cl_create_context_callback", canBeNull = true) CLContextCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
/** LWJGL requires CL_CONTEXT_PLATFORM to be present in the cl_context_properties buffer. */
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = pfn_notify == null || pfn_notify.isCustom() ? 0 : CallbackUtil.createGlobalRef(pfn_notify);",
// Associate context with the GlobalRef, so we can delete it later.
javaFinally = "\t\t\tif ( __result != null ) __result.setContextCallback(user_data);"
)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_context", params = "APIUtil.getCLPlatform(properties)")
CLContext clCreateContextFromType(@NullTerminated @Check("3") @Const @NativeType("cl_context_properties") PointerBuffer properties,
@NativeType("cl_device_type") long device_type,
@PointerWrapper(value = "cl_create_context_callback", canBeNull = true) CLContextCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) context.retain();")
@cl_int
int clRetainContext(@PointerWrapper("cl_context") CLContext context);
@Code(
javaBeforeNative = "\t\tAPIUtil.releaseObjects(context);",
javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) context.releaseImpl();"
)
@cl_int
int clReleaseContext(@PointerWrapper("cl_context") CLContext context);
@Code(
javaBeforeNative = "\t\tif ( param_value_size_ret == null && APIUtil.isDevicesParam(param_name) ) param_value_size_ret = APIUtil.getBufferPointer();",
javaAfterNative = "\t\tif ( __result == CL_SUCCESS && param_value != null && APIUtil.isDevicesParam(param_name) ) context.getParent().registerCLDevices(param_value, param_value_size_ret);"
)
@cl_int
int clGetContextInfo(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_context_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_command_queue", params = "context, device")
CLCommandQueue clCreateCommandQueue(@PointerWrapper("cl_context") CLContext context,
@PointerWrapper("cl_device_id") CLDevice device,
@NativeType("cl_command_queue_properties") long properties,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.retain();")
@cl_int
int clRetainCommandQueue(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue);
@Code(
javaBeforeNative = "\t\tAPIUtil.releaseObjects(command_queue);",
javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.release();"
)
@cl_int
int clReleaseCommandQueue(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue);
@cl_int
int clGetCommandQueueInfo(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@NativeType("cl_command_queue_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@GenerateAutos
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateBuffer(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@AutoSize("host_ptr") @size_t long size,
@cl_byte
@cl_short
@cl_int
@cl_long
@cl_float
@cl_double Buffer host_ptr,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueReadBuffer(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem buffer,
@cl_bool int blocking_read,
@size_t long offset,
@AutoSize("ptr") @size_t long size,
@OutParameter
@cl_byte
@cl_short
@cl_int
@cl_long
@cl_float
@cl_double Buffer ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueWriteBuffer(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem buffer,
@cl_bool int blocking_write,
@size_t long offset,
@AutoSize("ptr") @size_t long size,
@Const
@cl_byte
@cl_short
@cl_int
@cl_long
@cl_float
@cl_double Buffer ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueCopyBuffer(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem src_buffer,
@PointerWrapper("cl_mem") CLMem dst_buffer,
@size_t long src_offset,
@size_t long dst_offset,
@size_t long size,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result != null ) command_queue.registerCLEvent(event);")
@Check(value = "errcode_ret", canBeNull = true)
@cl_void
@AutoSize("size")
ByteBuffer clEnqueueMapBuffer(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem buffer,
@cl_bool int blocking_map,
@NativeType("cl_map_flags") long map_flags,
@size_t long offset,
@size_t long size,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateImage2D(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@Check("2 * 4") @Const @NativeType("cl_image_format") ByteBuffer image_format,
@size_t long image_width,
@size_t long image_height,
@size_t long image_row_pitch,
@Check(value = "CLChecks.calculateImage2DSize(image_format, image_width, image_height, image_row_pitch)", canBeNull = true)
@cl_byte
@cl_short
@cl_int
@cl_float Buffer host_ptr,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_mem", params = "context")
CLMem clCreateImage3D(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@Check("2 * 4") @Const @NativeType("cl_image_format") ByteBuffer image_format,
@size_t long image_width,
@size_t long image_height,
@size_t long image_depth,
@size_t long image_row_pitch,
@size_t long image_slice_pitch,
@Check(value = "CLChecks.calculateImage3DSize(image_format, image_width, image_height, image_height, image_row_pitch, image_slice_pitch)", canBeNull = true)
@cl_byte
@cl_short
@cl_int
@cl_float Buffer host_ptr,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@cl_int
int clGetSupportedImageFormats(@PointerWrapper("cl_context") CLContext context,
@NativeType("cl_mem_flags") long flags,
@NativeType("cl_mem_object_type") int image_type,
@AutoSize(value = "image_formats", expression = " / (2 * 4)", canBeNull = true) @cl_uint int num_entries,
@OutParameter @Check(canBeNull = true) @NativeType("cl_image_format") ByteBuffer image_formats,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_image_formats);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueReadImage(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem image,
@cl_bool int blocking_read,
@Check("3") @Const @NativeType("size_t") PointerBuffer origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@size_t long row_pitch,
@size_t long slice_pitch,
@OutParameter @Check("CLChecks.calculateImageSize(region, row_pitch, slice_pitch)")
@cl_byte
@cl_short
@cl_int
@cl_float Buffer ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueWriteImage(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem image,
@cl_bool int blocking_write,
@Check("3") @Const @NativeType("size_t") PointerBuffer origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@size_t long input_row_pitch,
@size_t long input_slice_pitch,
@Check("CLChecks.calculateImageSize(region, input_row_pitch, input_slice_pitch)") @Const
@cl_byte
@cl_short
@cl_int
@cl_float Buffer ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueCopyImage(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem src_image,
@PointerWrapper("cl_mem") CLMem dst_image,
@Check("3") @Const @NativeType("size_t") PointerBuffer src_origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer dst_origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueCopyImageToBuffer(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem src_image,
@PointerWrapper("cl_mem") CLMem dst_buffer,
@Check("3") @Const @NativeType("size_t") PointerBuffer src_origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@size_t long dst_offset,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueCopyBufferToImage(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem src_buffer,
@PointerWrapper("cl_mem") CLMem dst_image,
@size_t long src_offset,
@Check("3") @Const @NativeType("size_t") PointerBuffer dst_origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result != null ) command_queue.registerCLEvent(event);")
@Check(value = "errcode_ret", canBeNull = true)
@cl_void
@AutoSize(value = "extcl_CalculateImageSize(region_address, *image_row_pitch_address, image_slice_pitch_address == NULL ? 0 : *image_slice_pitch_address)", isNative = true)
ByteBuffer clEnqueueMapImage(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem image,
@cl_bool int blocking_map,
@NativeType("cl_map_flags") long map_flags,
@Check("3") @Const @NativeType("size_t") PointerBuffer origin,
@Check("3") @Const @NativeType("size_t") PointerBuffer region,
@OutParameter @Check("1") @NativeType("size_t") PointerBuffer image_row_pitch,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer image_slice_pitch,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@cl_int
int clGetImageInfo(@PointerWrapper("cl_mem") CLMem image,
@NativeType("cl_image_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) memobj.retain();")
@cl_int
int clRetainMemObject(@PointerWrapper("cl_mem") CLMem memobj);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) memobj.release();")
@cl_int
int clReleaseMemObject(@PointerWrapper("cl_mem") CLMem memobj);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueUnmapMemObject(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_mem") CLMem memobj,
@Check @cl_void ByteBuffer mapped_ptr,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@cl_int
int clGetMemObjectInfo(@PointerWrapper("cl_mem") CLMem memobj,
@NativeType("cl_mem_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_sampler", params = "context")
CLSampler clCreateSampler(@PointerWrapper("cl_context") CLContext context,
@cl_bool int normalized_coords,
@NativeType("cl_addressing_mode") int addressing_mode,
@NativeType("cl_filter_mode") int filter_mode,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) sampler.retain();")
@cl_int
int clRetainSampler(@PointerWrapper("cl_sampler") CLSampler sampler);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) sampler.release();")
@cl_int
int clReleaseSampler(@PointerWrapper("cl_sampler") CLSampler sampler);
@cl_int
int clGetSamplerInfo(@PointerWrapper("cl_sampler") CLSampler sampler,
@NativeType("cl_sampler_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
// ------[ clCreateProgramWithSource ]------
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithSource(@PointerWrapper("cl_context") CLContext context,
@Constant("1") @cl_uint int count,
@Check @Indirect @Const @cl_char ByteBuffer string,
@AutoSize("string") @Indirect @Const @size_t long lengths,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate(value = "clCreateProgramWithSource", nativeAlt = true)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithSource2(@PointerWrapper("cl_context") CLContext context,
@AutoSize("lengths") @cl_uint int count,
@Check("APIUtil.getSize(lengths)") @PointerArray(value = "count", lengths = "lengths") @Const @NativeType("cl_char") ByteBuffer strings,
@Check("1") @Const @NativeType("size_t") PointerBuffer lengths,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate(value = "clCreateProgramWithSource", nativeAlt = true)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithSource3(@PointerWrapper("cl_context") CLContext context,
@Constant("strings.length") @cl_uint int count,
@Check("1") @PointerArray(value = "count") @Const @NativeType("cl_char") ByteBuffer[] strings,
@Constant("APIUtil.getLengths(strings)") @Const @NativeType("size_t") PointerBuffer lengths,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate("clCreateProgramWithSource")
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithSource(@PointerWrapper("cl_context") CLContext context,
@Constant("1") @cl_uint int count,
CharSequence string,
@Constant("string.length()") @Indirect @Const @size_t long lengths,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate(value = "clCreateProgramWithSource", nativeAlt = true)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithSource4(@PointerWrapper("cl_context") CLContext context,
@Constant("strings.length") @cl_uint int count,
@Const @PointerArray(value = "count", lengths = "lengths") CharSequence[] strings,
@Constant("APIUtil.getLengths(strings)") @Const @NativeType("size_t") PointerBuffer lengths,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
// ------[ clCreateProgramWithBinary ]------
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithBinary(@PointerWrapper("cl_context") CLContext context,
@Constant("1") @cl_uint int num_devices,
@Const @Indirect @PointerWrapper("cl_device_id") CLDevice device,
@AutoSize("binary") @Const @Indirect @size_t long lengths,
@Const @Indirect @cl_uchar ByteBuffer binary,
@OutParameter @Check("1") @cl_int IntBuffer binary_status,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate(value = "clCreateProgramWithBinary", nativeAlt = true)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithBinary2(@PointerWrapper("cl_context") CLContext context,
@AutoSize("device_list") @cl_uint int num_devices,
@Check("1") @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Check("device_list.remaining()") @Const @NativeType("size_t") PointerBuffer lengths,
@Check("APIUtil.getSize(lengths)") @PointerArray(value = "num_devices", lengths = "lengths") @Const @NativeType("cl_uchar") ByteBuffer binaries,
@OutParameter @Check("device_list.remaining()") @cl_int IntBuffer binary_status,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate(value = "clCreateProgramWithBinary", nativeAlt = true)
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_program", params = "context")
CLProgram clCreateProgramWithBinary3(@PointerWrapper("cl_context") CLContext context,
@Constant("binaries.length") @cl_uint int num_devices,
@Check("binaries.length") @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Constant("APIUtil.getLengths(binaries)") @Const @NativeType("size_t") PointerBuffer lengths,
@Check("1") @PointerArray("num_devices") @Const @NativeType("cl_uchar") ByteBuffer[] binaries,
@OutParameter @Check("binaries.length") @cl_int IntBuffer binary_status,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) program.retain();")
@cl_int
int clRetainProgram(@PointerWrapper("cl_program") CLProgram program);
@Code(
javaBeforeNative = "\t\tAPIUtil.releaseObjects(program);",
javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) program.release();"
)
@cl_int
int clReleaseProgram(@PointerWrapper("cl_program") CLProgram program);
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clBuildProgram(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@Check @NullTerminated @Const @cl_char ByteBuffer options,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLBuildProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Alternate("clBuildProgram")
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clBuildProgram(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "device_list", canBeNull = true) @cl_uint int num_devices,
@Check(canBeNull = true) @Const @NativeType("cl_device_id") PointerBuffer device_list,
@NullTerminated @Const CharSequence options,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLBuildProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@Alternate("clBuildProgram")
@Code(
tryBlock = true,
// Create a GlobalRef to the callback object.
javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);\n" +
"\t\tif ( pfn_notify != null ) pfn_notify.setContext(program.getParent());",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clBuildProgram(@PointerWrapper("cl_program") CLProgram program,
@Constant("1") @cl_uint int num_devices,
@Constant(value = "APIUtil.getPointer(device)", keepParam = true) CLDevice device,
@NullTerminated @Const CharSequence options,
@PointerWrapper(value = "cl_program_callback", canBeNull = true) CLBuildProgramCallback pfn_notify,
@Constant("user_data") @PointerWrapper("void *") long user_data);
@cl_int
int clUnloadCompiler();
@cl_int
int clGetProgramInfo(@PointerWrapper("cl_program") CLProgram program,
@NativeType("cl_program_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
/**
* This method can be used to get program binaries. The binary for each device (in the
* order returned by CL_PROGRAM_DEVICES) will be written sequentially to
* the param_value buffer. The buffer size must be big enough to hold
* all the binaries, as returned by CL_PROGRAM_BINARY_SIZES.
*
* @param program the program
* @param param_value the buffers where the binaries will be written to.
* @param param_value_size_ret optional size result
*
* @return the error code
*/
@Alternate(value = "clGetProgramInfo", nativeAlt = true)
@cl_int
int clGetProgramInfo2(@PointerWrapper("cl_program") CLProgram program,
@Constant("CL_PROGRAM_BINARIES") @NativeType("cl_program_info") int param_name,
@Constant(value = "sizes_len * sizeof(cl_uchar *)", isNative = true) @size_t long param_value_size,
@Constant("sizes.remaining()") @Helper(passToNative = true) @size_t long sizes_len,
@Helper(passToNative = true) @Check("1") @Const @NativeType("size_t") PointerBuffer sizes,
@OutParameter @Check("APIUtil.getSize(sizes)") @PointerArray(value = "sizes_len", lengths = "sizes") @NativeType("cl_uchar") ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
/**
* This method can be used to get program binaries. The binary for each device (in the
* order returned by CL_PROGRAM_DEVICES) will be written to the corresponding
* slot of the param_value array. The size of each buffer must be big enough to
* hold the corresponding binary, as returned by CL_PROGRAM_BINARY_SIZES.
*
* @param program the program
* @param param_value the buffers where the binaries will be written to.
* @param param_value_size_ret optional size result
*
* @return the error code
*/
@Alternate(value = "clGetProgramInfo", nativeAlt = true)
@cl_int
int clGetProgramInfo3(@PointerWrapper("cl_program") CLProgram program,
@Constant("CL_PROGRAM_BINARIES") @NativeType("cl_program_info") int param_name,
@Constant(value = "param_value_len * sizeof(cl_uchar *)", isNative = true) @size_t long param_value_size,
@Constant("param_value.length") @Helper(passToNative = true) @size_t long param_value_len,
@PointerArray("param_value_len") @NativeType("cl_uchar") ByteBuffer[] param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@cl_int
int clGetProgramBuildInfo(@PointerWrapper("cl_program") CLProgram program,
@PointerWrapper("cl_device_id") CLDevice device,
@NativeType("cl_program_build_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_kernel", params = "program")
CLKernel clCreateKernel(@PointerWrapper("cl_program") CLProgram program,
@NullTerminated @Const @cl_char ByteBuffer kernel_name,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Alternate("clCreateKernel")
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_kernel", params = "program")
CLKernel clCreateKernel(@PointerWrapper("cl_program") CLProgram program,
@NullTerminated @Const CharSequence kernel_name,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS && kernels != null ) program.registerCLKernels(kernels);")
@cl_int
int clCreateKernelsInProgram(@PointerWrapper("cl_program") CLProgram program,
@AutoSize(value = "kernels", canBeNull = true) @cl_uint int num_kernels,
@OutParameter @Check(canBeNull = true) @NativeType("cl_kernel") PointerBuffer kernels,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_kernels_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) kernel.retain();")
@cl_int
int clRetainKernel(@PointerWrapper("cl_kernel") CLKernel kernel);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) kernel.release();")
@cl_int
int clReleaseKernel(@PointerWrapper("cl_kernel") CLKernel kernel);
@GenerateAutos
@cl_int
int clSetKernelArg(@PointerWrapper("cl_kernel") CLKernel kernel,
@cl_uint int arg_index,
@AutoSize("arg_value") @size_t long arg_size,
@Const
@cl_byte
@cl_short
@cl_int
@cl_long
@cl_float
@cl_double Buffer arg_value);
@Alternate("clSetKernelArg")
@cl_int
int clSetKernelArg(@PointerWrapper("cl_kernel") CLKernel kernel,
@cl_uint int arg_index,
@Constant("PointerBuffer.getPointerSize()") @size_t long arg_size,
@Check(canBeNull = true) @Const
@Constant(value = "APIUtil.getPointerSafe(arg_value)", keepParam = true) CLObject arg_value);
// This is used by CLKernelUtil. Assumes arg_value.position() == 0.
@Alternate("clSetKernelArg")
@Private
@cl_int
int clSetKernelArg3(@PointerWrapper("cl_kernel") CLKernel kernel,
@cl_uint int arg_index,
@size_t long arg_size,
@Constant(value = "MemoryUtil.getAddress0(arg_value)", keepParam = true) Buffer arg_value);
@cl_int
int clGetKernelInfo(@PointerWrapper("cl_kernel") CLKernel kernel,
@NativeType("cl_kernel_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@cl_int
int clGetKernelWorkGroupInfo(@PointerWrapper("cl_kernel") CLKernel kernel,
@PointerWrapper(value = "cl_device_id", canBeNull = true) CLDevice device,
@NativeType("cl_kernel_work_group_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueNDRangeKernel(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_kernel") CLKernel kernel,
@cl_uint int work_dim,
@Check(value = "work_dim", canBeNull = true) @Const @NativeType("size_t") PointerBuffer global_work_offset,
@Check(value = "work_dim", canBeNull = true) @Const @NativeType("size_t") PointerBuffer global_work_size,
@Check(value = "work_dim", canBeNull = true) @Const @NativeType("size_t") PointerBuffer local_work_size,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueTask(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_kernel") CLKernel kernel,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
/**
* Enqueues a native kernel to the specified command queue. The mem_list parameter
* can be used to pass a list of CLMem objects that will be mapped to global memory space and
* exposed as a ByteBuffer array in the CLNativeKernel#execute method. The
* sizes parameter will be used to allocate direct ByteBuffers with the correct
* capacities. The user is responsible for passing appropriate values to avoid crashes.
*
* @param command_queue the command queue
* @param user_func the native kernel
* @param mem_list the CLMem objects
* @param sizes the CLMem object sizes
* @param event_wait_list the event wait list
* @param event the queue event
*
* @return the error code
*/
@Code(
tryBlock = true,
// Build the args buffer and create a GlobalRef to the user_func object.
javaBeforeNative = "\t\tlong user_func_ref = CallbackUtil.createGlobalRef(user_func);\n" +
"\t\tByteBuffer args = APIUtil.getNativeKernelArgs(user_func_ref, mem_list, sizes);",
// Register CLEvent
javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);",
// Check if we need to delete the GlobalRef.
javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_func_ref);",
nativeAfterVars = "\tvoid **args_mem_loc = num_mem_objects == 0 ? NULL : (void **)malloc(num_mem_objects * sizeof(void *));",
nativeBeforeCall = "\t_ptr_i = 0;\n" +
"\twhile ( _ptr_i < num_mem_objects ) {\n" +
"\t\targs_mem_loc[_ptr_i] = (cl_void *)((char *)args_address + (12 + 4 + _ptr_i * (4 + sizeof(void *))));\n" +
"\t\t_ptr_i++;\n" +
"\t}",
nativeAfterCall = "\tfree(args_mem_loc);"
)
@cl_int
int clEnqueueNativeKernel(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@PointerWrapper("cl_native_kernel_func") CLNativeKernel user_func,
@Constant("MemoryUtil.getAddress0(args)") @cl_void ByteBuffer args,
@AutoSize("args") @size_t long cb_args,
@Constant("mem_list == null ? 0 : mem_list.length") @cl_uint int num_mem_objects,
@Check(value = "1", canBeNull = true) @PointerArray("num_mem_objects") @Const @NativeType("cl_mem") CLMem[] mem_list,
@Check(value = "mem_list.length", canBeNull = true) @Helper long[] sizes,
@Constant(value = "(const void**)args_mem_loc", isNative = true) @Const @Indirect @cl_void ByteBuffer args_mem_loc,
@AutoSize(value = "event_wait_list", canBeNull = true) @cl_uint int num_events_in_wait_list,
@Check(canBeNull = true) @Const @NativeType("cl_event") PointerBuffer event_wait_list,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("cl_event") PointerBuffer event);
@cl_int
int clWaitForEvents(@AutoSize("event_list") @cl_uint int num_events,
@Check("1") @Const @NativeType("cl_event") PointerBuffer event_list);
@Alternate("clWaitForEvents")
@cl_int
int clWaitForEvents(@Constant("1") @cl_uint int num_events,
@Constant(value = "APIUtil.getPointer(event)", keepParam = true) CLEvent event);
@cl_int
int clGetEventInfo(@PointerWrapper("cl_event") CLEvent event,
@NativeType("cl_event_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) event.retain();")
@cl_int
int clRetainEvent(@PointerWrapper("cl_event") CLEvent event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) event.release();")
@cl_int
int clReleaseEvent(@PointerWrapper("cl_event") CLEvent event);
@Code(javaAfterNative = "\t\tif ( __result == CL_SUCCESS ) command_queue.registerCLEvent(event);")
@cl_int
int clEnqueueMarker(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@OutParameter @Check("1") @NativeType("cl_event") PointerBuffer event);
@cl_int
int clEnqueueBarrier(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue);
@cl_int
int clEnqueueWaitForEvents(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@AutoSize("event_list") @cl_uint int num_events,
@Check("1") @Const @NativeType("cl_event") PointerBuffer event_list);
@Alternate("clEnqueueWaitForEvents")
@cl_int
int clEnqueueWaitForEvents(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue,
@Constant("1") @cl_uint int num_events,
@Constant(value = "APIUtil.getPointer(event)", keepParam = true) CLEvent event);
@cl_int
int clGetEventProfilingInfo(@PointerWrapper("cl_event") CLEvent event,
@NativeType("cl_profiling_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
@cl_int
int clFlush(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue);
@cl_int
int clFinish(@PointerWrapper("cl_command_queue") CLCommandQueue command_queue);
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddress(@NullTerminated @Const @cl_char ByteBuffer func_name);
@Alternate("clGetExtensionFunctionAddress")
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddress(@NullTerminated CharSequence func_name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_device_attribute_query.java 0000644 0001750 0001750 00000003613 12702226520 025033 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_device_attribute_query {
/**
* Accepted as the <param_name> parameter of clGetDeviceInfo. Return the
* offset in nano-seconds between an event timestamp and Epoch.
*/
int CL_DEVICE_PROFILING_TIMER_OFFSET_AMD = 0x4036;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_global_int32_extended_atomics.java 0000644 0001750 0001750 00000003302 12702226520 026160 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_global_int32_extended_atomics {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/APPLE_ContextLoggingFunctions.java 0000644 0001750 0001750 00000005400 12702226520 025344 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.*;
import java.nio.ByteBuffer;
@Private
@CLPlatformExtension
@CLDeviceExtension
@Extension(postfix = "APPLE", nativeName = "cl_APPLE_ContextLoggingFunctions")
public interface APPLE_ContextLoggingFunctions {
@Extern
void clLogMessagesToSystemLogAPPLE(@Check @Const @cl_char ByteBuffer errstr,
@Const @cl_void ByteBuffer private_info,
@AutoSize("private_info") @size_t long cb,
@Check @cl_void ByteBuffer user_data);
@Extern
void clLogMessagesToStdoutAPPLE(@Check @Const @cl_char ByteBuffer errstr,
@Const @cl_void ByteBuffer private_info,
@AutoSize("private_info") @size_t long cb,
@Check @cl_void ByteBuffer user_data);
@Extern
void clLogMessagesToStderrAPPLE(@Check @Const @cl_char ByteBuffer errstr,
@Const @cl_void ByteBuffer private_info,
@AutoSize("private_info") @size_t long cb,
@Check @cl_void ByteBuffer user_data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_icd.java 0000644 0001750 0001750 00000005045 12702226520 021047 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.CLPlatformExtension;
import org.lwjgl.util.generator.opencl.cl_int;
import org.lwjgl.util.generator.opencl.cl_uint;
import java.nio.IntBuffer;
@CLPlatformExtension
@Extension(postfix = "KHR", className = "KHRICD")
public interface KHR_icd {
/** Accepted as <param_name> to the function clGetPlatformInfo */
int CL_PLATFORM_ICD_SUFFIX_KHR = 0x0920;
/** Returned by clGetPlatformIDs when no platforms are found */
int CL_PLATFORM_NOT_FOUND_KHR = -1001;
@Optional(reason = "AMD Stream does not expose this (version tested: 2.5)")
@cl_int
int clIcdGetPlatformIDsKHR(@AutoSize(value = "platforms", canBeNull = true) @cl_uint int num_entries,
@OutParameter @Check(canBeNull = true) @NativeType("cl_platform_id") PointerBuffer platforms,
@OutParameter @Check(value = "1", canBeNull = true) @cl_uint IntBuffer num_platforms);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_mipmap_image_writes.java 0000644 0001750 0001750 00000003270 12702226520 024330 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_mipmap_image_writes {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_local_int32_base_atomics.java 0000644 0001750 0001750 00000003275 12702226520 025135 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_local_int32_base_atomics {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_terminate_context.java 0000644 0001750 0001750 00000003716 12702226520 024047 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.cl_int;
@CLDeviceExtension
public interface KHR_terminate_context {
int CL_DEVICE_TERMINATE_CAPABILITY_KHR = 0x200F,
CL_CONTEXT_TERMINATE_KHR = 0x2010;
@cl_int
int clTerminateContextKHR(@PointerWrapper("cl_context") CLContext context);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_gl_event.java 0000644 0001750 0001750 00000004754 12702226520 022121 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.opengl.GLSync;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.CLPlatformExtension;
import org.lwjgl.util.generator.opencl.cl_int;
import java.nio.IntBuffer;
@Imports("org.lwjgl.opengl.GLSync")
@CLPlatformExtension
@CLDeviceExtension
@Extension(postfix = "KHR", className = "KHRGLEvent")
public interface KHR_gl_event {
/** Returned by clGetEventInfo when param_name is CL_EVENT_COMMAND_TYPE: */
int CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR = 0x200D;
@Check(value = "errcode_ret", canBeNull = true)
@PointerWrapper(value = "cl_event", params = "context")
CLEvent clCreateEventFromGLsyncKHR(@PointerWrapper("cl_context") CLContext context,
@PointerWrapper("cl_GLsync") GLSync sync,
@OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_gl_sharing.java 0000644 0001750 0001750 00000006647 12702226520 022436 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.*;
import java.nio.ByteBuffer;
@CLPlatformExtension
@CLDeviceExtension
@Extension(postfix = "KHR", className = "KHRGLSharing")
public interface KHR_gl_sharing {
/**
* Returned by clCreateContext, clCreateContextFromType, and
* clGetGLContextInfoKHR when an invalid OpenGL context or share group
* object handle is specified in <properties>:
*/
int CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR = -1000;
/** Accepted as the <param_name> argument of clGetGLContextInfoKHR: */
int CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR = 0x2006,
CL_DEVICES_FOR_GL_CONTEXT_KHR = 0x2007;
/**
* Accepted as an attribute name in the 'properties' argument of
* clCreateContext and clCreateContextFromType:
*/
int CL_GL_CONTEXT_KHR = 0x2008,
CL_EGL_DISPLAY_KHR = 0x2009,
CL_GLX_DISPLAY_KHR = 0x200A,
CL_WGL_HDC_KHR = 0x200B,
CL_CGL_SHAREGROUP_KHR = 0x200C;
@Code(
javaBeforeNative = "\t\tif ( param_value_size_ret == null && APIUtil.isDevicesParam(param_name) ) param_value_size_ret = APIUtil.getBufferPointer();",
javaAfterNative = "\t\tif ( __result == CL10.CL_SUCCESS && param_value != null && APIUtil.isDevicesParam(param_name) ) APIUtil.getCLPlatform(properties).registerCLDevices(param_value, param_value_size_ret);"
)
@cl_int
int clGetGLContextInfoKHR(@NullTerminated @Const @NativeType("cl_context_properties") PointerBuffer properties,
@NativeType("cl_gl_context_info") int param_name,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_media_ops2.java 0000644 0001750 0001750 00000003257 12702226520 022312 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_media_ops2 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/NV_compiler_options.java 0000644 0001750 0001750 00000003264 12702226520 023575 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface NV_compiler_options {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_byte_addressable_store.java 0000644 0001750 0001750 00000003273 12702226520 025021 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_byte_addressable_store {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_int64_extended_atomics.java 0000644 0001750 0001750 00000003273 12702226520 024654 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_int64_extended_atomics {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_image2d_from_buffer.java 0000644 0001750 0001750 00000003644 12702226520 024177 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.Extension;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
@Extension(postfix = "KHR", className = "KHRImage2DFromBuffer")
public interface KHR_image2d_from_buffer {
/** cl_device_info */
int CL_DEVICE_IMAGE_PITCH_ALIGNMENT = 0x104A,
CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT = 0x104B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/INTEL_printf.java 0000644 0001750 0001750 00000003255 12702226520 022042 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface INTEL_printf {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/EXT_atomic_counters_32.java 0000644 0001750 0001750 00000003475 12702226520 024033 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface EXT_atomic_counters_32 {
/** CLDevice query: Max number of atomic counters that can be used by a kernel. */
int CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT = 0x4032;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_int64_base_atomics.java 0000644 0001750 0001750 00000003267 12702226520 023771 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_int64_base_atomics {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_media_ops.java 0000644 0001750 0001750 00000003256 12702226520 022227 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_media_ops {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_mipmap_image.java 0000644 0001750 0001750 00000003261 12702226520 022733 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_mipmap_image {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_fp16.java 0000644 0001750 0001750 00000003351 12702226520 021062 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_fp16 {
/** cl_device_info */
int CL_DEVICE_HALF_FP_CONFIG = 0x1033;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_depth_images.java 0000644 0001750 0001750 00000003343 12702226520 022740 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_depth_images {
/** cl_channel_order */
int CL_DEPTH = 0x10BD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_fp64.java 0000644 0001750 0001750 00000003353 12702226520 021067 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_fp64 {
/** cl_device_info */
int CL_DEVICE_DOUBLE_FP_CONFIG = 0x1032;
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_subgroups.java 0000644 0001750 0001750 00000005363 12702226520 022344 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
import org.lwjgl.util.generator.opencl.cl_int;
import org.lwjgl.util.generator.opencl.cl_void;
import org.lwjgl.util.generator.opencl.size_t;
import java.nio.ByteBuffer;
@CLDeviceExtension
public interface KHR_subgroups {
@cl_int
int clGetKernelSubGroupInfoKHR(@PointerWrapper("cl_kernel") CLKernel kernel,
@PointerWrapper(value = "cl_device_id", canBeNull = true) CLDevice device,
@NativeType("cl_kernel_sub_group_info") int param_name,
@AutoSize(value = "input_value", canBeNull = true) @size_t long input_value_size,
@Check(canBeNull = true) @Const @cl_void ByteBuffer input_value,
@AutoSize(value = "param_value", canBeNull = true) @size_t long param_value_size,
@OutParameter @Check(canBeNull = true) @cl_void ByteBuffer param_value,
@OutParameter @Check(value = "1", canBeNull = true) @NativeType("size_t") PointerBuffer param_value_size_ret);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/KHR_global_int32_base_atomics.java 0000644 0001750 0001750 00000003276 12702226520 025304 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface KHR_global_int32_base_atomics {
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/AMD_device_memory_flags.java 0000644 0001750 0001750 00000003423 12702226520 024266 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface AMD_device_memory_flags {
/** Alloc from GPU's CPU visible heap. */
int CL_MEM_USE_PERSISTENT_MEM_AMD = (1 << 6);
} lwjgl-2.9.3/src/templates/org/lwjgl/opencl/NV_pragma_unroll.java 0000644 0001750 0001750 00000003261 12702226520 023047 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opencl;
import org.lwjgl.util.generator.opencl.CLDeviceExtension;
@CLDeviceExtension
public interface NV_pragma_unroll {
} lwjgl-2.9.3/src/templates/org/lwjgl/openal/ 0000755 0001750 0001750 00000000000 12702226520 016733 5 ustar apo apo lwjgl-2.9.3/src/templates/org/lwjgl/openal/EFX10.java 0000644 0001750 0001750 00000073503 12702226520 020371 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.openal;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.openal.ALenum;
import org.lwjgl.util.generator.openal.ALsizei;
import org.lwjgl.util.generator.openal.ALuint;
import org.lwjgl.util.generator.openal.ALvoid;
import org.lwjgl.util.generator.Alternate;
/**
* Implementation of the OpenAL extension ALC_EXT_EFX (version 1.0). Contains necessary fields,
* methods and a range of supplementary fields containing minimum, maximum and default values of
* the former fields.
*
* On top of regular functions defined in the ALC_EXT_EFX, there are also several convenience
* functions. Namely alGen... and alDelete... which do not take a Java buffer parameter and
* automatically create or delete a single object, without the overhead of using a buffer.
*
* For comments and specification of functions and fields, refer to the "Effects Extension Guide"
* which is part of the OpenAL SDK and can be downloaded from:
* http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx
*
* @author Ciardhubh
* @version $Revision$
* $Id$
*/
public interface EFX10 {
// ALC properties
String ALC_EXT_EFX_NAME = "ALC_EXT_EFX";
int ALC_EFX_MAJOR_VERSION = 0x20001;
int ALC_EFX_MINOR_VERSION = 0x20002;
int ALC_MAX_AUXILIARY_SENDS = 0x20003;
// Listener properties
int AL_METERS_PER_UNIT = 0x20004;
// Source properties
int AL_DIRECT_FILTER = 0x20005;
int AL_AUXILIARY_SEND_FILTER = 0x20006;
int AL_AIR_ABSORPTION_FACTOR = 0x20007;
int AL_ROOM_ROLLOFF_FACTOR = 0x20008;
int AL_CONE_OUTER_GAINHF = 0x20009;
int AL_DIRECT_FILTER_GAINHF_AUTO = 0x2000A;
int AL_AUXILIARY_SEND_FILTER_GAIN_AUTO = 0x2000B;
int AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO = 0x2000C;
// Auxiliary effect slot properties
int AL_EFFECTSLOT_EFFECT = 0x0001;
int AL_EFFECTSLOT_GAIN = 0x0002;
int AL_EFFECTSLOT_AUXILIARY_SEND_AUTO = 0x0003;
// NULL auxiliary slot ID to disable a source send
int AL_EFFECTSLOT_NULL = 0x0000;
// Effect parameters
// Reverb
int AL_REVERB_DENSITY = 0x0001;
int AL_REVERB_DIFFUSION = 0x0002;
int AL_REVERB_GAIN = 0x0003;
int AL_REVERB_GAINHF = 0x0004;
int AL_REVERB_DECAY_TIME = 0x0005;
int AL_REVERB_DECAY_HFRATIO = 0x0006;
int AL_REVERB_REFLECTIONS_GAIN = 0x0007;
int AL_REVERB_REFLECTIONS_DELAY = 0x0008;
int AL_REVERB_LATE_REVERB_GAIN = 0x0009;
int AL_REVERB_LATE_REVERB_DELAY = 0x000A;
int AL_REVERB_AIR_ABSORPTION_GAINHF = 0x000B;
int AL_REVERB_ROOM_ROLLOFF_FACTOR = 0x000C;
int AL_REVERB_DECAY_HFLIMIT = 0x000D;
// EAX Reverb
int AL_EAXREVERB_DENSITY = 0x0001;
int AL_EAXREVERB_DIFFUSION = 0x0002;
int AL_EAXREVERB_GAIN = 0x0003;
int AL_EAXREVERB_GAINHF = 0x0004;
int AL_EAXREVERB_GAINLF = 0x0005;
int AL_EAXREVERB_DECAY_TIME = 0x0006;
int AL_EAXREVERB_DECAY_HFRATIO = 0x0007;
int AL_EAXREVERB_DECAY_LFRATIO = 0x0008;
int AL_EAXREVERB_REFLECTIONS_GAIN = 0x0009;
int AL_EAXREVERB_REFLECTIONS_DELAY = 0x000A;
int AL_EAXREVERB_REFLECTIONS_PAN = 0x000B;
int AL_EAXREVERB_LATE_REVERB_GAIN = 0x000C;
int AL_EAXREVERB_LATE_REVERB_DELAY = 0x000D;
int AL_EAXREVERB_LATE_REVERB_PAN = 0x000E;
int AL_EAXREVERB_ECHO_TIME = 0x000F;
int AL_EAXREVERB_ECHO_DEPTH = 0x0010;
int AL_EAXREVERB_MODULATION_TIME = 0x0011;
int AL_EAXREVERB_MODULATION_DEPTH = 0x0012;
int AL_EAXREVERB_AIR_ABSORPTION_GAINHF = 0x0013;
int AL_EAXREVERB_HFREFERENCE = 0x0014;
int AL_EAXREVERB_LFREFERENCE = 0x0015;
int AL_EAXREVERB_ROOM_ROLLOFF_FACTOR = 0x0016;
int AL_EAXREVERB_DECAY_HFLIMIT = 0x0017;
// Chorus
int AL_CHORUS_WAVEFORM = 0x0001;
int AL_CHORUS_PHASE = 0x0002;
int AL_CHORUS_RATE = 0x0003;
int AL_CHORUS_DEPTH = 0x0004;
int AL_CHORUS_FEEDBACK = 0x0005;
int AL_CHORUS_DELAY = 0x0006;
// Distortion
int AL_DISTORTION_EDGE = 0x0001;
int AL_DISTORTION_GAIN = 0x0002;
int AL_DISTORTION_LOWPASS_CUTOFF = 0x0003;
int AL_DISTORTION_EQCENTER = 0x0004;
int AL_DISTORTION_EQBANDWIDTH = 0x0005;
// Echo
int AL_ECHO_DELAY = 0x0001;
int AL_ECHO_LRDELAY = 0x0002;
int AL_ECHO_DAMPING = 0x0003;
int AL_ECHO_FEEDBACK = 0x0004;
int AL_ECHO_SPREAD = 0x0005;
// Flanger
int AL_FLANGER_WAVEFORM = 0x0001;
int AL_FLANGER_PHASE = 0x0002;
int AL_FLANGER_RATE = 0x0003;
int AL_FLANGER_DEPTH = 0x0004;
int AL_FLANGER_FEEDBACK = 0x0005;
int AL_FLANGER_DELAY = 0x0006;
// Frequency shifter
int AL_FREQUENCY_SHIFTER_FREQUENCY = 0x0001;
int AL_FREQUENCY_SHIFTER_LEFT_DIRECTION = 0x0002;
int AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION = 0x0003;
// Vocal morpher
int AL_VOCAL_MORPHER_PHONEMEA = 0x0001;
int AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING = 0x0002;
int AL_VOCAL_MORPHER_PHONEMEB = 0x0003;
int AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING = 0x0004;
int AL_VOCAL_MORPHER_WAVEFORM = 0x0005;
int AL_VOCAL_MORPHER_RATE = 0x0006;
// Pitch shifter
int AL_PITCH_SHIFTER_COARSE_TUNE = 0x0001;
int AL_PITCH_SHIFTER_FINE_TUNE = 0x0002;
// Ring modulator
int AL_RING_MODULATOR_FREQUENCY = 0x0001;
int AL_RING_MODULATOR_HIGHPASS_CUTOFF = 0x0002;
int AL_RING_MODULATOR_WAVEFORM = 0x0003;
// Autowah
int AL_AUTOWAH_ATTACK_TIME = 0x0001;
int AL_AUTOWAH_RELEASE_TIME = 0x0002;
int AL_AUTOWAH_RESONANCE = 0x0003;
int AL_AUTOWAH_PEAK_GAIN = 0x0004;
// Compressor
int AL_COMPRESSOR_ONOFF = 0x0001;
// Equalizer
int AL_EQUALIZER_LOW_GAIN = 0x0001;
int AL_EQUALIZER_LOW_CUTOFF = 0x0002;
int AL_EQUALIZER_MID1_GAIN = 0x0003;
int AL_EQUALIZER_MID1_CENTER = 0x0004;
int AL_EQUALIZER_MID1_WIDTH = 0x0005;
int AL_EQUALIZER_MID2_GAIN = 0x0006;
int AL_EQUALIZER_MID2_CENTER = 0x0007;
int AL_EQUALIZER_MID2_WIDTH = 0x0008;
int AL_EQUALIZER_HIGH_GAIN = 0x0009;
int AL_EQUALIZER_HIGH_CUTOFF = 0x000A;
// Effect type
int AL_EFFECT_FIRST_PARAMETER = 0x0000;
int AL_EFFECT_LAST_PARAMETER = 0x8000;
int AL_EFFECT_TYPE = 0x8001;
// Effect types, used with AL_EFFECT_TYPE
int AL_EFFECT_NULL = 0x0000;
int AL_EFFECT_REVERB = 0x0001;
int AL_EFFECT_CHORUS = 0x0002;
int AL_EFFECT_DISTORTION = 0x0003;
int AL_EFFECT_ECHO = 0x0004;
int AL_EFFECT_FLANGER = 0x0005;
int AL_EFFECT_FREQUENCY_SHIFTER = 0x0006;
int AL_EFFECT_VOCAL_MORPHER = 0x0007;
int AL_EFFECT_PITCH_SHIFTER = 0x0008;
int AL_EFFECT_RING_MODULATOR = 0x0009;
int AL_EFFECT_AUTOWAH = 0x000A;
int AL_EFFECT_COMPRESSOR = 0x000B;
int AL_EFFECT_EQUALIZER = 0x000C;
int AL_EFFECT_EAXREVERB = 0x8000;
// Filter properties
// Lowpass
int AL_LOWPASS_GAIN = 0x0001;
int AL_LOWPASS_GAINHF = 0x0002;
// Highpass
int AL_HIGHPASS_GAIN = 0x0001;
int AL_HIGHPASS_GAINLF = 0x0002;
// Bandpass
int AL_BANDPASS_GAIN = 0x0001;
int AL_BANDPASS_GAINLF = 0x0002;
int AL_BANDPASS_GAINHF = 0x0003;
// Filter type
int AL_FILTER_FIRST_PARAMETER = 0x0000;
int AL_FILTER_LAST_PARAMETER = 0x8000;
int AL_FILTER_TYPE = 0x8001;
// Filter types, used with the AL_FILTER_TYPE property
int AL_FILTER_NULL = 0x0000;
int AL_FILTER_LOWPASS = 0x0001;
int AL_FILTER_HIGHPASS = 0x0002;
int AL_FILTER_BANDPASS = 0x0003;
// Auxiliary effect slot object functions
@ALvoid
void alGenAuxiliaryEffectSlots(@AutoSize("auxiliaryeffectslots") @ALsizei int n, @OutParameter @ALuint IntBuffer auxiliaryeffectslots);
@Alternate(value = "alGenAuxiliaryEffectSlots", nativeAlt = true)
@ALvoid
void alGenAuxiliaryEffectSlots2(@Constant("1") @ALsizei int n, @Result @ALuint int auxiliaryeffectslot);
@ALvoid
void alDeleteAuxiliaryEffectSlots(@AutoSize("auxiliaryeffectslots") @ALsizei int n, @OutParameter @ALuint IntBuffer auxiliaryeffectslots);
@Alternate(value = "alDeleteAuxiliaryEffectSlots", nativeAlt = true)
@ALvoid
void alDeleteAuxiliaryEffectSlots2(@Constant("1") @ALsizei int n, @Indirect @ALuint int auxiliaryeffectslot);
boolean alIsAuxiliaryEffectSlot(@ALuint int auxiliaryeffectslot);
@ALvoid
void alAuxiliaryEffectSloti(@ALuint int auxiliaryeffectslot, @ALenum int param, int value);
@StripPostfix("values")
@ALvoid
void alAuxiliaryEffectSlotiv(@ALuint int auxiliaryeffectslot, @ALenum int param, @Check("1") @Const IntBuffer values);
@ALvoid
void alAuxiliaryEffectSlotf(@ALuint int auxiliaryeffectslot, @ALenum int param, float value);
@StripPostfix("values")
@ALvoid
void alAuxiliaryEffectSlotfv(@ALuint int auxiliaryeffectslot, @ALenum int param, @Check("1") @Const FloatBuffer values);
@ALvoid
void alGetAuxiliaryEffectSloti(@ALuint int auxiliaryeffectslot, @ALenum int param, @Result int value);
@StripPostfix("intdata")
@ALvoid
void alGetAuxiliaryEffectSlotiv(@ALuint int auxiliaryeffectslot, @ALenum int param, @OutParameter @Check("1") IntBuffer intdata);
@ALvoid
void alGetAuxiliaryEffectSlotf(@ALuint int auxiliaryeffectslot, @ALenum int param, @Result float value);
@StripPostfix("floatdata")
@ALvoid
void alGetAuxiliaryEffectSlotfv(@ALuint int auxiliaryeffectslot, @ALenum int param, @OutParameter @Check("1") FloatBuffer floatdata);
// Effect object functions
@ALvoid
void alGenEffects(@AutoSize("effects") @ALsizei int n, @OutParameter @ALuint IntBuffer effects);
@Alternate(value = "alGenEffects", nativeAlt = true)
@ALvoid
void alGenEffects2(@Constant("1") @ALsizei int n, @Result @ALuint int effect);
@ALvoid
void alDeleteEffects(@AutoSize("effects") @ALsizei int n, @OutParameter @ALuint IntBuffer effects);
@Alternate(value = "alDeleteEffects", nativeAlt = true)
@ALvoid
void alDeleteEffects2(@Constant("1") @ALsizei int n, @Indirect @ALuint int effect);
boolean alIsEffect(@ALuint int effect);
@ALvoid
void alEffecti(@ALuint int effect, @ALenum int param, int value);
@StripPostfix("values")
@ALvoid
void alEffectiv(@ALuint int effect, @ALenum int param, @Check("1") @Const IntBuffer values);
@ALvoid
void alEffectf(@ALuint int effect, @ALenum int param, float value);
@StripPostfix("values")
@ALvoid
void alEffectfv(@ALuint int effect, @ALenum int param, @Check("1") @Const FloatBuffer values);
@ALvoid
void alGetEffecti(@ALuint int effect, @ALenum int param, @Result int value);
@StripPostfix("intdata")
@ALvoid
void alGetEffectiv(@ALuint int effect, @ALenum int param, @OutParameter @Check("1") IntBuffer intdata);
@ALvoid
void alGetEffectf(@ALuint int effect, @ALenum int param, @Result float value);
@StripPostfix("floatdata")
@ALvoid
void alGetEffectfv(@ALuint int effect, @ALenum int param, @OutParameter @Check("1") FloatBuffer floatdata);
// Filter object functions
@ALvoid
void alGenFilters(@AutoSize("filters") @ALsizei int n, @OutParameter @ALuint IntBuffer filters);
@Alternate(value = "alGenFilters", nativeAlt = true)
@ALvoid
void alGenFilters2(@Constant("1") @ALsizei int n, @Result @ALuint int filter);
@ALvoid
void alDeleteFilters(@AutoSize("filters") @ALsizei int n, @OutParameter @ALuint IntBuffer filters);
@Alternate(value = "alDeleteFilters", nativeAlt = true)
@ALvoid
void alDeleteFilters2(@Constant("1") @ALsizei int n, @Indirect @ALuint int filter);
boolean alIsFilter(@ALuint int filter);
@ALvoid
void alFilteri(@ALuint int filter, @ALenum int param, int value);
@StripPostfix("values")
@ALvoid
void alFilteriv(@ALuint int filter, @ALenum int param, @Check("1") @Const IntBuffer values);
@ALvoid
void alFilterf(@ALuint int filter, @ALenum int param, float value);
@StripPostfix("values")
@ALvoid
void alFilterfv(@ALuint int filter, @ALenum int param, @Check("1") @Const FloatBuffer values);
@ALvoid
void alGetFilteri(@ALuint int filter, @ALenum int param, @Result int value);
@StripPostfix("intdata")
@ALvoid
void alGetFilteriv(@ALuint int filter, @ALenum int param, @OutParameter @Check("1") IntBuffer intdata);
@ALvoid
void alGetFilterf(@ALuint int filter, @ALenum int param, @Result float value);
@StripPostfix("floatdata")
@ALvoid
void alGetFilterfv(@ALuint int filter, @ALenum int param, @OutParameter @Check("1") FloatBuffer floatdata);
// Source property value ranges and defaults
float AL_MIN_AIR_ABSORPTION_FACTOR = 0.0f;
float AL_MAX_AIR_ABSORPTION_FACTOR = 10.0f;
float AL_DEFAULT_AIR_ABSORPTION_FACTOR = 0.0f;
float AL_MIN_ROOM_ROLLOFF_FACTOR = 0.0f;
float AL_MAX_ROOM_ROLLOFF_FACTOR = 10.0f;
float AL_DEFAULT_ROOM_ROLLOFF_FACTOR = 0.0f;
float AL_MIN_CONE_OUTER_GAINHF = 0.0f;
float AL_MAX_CONE_OUTER_GAINHF = 1.0f;
float AL_DEFAULT_CONE_OUTER_GAINHF = 1.0f;
int AL_MIN_DIRECT_FILTER_GAINHF_AUTO = AL10.AL_FALSE;
int AL_MAX_DIRECT_FILTER_GAINHF_AUTO = AL10.AL_TRUE;
int AL_DEFAULT_DIRECT_FILTER_GAINHF_AUTO = AL10.AL_TRUE;
int AL_MIN_AUXILIARY_SEND_FILTER_GAIN_AUTO = AL10.AL_FALSE;
int AL_MAX_AUXILIARY_SEND_FILTER_GAIN_AUTO = AL10.AL_TRUE;
int AL_DEFAULT_AUXILIARY_SEND_FILTER_GAIN_AUTO = AL10.AL_TRUE;
int AL_MIN_AUXILIARY_SEND_FILTER_GAINHF_AUTO = AL10.AL_FALSE;
int AL_MAX_AUXILIARY_SEND_FILTER_GAINHF_AUTO = AL10.AL_TRUE;
int AL_DEFAULT_AUXILIARY_SEND_FILTER_GAINHF_AUTO = AL10.AL_TRUE;
// Listener property value ranges and defaults
float AL_MIN_METERS_PER_UNIT = Float.MIN_VALUE;
float AL_MAX_METERS_PER_UNIT = Float.MAX_VALUE;
float AL_DEFAULT_METERS_PER_UNIT = 1.0f;
// Effect parameter ranges and defaults
// Reverb
float AL_REVERB_MIN_DENSITY = 0.0f;
float AL_REVERB_MAX_DENSITY = 1.0f;
float AL_REVERB_DEFAULT_DENSITY = 1.0f;
float AL_REVERB_MIN_DIFFUSION = 0.0f;
float AL_REVERB_MAX_DIFFUSION = 1.0f;
float AL_REVERB_DEFAULT_DIFFUSION = 1.0f;
float AL_REVERB_MIN_GAIN = 0.0f;
float AL_REVERB_MAX_GAIN = 1.0f;
float AL_REVERB_DEFAULT_GAIN = 0.32f;
float AL_REVERB_MIN_GAINHF = 0.0f;
float AL_REVERB_MAX_GAINHF = 1.0f;
float AL_REVERB_DEFAULT_GAINHF = 0.89f;
float AL_REVERB_MIN_DECAY_TIME = 0.1f;
float AL_REVERB_MAX_DECAY_TIME = 20.0f;
float AL_REVERB_DEFAULT_DECAY_TIME = 1.49f;
float AL_REVERB_MIN_DECAY_HFRATIO = 0.1f;
float AL_REVERB_MAX_DECAY_HFRATIO = 2.0f;
float AL_REVERB_DEFAULT_DECAY_HFRATIO = 0.83f;
float AL_REVERB_MIN_REFLECTIONS_GAIN = 0.0f;
float AL_REVERB_MAX_REFLECTIONS_GAIN = 3.16f;
float AL_REVERB_DEFAULT_REFLECTIONS_GAIN = 0.05f;
float AL_REVERB_MIN_REFLECTIONS_DELAY = 0.0f;
float AL_REVERB_MAX_REFLECTIONS_DELAY = 0.3f;
float AL_REVERB_DEFAULT_REFLECTIONS_DELAY = 0.007f;
float AL_REVERB_MIN_LATE_REVERB_GAIN = 0.0f;
float AL_REVERB_MAX_LATE_REVERB_GAIN = 10.0f;
float AL_REVERB_DEFAULT_LATE_REVERB_GAIN = 1.26f;
float AL_REVERB_MIN_LATE_REVERB_DELAY = 0.0f;
float AL_REVERB_MAX_LATE_REVERB_DELAY = 0.1f;
float AL_REVERB_DEFAULT_LATE_REVERB_DELAY = 0.011f;
float AL_REVERB_MIN_AIR_ABSORPTION_GAINHF = 0.892f;
float AL_REVERB_MAX_AIR_ABSORPTION_GAINHF = 1.0f;
float AL_REVERB_DEFAULT_AIR_ABSORPTION_GAINHF = 0.994f;
float AL_REVERB_MIN_ROOM_ROLLOFF_FACTOR = 0.0f;
float AL_REVERB_MAX_ROOM_ROLLOFF_FACTOR = 10.0f;
float AL_REVERB_DEFAULT_ROOM_ROLLOFF_FACTOR = 0.0f;
int AL_REVERB_MIN_DECAY_HFLIMIT = AL10.AL_FALSE;
int AL_REVERB_MAX_DECAY_HFLIMIT = AL10.AL_TRUE;
int AL_REVERB_DEFAULT_DECAY_HFLIMIT = AL10.AL_TRUE;
// EAX reverb
float AL_EAXREVERB_MIN_DENSITY = 0.0f;
float AL_EAXREVERB_MAX_DENSITY = 1.0f;
float AL_EAXREVERB_DEFAULT_DENSITY = 1.0f;
float AL_EAXREVERB_MIN_DIFFUSION = 0.0f;
float AL_EAXREVERB_MAX_DIFFUSION = 1.0f;
float AL_EAXREVERB_DEFAULT_DIFFUSION = 1.0f;
float AL_EAXREVERB_MIN_GAIN = 0.0f;
float AL_EAXREVERB_MAX_GAIN = 1.0f;
float AL_EAXREVERB_DEFAULT_GAIN = 0.32f;
float AL_EAXREVERB_MIN_GAINHF = 0.0f;
float AL_EAXREVERB_MAX_GAINHF = 1.0f;
float AL_EAXREVERB_DEFAULT_GAINHF = 0.89f;
float AL_EAXREVERB_MIN_GAINLF = 0.0f;
float AL_EAXREVERB_MAX_GAINLF = 1.0f;
float AL_EAXREVERB_DEFAULT_GAINLF = 1.0f;
float AL_EAXREVERB_MIN_DECAY_TIME = 0.1f;
float AL_EAXREVERB_MAX_DECAY_TIME = 20.0f;
float AL_EAXREVERB_DEFAULT_DECAY_TIME = 1.49f;
float AL_EAXREVERB_MIN_DECAY_HFRATIO = 0.1f;
float AL_EAXREVERB_MAX_DECAY_HFRATIO = 2.0f;
float AL_EAXREVERB_DEFAULT_DECAY_HFRATIO = 0.83f;
float AL_EAXREVERB_MIN_DECAY_LFRATIO = 0.1f;
float AL_EAXREVERB_MAX_DECAY_LFRATIO = 2.0f;
float AL_EAXREVERB_DEFAULT_DECAY_LFRATIO = 1.0f;
float AL_EAXREVERB_MIN_REFLECTIONS_GAIN = 0.0f;
float AL_EAXREVERB_MAX_REFLECTIONS_GAIN = 3.16f;
float AL_EAXREVERB_DEFAULT_REFLECTIONS_GAIN = 0.05f;
float AL_EAXREVERB_MIN_REFLECTIONS_DELAY = 0.0f;
float AL_EAXREVERB_MAX_REFLECTIONS_DELAY = 0.3f;
float AL_EAXREVERB_DEFAULT_REFLECTIONS_DELAY = 0.007f;
float AL_EAXREVERB_DEFAULT_REFLECTIONS_PAN_XYZ = 0.0f;
float AL_EAXREVERB_MIN_LATE_REVERB_GAIN = 0.0f;
float AL_EAXREVERB_MAX_LATE_REVERB_GAIN = 10.0f;
float AL_EAXREVERB_DEFAULT_LATE_REVERB_GAIN = 1.26f;
float AL_EAXREVERB_MIN_LATE_REVERB_DELAY = 0.0f;
float AL_EAXREVERB_MAX_LATE_REVERB_DELAY = 0.1f;
float AL_EAXREVERB_DEFAULT_LATE_REVERB_DELAY = 0.011f;
float AL_EAXREVERB_DEFAULT_LATE_REVERB_PAN_XYZ = 0.0f;
float AL_EAXREVERB_MIN_ECHO_TIME = 0.075f;
float AL_EAXREVERB_MAX_ECHO_TIME = 0.25f;
float AL_EAXREVERB_DEFAULT_ECHO_TIME = 0.25f;
float AL_EAXREVERB_MIN_ECHO_DEPTH = 0.0f;
float AL_EAXREVERB_MAX_ECHO_DEPTH = 1.0f;
float AL_EAXREVERB_DEFAULT_ECHO_DEPTH = 0.0f;
float AL_EAXREVERB_MIN_MODULATION_TIME = 0.04f;
float AL_EAXREVERB_MAX_MODULATION_TIME = 4.0f;
float AL_EAXREVERB_DEFAULT_MODULATION_TIME = 0.25f;
float AL_EAXREVERB_MIN_MODULATION_DEPTH = 0.0f;
float AL_EAXREVERB_MAX_MODULATION_DEPTH = 1.0f;
float AL_EAXREVERB_DEFAULT_MODULATION_DEPTH = 0.0f;
float AL_EAXREVERB_MIN_AIR_ABSORPTION_GAINHF = 0.892f;
float AL_EAXREVERB_MAX_AIR_ABSORPTION_GAINHF = 1.0f;
float AL_EAXREVERB_DEFAULT_AIR_ABSORPTION_GAINHF = 0.994f;
float AL_EAXREVERB_MIN_HFREFERENCE = 1000.0f;
float AL_EAXREVERB_MAX_HFREFERENCE = 20000.0f;
float AL_EAXREVERB_DEFAULT_HFREFERENCE = 5000.0f;
float AL_EAXREVERB_MIN_LFREFERENCE = 20.0f;
float AL_EAXREVERB_MAX_LFREFERENCE = 1000.0f;
float AL_EAXREVERB_DEFAULT_LFREFERENCE = 250.0f;
float AL_EAXREVERB_MIN_ROOM_ROLLOFF_FACTOR = 0.0f;
float AL_EAXREVERB_MAX_ROOM_ROLLOFF_FACTOR = 10.0f;
float AL_EAXREVERB_DEFAULT_ROOM_ROLLOFF_FACTOR = 0.0f;
int AL_EAXREVERB_MIN_DECAY_HFLIMIT = AL10.AL_FALSE;
int AL_EAXREVERB_MAX_DECAY_HFLIMIT = AL10.AL_TRUE;
int AL_EAXREVERB_DEFAULT_DECAY_HFLIMIT = AL10.AL_TRUE;
// Chorus
int AL_CHORUS_WAVEFORM_SINUSOID = 0;
int AL_CHORUS_WAVEFORM_TRIANGLE = 1;
int AL_CHORUS_MIN_WAVEFORM = 0;
int AL_CHORUS_MAX_WAVEFORM = 1;
int AL_CHORUS_DEFAULT_WAVEFORM = 1;
int AL_CHORUS_MIN_PHASE = -180;
int AL_CHORUS_MAX_PHASE = 180;
int AL_CHORUS_DEFAULT_PHASE = 90;
float AL_CHORUS_MIN_RATE = 0.0f;
float AL_CHORUS_MAX_RATE = 10.0f;
float AL_CHORUS_DEFAULT_RATE = 1.1f;
float AL_CHORUS_MIN_DEPTH = 0.0f;
float AL_CHORUS_MAX_DEPTH = 1.0f;
float AL_CHORUS_DEFAULT_DEPTH = 0.1f;
float AL_CHORUS_MIN_FEEDBACK = -1.0f;
float AL_CHORUS_MAX_FEEDBACK = 1.0f;
float AL_CHORUS_DEFAULT_FEEDBACK = 0.25f;
float AL_CHORUS_MIN_DELAY = 0.0f;
float AL_CHORUS_MAX_DELAY = 0.016f;
float AL_CHORUS_DEFAULT_DELAY = 0.016f;
// Distortion
float AL_DISTORTION_MIN_EDGE = 0.0f;
float AL_DISTORTION_MAX_EDGE = 1.0f;
float AL_DISTORTION_DEFAULT_EDGE = 0.2f;
float AL_DISTORTION_MIN_GAIN = 0.01f;
float AL_DISTORTION_MAX_GAIN = 1.0f;
float AL_DISTORTION_DEFAULT_GAIN = 0.05f;
float AL_DISTORTION_MIN_LOWPASS_CUTOFF = 80.0f;
float AL_DISTORTION_MAX_LOWPASS_CUTOFF = 24000.0f;
float AL_DISTORTION_DEFAULT_LOWPASS_CUTOFF = 8000.0f;
float AL_DISTORTION_MIN_EQCENTER = 80.0f;
float AL_DISTORTION_MAX_EQCENTER = 24000.0f;
float AL_DISTORTION_DEFAULT_EQCENTER = 3600.0f;
float AL_DISTORTION_MIN_EQBANDWIDTH = 80.0f;
float AL_DISTORTION_MAX_EQBANDWIDTH = 24000.0f;
float AL_DISTORTION_DEFAULT_EQBANDWIDTH = 3600.0f;
// Echo
float AL_ECHO_MIN_DELAY = 0.0f;
float AL_ECHO_MAX_DELAY = 0.207f;
float AL_ECHO_DEFAULT_DELAY = 0.1f;
float AL_ECHO_MIN_LRDELAY = 0.0f;
float AL_ECHO_MAX_LRDELAY = 0.404f;
float AL_ECHO_DEFAULT_LRDELAY = 0.1f;
float AL_ECHO_MIN_DAMPING = 0.0f;
float AL_ECHO_MAX_DAMPING = 0.99f;
float AL_ECHO_DEFAULT_DAMPING = 0.5f;
float AL_ECHO_MIN_FEEDBACK = 0.0f;
float AL_ECHO_MAX_FEEDBACK = 1.0f;
float AL_ECHO_DEFAULT_FEEDBACK = 0.5f;
float AL_ECHO_MIN_SPREAD = -1.0f;
float AL_ECHO_MAX_SPREAD = 1.0f;
float AL_ECHO_DEFAULT_SPREAD = -1.0f;
// Flanger
int AL_FLANGER_WAVEFORM_SINUSOID = 0;
int AL_FLANGER_WAVEFORM_TRIANGLE = 1;
int AL_FLANGER_MIN_WAVEFORM = 0;
int AL_FLANGER_MAX_WAVEFORM = 1;
int AL_FLANGER_DEFAULT_WAVEFORM = 1;
int AL_FLANGER_MIN_PHASE = -180;
int AL_FLANGER_MAX_PHASE = 180;
int AL_FLANGER_DEFAULT_PHASE = 0;
float AL_FLANGER_MIN_RATE = 0.0f;
float AL_FLANGER_MAX_RATE = 10.0f;
float AL_FLANGER_DEFAULT_RATE = 0.27f;
float AL_FLANGER_MIN_DEPTH = 0.0f;
float AL_FLANGER_MAX_DEPTH = 1.0f;
float AL_FLANGER_DEFAULT_DEPTH = 1.0f;
float AL_FLANGER_MIN_FEEDBACK = -1.0f;
float AL_FLANGER_MAX_FEEDBACK = 1.0f;
float AL_FLANGER_DEFAULT_FEEDBACK = -0.5f;
float AL_FLANGER_MIN_DELAY = 0.0f;
float AL_FLANGER_MAX_DELAY = 0.004f;
float AL_FLANGER_DEFAULT_DELAY = 0.002f;
// Frequency shifter
float AL_FREQUENCY_SHIFTER_MIN_FREQUENCY = 0.0f;
float AL_FREQUENCY_SHIFTER_MAX_FREQUENCY = 24000.0f;
float AL_FREQUENCY_SHIFTER_DEFAULT_FREQUENCY = 0.0f;
int AL_FREQUENCY_SHIFTER_MIN_LEFT_DIRECTION = 0;
int AL_FREQUENCY_SHIFTER_MAX_LEFT_DIRECTION = 2;
int AL_FREQUENCY_SHIFTER_DEFAULT_LEFT_DIRECTION = 0;
int AL_FREQUENCY_SHIFTER_DIRECTION_DOWN = 0;
int AL_FREQUENCY_SHIFTER_DIRECTION_UP = 1;
int AL_FREQUENCY_SHIFTER_DIRECTION_OFF = 2;
int AL_FREQUENCY_SHIFTER_MIN_RIGHT_DIRECTION = 0;
int AL_FREQUENCY_SHIFTER_MAX_RIGHT_DIRECTION = 2;
int AL_FREQUENCY_SHIFTER_DEFAULT_RIGHT_DIRECTION = 0;
// Vocal morpher
int AL_VOCAL_MORPHER_MIN_PHONEMEA = 0;
int AL_VOCAL_MORPHER_MAX_PHONEMEA = 29;
int AL_VOCAL_MORPHER_DEFAULT_PHONEMEA = 0;
int AL_VOCAL_MORPHER_MIN_PHONEMEA_COARSE_TUNING = -24;
int AL_VOCAL_MORPHER_MAX_PHONEMEA_COARSE_TUNING = 24;
int AL_VOCAL_MORPHER_DEFAULT_PHONEMEA_COARSE_TUNING = 0;
int AL_VOCAL_MORPHER_MIN_PHONEMEB = 0;
int AL_VOCAL_MORPHER_MAX_PHONEMEB = 29;
int AL_VOCAL_MORPHER_DEFAULT_PHONEMEB = 10;
int AL_VOCAL_MORPHER_MIN_PHONEMEB_COARSE_TUNING = -24;
int AL_VOCAL_MORPHER_MAX_PHONEMEB_COARSE_TUNING = 24;
int AL_VOCAL_MORPHER_DEFAULT_PHONEMEB_COARSE_TUNING = 0;
int AL_VOCAL_MORPHER_PHONEME_A = 0;
int AL_VOCAL_MORPHER_PHONEME_E = 1;
int AL_VOCAL_MORPHER_PHONEME_I = 2;
int AL_VOCAL_MORPHER_PHONEME_O = 3;
int AL_VOCAL_MORPHER_PHONEME_U = 4;
int AL_VOCAL_MORPHER_PHONEME_AA = 5;
int AL_VOCAL_MORPHER_PHONEME_AE = 6;
int AL_VOCAL_MORPHER_PHONEME_AH = 7;
int AL_VOCAL_MORPHER_PHONEME_AO = 8;
int AL_VOCAL_MORPHER_PHONEME_EH = 9;
int AL_VOCAL_MORPHER_PHONEME_ER = 10;
int AL_VOCAL_MORPHER_PHONEME_IH = 11;
int AL_VOCAL_MORPHER_PHONEME_IY = 12;
int AL_VOCAL_MORPHER_PHONEME_UH = 13;
int AL_VOCAL_MORPHER_PHONEME_UW = 14;
int AL_VOCAL_MORPHER_PHONEME_B = 15;
int AL_VOCAL_MORPHER_PHONEME_D = 16;
int AL_VOCAL_MORPHER_PHONEME_F = 17;
int AL_VOCAL_MORPHER_PHONEME_G = 18;
int AL_VOCAL_MORPHER_PHONEME_J = 19;
int AL_VOCAL_MORPHER_PHONEME_K = 20;
int AL_VOCAL_MORPHER_PHONEME_L = 21;
int AL_VOCAL_MORPHER_PHONEME_M = 22;
int AL_VOCAL_MORPHER_PHONEME_N = 23;
int AL_VOCAL_MORPHER_PHONEME_P = 24;
int AL_VOCAL_MORPHER_PHONEME_R = 25;
int AL_VOCAL_MORPHER_PHONEME_S = 26;
int AL_VOCAL_MORPHER_PHONEME_T = 27;
int AL_VOCAL_MORPHER_PHONEME_V = 28;
int AL_VOCAL_MORPHER_PHONEME_Z = 29;
int AL_VOCAL_MORPHER_WAVEFORM_SINUSOID = 0;
int AL_VOCAL_MORPHER_WAVEFORM_TRIANGLE = 1;
int AL_VOCAL_MORPHER_WAVEFORM_SAWTOOTH = 2;
int AL_VOCAL_MORPHER_MIN_WAVEFORM = 0;
int AL_VOCAL_MORPHER_MAX_WAVEFORM = 2;
int AL_VOCAL_MORPHER_DEFAULT_WAVEFORM = 0;
float AL_VOCAL_MORPHER_MIN_RATE = 0.0f;
float AL_VOCAL_MORPHER_MAX_RATE = 10.0f;
float AL_VOCAL_MORPHER_DEFAULT_RATE = 1.41f;
// Pitch shifter
int AL_PITCH_SHIFTER_MIN_COARSE_TUNE = -12;
int AL_PITCH_SHIFTER_MAX_COARSE_TUNE = 12;
int AL_PITCH_SHIFTER_DEFAULT_COARSE_TUNE = 12;
int AL_PITCH_SHIFTER_MIN_FINE_TUNE = -50;
int AL_PITCH_SHIFTER_MAX_FINE_TUNE = 50;
int AL_PITCH_SHIFTER_DEFAULT_FINE_TUNE = 0;
// Ring modulator
float AL_RING_MODULATOR_MIN_FREQUENCY = 0.0f;
float AL_RING_MODULATOR_MAX_FREQUENCY = 8000.0f;
float AL_RING_MODULATOR_DEFAULT_FREQUENCY = 440.0f;
float AL_RING_MODULATOR_MIN_HIGHPASS_CUTOFF = 0.0f;
float AL_RING_MODULATOR_MAX_HIGHPASS_CUTOFF = 24000.0f;
float AL_RING_MODULATOR_DEFAULT_HIGHPASS_CUTOFF = 800.0f;
int AL_RING_MODULATOR_SINUSOID = 0;
int AL_RING_MODULATOR_SAWTOOTH = 1;
int AL_RING_MODULATOR_SQUARE = 2;
int AL_RING_MODULATOR_MIN_WAVEFORM = 0;
int AL_RING_MODULATOR_MAX_WAVEFORM = 2;
int AL_RING_MODULATOR_DEFAULT_WAVEFORM = 0;
// Autowah
float AL_AUTOWAH_MIN_ATTACK_TIME = 0.0001f;
float AL_AUTOWAH_MAX_ATTACK_TIME = 1.0f;
float AL_AUTOWAH_DEFAULT_ATTACK_TIME = 0.06f;
float AL_AUTOWAH_MIN_RELEASE_TIME = 0.0001f;
float AL_AUTOWAH_MAX_RELEASE_TIME = 1.0f;
float AL_AUTOWAH_DEFAULT_RELEASE_TIME = 0.06f;
float AL_AUTOWAH_MIN_RESONANCE = 2.0f;
float AL_AUTOWAH_MAX_RESONANCE = 1000.0f;
float AL_AUTOWAH_DEFAULT_RESONANCE = 1000.0f;
float AL_AUTOWAH_MIN_PEAK_GAIN = 0.00003f;
float AL_AUTOWAH_MAX_PEAK_GAIN = 31621.0f;
float AL_AUTOWAH_DEFAULT_PEAK_GAIN = 11.22f;
// Compressor
int AL_COMPRESSOR_MIN_ONOFF = 0;
int AL_COMPRESSOR_MAX_ONOFF = 1;
int AL_COMPRESSOR_DEFAULT_ONOFF = 1;
// Equalizer
float AL_EQUALIZER_MIN_LOW_GAIN = 0.126f;
float AL_EQUALIZER_MAX_LOW_GAIN = 7.943f;
float AL_EQUALIZER_DEFAULT_LOW_GAIN = 1.0f;
float AL_EQUALIZER_MIN_LOW_CUTOFF = 50.0f;
float AL_EQUALIZER_MAX_LOW_CUTOFF = 800.0f;
float AL_EQUALIZER_DEFAULT_LOW_CUTOFF = 200.0f;
float AL_EQUALIZER_MIN_MID1_GAIN = 0.126f;
float AL_EQUALIZER_MAX_MID1_GAIN = 7.943f;
float AL_EQUALIZER_DEFAULT_MID1_GAIN = 1.0f;
float AL_EQUALIZER_MIN_MID1_CENTER = 200.0f;
float AL_EQUALIZER_MAX_MID1_CENTER = 3000.0f;
float AL_EQUALIZER_DEFAULT_MID1_CENTER = 500.0f;
float AL_EQUALIZER_MIN_MID1_WIDTH = 0.01f;
float AL_EQUALIZER_MAX_MID1_WIDTH = 1.0f;
float AL_EQUALIZER_DEFAULT_MID1_WIDTH = 1.0f;
float AL_EQUALIZER_MIN_MID2_GAIN = 0.126f;
float AL_EQUALIZER_MAX_MID2_GAIN = 7.943f;
float AL_EQUALIZER_DEFAULT_MID2_GAIN = 1.0f;
float AL_EQUALIZER_MIN_MID2_CENTER = 1000.0f;
float AL_EQUALIZER_MAX_MID2_CENTER = 8000.0f;
float AL_EQUALIZER_DEFAULT_MID2_CENTER = 3000.0f;
float AL_EQUALIZER_MIN_MID2_WIDTH = 0.01f;
float AL_EQUALIZER_MAX_MID2_WIDTH = 1.0f;
float AL_EQUALIZER_DEFAULT_MID2_WIDTH = 1.0f;
float AL_EQUALIZER_MIN_HIGH_GAIN = 0.126f;
float AL_EQUALIZER_MAX_HIGH_GAIN = 7.943f;
float AL_EQUALIZER_DEFAULT_HIGH_GAIN = 1.0f;
float AL_EQUALIZER_MIN_HIGH_CUTOFF = 4000.0f;
float AL_EQUALIZER_MAX_HIGH_CUTOFF = 16000.0f;
float AL_EQUALIZER_DEFAULT_HIGH_CUTOFF = 6000.0f;
// Filter parameter ranges and defaults
// Lowpass
float LOWPASS_MIN_GAIN = 0.0f;
float LOWPASS_MAX_GAIN = 1.0f;
float LOWPASS_DEFAULT_GAIN = 1.0f;
float LOWPASS_MIN_GAINHF = 0.0f;
float LOWPASS_MAX_GAINHF = 1.0f;
float LOWPASS_DEFAULT_GAINHF = 1.0f;
// Highpass
float HIGHPASS_MIN_GAIN = 0.0f;
float HIGHPASS_MAX_GAIN = 1.0f;
float HIGHPASS_DEFAULT_GAIN = 1.0f;
float HIGHPASS_MIN_GAINLF = 0.0f;
float HIGHPASS_MAX_GAINLF = 1.0f;
float HIGHPASS_DEFAULT_GAINLF = 1.0f;
// Bandpass
float BANDPASS_MIN_GAIN = 0.0f;
float BANDPASS_MAX_GAIN = 1.0f;
float BANDPASS_DEFAULT_GAIN = 1.0f;
float BANDPASS_MIN_GAINHF = 0.0f;
float BANDPASS_MAX_GAINHF = 1.0f;
float BANDPASS_DEFAULT_GAINHF = 1.0f;
float BANDPASS_MIN_GAINLF = 0.0f;
float BANDPASS_MAX_GAINLF = 1.0f;
float BANDPASS_DEFAULT_GAINLF = 1.0f;
}
lwjgl-2.9.3/src/templates/org/lwjgl/openal/AL10.java 0000644 0001750 0001750 00000125400 12702226520 020235 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.openal;
import java.nio.Buffer;
import java.nio.IntBuffer;
import java.nio.FloatBuffer;
import java.nio.DoubleBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.openal.*;
/**
*
* This is the core OpenAL class. This class implements
* AL.h version 1.0
*
* @author Brian Matzon
* @version $Revision$
* $Id$
*/
public interface AL10 {
/** Bad value */
int AL_INVALID = -1;
/** Disable value */
int AL_NONE = 0;
/** Boolean False */
int AL_FALSE = 0;
/** Boolean True */
int AL_TRUE = 1;
/**
* Indicate the type of SOURCE.
* Sources can be spatialized
*/
int AL_SOURCE_TYPE = 0x1027;
/** Indicate source has absolute coordinates */
int AL_SOURCE_ABSOLUTE = 0x201;
/** Indicate Source has listener relative coordinates */
int AL_SOURCE_RELATIVE = 0x202;
/**
* Directional source, inner cone angle, in degrees
* Range: [0-360]
* Default: 360
*/
int AL_CONE_INNER_ANGLE = 0x1001;
/**
* Directional source, outer cone angle, in degrees.
* Range: [0-360]
* Default: 360
*/
int AL_CONE_OUTER_ANGLE = 0x1002;
/**
* Specify the pitch to be applied, either at source,
* or on mixer results, at listener.
* Range: [0.5-2.0]
* Default: 1.0
*/
int AL_PITCH = 0x1003;
/**
* Specify the current location in three dimensional space.
* OpenAL, like OpenGL, uses a right handed coordinate system,
* where in a frontal default view X (thumb) points right,
* Y points up (index finger), and Z points towards the
* viewer/camera (middle finger).
* To switch from a left handed coordinate system, flip the
* sign on the Z coordinate.
* Listener position is always in the world coordinate system.
*/
int AL_POSITION = 0x1004;
/** Specify the current direction as forward vector. */
int AL_DIRECTION = 0x1005;
/** Specify the current velocity in three dimensional space. */
int AL_VELOCITY = 0x1006;
/**
* Indicate whether source has to loop infinite.
* Type: ALboolean
* Range: [TRUE, FALSE]
* Default: FALSE
*/
int AL_LOOPING = 0x1007;
/**
* Indicate the buffer to provide sound samples.
* Type: ALuint.
* Range: any valid Buffer id.
*/
int AL_BUFFER = 0x1009;
/**
* Indicate the gain (volume amplification) applied.
* Type: ALfloat.
* Range: ]0.0- ]
* A value of 1.0 means un-attenuated/unchanged.
* Each division by 2 equals an attenuation of -6dB.
* Each multiplicaton with 2 equals an amplification of +6dB.
* A value of 0.0 is meaningless with respect to a logarithmic
* scale; it is interpreted as zero volume - the channel
* is effectively disabled.
*/
int AL_GAIN = 0x100A;
/**
* Indicate minimum source attenuation.
* Type: ALfloat
* Range: [0.0 - 1.0]
*/
int AL_MIN_GAIN = 0x100D;
/**
* Indicate maximum source attenuation.
* Type: ALfloat
* Range: [0.0 - 1.0]
*/
int AL_MAX_GAIN = 0x100E;
/**
* Specify the current orientation.
* Type: ALfv6 (at/up)
* Range: N/A
*/
int AL_ORIENTATION = 0x100F;
/* byte offset into source (in canon format). -1 if source
* is not playing. Don't set this, get this.
*
* Type: ALfloat
* Range: [0.0 - ]
* Default: 1.0
*/
int AL_REFERENCE_DISTANCE = 0x1020;
/**
* Indicate the rolloff factor for the source.
* Type: ALfloat
* Range: [0.0 - ]
* Default: 1.0
*/
int AL_ROLLOFF_FACTOR = 0x1021;
/**
* Indicate the gain (volume amplification) applied.
* Type: ALfloat.
* Range: ]0.0- ]
* A value of 1.0 means un-attenuated/unchanged.
* Each division by 2 equals an attenuation of -6dB.
* Each multiplicaton with 2 equals an amplification of +6dB.
* A value of 0.0 is meaningless with respect to a logarithmic
* scale; it is interpreted as zero volume - the channel
* is effectively disabled.
*/
int AL_CONE_OUTER_GAIN = 0x1022;
/**
* Specify the maximum distance.
* Type: ALfloat
* Range: [0.0 - ]
*/
int AL_MAX_DISTANCE = 0x1023;
/**
* Specify the channel mask. (Creative)
* Type: ALuint
* Range: [0 - 255]
*/
int AL_CHANNEL_MASK = 0x3000;
/** Source state information */
int AL_SOURCE_STATE = 0x1010;
/** Source state information */
int AL_INITIAL = 0x1011;
/** Source state information */
int AL_PLAYING = 0x1012;
/** Source state information */
int AL_PAUSED = 0x1013;
/** Source state information */
int AL_STOPPED = 0x1014;
/** Buffer Queue params */
int AL_BUFFERS_QUEUED = 0x1015;
/** Buffer Queue params */
int AL_BUFFERS_PROCESSED = 0x1016;
/** Sound buffers: format specifier. */
int AL_FORMAT_MONO8 = 0x1100;
/** Sound buffers: format specifier. */
int AL_FORMAT_MONO16 = 0x1101;
/** Sound buffers: format specifier. */
int AL_FORMAT_STEREO8 = 0x1102;
/** Sound buffers: format specifier. */
int AL_FORMAT_STEREO16 = 0x1103;
/** Ogg Vorbis format specifier. */
int AL_FORMAT_VORBIS_EXT = 0x10003;
/**
* Sound buffers: frequency, in units of Hertz [Hz].
* This is the number of samples per second. Half of the
* sample frequency marks the maximum significant
* frequency component.
*/
int AL_FREQUENCY = 0x2001;
/**
* Sound buffers: The number of bits per sample for the
* data contained in the buffer.
*/
int AL_BITS = 0x2002;
/**
* Sound buffers: The number of channels for the data
* contained in the buffer.
*/
int AL_CHANNELS = 0x2003;
/**
* Sound buffers: Size in bytes of the buffer data.
*/
int AL_SIZE = 0x2004;
/**
* @deprecated This token is a relict of the early OpenAL days and is
* no longer supported. Neither the OpenAL spec nor OpenAL Soft define
* it.
*/
@Deprecated
int AL_DATA = 0x2005;
/**
* Buffer state.
*
* Not supported for public use (yet).
*/
int AL_UNUSED = 0x2010;
/**
* Buffer state.
*
* Not supported for public use (yet).
*/
int AL_PENDING = 0x2011;
/**
* Buffer state.
*
* Not supported for public use (yet).
*/
int AL_PROCESSED = 0x2012;
/** Errors: No Error. */
int AL_NO_ERROR = AL_FALSE;
/** Illegal name passed as an argument to an AL call. */
int AL_INVALID_NAME = 0xA001;
/** Illegal enum passed as an argument to an AL call. */
int AL_INVALID_ENUM = 0xA002;
/**
* Illegal value passed as an argument to an AL call.
* Applies to parameter values, but not to enumerations.
*/
int AL_INVALID_VALUE = 0xA003;
/**
* A function was called at inappropriate time,
* or in an inappropriate way, causing an illegal state.
* This can be an incompatible ALenum, object ID,
* and/or function.
*/
int AL_INVALID_OPERATION = 0xA004;
/**
* A function could not be completed,
* because there is not enough memory available.
*/
int AL_OUT_OF_MEMORY = 0xA005;
/** Context strings: Vendor */
int AL_VENDOR = 0xB001;
/** Context strings: Version */
int AL_VERSION = 0xB002;
/** Context strings: Renderer */
int AL_RENDERER = 0xB003;
/** Context strings: Extensions */
int AL_EXTENSIONS = 0xB004;
/** Doppler scale. Default 1.0 */
int AL_DOPPLER_FACTOR = 0xC000;
/** Doppler velocity. Default 1.0 */
int AL_DOPPLER_VELOCITY = 0xC001;
/** Distance model. Default INVERSE_DISTANCE_CLAMPED */
int AL_DISTANCE_MODEL = 0xD000;
/** Distance model */
int AL_INVERSE_DISTANCE = 0xD001;
/** Distance model */
int AL_INVERSE_DISTANCE_CLAMPED = 0xD002;
/**
* The application can temporarily disable certain AL capabilities on a per Context
* basis. This allows the driver implementation to optimize for certain subsets of
* operations. Enabling and disabling capabilities is handled using a function pair.
*
* @param capability name of a capability to enable
*/
@ALvoid
void alEnable(int capability);
/**
* The application can temporarily disable certain AL capabilities on a per Context
* basis. This allows the driver implementation to optimize for certain subsets of
* operations. Enabling and disabling capabilities is handled using a function pair.
*
* @param capability name of a capability to disable
*/
@ALvoid
void alDisable(@ALenum int capability);
/**
* The application can also query whether a given capability is currently enabled or
* not.
*
* If the token used to specify target is not legal, an AL_INVALID_ENUM error will be
* generated.
*
*
* At this time, this mechanism is not used. There are no valid targets.
*
*
* @param capability name of a capability to check
* @return true if named feature is enabled
*/
boolean alIsEnabled(@ALenum int capability);
/**
* Hinting for implementation
* NOTE: This method is a NOP, but is provided for completeness.
*
* @param target The target to hint
* @param mode Mode to hint
*/
// @ALvoid
// void alHint(@ALenum int target, @ALenum int mode);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @return boolean state described by pname will be returned.
*/
boolean alGetBoolean(@ALenum int pname);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @return int state described by pname will be returned.
*/
int alGetInteger(@ALenum int pname);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @return float state described by pname will be returned.
*/
float alGetFloat(@ALenum int pname);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @return double state described by pname will be returned.
*/
double alGetDouble(@ALenum int pname);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @param pname state to be queried
* @param data Buffer to place the integers in
*/
@StripPostfix("data")
@ALvoid
void alGetIntegerv(@ALenum int pname, @OutParameter @Check("1") IntBuffer data);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @param pname state to be queried
* @param data Buffer to place the floats in
*/
@StripPostfix("data")
@ALvoid
void alGetFloatv(@ALenum int pname, @OutParameter @Check("1") FloatBuffer data);
/**
* Like OpenGL, AL uses a simplified interface for querying global state.
*
* Legal values are e.g. AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY,
* AL_DISTANCE_MODEL.
*
* null destinations are quietly ignored. AL_INVALID_ENUM is the response to errors
* in specifying pName. The amount of memory required in the destination
* depends on the actual state requested.
*
*
* @param pname state to be queried
* @param data Buffer to place the doubles in
*/
@StripPostfix("data")
@ALvoid
void alGetDoublev(@ALenum int pname, @OutParameter @Check("1") DoubleBuffer data);
/**
* The application can retrieve state information global to the current AL Context.
* GetString will return a pointer to a constant string. Valid values for param are
* VERSION, RENDERER, VENDOR, and EXTENSIONS, as well as the error codes
* defined by AL. The application can use GetString to retrieve a string for an error
* code.
*
* @param pname The property to be returned
* @return OpenAL String property
*/
@NoErrorCheck
String alGetString(@ALenum int pname);
/**
* The AL detects only a subset of those conditions that could be considered errors.
* This is because in many cases error checking would adversely impact the
* performance of an error-free program.
*
* Each detectable error is assigned a numeric
* code. When an error is detected by AL, a flag is set and the error code is recorded.
* Further errors, if they occur, do not affect this recorded code. When GetError is
* called, the code is returned and the flag is cleared, so that a further error will again
* record its code. If a call to GetError returns AL_NO_ERROR then there has been no
* detectable error since the last call to GetError (or since the AL was initialized).
*
*
* Error codes can be mapped to strings. The GetString function returns a pointer to a
* constant (literal) string that is identical to the identifier used for the enumeration
* value, as defined in the specification.
*
* The table summarizes the AL errors. Currently, when an error flag is set, results of
* AL operations are undefined only if AL_OUT_OF_MEMORY has occured. In other
* cases, the command generating the error is ignored so that it has no effect on AL
* state or output buffer contents. If the error generating command returns a value, it
* returns zero. If the generating command modifies values through a pointer
* argument, no change is made to these values. These error semantics apply only to
* AL errors, not to system errors such as memory access errors.
*
*
* Several error generation conditions are implicit in the description of the various AL
* commands. First, if a command that requires an enumerated value is passed a value
* that is not one of those specified as allowable for that command, the error
* AL_INVALID_ENUM results. This is the case even if the argument is a pointer to a
* symbolic constant if that value is not allowable for the given command. This will
* occur whether the value is allowable for other functions, or an invalid integer value.
*
*
* Integer parameters that are used as names for AL objects such as Buffers and
* Sources are checked for validity. If an invalid name parameter is specified in an AL
* command, an AL_INVALID_NAME error will be generated, and the command is
* ignored.
*
*
* If a negative integer is provided where an argument of type sizei is specified, the
* error AL_INVALID_VALUE results. The same error will result from attempts to set
* integral and floating point values for attributes exceeding the legal range for these.
* The specification does not guarantee that the implementation emits
* AL_INVALID_VALUE if a NaN or Infinity value is passed in for a float or double
* argument (as the specification does not enforce possibly expensive testing of
* floating point values).
*
*
* Commands can be invalid. For example, certain commands might not be applicable
* to a given object. There are also illegal combinations of tokens and values as
* arguments to a command. AL responds to any such illegal command with an
* AL_INVALID_OPERATION error.
*
*
* If memory is exhausted as a side effect of the execution of an AL command, either
* on system level or by exhausting the allocated resources at AL's internal disposal,
* the error AL_OUT_OF_MEMORY may be generated. This can also happen independent
* of recent commands if AL has to request memory for an internal task and fails to
* allocate the required memory from the operating system.
*
*
* Otherwise errors are generated only for conditions that are explicitely described in
* this specification.
*
*
* @return current error state
*/
@NoErrorCheck
@ALenum int alGetError();
/**
* To verify that a given extension is available for the current context and the device it
* is associated with, use this method.
*
* A null name argument returns AL_FALSE, as do invalid and unsupported string
* tokens. A null deviceHandle will result in an INVALID_DEVICE error.
*
*
* @param fname String describing the desired extension
* @return true if extension is available, false if not
*/
boolean alIsExtensionPresent(String fname);
/**
*
* To obtain enumeration values for extensions, the application has to use
* GetEnumValue of an extension token. Enumeration values are defined within the
* AL namespace and allocated according to specification of the core API and the
* extensions, thus they are context-independent.
*
*
* Returns 0 if the enumeration can not be found. The presence of an enum value does
* not guarantee the applicability of an extension to the current context. A non-zero
* return indicates merely that the implementation is aware of the existence of this
* extension. Implementations should not attempt to return 0 to indicate that the
* extensions is not supported for the current context.
*
*
* @param ename String describing an OpenAL enum
* @return Actual int for the described enumeration name
*/
@ALenum int alGetEnumValue(String ename);
/**
* Listener attributes are changed using the Listener group of commands.
*
* @param pname name of the attribute to be set
* @param value value to set the attribute to
*/
@ALvoid
void alListeneri(@ALenum int pname, int value);
/**
* Listener attributes are changed using the Listener group of commands.
*
* @param pname name of the attribute to be set
* @param value floating point value to set the attribute to
*/
@ALvoid
void alListenerf(@ALenum int pname, float value);
/**
* Listener attributes are changed using the Listener group of commands.
*
* @param pname name of the attribute to be set
* @param value FloatBuffer containing value to set the attribute to
*/
@StripPostfix("value")
@ALvoid
void alListenerfv(@ALenum int pname, @Check("1") @Const FloatBuffer value);
/**
* Listener attributes are changed using the Listener group of commands.
*
* @param pname name of the attribute to be set
* @param v1 value value 1
* @param v2 value value 2
* @param v3 float value 3
*/
@ALvoid
void alListener3f(@ALenum int pname, float v1, float v2, float v3);
/**
* Listener state is maintained inside the AL implementation and can be queried in
* full.
*
* @param pname name of the attribute to be retrieved
* @return int
*/
void alGetListeneri(@ALenum int pname, @Result @ALint int value);
/**
* Listener state is maintained inside the AL implementation and can be queried in
* full.
*
* @param pname name of the attribute to be retrieved
* @return float
*/
void alGetListenerf(@ALenum int pname, @Result float value);
/**
* Listener state is maintained inside the AL implementation and can be queried in
* full.
*
* @param pname name of the attribute to be retrieved
* @param floatdata Buffer to write floats to
*/
// TODO: What's the real minimum number of elements?
@StripPostfix("floatdata")
@ALvoid
void alGetListenerfv(@ALenum int pname, @OutParameter @Check("1") FloatBuffer floatdata);
/**
* The application requests a number of Sources using GenSources.
*
* @param sources array holding sources
*/
@ALvoid
void alGenSources(@AutoSize("sources") @ALsizei int n, @OutParameter @ALuint IntBuffer sources);
@Alternate(value = "alGenSources", nativeAlt = true)
@ALvoid
void alGenSources2(@Constant("1") @ALsizei int n, @Result @ALuint int source);
/**
* The application requests deletion of a number of Sources by DeleteSources.
*
* @param sources Source array to delete from
*/
@ALvoid
void alDeleteSources(@AutoSize("sources") @ALsizei int n, @ALuint IntBuffer sources);
@Alternate(value = "alDeleteSources", nativeAlt = true)
@ALvoid
void alDeleteSources2(@Constant("1") @ALsizei int n, @Indirect @ALuint int source);
/**
* The application can verify whether a source name is valid using the IsSource query.
*
* @param id id of source to be testes for validity
* @return true if id is valid, false if not
*/
boolean alIsSource(@ALuint int id);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to det property on
* @param pname property to set
* @param value value of property
*/
@ALvoid
void alSourcei(@ALuint int source, @ALenum int pname, int value);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to det property on
* @param pname property to set
* @param value value of property
*/
@ALvoid
void alSourcef(@ALuint int source, @ALenum int pname, float value);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to set property on
* @param pname property to set
* @param value FloatBuffer containing value of property
*/
// TODO: What's the correct minimum value?
@StripPostfix("value")
@ALvoid
void alSourcefv(@ALuint int source, @ALenum int pname, @Check("1") @Const FloatBuffer value);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to set property on
* @param pname property to set
* @param v1 value 1 of property
* @param v2 value 2 of property
* @param v3 value 3 of property
*/
@ALvoid
void alSource3f(
@ALuint int source,
@ALenum int pname,
float v1,
float v2,
float v3);
/**
* Source state is maintained inside the AL implementation, and the current attributes
* can be queried. The performance of such queries is implementation dependent, no
* performance guarantees are made.
*
* @param source source to get property from
* @param pname name of property
* @return int
*/
@ALvoid
void alGetSourcei(@ALuint int source, @ALenum int pname, @Result int value);
/**
* Source state is maintained inside the AL implementation, and the current attributes
* can be queried. The performance of such queries is implementation dependent, no
* performance guarantees are made.
*
* @param source source to get property from
* @param pname name of property
* @return float
*/
@ALvoid
void alGetSourcef(@ALuint int source, @ALenum int pname, @Result float value);
/**
* Source state is maintained inside the AL implementation, and the current attributes
* can be queried. The performance of such queries is implementation dependent, no
* performance guarantees are made.
*
* @param source Source to get property from
* @param pname property to get
* @param floatdata Buffer to write floats to
*/
// TODO: What's the correct minimum value?
@StripPostfix("floatdata")
@ALvoid
void alGetSourcefv(@ALuint int source, @ALenum int pname, @OutParameter @Check("1") FloatBuffer floatdata);
/**
* Play() applied to an AL_INITIAL Source will promote the Source to AL_PLAYING, thus
* the data found in the Buffer will be fed into the processing, starting at the
* beginning. Play() applied to a AL_PLAYING Source will restart the Source from the
* beginning. It will not affect the configuration, and will leave the Source in
* AL_PLAYING state, but reset the sampling offset to the beginning. Play() applied to a
* AL_PAUSED Source will resume processing using the Source state as preserved at the
* Pause() operation. Play() applied to a AL_STOPPED Source will propagate it to
* AL_INITIAL then to AL_PLAYING immediately.
*
* @param sources array of sources to play
*/
@StripPostfix("sources")
@ALvoid
void alSourcePlayv(@AutoSize("sources") @ALsizei int n, @ALuint IntBuffer sources);
/**
* Pause() applied to an AL_INITIAL Source is a legal NOP. Pause() applied to a
* AL_PLAYING Source will change its state to AL_PAUSED. The Source is exempt from
* processing, its current state is preserved. Pause() applied to a AL_PAUSED Source is a
* legal NOP. Pause() applied to a AL_STOPPED Source is a legal NOP.
*
* @param sources array of sources to pause
*/
@StripPostfix("sources")
@ALvoid
void alSourcePausev(@AutoSize("sources") @ALsizei int n, @ALuint IntBuffer sources);
/**
* Stop() applied to an AL_INITIAL Source is a legal NOP. Stop() applied to a AL_PLAYING
* Source will change its state to AL_STOPPED. The Source is exempt from processing,
* its current state is preserved. Stop() applied to a AL_PAUSED Source will change its
* state to AL_STOPPED, with the same consequences as on a AL_PLAYING Source. Stop()
* applied to a AL_STOPPED Source is a legal NOP.
*
* @param sources array of sources to stop
*/
@StripPostfix("sources")
@ALvoid
void alSourceStopv(@AutoSize("sources") @ALsizei int n, @ALuint IntBuffer sources);
/**
* Rewind() applied to an AL_INITIAL Source is a legal NOP. Rewind() applied to a
* AL_PLAYING Source will change its state to AL_STOPPED then AL_INITIAL. The Source is
* exempt from processing, its current state is preserved, with the exception of the
* sampling offset which is reset to the beginning. Rewind() applied to a AL_PAUSED
* Source will change its state to AL_INITIAL, with the same consequences as on a
* AL_PLAYING Source. Rewind() applied to a AL_STOPPED Source promotes the Source to
* AL_INITIAL, resetting the sampling offset to the beginning.
*
* @param sources array of sources to rewind
*/
@StripPostfix("sources")
@ALvoid
void alSourceRewindv(@AutoSize("sources") @ALsizei int n, @ALuint IntBuffer sources);
/**
* Play() applied to an AL_INITIAL Source will promote the Source to AL_PLAYING, thus
* the data found in the Buffer will be fed into the processing, starting at the
* beginning. Play() applied to a AL_PLAYING Source will restart the Source from the
* beginning. It will not affect the configuration, and will leave the Source in
* AL_PLAYING state, but reset the sampling offset to the beginning. Play() applied to a
* AL_PAUSED Source will resume processing using the Source state as preserved at the
* Pause() operation. Play() applied to a AL_STOPPED Source will propagate it to
* AL_INITIAL then to AL_PLAYING immediately.
*
* @param source Source to play
*/
@ALvoid
void alSourcePlay(@ALuint int source);
/**
* Pause() applied to an AL_INITIAL Source is a legal NOP. Pause() applied to a
* AL_PLAYING Source will change its state to AL_PAUSED. The Source is exempt from
* processing, its current state is preserved. Pause() applied to a AL_PAUSED Source is a
* legal NOP. Pause() applied to a AL_STOPPED Source is a legal NOP.
*
* @param source Source to pause
*/
@ALvoid
void alSourcePause(@ALuint int source);
/**
* Stop() applied to an AL_INITIAL Source is a legal NOP. Stop() applied to a AL_PLAYING
* Source will change its state to AL_STOPPED. The Source is exempt from processing,
* its current state is preserved. Stop() applied to a AL_PAUSED Source will change its
* state to AL_STOPPED, with the same consequences as on a AL_PLAYING Source. Stop()
* applied to a AL_STOPPED Source is a legal NOP.
*
* @param source Source to stop
*/
@ALvoid
void alSourceStop(@ALuint int source);
/**
* Rewind() applied to an AL_INITIAL Source is a legal NOP. Rewind() applied to a
* AL_PLAYING Source will change its state to AL_STOPPED then AL_INITIAL. The Source is
* exempt from processing, its current state is preserved, with the exception of the
* sampling offset which is reset to the beginning. Rewind() applied to a AL_PAUSED
* Source will change its state to AL_INITIAL, with the same consequences as on a
* AL_PLAYING Source. Rewind() applied to a AL_STOPPED Source promotes the Source to
* AL_INITIAL, resetting the sampling offset to the beginning.
*
* @param source Source to rewind
*/
@ALvoid
void alSourceRewind(@ALuint int source);
/**
* The application requests a number of Buffers using GenBuffers.
*
* @param buffers holding buffers
*/
@ALvoid
void alGenBuffers(@AutoSize("buffers") @ALsizei int n, @OutParameter @ALuint IntBuffer buffers);
@Alternate(value = "alGenBuffers", nativeAlt = true)
@ALvoid
void alGenBuffers2(@Constant("1") @ALsizei int n, @Result @ALuint int buffer);
/**
*
* The application requests deletion of a number of Buffers by calling DeleteBuffers.
*
*
* Once deleted, Names are no longer valid for use with AL function calls. Any such
* use will cause an AL_INVALID_NAME error. The implementation is free to defer actual
* release of resources.
*
*
* IsBuffer(bname) can be used to verify deletion of a buffer. Deleting bufferName 0 is
* a legal NOP in both scalar and vector forms of the command. The same is true for
* unused buffer names, e.g. such as not allocated yet, or as released already.
*
* @param buffers Buffer to delete from
*/
@ALvoid
void alDeleteBuffers(@AutoSize("buffers") @ALsizei int n, @ALuint IntBuffer buffers);
@Alternate(value = "alDeleteBuffers", nativeAlt = true)
@ALvoid
void alDeleteBuffers2(@Constant("1") @ALsizei int n, @Indirect @ALuint int buffer);
/**
* The application can verify whether a buffer Name is valid using the IsBuffer query.
*
* @param buffer buffer to be tested for validity
* @return true if supplied buffer is valid, false if not
*/
boolean alIsBuffer(@ALuint int buffer);
/**
*
* A special case of Buffer state is the actual sound sample data stored in asociation
* with the Buffer. Applications can specify sample data using BufferData.
*
*
* The data specified is copied to an internal software, or if possible, hardware buffer.
* The implementation is free to apply decompression, conversion, resampling, and
* filtering as needed. The internal format of the Buffer is not exposed to the
* application, and not accessible. Valid formats are AL_FORMAT_MONO8,
* AL_FORMAT_MONO16, AL_FORMAT_STEREO8, and AL_FORMAT_STEREO16. An
* implementation may expose other formats, see the chapter on Extensions for
* information on determining if additional formats are supported.
*
*
* Applications should always check for an error condition after attempting to specify
* buffer data in case an implementation has to generate an AL_OUT_OF_MEMORY or
* conversion related AL_INVALID_VALUE error. The application is free to reuse the
* memory specified by the data pointer once the call to BufferData returns. The
* implementation has to dereference, e.g. copy, the data during BufferData execution.
*
*
* @param buffer Buffer to fill
* @param format format sound data is in
* @param data location of data
* @param freq frequency of data
*/
@ALvoid
void alBufferData(
@ALuint int buffer,
@ALenum int format,
@ALbyte
@ALshort
@ALint
Buffer data,
@AutoSize("data")
@ALsizei int size,
@ALsizei int freq);
/**
* Buffer state is maintained inside the AL implementation and can be queried in full.
* ALC_FREQUENCY - specified in samples per second, i.e. units of Hertz [Hz].
* ALC_SIZE - Size in bytes of the buffer data.
*
* @param buffer buffer to get property from
* @param pname name of property to retrieve
*/
@ALvoid
void alGetBufferi(@ALuint int buffer, @ALenum int pname, @Result int value);
/**
* Buffer state is maintained inside the AL implementation and can be queried in full.
* ALC_FREQUENCY - specified in samples per second, i.e. units of Hertz [Hz].
* ALC_SIZE - Size in bytes of the buffer data.
*
* @param buffer buffer to get property from
* @param pname name of property to retrieve
* @return float
*/
@ALvoid
void alGetBufferf(@ALuint int buffer, @ALenum int pname, @Result float value);
/**
*
* The application can queue up one or multiple buffer names using
* SourceQueueBuffers. The buffers will be queued in the sequence in which they
* appear in the array.
*
*
* This command is legal on a Source in any state (to allow for streaming, queueing
* has to be possible on a AL_PLAYING Source). Queues are read-only with exception of
* the unqueue operation. The Buffer Name AL_NONE (i.e. 0) can be queued.
*
*
* @param source source to queue buffers onto
* @param buffers buffers to be queued
*/
@ALvoid
void alSourceQueueBuffers(@ALuint int source, @AutoSize("buffers") @ALsizei int n, @ALuint IntBuffer buffers);
@Alternate(value = "alSourceQueueBuffers", nativeAlt = true)
@ALvoid
void alSourceQueueBuffers2(@ALuint int source, @Constant("1") @ALsizei int n, @Indirect @ALuint int buffer);
/**
*
* Once a queue entry for a buffer has been appended to a queue and is pending
* processing, it should not be changed. Removal of a given queue entry is not possible
* unless either the Source is AL_STOPPED (in which case then entire queue is considered
* processed), or if the queue entry has already been processed (AL_PLAYING or AL_PAUSED
* Source).
*
*
* The Unqueue command removes a number of buffers entries that have finished
* processing, in the order of appearance, from the queue. The operation will fail if
* more buffers are requested than available, leaving the destination arguments
* unchanged. An AL_INVALID_VALUE error will be thrown. If no error, the destination
* argument will have been updated accordingly.
*
*
* @param source source to unqueue buffers from
* @param buffers IntBuffer containing list of names that were unqueued
*/
@ALvoid
void alSourceUnqueueBuffers(@ALuint int source, @AutoSize("buffers") @ALsizei int n, @OutParameter @ALuint IntBuffer buffers);
@Alternate(value = "alSourceUnqueueBuffers", nativeAlt = true)
@ALvoid
void alSourceUnqueueBuffers2(@ALuint int source, @Constant("1") @ALsizei int n, @Result @ALuint int buffer);
/**
*
* Samples usually use the entire dynamic range of the chosen format/encoding,
* independent of their real world intensity. In other words, a jet engine and a
* clockwork both will have samples with full amplitude. The application will then
* have to adjust Source AL_GAIN accordingly to account for relative differences.
*
*
* Source AL_GAIN is then attenuated by distance. The effective attenuation of a Source
* depends on many factors, among which distance attenuation and source and
* Listener AL_GAIN are only some of the contributing factors. Even if the source and
* Listener AL_GAIN exceed 1.0 (amplification beyond the guaranteed dynamic range),
* distance and other attenuation might ultimately limit the overall AL_GAIN to a value
* below 1.0.
*
*
* AL currently supports three modes of operation with respect to distance
* attenuation. It supports two distance-dependent attenuation models, one which is
* similar to the IASIG I3DL2 (and DS3D) model. The application choses one of these
* two models (or can chose to disable distance-dependent attenuation effects model)
* on a per-context basis.
*
*
* Legal arguments are AL_NONE, AL_INVERSE_DISTANCE, and
* AL_INVERSE_DISTANCE_CLAMPED.
*
*
* AL_NONE bypasses all distance attenuation
* calculation for all Sources. The implementation is expected to optimize this
* situation.
*
*
* AL_INVERSE_DISTANCE_CLAMPED is the DS3D model, with
* AL_REFERENCE_DISTANCE indicating both the reference distance and the distance
* below which gain will be clamped.
*
*
* AL_INVERSE_DISTANCE is equivalent to the DS3D
* model with the exception that AL_REFERENCE_DISTANCE does not imply any
* clamping.
*
*
* The AL implementation is still free to apply any range clamping as
* necessary. The current distance model chosen can be queried using GetIntegerv and
* AL_DISTANCE_MODEL.
*
*
* @param value distance model to be set
*/
@ALvoid
void alDistanceModel(@ALenum int value);
/**
* The Doppler Effect depends on the velocities of Source and Listener relative to the
* medium, and the propagation speed of sound in that medium. The application
* might want to emphasize or de-emphasize the Doppler Effect as physically accurate
* calculation might not give the desired results. The amount of frequency shift (pitch
* change) is proportional to the speed of listener and source along their line of sight.
* The application can increase or decrease that frequency shift by specifying the
* scaling factor AL should apply to the result of the calculation.
*
*
* The Doppler Effect as implemented by AL is described by the formula below. Effects
* of the medium (air, water) moving with respect to listener and source are ignored.
* AL_DOPPLER_VELOCITY is the propagation speed relative to which the Source
* velocities are interpreted.
*
*
*
* VD: AL_DOPPLER_VELOCITY
* DF: AL_DOPPLER_FACTOR
* vl: Listener velocity (scalar, projected on source-listener vector)
* vs: Source verlocity (scalar, projected on source-listener vector)
* f: Frequency in sample
* f': effective Doppler shifted frequency
*
* f' = DF * f * (VD-vl)/(VD+vs)
*
* vl<0, vs>0 : source and listener approaching each other
* vl>0, vs<0 : source and listener moving away from each other
*
*
*
* The implementation has to clamp the projected Listener velocity vl, if abs(vl) is
* greater or equal VD. It similarly has to clamp the projected Source velocity vs if
* abs(vs) is greater or equal VD.
*
*
* There are two API calls global to the current context that provide control of the two
* related parameters.
*
*
* AL_DOPPLER_FACTOR is a simple scaling to exaggerate or
* deemphasize the Doppler (pitch) shift resulting from the calculation.
*
*
* A negative value will result in an AL_INVALID_VALUE error, the command is then
* ignored. The default value is 1. The current setting can be queried using GetFloatv
* and AL_DOPPLER_FACTOR. The implementation is free to optimize the case of
* AL_DOPPLER_FACTOR being set to zero, as this effectively disables the effect.
*
*
* @param value Doppler scale value to set
*/
@ALvoid
void alDopplerFactor(float value);
/**
* The Doppler Effect depends on the velocities of Source and Listener relative to the
* medium, and the propagation speed of sound in that medium. The application
* might want to emphasize or de-emphasize the Doppler Effect as physically accurate
* calculation might not give the desired results. The amount of frequency shift (pitch
* change) is proportional to the speed of listener and source along their line of sight.
* The application can increase or decrease that frequency shift by specifying the
* scaling factor AL should apply to the result of the calculation.
*
*
* The Doppler Effect as implemented by AL is described by the formula below. Effects
* of the medium (air, water) moving with respect to listener and source are ignored.
* AL_DOPPLER_VELOCITY is the propagation speed relative to which the Source
* velocities are interpreted.
*
*
*
* VD: AL_DOPPLER_VELOCITY
* DF: AL_DOPPLER_FACTOR
* vl: Listener velocity (scalar, projected on source-listener vector)
* vs: Source verlocity (scalar, projected on source-listener vector)
* f: Frequency in sample
* f': effective Doppler shifted frequency
*
* f' = DF * f * (VD-vl)/(VD+vs)
*
* vl<0, vs>0 : source and listener approaching each other
* vl>0, vs<0 : source and listener moving away from each other
*
*
*
* The implementation has to clamp the projected Listener velocity vl, if abs(vl) is
* greater or equal VD. It similarly has to clamp the projected Source velocity vs if
* abs(vs) is greater or equal VD.
*
*
* There are two API calls global to the current context that provide control of the two
* related parameters.
*
*
* AL_DOPPLER_VELOCITY allows the application to change the reference (propagation)
* velocity used in the Doppler Effect calculation. This permits the application to use a
* velocity scale appropriate to its purposes.
*
*
* A negative or zero value will result in an AL_INVALID_VALUE error, the command is
* then ignored. The default value is 1. The current setting can be queried using
* GetFloatv and AL_DOPPLER_VELOCITY.
*
*
* @param value Doppler velocity value to set
*/
@ALvoid
void alDopplerVelocity(float value);
}
lwjgl-2.9.3/src/templates/org/lwjgl/openal/AL11.java 0000644 0001750 0001750 00000024007 12702226520 020237 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.openal;
import java.nio.IntBuffer;
import java.nio.FloatBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.openal.ALenum;
import org.lwjgl.util.generator.openal.ALuint;
import org.lwjgl.util.generator.openal.ALvoid;
/**
*
* This is the core OpenAL class. This class implements
* AL.h version 1.1
*
* @author Brian Matzon
* @version $Revision: 2286 $
* $Id: AL10.java 2286 2006-03-23 19:32:21Z matzon $
*/
public interface AL11 {
/** Source buffer position information in seconds */
public static final int AL_SEC_OFFSET = 0x1024;
/** Source buffer position information in samples */
public static final int AL_SAMPLE_OFFSET = 0x1025;
/** Source buffer position information in bytes */
public static final int AL_BYTE_OFFSET = 0x1026;
/** Type of source: Buffer has been attached using AL_BUFFER */
public static final int AL_STATIC = 0x1028;
/** Type of source: if one or more Buffers have been attached using alSourceQueueBuffers */
public static final int AL_STREAMING = 0x1029;
/** Type of source: when it has the NULL buffer attached */
public static final int AL_UNDETERMINED = 0x1030;
/** @see AL10#AL_INVALID_OPERATION */
public static final int AL_ILLEGAL_COMMAND = 0xA004;
/** Speed of Sound in units per second */
public static final int AL_SPEED_OF_SOUND = 0xC003;
public static final int AL_LINEAR_DISTANCE = 0xD003;
public static final int AL_LINEAR_DISTANCE_CLAMPED = 0xD004;
public static final int AL_EXPONENT_DISTANCE = 0xD005;
public static final int AL_EXPONENT_DISTANCE_CLAMPED = 0xD006;
/**
* Listener attributes are changed using the Listener group of commands.
*
* @param pname name of the attribute to be set
* @param v1 value value 1
* @param v2 value value 2
* @param v3 value value 3
*/
@ALvoid
void alListener3i(@ALenum int pname, int v1, int v2, int v3);
/**
* Listener state is maintained inside the AL implementation and can be queried in
* full.
*
* @param pname name of the attribute to be retrieved
* @param intdata Buffer to write ints to
*/
// TODO: What's the real minimum number of elements?
@StripPostfix("intdata")
@ALvoid
void alGetListeneriv(@ALenum int pname, @OutParameter @Check("1") FloatBuffer intdata);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to set property on
* @param pname property to set
* @param v1 value 1 of property
* @param v2 value 2 of property
* @param v3 value 3 of property
*/
@ALvoid
void alSource3i(@ALuint int source, @ALenum int pname, int v1, int v2, int v3);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to set property on
* @param pname property to set
* @param value IntBuffer containing value of property
*/
// TODO: What's the correct minimum value?
@StripPostfix("value")
@ALvoid
void alSourceiv(@ALuint int source, @ALenum int pname, @Check("1") @Const IntBuffer value);
/**
* This function sets a floating point property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to set property on
* @param pname property to set
* @param value value of property
*/
@ALvoid
void alBufferf(@ALuint int buffer, @ALenum int pname, float value);
/**
* This function sets a floating point property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to set property on
* @param pname property to set
* @param v1 value of property
* @param v2 value of property
* @param v3 value of property
*/
@ALvoid
void alBuffer3f(@ALuint int buffer, @ALenum int pname, float v1, float v2, float v3);
/**
* This function sets a floating point property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to set property on
* @param pname property to set
* @param value FloatBuffer containing value of property
*/
// TODO: What's the correct minimum value?
@StripPostfix("value")
@ALvoid
void alBufferfv(@ALuint int buffer, @ALenum int pname, @Check("1") @Const FloatBuffer value);
/**
* This function sets an integer property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to set property on
* @param pname property to set
* @param value value of property
*/
@ALvoid
void alBufferi(@ALuint int buffer, @ALenum int pname, int value);
/**
* This function sets an integer property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to set property on
* @param pname property to set
* @param v1 value of property
* @param v2 value of property
* @param v3 value of property
*/
@ALvoid
void alBuffer3i(@ALuint int buffer, @ALenum int pname, int v1, int v2, int v3);
/**
* This function sets an integer property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to set property on
* @param pname property to set
* @param value IntBuffer containing value of property
*/
// TODO: What's the correct minimum value?
@StripPostfix("value")
@ALvoid
void alBufferiv(@ALuint int buffer, @ALenum int pname, @Check("1") @Const IntBuffer value);
/**
* This function retrieves an integer property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to get property from
* @param pname name of property
* @return int
*/
@ALvoid
void alGetBufferi(@ALuint int buffer, @ALenum int pname, @Result int value);
/**
* This function retrieves an integer property of a buffer.
*
* @param buffer Buffer to get property from
* @param pname name of property
*/
// TODO: What's the correct minimum value?
@StripPostfix("values")
@ALvoid
void alGetBufferiv(@ALuint int buffer, @ALenum int pname, @OutParameter @Check("1") IntBuffer values);
/**
* This function retrieves a floating point property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to get property from
* @param pname name of property
* @return floating point property
*/
@ALvoid
void alGetBufferf(@ALuint int buffer, @ALenum int pname, @Result float value);
/**
* This function retrieves a floating point property of a buffer.
* note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by
* this call, but this function may be used by OpenAL extensions.
*
* @param buffer Buffer to get property from
* @param pname name of property
*/
// TODO: What's the correct minimum value?
@StripPostfix("values")
@ALvoid
void alGetBufferfv(@ALuint int buffer, @ALenum int pname, @OutParameter @Check("1") FloatBuffer values);
/**
*
* AL_SPEED_OF_SOUND allows the application to change the reference (propagation)
* speed used in the Doppler calculation. The source and listener velocities should be
* expressed in the same units as the speed of sound.
*
*
* A negative or zero value will result in an AL_INVALID_VALUE error, and the
* command is ignored. The default value is 343.3 (appropriate for velocity units of meters
* and air as the propagation medium). The current setting can be queried using
* alGetFloat{v} and AL_SPEED_OF_SOUND.
* Distance and velocity units are completely independent of one another (so you could use
* different units for each if desired).
*
*
* @param value distance model to be set
*/
@ALvoid
void alSpeedOfSound(float value);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ 0000755 0001750 0001750 00000000000 12702226520 017271 5 ustar apo apo lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_extended_get.java 0000644 0001750 0001750 00000010642 12702226520 023415 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.Result;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface QCOM_extended_get {
/** Accepted by the <pname> parameter of ExtGetTexLevelParameterivQCOM */
int GL_TEXTURE_WIDTH_QCOM = 0x8BD2,
GL_TEXTURE_HEIGHT_QCOM = 0x8BD3,
GL_TEXTURE_DEPTH_QCOM = 0x8BD4,
GL_TEXTURE_INTERNAL_FORMAT_QCOM = 0x8BD5,
GL_TEXTURE_FORMAT_QCOM = 0x8BD6,
GL_TEXTURE_TYPE_QCOM = 0x8BD7,
GL_TEXTURE_IMAGE_VALID_QCOM = 0x8BD8,
GL_TEXTURE_NUM_LEVELS_QCOM = 0x8BD9,
GL_TEXTURE_TARGET_QCOM = 0x8BDA,
GL_TEXTURE_OBJECT_VALID_QCOM = 0x8BDB;
/** Accepted by the <pname> parameter of ExtTexObjectStateOverrideiQCOM */
int GL_STATE_RESTORE = 0x8BDC;
void glExtGetTexturesQCOM(@OutParameter @Check("1") @GLuint IntBuffer textures,
@AutoSize("textures") int maxTextures,
@OutParameter @Check("1") IntBuffer numTextures);
void glExtGetBuffersQCOM(@OutParameter @Check("1") @GLuint IntBuffer buffers,
@AutoSize("buffers") int maxBuffers,
@OutParameter @Check("1") IntBuffer numBuffers);
void glExtGetRenderbuffersQCOM(@OutParameter @Check("1") @GLuint IntBuffer renderbuffers,
@AutoSize("renderbuffers") int maxRenderbuffers,
@OutParameter @Check("1") IntBuffer numRenderbuffers);
void glExtGetFramebuffersQCOM(@OutParameter @Check("1") @GLuint IntBuffer framebuffers,
@AutoSize("framebuffers") int maxFramebuffers,
@OutParameter @Check("1") IntBuffer numFramebuffers);
void glExtGetTexLevelParameterivQCOM(@GLuint int texture, @GLenum int face, int level,
@GLenum int pname, @OutParameter @Check("1") IntBuffer params);
void glExtTexObjectStateOverrideiQCOM(@GLenum int target, @GLenum int pname, int param);
void glExtGetTexSubImageQCOM(@GLenum int target, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLenum int type,
@OutParameter
@Check("GLChecks.calculateImageStorage(texels, format, type, width, height, depth)")
@GLbyte
@GLshort
@GLint
@GLfloat Buffer texels);
void glExtGetBufferPointervQCOM(@GLenum int target, @Result @GLvoid ByteBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/IMG_shader_binary.java 0000644 0001750 0001750 00000003320 12702226520 023440 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface IMG_shader_binary {
/** Accepted by the <binaryformat> parameter of ShaderBinary: */
int GL_SGX_BINARY_IMG = 0x8C0A;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/AMD_performance_monitor.java 0000644 0001750 0001750 00000014357 12702226520 024677 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface AMD_performance_monitor {
/** Accepted by the <pame> parameter of GetPerfMonitorCounterInfoAMD */
int GL_COUNTER_TYPE_AMD = 0x8BC0;
int GL_COUNTER_RANGE_AMD = 0x8BC1;
/**
* Returned as a valid value in <data> parameter of
* GetPerfMonitorCounterInfoAMD if <pname> = COUNTER_TYPE_AMD
*/
int GL_UNSIGNED_INT64_AMD = 0x8BC2;
int GL_PERCENTAGE_AMD = 0x8BC3;
/** Accepted by the <pname> parameter of GetPerfMonitorCounterDataAMD */
int GL_PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4;
int GL_PERFMON_RESULT_SIZE_AMD = 0x8BC5;
int GL_PERFMON_RESULT_AMD = 0x8BC6;
void glGetPerfMonitorGroupsAMD(@OutParameter @Check(value = "1", canBeNull = true) @GLint IntBuffer numGroups,
@AutoSize("groups") @GLsizei int groupsSize, @GLuint IntBuffer groups);
void glGetPerfMonitorCountersAMD(@GLuint int group,
@OutParameter @Check(value = "1") @GLint IntBuffer numCounters,
@OutParameter @Check(value = "1") @GLint IntBuffer maxActiveCounters,
@AutoSize("counters") @GLsizei int countersSize,
@GLuint IntBuffer counters);
void glGetPerfMonitorGroupStringAMD(@GLuint int group,
@AutoSize("groupString") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer groupString);
@Alternate("glGetPerfMonitorGroupStringAMD")
@GLreturn(value = "groupString", maxLength = "bufSize")
void glGetPerfMonitorGroupStringAMD2(@GLuint int group, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(groupString_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer groupString);
void glGetPerfMonitorCounterStringAMD(@GLuint int group, @GLuint int counter, @AutoSize("counterString") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer counterString);
@Alternate("glGetPerfMonitorCounterStringAMD")
@GLreturn(value = "counterString", maxLength = "bufSize")
void glGetPerfMonitorCounterStringAMD2(@GLuint int group, @GLuint int counter, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(counterString_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer counterString);
void glGetPerfMonitorCounterInfoAMD(@GLuint int group, @GLuint int counter, @GLenum int pname, @Check(value = "16") @GLvoid ByteBuffer data);
void glGenPerfMonitorsAMD(@AutoSize("monitors") @GLsizei int n, @OutParameter @GLuint IntBuffer monitors);
@Alternate("glGenPerfMonitorsAMD")
@GLreturn("monitors")
void glGenPerfMonitorsAMD2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer monitors);
void glDeletePerfMonitorsAMD(@AutoSize("monitors") @GLsizei int n, @GLuint IntBuffer monitors);
@Alternate("glDeletePerfMonitorsAMD")
void glDeletePerfMonitorsAMD(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(monitor)", keepParam = true) int monitor);
void glSelectPerfMonitorCountersAMD(@GLuint int monitor, boolean enable, @GLuint int group, @AutoSize("counterList") int numCounters, @GLuint IntBuffer counterList);
@Alternate("glSelectPerfMonitorCountersAMD")
void glSelectPerfMonitorCountersAMD(@GLuint int monitor, boolean enable, @GLuint int group, @Constant("1") int numCounters, @Constant(value = "APIUtil.getInt(counter)", keepParam = true) int counter);
void glBeginPerfMonitorAMD(@GLuint int monitor);
void glEndPerfMonitorAMD(@GLuint int monitor);
void glGetPerfMonitorCounterDataAMD(@GLuint int monitor, @GLenum int pname, @AutoSize("data") @GLsizei int dataSize,
@OutParameter @GLuint IntBuffer data,
@OutParameter @GLint @Check(value = "1", canBeNull = true) IntBuffer bytesWritten);
@Alternate("glGetPerfMonitorCounterDataAMD")
@GLreturn("data")
void glGetPerfMonitorCounterDataAMD2(@GLuint int monitor, @GLenum int pname, @Constant("4") @GLsizei int dataSize,
@OutParameter @GLuint IntBuffer data,
@OutParameter @GLint @Constant("0L") IntBuffer bytesWritten);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_fbo_color_attachments.java 0000644 0001750 0001750 00000004431 12702226520 025100 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_fbo_color_attachments {
int GL_MAX_COLOR_ATTACHMENTS_NV = 0x8CDF,
GL_COLOR_ATTACHMENT0_NV = 0x8CE0,
GL_COLOR_ATTACHMENT1_NV = 0x8CE1,
GL_COLOR_ATTACHMENT2_NV = 0x8CE2,
GL_COLOR_ATTACHMENT3_NV = 0x8CE3,
GL_COLOR_ATTACHMENT4_NV = 0x8CE4,
GL_COLOR_ATTACHMENT5_NV = 0x8CE5,
GL_COLOR_ATTACHMENT6_NV = 0x8CE6,
GL_COLOR_ATTACHMENT7_NV = 0x8CE7,
GL_COLOR_ATTACHMENT8_NV = 0x8CE8,
GL_COLOR_ATTACHMENT9_NV = 0x8CE9,
GL_COLOR_ATTACHMENT10_NV = 0x8CEA,
GL_COLOR_ATTACHMENT11_NV = 0x8CEB,
GL_COLOR_ATTACHMENT12_NV = 0x8CEC,
GL_COLOR_ATTACHMENT13_NV = 0x8CED,
GL_COLOR_ATTACHMENT14_NV = 0x8CEE,
GL_COLOR_ATTACHMENT15_NV = 0x8CEF;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_read_format_bgra.java 0000644 0001750 0001750 00000003543 12702226520 024137 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_read_format_bgra {
/** Accepted by the <format> parameter of ReadPixels: */
int GL_BGRA_EXT = 0x80E1;
/** Accepted by the <type> parameter of ReadPixels: */
int GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT = 0x8365,
GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT = 0x8366;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_depth_texture.java 0000644 0001750 0001750 00000003645 12702226520 023536 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_depth_texture {
/**
* Accepted by the <format> parameter of TexImage2D and TexSubImage2D and
* <internalFormat> parameter of TexImage2D:
*/
int GL_DEPTH_COMPONENT = 0x1902;
/** Accepted by the <type> parameter of TexImage2D, TexSubImage2D: */
int GL_UNSIGNED_SHORT = 0x1403,
GL_UNSIGNED_INT = 0x1405;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/KHR_texture_compression_astc_ldr.java 0000644 0001750 0001750 00000006436 12702226520 026645 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface KHR_texture_compression_astc_ldr {
/**
* Accepted by the <internalformat> parameter of CompressedTexImage2D,
* CompressedTexSubImage2D, TexStorage2D, TextureStorage2D, TexStorage3D,
* and TextureStorage3D:
*/
int GL_COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0,
GL_COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1,
GL_COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2,
GL_COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3,
GL_COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4,
GL_COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5,
GL_COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6,
GL_COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7,
GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8,
GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9,
GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA,
GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB,
GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC,
GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ARB_half_float_pixel.java 0000644 0001750 0001750 00000003502 12702226520 024120 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface ARB_half_float_pixel {
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, GetTexImage, TexSubImage1D,
* TexSubImage2D, TexSubImage3D:
*/
int GL_HALF_FLOAT_ARB = 0x140B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_texture_half_float.java 0000644 0001750 0001750 00000003403 12702226520 024521 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_texture_half_float {
/**
* Accepted by the <type> parameter of TexImage2D, TexSubImage2D,
* TexImage3D, and TexSubImage3D:
*/
int GL_HALF_FLOAT_OES = 0x8D61;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/KHR_debug.java 0000644 0001750 0001750 00000023414 12702226520 021732 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface KHR_debug {
/**
* Tokens accepted by the <target> parameters of Enable, Disable, and
* IsEnabled:
*/
int GL_DEBUG_OUTPUT = 0x92E0,
GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242;
/** Returned by GetIntegerv when <pname> is CONTEXT_FLAGS: */
int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002;
/**
* Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev and GetInteger64v:
*/
int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143,
GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144,
GL_DEBUG_LOGGED_MESSAGES = 0x9145,
GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243,
GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C,
GL_DEBUG_GROUP_STACK_DEPTH = 0x826D,
GL_MAX_LABEL_LENGTH = 0x82E8;
/** Tokens accepted by the <pname> parameter of GetPointerv: */
int GL_DEBUG_CALLBACK_FUNCTION = 0x8244,
GL_DEBUG_CALLBACK_USER_PARAM = 0x8245;
/**
* Tokens accepted or provided by the <source> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources>
* parameter of GetDebugMessageLog:
*/
int GL_DEBUG_SOURCE_API = 0x8246,
GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247,
GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248,
GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249,
GL_DEBUG_SOURCE_APPLICATION = 0x824A,
GL_DEBUG_SOURCE_OTHER = 0x824B;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types>
* parameter of GetDebugMessageLog:
*/
int GL_DEBUG_TYPE_ERROR = 0x824C,
GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D,
GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E,
GL_DEBUG_TYPE_PORTABILITY = 0x824F,
GL_DEBUG_TYPE_PERFORMANCE = 0x8250,
GL_DEBUG_TYPE_OTHER = 0x8251,
GL_DEBUG_TYPE_MARKER = 0x8268;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControl and DEBUGPROC, and the <types> parameter of
* GetDebugMessageLog:
*/
int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269,
GL_DEBUG_TYPE_POP_GROUP = 0x826A;
/**
* Tokens accepted or provided by the <severity> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions,
* and the <severities> parameter of GetDebugMessageLog:
*/
int GL_DEBUG_SEVERITY_HIGH = 0x9146,
GL_DEBUG_SEVERITY_MEDIUM = 0x9147,
GL_DEBUG_SEVERITY_LOW = 0x9148,
GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B;
/** Returned by GetError: */
int GL_STACK_UNDERFLOW = 0x0504,
GL_STACK_OVERFLOW = 0x0503;
/**
* Tokens accepted or provided by the <identifier> parameters of
* ObjectLabel and GetObjectLabel:
*/
int GL_BUFFER = 0x82E0,
GL_SHADER = 0x82E1,
GL_PROGRAM = 0x82E2,
GL_QUERY = 0x82E3,
GL_PROGRAM_PIPELINE = 0x82E4,
GL_SAMPLER = 0x82E6,
GL_DISPLAY_LIST = 0x82E7;
// -----------------------------
void glDebugMessageControl(@GLenum int source,
@GLenum int type,
@GLenum int severity,
@AutoSize(value = "ids", canBeNull = true) @GLsizei int count,
@Check(canBeNull = true) @Const @GLuint IntBuffer ids,
boolean enabled);
void glDebugMessageInsert(@GLenum int source,
@GLenum int type,
@GLuint int id,
@GLenum int severity,
@AutoSize("buf") @GLsizei int length,
@Const @GLchar ByteBuffer buf);
@Alternate("glDebugMessageInsert")
void glDebugMessageInsert(@GLenum int source,
@GLenum int type,
@GLuint int id,
@GLenum int severity,
@Constant("buf.length()") @GLsizei int length,
CharSequence buf);
/**
* The {@code KHRDebugCallback.Handler} implementation passed to this method will be used for
* KHR_debug messages. If callback is null, any previously registered handler for the current
* thread will be unregistered and stop receiving messages.
*
* @param callback the callback function to use
*/
@Code(
// Create a GlobalRef to the callback object and register it with the current context.
javaBeforeNative = "\t\tlong userParam = callback == null ? 0 : CallbackUtil.createGlobalRef(callback.getHandler());\n" +
"\t\tCallbackUtil.registerContextCallbackKHR(userParam);"
)
void glDebugMessageCallback(@PointerWrapper(value = "GLDEBUGPROC", canBeNull = true) KHRDebugCallback callback,
@Constant("userParam") @PointerWrapper("GLvoid *") long userParam);
@GLuint
int glGetDebugMessageLog(@GLuint int count,
@AutoSize(value = "messageLog", canBeNull = true) @GLsizei int bufsize,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer sources,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer types,
@Check(value = "count", canBeNull = true) @GLuint IntBuffer ids,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer severities,
@Check(value = "count", canBeNull = true) @GLsizei IntBuffer lengths,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer messageLog);
// Not really useful and a pain to implement in Java
// void glGetPointerv(@GLenum int pname, void** params);
void glPushDebugGroup(@GLenum int source, @GLuint int id, @AutoSize("message") @GLsizei int length,
@Const @GLchar ByteBuffer message);
@Alternate("glPushDebugGroup")
void glPushDebugGroup(@GLenum int source, @GLuint int id, @Constant("message.length()") @GLsizei int length,
CharSequence message);
void glPopDebugGroup();
void glObjectLabel(@GLenum int identifier, @GLuint int name, @AutoSize(value = "label", canBeNull = true) @GLsizei int length,
@Check(canBeNull = true) @Const @GLchar ByteBuffer label);
@Alternate("glObjectLabel")
void glObjectLabel(@GLenum int identifier, @GLuint int name, @Constant("label.length()") @GLsizei int length,
CharSequence label);
void glGetObjectLabel(@GLenum int identifier, @GLuint int name, @AutoSize("label") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Alternate("glGetObjectLabel")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectLabel2(@GLenum int identifier, @GLuint int name, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(label_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
void glObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @AutoSize(value = "label", canBeNull = true) @GLsizei int length,
@Check(canBeNull = true) @Const @GLchar ByteBuffer label);
@Alternate("glObjectPtrLabel")
void glObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @Constant("label.length()") @GLsizei int length,
CharSequence label);
void glGetObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @AutoSize("label") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Alternate("glGetObjectPtrLabel")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectPtrLabel2(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(label_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_shadow_samplers.java 0000644 0001750 0001750 00000004117 12702226520 024052 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_shadow_samplers {
/**
* Accepted by the <pname> parameter of TexParameterf, TexParameteri,
* TexParameterfv, TexParameteriv, GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_COMPARE_MODE_EXT = 0x884C,
GL_TEXTURE_COMPARE_FUNC_EXT = 0x884D;
/**
* Accepted by the <param> parameter of TexParameterf, TexParameteri,
* TexParameterfv, and TexParameteriv when the <pname> parameter is
* TEXTURE_COMPARE_MODE_EXT:
*/
int GL_COMPARE_REF_TO_TEXTURE_EXT = 0x884E;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_framebuffer_object.java 0000644 0001750 0001750 00000020476 12702226520 024465 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface OES_framebuffer_object {
/**
* Accepted by the <target> parameter of BindFramebufferOES,
* CheckFramebufferStatusOES, FramebufferTexture{2D|3D}OES,
* FramebufferRenderbufferOES, and
* GetFramebufferAttachmentParameterivOES:
*/
int GL_FRAMEBUFFER_OES = 0x8D40;
/**
* Accepted by the <target> parameter of BindRenderbufferOES,
* RenderbufferStorageOES, and GetRenderbufferParameterivOES, and
* returned by GetFramebufferAttachmentParameterivOES:
*/
int GL_RENDERBUFFER_OES = 0x8D41;
/**
* Accepted by the <internalformat> parameter of
* RenderbufferStorageOES:
*/
int GL_DEPTH_COMPONENT16_OES = 0x81A5,
GL_RGBA4_OES = 0x8056,
GL_RGB5_A1_OES = 0x8057,
GL_RGB565_OES = 0x8D62,
GL_STENCIL_INDEX1_OES = 0x8D46,
GL_STENCIL_INDEX4_OES = 0x8D47,
GL_STENCIL_INDEX8_OES = 0x8D48;
/** Accepted by the <pname> parameter of GetRenderbufferParameterivOES: */
int GL_RENDERBUFFER_WIDTH_OES = 0x8D42,
GL_RENDERBUFFER_HEIGHT_OES = 0x8D43,
GL_RENDERBUFFER_INTERNAL_FORMAT_OES = 0x8D44,
GL_RENDERBUFFER_RED_SIZE_OES = 0x8D50,
GL_RENDERBUFFER_GREEN_SIZE_OES = 0x8D51,
GL_RENDERBUFFER_BLUE_SIZE_OES = 0x8D52,
GL_RENDERBUFFER_ALPHA_SIZE_OES = 0x8D53,
GL_RENDERBUFFER_DEPTH_SIZE_OES = 0x8D54,
GL_RENDERBUFFER_STENCIL_SIZE_OES = 0x8D55;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameterivOES:
*/
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES = 0x8CD0,
GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES = 0x8CD1,
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES = 0x8CD2,
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES = 0x8CD3,
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES = 0x8CD4;
/**
* Accepted by the <attachment> parameter of
* FramebufferTexture{2D|3D}OES, FramebufferRenderbufferOES, and
* GetFramebufferAttachmentParameterivOES
*/
int GL_COLOR_ATTACHMENT0_OES = 0x8CE0,
GL_DEPTH_ATTACHMENT_OES = 0x8D00,
GL_STENCIL_ATTACHMENT_OES = 0x8D20;
/**
* Returned by GetFramebufferAttachmentParameterivOES when the
* <pname> parameter is FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES:
*/
int GL_NONE_OES = 0;
/** Returned by CheckFramebufferStatusOES(): */
int GL_FRAMEBUFFER_COMPLETE_OES = 0x8CD5,
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES = 0x8CD6,
GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES = 0x8CD7,
GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES = 0x8CD9,
GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES = 0x8CDA,
GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_OES = 0x8CDB,
GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_OES = 0x8CDC,
GL_FRAMEBUFFER_UNSUPPORTED_OES = 0x8CDD;
/** Accepted by GetIntegerv(): */
int GL_FRAMEBUFFER_BINDING_OES = 0x8CA6,
GL_RENDERBUFFER_BINDING_OES = 0x8CA7,
GL_MAX_RENDERBUFFER_SIZE_OES = 0x84E8;
/** Returned by GetError(): */
int GL_INVALID_FRAMEBUFFER_OPERATION_OES = 0x0506;
boolean glIsRenderbufferOES(@GLuint int renderbuffer);
void glBindRenderbufferOES(@GLenum int target, @GLuint int renderbuffer);
void glDeleteRenderbuffersOES(@AutoSize("renderbuffers") int n, @Const @GLuint IntBuffer renderbuffers);
@Alternate("glDeleteRenderbuffersOES")
void glDeleteRenderbuffersOES(@Constant("1") int n, @Constant(value = "APIUtil.getInt(renderbuffer)", keepParam = true) int renderbuffer);
void glGenRenderbuffersOES(@AutoSize("renderbuffers") int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Alternate("glGenRenderbuffersOES")
@GLreturn("renderbuffers")
void glGenRenderbuffersOES2(@Constant("1") int n, @OutParameter @GLuint IntBuffer renderbuffers);
void glRenderbufferStorageOES(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@StripPostfix("params")
void glGetRenderbufferParameterivOES(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteriOES} instead. */
@Alternate("glGetRenderbufferParameterivOES")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "OESFramebufferObject", method = "glGetRenderbufferParameteriOES")
@Deprecated
void glGetRenderbufferParameterivOES2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetRenderbufferParameterivOES")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetRenderbufferParameterivOES3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
boolean glIsFramebufferOES(@GLuint int framebuffer);
void glBindFramebufferOES(@GLenum int target, @GLuint int framebuffer);
void glDeleteFramebuffersOES(@AutoSize("framebuffers") int n, @Const @GLuint IntBuffer framebuffers);
@Alternate("glDeleteFramebuffersOES")
void glDeleteFramebuffersOES(@Constant("1") int n, @Constant(value = "APIUtil.getInt(framebuffer)", keepParam = true) int framebuffer);
void glGenFramebuffersOES(@AutoSize("framebuffers") int n, @OutParameter @GLuint IntBuffer framebuffers);
@Alternate("glGenFramebuffersOES")
@GLreturn("framebuffers")
void glGenFramebuffersOES2(@Constant("1") int n, @OutParameter @GLuint IntBuffer framebuffers);
@GLenum
int glCheckFramebufferStatusOES(@GLenum int target);
void glFramebufferTexture2DOES(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
void glFramebufferRenderbufferOES(@GLenum int target, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
@StripPostfix("params")
void glGetFramebufferAttachmentParameterivOES(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteriOES} instead. */
@Alternate("glGetFramebufferAttachmentParameterivOES")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "OESFramebufferObject", method = "glGetFramebufferAttachmentParameteriOES")
@Deprecated
void glGetFramebufferAttachmentParameterivOES2(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetFramebufferAttachmentParameterivOES")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferAttachmentParameterivOES3(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
void glGenerateMipmapOES(@GLenum int target);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_blend_equation_separate.java 0000644 0001750 0001750 00000003651 12702226520 025524 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
public interface OES_blend_equation_separate {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_BLEND_EQUATION_RGB_OES = 0x8009,
GL_BLEND_EQUATION_ALPHA_OES = 0x883D;
void glBlendEquationSeparateOES(@GLenum int modeRGB, @GLenum int modeAlpha);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_EGL_sync.java 0000644 0001750 0001750 00000003240 12702226520 022304 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Alias;
@Alias("OES_egl_sync")
public interface OES_EGL_sync {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/AMD_program_binary_Z400.java 0000644 0001750 0001750 00000003334 12702226520 024350 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface AMD_program_binary_Z400 {
/** Accepted by the <binaryFormat> parameter of ProgramBinaryOES: */
int GL_Z400_BINARY_AMD = 0x8740;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/APPLE_texture_format_BGRA8888.java 0000644 0001750 0001750 00000003341 12702226520 025261 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface APPLE_texture_format_BGRA8888 {
/** Accepted by the <format> parameters of TexImage2D and TexSubImage2D: */
int GL_BGRA_EXT = 0x80E1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/DMP_shader_binary.java 0000644 0001750 0001750 00000003324 12702226520 023450 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface DMP_shader_binary {
/** Accepted by the <binaryformat> parameter of ShaderBinary: */
int GL_SHADER_BINARY_DMP = 0x9250;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_rgb8_rgba8.java 0000644 0001750 0001750 00000003521 12702226520 022570 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "OES", className = "OESRGB8RGBA8")
public interface OES_rgb8_rgba8 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_RGB8_OES = 0x8051,
GL_RGBA8_OES = 0x8058;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_get_tex_image.java 0000644 0001750 0001750 00000007673 12702226520 023355 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.StripPostfix;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface NV_get_tex_image {
int GL_TEXTURE_WIDTH_NV = 0x1000,
GL_TEXTURE_HEIGHT_NV = 0x1001,
GL_TEXTURE_INTERNAL_FORMAT_NV = 0x1003,
GL_TEXTURE_COMPONENTS_NV = GL_TEXTURE_INTERNAL_FORMAT_NV,
GL_TEXTURE_BORDER_NV = 0x1005,
GL_TEXTURE_RED_SIZE_NV = 0x805C,
GL_TEXTURE_GREEN_SIZE_NV = 0x805D,
GL_TEXTURE_BLUE_SIZE_NV = 0x805E,
GL_TEXTURE_ALPHA_SIZE_NV = 0x805F,
GL_TEXTURE_LUMINANCE_SIZE_NV = 0x8060,
GL_TEXTURE_INTENSITY_SIZE_NV = 0x8061,
GL_TEXTURE_DEPTH_NV = 0x8071,
GL_TEXTURE_COMPRESSED_IMAGE_SIZE_NV = 0x86A0,
GL_TEXTURE_COMPRESSED_NV = 0x86A1,
GL_TEXTURE_DEPTH_SIZE_NV = 0x884A;
void glGetTexImageNV(@GLenum int target, @GLint int level, @GLenum int format, @GLenum int type,
@OutParameter
@Check("GLChecks.calculateImageStorage(img, format, type, 1, 1, 1)")
@GLbyte
@GLshort
@GLint
@GLfloat Buffer img);
void glGetCompressedTexImageNV(@GLenum int target, @GLint int level, @OutParameter @Check @GLvoid ByteBuffer img);
@StripPostfix("params")
void glGetTexLevelParameterfvNV(@GLenum int target, @GLint int level, @GLenum int pname, @OutParameter @Check("1") @GLfloat FloatBuffer params);
@Alternate("glGetTexLevelParameterfvNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexLevelParameterfvNV2(@GLenum int target, @GLint int level, @GLenum int pname, @OutParameter @GLfloat FloatBuffer params);
@StripPostfix("params")
void glGetTexLevelParameterivNV(@GLenum int target, @GLint int level, @GLenum int pname, @OutParameter @Check("1") @GLint IntBuffer params);
@Alternate("glGetTexLevelParameterivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexLevelParameterivNV2(@GLenum int target, @GLint int level, @GLenum int pname, @OutParameter @GLint IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/VIV_shader_binary.java 0000644 0001750 0001750 00000003324 12702226520 023474 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface VIV_shader_binary {
/** Accepted by the <binaryformat> parameter of ShaderBinary: */
int GL_SHADER_BINARY_VIV = 0x8FC4;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_robustness.java 0000644 0001750 0001750 00000006125 12702226520 023067 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.StripPostfix;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface EXT_robustness {
/** Returned by GetGraphicsResetStatusEXT: */
int GL_NO_ERROR = 0x0000,
GL_GUILTY_CONTEXT_RESET_EXT = 0x8253,
GL_INNOCENT_CONTEXT_RESET_EXT = 0x8254,
GL_UNKNOWN_CONTEXT_RESET_EXT = 0x8255;
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_CONTEXT_ROBUST_ACCESS_EXT = 0x90F3,
GL_RESET_NOTIFICATION_STRATEGY_EXT = 0x8256;
/**
* Returned by GetIntegerv and related simple queries when <value> is
* RESET_NOTIFICATION_STRATEGY_EXT :
*/
int GL_LOSE_CONTEXT_ON_RESET_EXT = 0x8252,
GL_NO_RESET_NOTIFICATION_EXT = 0x8261;
@GLenum
int glGetGraphicsResetStatusEXT();
void glReadnPixelsEXT(int x, int y, @GLsizei int width, @GLsizei int height,
@GLenum int format, @GLenum int type, @AutoSize("data") @GLsizei int bufSize,
@OutParameter @GLbyte @GLshort @GLint @GLfloat Buffer data);
@StripPostfix("params")
void glGetnUniformfvEXT(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetnUniformivEXT(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/IMG_texture_compression_pvrtc.java 0000644 0001750 0001750 00000003724 12702226520 026175 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface IMG_texture_compression_pvrtc {
/**
* Accepted by the <internalformat> parameter of CompressedTexImage2DARB
* and the <format> parameter of CompressedTexSubImage2DARB:
*/
int GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00,
GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01,
GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02,
GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_multi_draw_arrays.java 0000644 0001750 0001750 00000004200 12702226520 024400 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLint;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.IntBuffer;
public interface EXT_multi_draw_arrays {
void glMultiDrawArraysEXT(@GLenum int mode, @GLint IntBuffer first, @Check("first.remaining()") @GLsizei IntBuffer count, @AutoSize("first") @GLsizei int primcount);
//void glMultiDrawElementsEXT(GLenum mode, GLsizei*count, GLenum type, const GLvoid**indices, GLsizei primcount)
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_copy_texture_levels.java 0000644 0001750 0001750 00000003573 12702226520 024770 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_copy_texture_levels {
void glCopyTextureLevelsAPPLE(@GLuint int destinationTexture, @GLuint int sourceTexture,
int sourceBaseLevel, @GLsizei int sourceLevelCount);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ARM_mali_shader_binary.java 0000644 0001750 0001750 00000003335 12702226520 024453 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface ARM_mali_shader_binary {
/** Accepted by the <binaryFormat> parameter of ShaderBinary: */
int GL_MALI_SHADER_BINARY_ARM = 0x8F60;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_compression_dxt1.java 0000644 0001750 0001750 00000003730 12702226520 025740 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureCompressionDXT1")
public interface EXT_texture_compression_dxt1 {
/**
* Accepted by the <internalformat> parameter of CompressedTexImage2D
* and the <format> parameter of CompressedTexSubImage2D:
*/
int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0,
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_discard_framebuffer.java 0000644 0001750 0001750 00000004260 12702226520 024633 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.IntBuffer;
public interface EXT_discard_framebuffer {
/**
* Accepted in the <attachments> parameter of DiscardFramebufferEXT when the
* default framebuffer is bound to <target>:
*/
int GL_COLOR_EXT = 0x1800,
GL_DEPTH_EXT = 0x1801,
GL_STENCIL_EXT = 0x1802;
void glDiscardFramebufferEXT(@GLenum int target, @AutoSize("attachments") @GLsizei int numAttachments, @Const @GLenum IntBuffer attachments);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_filter_anisotropic.java 0000644 0001750 0001750 00000003744 12702226520 026343 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_texture_filter_anisotropic {
/**
* Accepted by the <pname> parameters of GetTexParameterfv,
* GetTexParameteriv, TexParameterf, TexParameterfv, TexParameteri,
* and TexParameteriv:
*/
int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
/**
* Accepted by the <pname> parameters of GetBooleanv,
* GetFloatv, and GetIntegerv:
*/
int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/GLES20.java 0000644 0001750 0001750 00000125644 12702226520 021044 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface GLES20 {
/** ClearBufferMask */
int GL_DEPTH_BUFFER_BIT = 0x00000100,
GL_STENCIL_BUFFER_BIT = 0x00000400,
GL_COLOR_BUFFER_BIT = 0x00004000;
/** Boolean */
int GL_FALSE = 0,
GL_TRUE = 1;
/** BeginMode */
int GL_POINTS = 0x0000,
GL_LINES = 0x0001,
GL_LINE_LOOP = 0x0002,
GL_LINE_STRIP = 0x0003,
GL_TRIANGLES = 0x0004,
GL_TRIANGLE_STRIP = 0x0005,
GL_TRIANGLE_FAN = 0x0006;
/** BlendingFactorDest */
int GL_ZERO = 0,
GL_ONE = 1,
GL_SRC_COLOR = 0x0300,
GL_ONE_MINUS_SRC_COLOR = 0x0301,
GL_SRC_ALPHA = 0x0302,
GL_ONE_MINUS_SRC_ALPHA = 0x0303,
GL_DST_ALPHA = 0x0304,
GL_ONE_MINUS_DST_ALPHA = 0x0305;
/** BlendingFactorSrc */
int
/* GL_ZERO */
/* GL_ONE */
GL_DST_COLOR = 0x0306,
GL_ONE_MINUS_DST_COLOR = 0x0307,
GL_SRC_ALPHA_SATURATE = 0x0308;
/* GL_SRC_ALPHA */
/* GL_ONE_MINUS_SRC_ALPHA */
/* GL_DST_ALPHA */
/* GL_ONE_MINUS_DST_ALPHA */
/** BlendEquationSeparate */
int GL_FUNC_ADD = 0x8006,
GL_BLEND_EQUATION = 0x8009,
GL_BLEND_EQUATION_RGB = 0x8009, /* same as BLEND_EQUATION */
GL_BLEND_EQUATION_ALPHA = 0x883D;
/** BlendSubtract */
int GL_FUNC_SUBTRACT = 0x800A,
GL_FUNC_REVERSE_SUBTRACT = 0x800B;
/** Separate Blend Functions */
int GL_BLEND_DST_RGB = 0x80C8,
GL_BLEND_SRC_RGB = 0x80C9,
GL_BLEND_DST_ALPHA = 0x80CA,
GL_BLEND_SRC_ALPHA = 0x80CB,
GL_CONSTANT_COLOR = 0x8001,
GL_ONE_MINUS_CONSTANT_COLOR = 0x8002,
GL_CONSTANT_ALPHA = 0x8003,
GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004,
GL_BLEND_COLOR = 0x8005;
/** Buffer Objects */
int GL_ARRAY_BUFFER = 0x8892,
GL_ELEMENT_ARRAY_BUFFER = 0x8893,
GL_ARRAY_BUFFER_BINDING = 0x8894,
GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895,
GL_STREAM_DRAW = 0x88E0,
GL_STATIC_DRAW = 0x88E4,
GL_DYNAMIC_DRAW = 0x88E8,
GL_BUFFER_SIZE = 0x8764,
GL_BUFFER_USAGE = 0x8765,
GL_CURRENT_VERTEX_ATTRIB = 0x8626;
/** CullFaceMode */
int GL_FRONT = 0x0404,
GL_BACK = 0x0405,
GL_FRONT_AND_BACK = 0x0408;
/** DepthFunction */
/* GL_NEVER */
/* GL_LESS */
/* GL_EQUAL */
/* GL_LEQUAL */
/* GL_GREATER */
/* GL_NOTEQUAL */
/* GL_GEQUAL */
/* GL_ALWAYS */
/** EnableCap */
int GL_TEXTURE_2D = 0x0DE1,
GL_CULL_FACE = 0x0B44,
GL_BLEND = 0x0BE2,
GL_DITHER = 0x0BD0,
GL_STENCIL_TEST = 0x0B90,
GL_DEPTH_TEST = 0x0B71,
GL_SCISSOR_TEST = 0x0C11,
GL_POLYGON_OFFSET_FILL = 0x8037,
GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E,
GL_SAMPLE_COVERAGE = 0x80A0;
/** ErrorCode */
int GL_NO_ERROR = 0,
GL_INVALID_ENUM = 0x0500,
GL_INVALID_VALUE = 0x0501,
GL_INVALID_OPERATION = 0x0502,
GL_OUT_OF_MEMORY = 0x0505;
/** FrontFaceDirection */
int GL_CW = 0x0900,
GL_CCW = 0x0901;
/** GetPName */
int GL_LINE_WIDTH = 0x0B21,
GL_ALIASED_POINT_SIZE_RANGE = 0x846D,
GL_ALIASED_LINE_WIDTH_RANGE = 0x846E,
GL_CULL_FACE_MODE = 0x0B45,
GL_FRONT_FACE = 0x0B46,
GL_DEPTH_RANGE = 0x0B70,
GL_DEPTH_WRITEMASK = 0x0B72,
GL_DEPTH_CLEAR_VALUE = 0x0B73,
GL_DEPTH_FUNC = 0x0B74,
GL_STENCIL_CLEAR_VALUE = 0x0B91,
GL_STENCIL_FUNC = 0x0B92,
GL_STENCIL_FAIL = 0x0B94,
GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95,
GL_STENCIL_PASS_DEPTH_PASS = 0x0B96,
GL_STENCIL_REF = 0x0B97,
GL_STENCIL_VALUE_MASK = 0x0B93,
GL_STENCIL_WRITEMASK = 0x0B98,
GL_STENCIL_BACK_FUNC = 0x8800,
GL_STENCIL_BACK_FAIL = 0x8801,
GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802,
GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803,
GL_STENCIL_BACK_REF = 0x8CA3,
GL_STENCIL_BACK_VALUE_MASK = 0x8CA4,
GL_STENCIL_BACK_WRITEMASK = 0x8CA5,
GL_VIEWPORT = 0x0BA2,
GL_SCISSOR_BOX = 0x0C10,
/* GL_SCISSOR_TEST */
GL_COLOR_CLEAR_VALUE = 0x0C22,
GL_COLOR_WRITEMASK = 0x0C23,
GL_UNPACK_ALIGNMENT = 0x0CF5,
GL_PACK_ALIGNMENT = 0x0D05,
GL_MAX_TEXTURE_SIZE = 0x0D33,
GL_MAX_VIEWPORT_DIMS = 0x0D3A,
GL_SUBPIXEL_BITS = 0x0D50,
GL_RED_BITS = 0x0D52,
GL_GREEN_BITS = 0x0D53,
GL_BLUE_BITS = 0x0D54,
GL_ALPHA_BITS = 0x0D55,
GL_DEPTH_BITS = 0x0D56,
GL_STENCIL_BITS = 0x0D57,
GL_POLYGON_OFFSET_UNITS = 0x2A00,
/* GL_POLYGON_OFFSET_FILL */
GL_POLYGON_OFFSET_FACTOR = 0x8038,
GL_TEXTURE_BINDING_2D = 0x8069,
GL_SAMPLE_BUFFERS = 0x80A8,
GL_SAMPLES = 0x80A9,
GL_SAMPLE_COVERAGE_VALUE = 0x80AA,
GL_SAMPLE_COVERAGE_INVERT = 0x80AB;
/** GetTextureParameter */
int
/* GL_TEXTURE_MAG_FILTER */
/* GL_TEXTURE_MIN_FILTER */
/* GL_TEXTURE_WRAP_S */
/* GL_TEXTURE_WRAP_T */
GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2,
GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3;
/** HintMode */
int GL_DONT_CARE = 0x1100,
GL_FASTEST = 0x1101,
GL_NICEST = 0x1102;
/** HintTarget */
int GL_GENERATE_MIPMAP_HINT = 0x8192;
/** DataType */
int GL_BYTE = 0x1400,
GL_UNSIGNED_BYTE = 0x1401,
GL_SHORT = 0x1402,
GL_UNSIGNED_SHORT = 0x1403,
GL_INT = 0x1404,
GL_UNSIGNED_INT = 0x1405,
GL_FLOAT = 0x1406,
GL_FIXED = 0x140C;
/** PixelFormat */
int GL_DEPTH_COMPONENT = 0x1902,
GL_ALPHA = 0x1906,
GL_RGB = 0x1907,
GL_RGBA = 0x1908,
GL_LUMINANCE = 0x1909,
GL_LUMINANCE_ALPHA = 0x190A;
/** PixelType */
int
/* GL_UNSIGNED_BYTE */
GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033,
GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034,
GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
/** Shaders */
int GL_FRAGMENT_SHADER = 0x8B30,
GL_VERTEX_SHADER = 0x8B31,
GL_MAX_VERTEX_ATTRIBS = 0x8869,
GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB,
GL_MAX_VARYING_VECTORS = 0x8DFC,
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D,
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C,
GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872,
GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD,
GL_SHADER_TYPE = 0x8B4F,
GL_DELETE_STATUS = 0x8B80,
GL_LINK_STATUS = 0x8B82,
GL_VALIDATE_STATUS = 0x8B83,
GL_ATTACHED_SHADERS = 0x8B85,
GL_ACTIVE_UNIFORMS = 0x8B86,
GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87,
GL_ACTIVE_ATTRIBUTES = 0x8B89,
GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A,
GL_SHADING_LANGUAGE_VERSION = 0x8B8C,
GL_CURRENT_PROGRAM = 0x8B8D;
/** StencilFunction */
int GL_NEVER = 0x0200,
GL_LESS = 0x0201,
GL_EQUAL = 0x0202,
GL_LEQUAL = 0x0203,
GL_GREATER = 0x0204,
GL_NOTEQUAL = 0x0205,
GL_GEQUAL = 0x0206,
GL_ALWAYS = 0x0207;
/** StencilOp */
int
/* GL_ZERO */
GL_KEEP = 0x1E00,
GL_REPLACE = 0x1E01,
GL_INCR = 0x1E02,
GL_DECR = 0x1E03,
GL_INVERT = 0x150A,
GL_INCR_WRAP = 0x8507,
GL_DECR_WRAP = 0x8508;
/** StringName */
int GL_VENDOR = 0x1F00,
GL_RENDERER = 0x1F01,
GL_VERSION = 0x1F02,
GL_EXTENSIONS = 0x1F03;
/** TextureMagFilter */
int GL_NEAREST = 0x2600,
GL_LINEAR = 0x2601;
/** TextureMinFilter */
int
/* GL_NEAREST */
/* GL_LINEAR */
GL_NEAREST_MIPMAP_NEAREST = 0x2700,
GL_LINEAR_MIPMAP_NEAREST = 0x2701,
GL_NEAREST_MIPMAP_LINEAR = 0x2702,
GL_LINEAR_MIPMAP_LINEAR = 0x2703;
/** TextureParameterName */
int GL_TEXTURE_MAG_FILTER = 0x2800,
GL_TEXTURE_MIN_FILTER = 0x2801,
GL_TEXTURE_WRAP_S = 0x2802,
GL_TEXTURE_WRAP_T = 0x2803;
/** TextureTarget */
int
/* GL_TEXTURE_2D */
GL_TEXTURE = 0x1702,
GL_TEXTURE_CUBE_MAP = 0x8513,
GL_TEXTURE_BINDING_CUBE_MAP = 0x8514,
GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515,
GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516,
GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518,
GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A,
GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
/** TextureUnit */
int GL_TEXTURE0 = 0x84C0,
GL_TEXTURE1 = 0x84C1,
GL_TEXTURE2 = 0x84C2,
GL_TEXTURE3 = 0x84C3,
GL_TEXTURE4 = 0x84C4,
GL_TEXTURE5 = 0x84C5,
GL_TEXTURE6 = 0x84C6,
GL_TEXTURE7 = 0x84C7,
GL_TEXTURE8 = 0x84C8,
GL_TEXTURE9 = 0x84C9,
GL_TEXTURE10 = 0x84CA,
GL_TEXTURE11 = 0x84CB,
GL_TEXTURE12 = 0x84CC,
GL_TEXTURE13 = 0x84CD,
GL_TEXTURE14 = 0x84CE,
GL_TEXTURE15 = 0x84CF,
GL_TEXTURE16 = 0x84D0,
GL_TEXTURE17 = 0x84D1,
GL_TEXTURE18 = 0x84D2,
GL_TEXTURE19 = 0x84D3,
GL_TEXTURE20 = 0x84D4,
GL_TEXTURE21 = 0x84D5,
GL_TEXTURE22 = 0x84D6,
GL_TEXTURE23 = 0x84D7,
GL_TEXTURE24 = 0x84D8,
GL_TEXTURE25 = 0x84D9,
GL_TEXTURE26 = 0x84DA,
GL_TEXTURE27 = 0x84DB,
GL_TEXTURE28 = 0x84DC,
GL_TEXTURE29 = 0x84DD,
GL_TEXTURE30 = 0x84DE,
GL_TEXTURE31 = 0x84DF,
GL_ACTIVE_TEXTURE = 0x84E0;
/** TextureWrapMode */
int GL_REPEAT = 0x2901,
GL_CLAMP_TO_EDGE = 0x812F,
GL_MIRRORED_REPEAT = 0x8370;
/** Uniform Types */
int GL_FLOAT_VEC2 = 0x8B50,
GL_FLOAT_VEC3 = 0x8B51,
GL_FLOAT_VEC4 = 0x8B52,
GL_INT_VEC2 = 0x8B53,
GL_INT_VEC3 = 0x8B54,
GL_INT_VEC4 = 0x8B55,
GL_BOOL = 0x8B56,
GL_BOOL_VEC2 = 0x8B57,
GL_BOOL_VEC3 = 0x8B58,
GL_BOOL_VEC4 = 0x8B59,
GL_FLOAT_MAT2 = 0x8B5A,
GL_FLOAT_MAT3 = 0x8B5B,
GL_FLOAT_MAT4 = 0x8B5C,
GL_SAMPLER_2D = 0x8B5E,
GL_SAMPLER_CUBE = 0x8B60;
/** Vertex Arrays */
int GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622,
GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623,
GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624,
GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625,
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A,
GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645,
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
/** Read Format */
int GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A,
GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B;
/** Shader Source */
int GL_COMPILE_STATUS = 0x8B81,
GL_INFO_LOG_LENGTH = 0x8B84,
GL_SHADER_SOURCE_LENGTH = 0x8B88,
GL_SHADER_COMPILER = 0x8DFA;
/** Shader Binary */
int GL_SHADER_BINARY_FORMATS = 0x8DF8,
GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9;
/** Shader Precision-Specified Types */
int GL_LOW_FLOAT = 0x8DF0,
GL_MEDIUM_FLOAT = 0x8DF1,
GL_HIGH_FLOAT = 0x8DF2,
GL_LOW_INT = 0x8DF3,
GL_MEDIUM_INT = 0x8DF4,
GL_HIGH_INT = 0x8DF5;
/** Framebuffer Object. */
int GL_FRAMEBUFFER = 0x8D40,
GL_RENDERBUFFER = 0x8D41,
GL_RGBA4 = 0x8056,
GL_RGB5_A1 = 0x8057,
GL_RGB565 = 0x8D62,
GL_DEPTH_COMPONENT16 = 0x81A5,
GL_STENCIL_INDEX = 0x1901,
GL_STENCIL_INDEX8 = 0x8D48,
GL_RENDERBUFFER_WIDTH = 0x8D42,
GL_RENDERBUFFER_HEIGHT = 0x8D43,
GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44,
GL_RENDERBUFFER_RED_SIZE = 0x8D50,
GL_RENDERBUFFER_GREEN_SIZE = 0x8D51,
GL_RENDERBUFFER_BLUE_SIZE = 0x8D52,
GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53,
GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54,
GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55,
GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0,
GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1,
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2,
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3,
GL_COLOR_ATTACHMENT0 = 0x8CE0,
GL_DEPTH_ATTACHMENT = 0x8D00,
GL_STENCIL_ATTACHMENT = 0x8D20,
GL_NONE = 0,
GL_FRAMEBUFFER_COMPLETE = 0x8CD5,
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6,
GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7,
GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9,
GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD,
GL_FRAMEBUFFER_BINDING = 0x8CA6,
GL_RENDERBUFFER_BINDING = 0x8CA7,
GL_MAX_RENDERBUFFER_SIZE = 0x84E8,
GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506;
void glActiveTexture(@GLenum int texture);
void glAttachShader(@GLuint int program, @GLuint int shader);
void glBindAttribLocation(@GLuint int program, @GLuint int index, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glBindAttribLocation")
void glBindAttribLocation(@GLuint int program, @GLuint int index, @NullTerminated CharSequence name);
@Code(" StateTracker.bindBuffer(target, buffer);")
void glBindBuffer(@GLenum int target, @GLuint int buffer);
void glBindFramebuffer(@GLenum int target, @GLuint int framebuffer);
void glBindRenderbuffer(@GLenum int target, @GLuint int renderbuffer);
void glBindTexture(@GLenum int target, @GLuint int texture);
void glBlendColor(@GLclampf float red, @GLclampf float green, @GLclampf float blue, @GLclampf float alpha);
void glBlendEquation(@GLenum int mode);
void glBlendEquationSeparate(@GLenum int modeRGB, @GLenum int modeAlpha);
void glBlendFunc(@GLenum int sfactor, @GLenum int dfactor);
void glBlendFuncSeparate(@GLenum int srcRGB, @GLenum int dstRGB, @GLenum int srcAlpha, @GLenum int dstAlpha);
@GenerateAutos
void glBufferData(@GLenum int target, @AutoSize("data") @GLsizeiptr long size,
@Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data, @GLenum int usage);
void glBufferSubData(@GLenum int target, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data);
@GLenum
int glCheckFramebufferStatus(@GLenum int target);
void glClear(@GLbitfield int mask);
void glClearColor(@GLclampf float red, @GLclampf float green, @GLclampf float blue, @GLclampf float alpha);
void glClearDepthf(@GLclampf float depth);
void glClearStencil(@GLint int s);
void glColorMask(@GLboolean boolean red, @GLboolean boolean green, @GLboolean boolean blue, @GLboolean boolean alpha);
void glCompileShader(@GLuint int shader);
void glCompressedTexImage2D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @AutoSize("data") @GLsizei int imageSize,
@Check @Const @GLvoid ByteBuffer data);
void glCompressedTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@Check @Const @GLvoid ByteBuffer data);
void glCopyTexImage2D(@GLenum int target, @GLint int level, @GLenum int internalformat, @GLint int x, @GLint int y, @GLsizei int width, @GLsizei int height, @GLint int border);
void glCopyTexSubImage2D(@GLenum int target, @GLint int level, @GLint int xoffset, @GLint int yoffset, @GLint int x, @GLint int y, @GLsizei int width, @GLsizei int height);
@GLuint
int glCreateProgram();
@GLuint
int glCreateShader(@GLenum int type);
void glCullFace(@GLenum int mode);
void glDeleteBuffers(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers);
@Alternate("glDeleteBuffers")
void glDeleteBuffers(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(buffer)", keepParam = true) int buffer);
void glDeleteFramebuffers(@AutoSize("framebuffers") int n, @Const @GLuint IntBuffer framebuffers);
@Alternate("glDeleteFramebuffers")
void glDeleteFramebuffers(@Constant("1") int n, @Constant(value = "APIUtil.getInt(framebuffer)", keepParam = true) int framebuffer);
void glDeleteProgram(@GLuint int program);
void glDeleteRenderbuffers(@AutoSize("renderbuffers") int n, @Const @GLuint IntBuffer renderbuffers);
@Alternate("glDeleteRenderbuffers")
void glDeleteRenderbuffers(@Constant("1") int n, @Constant(value = "APIUtil.getInt(renderbuffer)", keepParam = true) int renderbuffer);
void glDeleteShader(@GLuint int shader);
void glDeleteTextures(@AutoSize("textures") @GLsizei int n, @Const @GLuint IntBuffer textures);
@Alternate("glDeleteTextures")
void glDeleteTextures(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(texture)", keepParam = true) int texture);
void glDepthFunc(@GLenum int func);
void glDepthMask(@GLboolean boolean flag);
void glDepthRangef(@GLclampf float zNear, @GLclampf float zFar);
void glDetachShader(@GLuint int program, @GLuint int shader);
void glDisable(@GLenum int cap);
void glDisableVertexAttribArray(@GLuint int index);
void glDrawArrays(@GLenum int mode, @GLint int first, @GLsizei int count);
void glDrawElements(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO) @Const @GLubyte @GLushort @GLuint Buffer indices);
void glEnable(@GLenum int cap);
void glEnableVertexAttribArray(@GLuint int index);
void glFinish();
void glFlush();
void glFramebufferRenderbuffer(@GLenum int target, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
void glFramebufferTexture2D(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, @GLint int level);
void glFrontFace(@GLenum int mode);
void glGenBuffers(@AutoSize("buffers") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
@Alternate("glGenBuffers")
@GLreturn("buffers")
void glGenBuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
void glGenerateMipmap(@GLenum int target);
void glGenFramebuffers(@AutoSize("framebuffers") int n, @OutParameter @GLuint IntBuffer framebuffers);
@Alternate("glGenFramebuffers")
@GLreturn("framebuffers")
void glGenFramebuffers2(@Constant("1") int n, @OutParameter @GLuint IntBuffer framebuffers);
void glGenRenderbuffers(@AutoSize("renderbuffers") int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Alternate("glGenRenderbuffers")
@GLreturn("renderbuffers")
void glGenRenderbuffers2(@Constant("1") int n, @OutParameter @GLuint IntBuffer renderbuffers);
void glGenTextures(@AutoSize("textures") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
@Alternate("glGenTextures")
@GLreturn("textures")
void glGenTextures2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
void glGetActiveAttrib(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @Check("1") IntBuffer size,
@OutParameter @Check("1") @GLenum IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveAttrib")
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveAttrib2(@GLuint int program, @GLuint int index, @GLsizei int bufsize,
@OutParameter @Constant("MemoryUtil.getAddress0(name_length)") @GLsizei IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") @GLenum IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns only the attrib name. */
@Alternate(value = "glGetActiveAttrib", javaAlt = true)
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveAttrib(@GLuint int program, @GLuint int index, @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt()), MemoryUtil.getAddress(APIUtil.getBufferInt(), 1)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns only the attrib size. */
@Alternate(value = "glGetActiveAttrib", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveAttribSize(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0()") ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns only the attrib type. */
@Alternate(value = "glGetActiveAttrib", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveAttribType(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0()") ByteBuffer name);
void glGetActiveUniform(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @Check("1") @GLsizei IntBuffer size,
@OutParameter @Check("1") @GLenum IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveUniform. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveUniform")
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveUniform2(@GLuint int program, @GLuint int index, @GLsizei int bufsize,
@OutParameter @Constant("MemoryUtil.getAddress0(name_length)") @GLsizei IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") @GLenum IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveUniformARB. This version returns only the uniform name. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveUniform(@GLuint int program, @GLuint int index, @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt()), MemoryUtil.getAddress(APIUtil.getBufferInt(), 1)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveUniform. This version returns only the uniform size. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveUniformSize(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0()") ByteBuffer name);
/** Overloads glGetActiveUniform. This version returns only the uniform type. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveUniformType(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0()") ByteBuffer name);
void glGetAttachedShaders(@GLuint int program, @AutoSize("shaders") @GLsizei int maxCount,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer count,
@OutParameter @GLuint IntBuffer shaders);
int glGetAttribLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetAttribLocation")
int glGetAttribLocation(@GLuint int program, @NullTerminated CharSequence name);
@StripPostfix("params")
void glGetBooleanv(@GLenum int pname, @OutParameter @Check("1") @GLboolean ByteBuffer params);
@Alternate("glGetBooleanv")
@GLreturn("params")
@StripPostfix("params")
void glGetBooleanv2(@GLenum int pname, @OutParameter @GLboolean ByteBuffer params);
@StripPostfix("params")
void glGetBufferParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetBufferParameteri} instead. */
@Alternate("glGetBufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GLES20", method = "glGetBufferParameteri")
@Deprecated
void glGetBufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetBufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetBufferParameteriv3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@NoErrorCheck
@GLenum
int glGetError();
@StripPostfix("params")
void glGetFloatv(@GLenum int pname, @OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetFloatv")
@GLreturn("params")
@StripPostfix("params")
void glGetFloatv2(@GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetFramebufferAttachmentParameteriv(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteri} instead. */
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GLES20", method = "glGetFramebufferAttachmentParameteri")
@Deprecated
void glGetFramebufferAttachmentParameteriv2(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferAttachmentParameteriv3(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetIntegerv(@GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetIntegerv")
@GLreturn("params")
@StripPostfix("params")
void glGetIntegerv2(@GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetProgramiv(@GLuint int program, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgrami} instead. */
@Alternate("glGetProgramiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GLES20", method = "glGetProgrami")
@Deprecated
void glGetProgramiv2(@GLuint int program, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetProgramiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramiv3(@GLuint int program, @GLenum int pname, @OutParameter IntBuffer params);
void glGetProgramInfoLog(@GLuint int program, @AutoSize("infoLog") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Alternate("glGetProgramInfoLog")
@GLreturn(value = "infoLog", maxLength = "bufsize")
void glGetProgramInfoLog2(@GLuint int program, @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@StripPostfix("params")
void glGetRenderbufferParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteri} instead. */
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GLES20", method = "glGetRenderbufferParameteri")
@Deprecated
void glGetRenderbufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetRenderbufferParameteriv3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetShaderiv(@GLuint int shader, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetShaderi} instead. */
@Alternate("glGetShaderiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GLES20", method = "glGetShaderi")
@Deprecated
void glGetShaderiv2(@GLuint int shader, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetShaderiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetShaderiv3(@GLuint int shader, @GLenum int pname, @OutParameter IntBuffer params);
void glGetShaderInfoLog(@GLuint int shader, @AutoSize("infoLog") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Alternate("glGetShaderInfoLog")
@GLreturn(value = "infoLog", maxLength = "bufsize")
void glGetShaderInfoLog2(@GLuint int shader, @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
void glGetShaderPrecisionFormat(@GLenum int shadertype, @GLenum int precisiontype, @OutParameter @GLint @Check("2") IntBuffer range, @OutParameter @Check("1") @GLint IntBuffer precision);
void glGetShaderSource(@GLuint int shader, @AutoSize("source") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer source);
@Alternate("glGetShaderSource")
@GLreturn(value = "source", maxLength = "bufsize")
void glGetShaderSource2(@GLuint int shader, @GLsizei int bufsize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(source_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer source);
@Const
String glGetString(@GLenum int name);
@StripPostfix("params")
void glGetTexParameterfv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetTexParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameterfv2(@GLenum int target, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTexParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTexParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetUniformfv(@GLuint int program, int location, @OutParameter @Check("1") FloatBuffer params);
@StripPostfix("params")
void glGetUniformiv(@GLuint int program, int location, @OutParameter @Check("1") IntBuffer params);
/**
* Returns the location of the uniform with the specified name. The ByteBuffer should contain the uniform name as a
* null-terminated string.
*
* @param program
* @param name
*/
int glGetUniformLocation(@GLuint int program, @NullTerminated @Check("1") @Const @GLchar ByteBuffer name);
@Alternate("glGetUniformLocation")
int glGetUniformLocation(@GLuint int program, @NullTerminated CharSequence name);
@StripPostfix("params")
void glGetVertexAttribfv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetVertexAttribiv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("pointer")
void glGetVertexAttribPointerv(@GLuint int index, @GLenum int pname, @Result @GLvoid ByteBuffer pointer);
void glHint(@GLenum int target, @GLenum int mode);
@GLboolean
boolean glIsBuffer(@GLuint int buffer);
@GLboolean
boolean glIsEnabled(@GLenum int cap);
@GLboolean
boolean glIsFramebuffer(@GLuint int framebuffer);
@GLboolean
boolean glIsProgram(@GLuint int program);
@GLboolean
boolean glIsRenderbuffer(@GLuint int renderbuffer);
@GLboolean
boolean glIsShader(@GLuint int shader);
@GLboolean
boolean glIsTexture(@GLuint int texture);
void glLineWidth(@GLfloat float width);
void glLinkProgram(@GLuint int program);
void glPixelStorei(@GLenum int pname, @GLint int param);
void glPolygonOffset(@GLfloat float factor, @GLfloat float units);
void glReadPixels(int x, int y, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@OutParameter @GLbyte @GLshort @GLint @GLfloat Buffer pixels);
void glReleaseShaderCompiler();
void glRenderbufferStorage(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
void glSampleCoverage(@GLclampf float value, @GLboolean boolean invert);
void glScissor(@GLint int x, @GLint int y, @GLsizei int width, @GLsizei int height);
void glShaderBinary(@AutoSize("shaders") @GLsizei int n, @Const @GLuint IntBuffer shaders, @GLenum int binaryformat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
/**
* glShaderSource allows multiple, optionally null-terminated, source strings to define a shader program.
*
* This method uses just a single string, that should NOT be null-terminated.
*
* @param shader
* @param string
*/
void glShaderSource(@GLuint int shader, @Constant("1") @GLsizei int count,
@Indirect @Const @Check @GLchar ByteBuffer string,
@AutoSize("string") @Indirect @Const @GLint int length);
@Alternate("glShaderSource")
void glShaderSource2(@GLuint int shader, @Constant("1") @GLsizei int count, CharSequence string, @Constant("string.length()") @Indirect @Const int length);
@Alternate(value = "glShaderSource", nativeAlt = true)
void glShaderSource3(@GLuint int shader, @Constant("strings.length") @GLsizei int count,
@Const @PointerArray(value = "count", lengths = "length") CharSequence[] strings,
@Constant("APIUtil.getLengths(strings)") @Const IntBuffer length);
void glStencilFunc(@GLenum int func, @GLint int ref, @GLuint int mask);
void glStencilFuncSeparate(@GLenum int face, @GLenum int func, @GLint int ref, @GLuint int mask);
void glStencilMask(@GLuint int mask);
void glStencilMaskSeparate(@GLenum int face, @GLuint int mask);
void glStencilOp(@GLenum int fail, @GLenum int zfail, @GLenum int zpass);
void glStencilOpSeparate(@GLenum int face, @GLenum int fail, @GLenum int zfail, @GLenum int zpass);
void glTexImage2D(@GLenum int target, int level, int internalformat, int width, int height, int border, @GLenum int format, @GLenum int type,
@Check(value = "GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height)", canBeNull = true)
@Const @GLbyte @GLshort @GLint @GLfloat Buffer pixels);
void glTexParameterf(@GLenum int target, @GLenum int pname, @GLfloat float param);
@StripPostfix("param")
void glTexParameterfv(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer param);
void glTexParameteri(@GLenum int target, @GLenum int pname, @GLint int param);
@StripPostfix("param")
void glTexParameteriv(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer param);
void glTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@Const @GLbyte @GLshort @GLint @GLfloat Buffer pixels);
void glUniform1f(@GLint int location, @GLfloat float x);
@StripPostfix("v")
void glUniform1fv(int location, @AutoSize("v") @GLsizei int count, @Const FloatBuffer v);
void glUniform1i(@GLint int location, @GLint int x);
@StripPostfix("v")
void glUniform1iv(int location, @AutoSize("v") @GLsizei int count, @Const IntBuffer v);
void glUniform2f(@GLint int location, @GLfloat float x, @GLfloat float y);
@StripPostfix("v")
void glUniform2fv(int location, @AutoSize(value = "v", expression = " >> 1") @GLsizei int count, @Const FloatBuffer v);
void glUniform2i(@GLint int location, @GLint int x, @GLint int y);
@StripPostfix("v")
void glUniform2iv(int location, @AutoSize(value = "v", expression = " >> 1") @GLsizei int count, @Const IntBuffer v);
void glUniform3f(@GLint int location, @GLfloat float x, @GLfloat float y, @GLfloat float z);
@StripPostfix("v")
void glUniform3fv(int location, @AutoSize(value = "v", expression = " / 3") @GLsizei int count, @Const FloatBuffer v);
void glUniform3i(@GLint int location, @GLint int x, @GLint int y, @GLint int z);
@StripPostfix("v")
void glUniform3iv(int location, @AutoSize(value = "v", expression = " / 3") @GLsizei int count, @Const IntBuffer v);
void glUniform4f(@GLint int location, @GLfloat float x, @GLfloat float y, @GLfloat float z, @GLfloat float w);
@StripPostfix("v")
void glUniform4fv(int location, @AutoSize(value = "v", expression = " >> 2") @GLsizei int count, @Const FloatBuffer v);
void glUniform4i(@GLint int location, @GLint int x, @GLint int y, @GLint int z, @GLint int w);
@StripPostfix("v")
void glUniform4iv(int location, @AutoSize(value = "v", expression = " >> 2") @GLsizei int count, @Const IntBuffer v);
@StripPostfix("matrices")
void glUniformMatrix2fv(int location, @AutoSize(value = "matrices", expression = " >> 2") @GLsizei int count, @GLboolean boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3fv(int location, @AutoSize(value = "matrices", expression = " / (3 * 3)") @GLsizei int count, @GLboolean boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4fv(int location, @AutoSize(value = "matrices", expression = " >> 4") @GLsizei int count, @GLboolean boolean transpose, @Const FloatBuffer matrices);
void glUseProgram(@GLuint int program);
void glValidateProgram(@GLuint int program);
void glVertexAttrib1f(@GLuint int indx, @GLfloat float x);
@StripPostfix("values")
void glVertexAttrib1fv(@GLuint int indx, @Const @Check("1") FloatBuffer values);
void glVertexAttrib2f(@GLuint int indx, @GLfloat float x, @GLfloat float y);
@StripPostfix("values")
void glVertexAttrib2fv(@GLuint int indx, @Const @Check("2") FloatBuffer values);
void glVertexAttrib3f(@GLuint int indx, @GLfloat float x, @GLfloat float y, @GLfloat float z);
@StripPostfix("values")
void glVertexAttrib3fv(@GLuint int indx, @Const @Check("3") FloatBuffer values);
void glVertexAttrib4f(@GLuint int indx, @GLfloat float x, @GLfloat float y, @GLfloat float z, @GLfloat float w);
@StripPostfix("values")
void glVertexAttrib4fv(@GLuint int indx, @Const @Check("4") FloatBuffer values);
void glVertexAttribPointer(@GLuint int index, int size, @AutoType("buffer") @GLenum int type, @GLboolean boolean normalized, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO) @Check @Const @GLubyte @GLbyte @GLshort @GLushort @GLint @GLuint @GLfloat Buffer buffer);
void glViewport(@GLint int x, @GLint int y, @GLsizei int width, @GLsizei int height);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_Cg_shader.java 0000644 0001750 0001750 00000004216 12702226520 022536 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_Cg_shader {
/**
* You can pass GL_CG_VERTEX_SHADER_EXT to glCreateShader instead of GL_VERTEX_SHADER to create a vertex shader
* that will parse and compile its shader source with the Cg compiler front-end rather than the GLSL front-end. Likewise, you
* can pass GL_CG_FRAGMENT_SHADER_EXT to glCreateShader instead of GL_FRAGMENT_SHADER to create a fragment shader object
* that will parse and compile its shader source with the Cg front-end rather than the GLSL front-end.
*/
int GL_CG_VERTEX_SHADER_EXT = 0x890E,
GL_CG_FRAGMENT_SHADER_EXT = 0x890F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_depth32.java 0000644 0001750 0001750 00000003335 12702226520 022117 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_depth32 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_DEPTH_COMPONENT32_OES = 0x81A7;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_packed_float.java 0000644 0001750 0001750 00000004231 12702226520 023270 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_packed_float {
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage:
*/
int GL_R11F_G11F_B10F_EXT = 0x8C3A;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D:
*/
int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B;
/** Accepted by the <pname> parameters of GetIntegerv and GetFloatv: */
int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_unpack_subimage.java 0000644 0001750 0001750 00000003471 12702226520 024016 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_unpack_subimage {
/**
* Accepted by the <pname> parameters of PixelStorei, GetIntegerv, and
* GetFloatv:
*/
int GL_UNPACK_ROW_LENGTH = 0x0CF2,
GL_UNPACK_SKIP_ROWS = 0x0CF3,
GL_UNPACK_SKIP_PIXELS = 0x0CF4;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_draw_path.java 0000644 0001750 0001750 00000010644 12702226520 022515 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
public interface NV_draw_path {
/** Accepted as the <paramType> parameter of PathParameterNV: */
int GL_PATH_QUALITY_NV = 0x8ED8,
GL_FILL_RULE_NV = 0x8ED9,
GL_STROKE_CAP0_STYLE_NV = 0x8EE0,
GL_STROKE_CAP1_STYLE_NV = 0x8EE1,
GL_STROKE_CAP2_STYLE_NV = 0x8EE2,
GL_STROKE_CAP3_STYLE_NV = 0x8EE3,
GL_STROKE_JOIN_STYLE_NV = 0x8EE8,
GL_STROKE_MITER_LIMIT_NV = 0x8EE9;
/** Values for the ILL_RULE_NV path parameter: */
int GL_EVEN_ODD_NV = 0x8EF0,
GL_NON_ZERO_NV = 0x8EF1;
/** Values for the CAP[0-3]_STYLE_NV path parameter: */
int GL_CAP_BUTT_NV = 0x8EF4,
GL_CAP_ROUND_NV = 0x8EF5,
GL_CAP_SQUARE_NV = 0x8EF6,
GL_CAP_TRIANGLE_NV = 0x8EF7;
/** Values for the JOIN_STYLE_NV path parameter: */
int GL_JOIN_MITER_NV = 0x8EFC,
GL_JOIN_ROUND_NV = 0x8EFD,
GL_JOIN_BEVEL_NV = 0x8EFE,
GL_JOIN_CLIPPED_MITER_NV = 0x8EFF;
/** Accepted as the <target> parameter of PathMatrixNV: */
int GL_MATRIX_PATH_TO_CLIP_NV = 0x8F04,
GL_MATRIX_STROKE_TO_PATH_NV = 0x8F05,
GL_MATRIX_PATH_COORD0_NV = 0x8F08,
GL_MATRIX_PATH_COORD1_NV = 0x8F09,
GL_MATRIX_PATH_COORD2_NV = 0x8F0A,
GL_MATRIX_PATH_COORD3_NV = 0x8F0B;
/** Accepted as the <mode> parameter of DrawPathbufferNV: */
int GL_FILL_PATH_NV = 0x8F18,
GL_STROKE_PATH_NV = 0x8F19;
/** Accepted as path commands by CreatePathNV: */
byte GL_MOVE_TO_NV = 0x00,
GL_LINE_TO_NV = 0x01,
GL_QUADRATIC_BEZIER_TO_NV = 0x02,
GL_CUBIC_BEZIER_TO_NV = 0x03,
GL_START_MARKER_NV = 0x20,
GL_CLOSE_NV = 0x21,
GL_STROKE_CAP0_NV = 0x40,
GL_STROKE_CAP1_NV = 0x41,
GL_STROKE_CAP2_NV = 0x42,
GL_STROKE_CAP3_NV = 0x43;
@GLuint
int glCreatePathNV(@GLenum int datatype, @AutoSize("commands") @GLsizei int numCommands, @Const @GLubyte ByteBuffer commands);
void glDeletePathNV(@GLuint int path);
void glPathVerticesNV(@GLuint int path, @Const @Check @GLvoid ByteBuffer vertices);
void glPathParameterfNV(@GLuint int path, @GLenum int paramType, float param);
void glPathParameteriNV(@GLuint int path, @GLenum int paramType, int param);
@GLuint
int glCreatePathProgramNV();
void glPathMatrixNV(@GLenum int target, @Const @Check("16") FloatBuffer value);
void glDrawPathNV(@GLuint int path, @GLenum int mode);
@GLuint
int glCreatePathbufferNV(@GLsizei int capacity);
void glDeletePathbufferNV(@GLuint int buffer);
void glPathbufferPathNV(@GLuint int buffer, int index, @GLuint int path);
void glPathbufferPositionNV(@GLuint int buffer, int index, float x, float y);
void glDrawPathbufferNV(@GLuint int buffer, @GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_blend_subtract.java 0000644 0001750 0001750 00000004023 12702226520 023634 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
public interface OES_blend_subtract {
/** Accepted by the <mode> parameter of BlendEquationOES: */
int GL_FUNC_ADD_OES = 0x8006,
GL_FUNC_SUBTRACT_OES = 0x800A,
GL_FUNC_REVERSE_SUBTRACT_OES = 0x800B;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_BLEND_EQUATION_OES = 0x8009;
void glBlendEquationOES(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_standard_derivatives.java 0000644 0001750 0001750 00000003502 12702226520 025047 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_standard_derivatives {
/**
* Accepted by the <target> parameter of Hint and by the <pname> parameter of
* GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_texture_npot_2D_mipmap.java 0000644 0001750 0001750 00000003156 12702226520 025174 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_texture_npot_2D_mipmap {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/APPLE_sync.java 0000644 0001750 0001750 00000011107 12702226520 022031 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.opengl.GLSync;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
public interface APPLE_sync {
/** Accepted as the <pname> parameter of GetInteger64vAPPLE: */
int GL_MAX_SERVER_WAIT_TIMEOUT_APPLE = 0x9111;
/** Accepted as the <pname> parameter of GetSyncivAPPLE: */
int GL_OBJECT_TYPE_APPLE = 0x9112,
SYNC_CONDITION_APPLE = 0x9113,
SYNC_STATUS_APPLE = 0x9114,
SYNC_FLAGS_APPLE = 0x9115;
/** Returned in <values> for GetSynciv <pname> OBJECT_TYPE_APPLE: */
int GL_SYNC_FENCE_APPLE = 0x9116;
/** Returned in <values> for GetSyncivAPPLE <pname> SYNC_CONDITION_APPLE: */
int GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE = 0x9117;
/** Returned in <values> for GetSyncivAPPLE <pname> SYNC_STATUS_APPLE: */
int GL_UNSIGNALED_APPLE = 0x9118,
SIGNALED_APPLE = 0x9119;
/** Accepted in the <flags> parameter of ClientWaitSyncAPPLE: */
int GL_SYNC_FLUSH_COMMANDS_BIT_APPLE = 0x00000001;
/** Accepted in the <timeout> parameter of WaitSyncAPPLE: */
long GL_TIMEOUT_IGNORED_APPLE = 0xFFFFFFFFFFFFFFFFl;
/** Returned by ClientWaitSyncAPPLE: */
int GL_ALREADY_SIGNALED_APPLE = 0x911A,
TIMEOUT_EXPIRED_APPLE = 0x911B,
CONDITION_SATISFIED_APPLE = 0x911C,
WAIT_FAILED_APPLE = 0x911D;
/**
* Accepted by the <type> parameter of LabelObjectEXT and
* GetObjectLabelEXT:
*/
int GL_SYNC_OBJECT_APPLE = 0x8A53;
@PointerWrapper("GLsync")
org.lwjgl.opengl.GLSync glFenceSyncAPPLE(@GLenum int condition, @GLbitfield int flags);
boolean glIsSyncAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync);
void glDeleteSyncAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync);
@GLenum
int glClientWaitSyncAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
void glWaitSyncAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@StripPostfix("params")
void glGetInteger64vAPPLE(@GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer params);
@Alternate("glGetInteger64vAPPLE")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetInteger64vAPPLE2(@GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@StripPostfix("values")
void glGetSyncivAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync, @GLenum int pname, @AutoSize("values") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter IntBuffer values);
@Alternate("glGetSyncivAPPLE")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetSyncivAPPLE2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer values);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_depth_nonlinear.java 0000644 0001750 0001750 00000004377 12702226520 023723 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_depth_nonlinear {
/**
* Accepted as a valid sized internal format by all functions accepting
* sized internal formats with a base format of DEPTH_COMPONENT:
*/
int GL_DEPTH_COMPONENT16_NONLINEAR_NV = 0x8553;
/**
* Accepted by the <attrib_list> parameter of eglChooseConfig,
* and by the <attribute> parameter of eglGetConfigAttrib:
*/
int EGL_DEPTH_ENCODING_NV = 0x30E2;
/**
* Accepted as a value in the <attrib_list> parameter of eglChooseConfig
* and eglCreatePbufferSurface, and returned in the <value> parameter
* of eglGetConfigAttrib:
*/
int EGL_DEPTH_ENCODING_NONE_NV = 0,
EGL_DEPTH_ENCODING_NONLINEAR_NV = 0x30E3;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_framebuffer_vertex_attrib_array.java 0000644 0001750 0001750 00000005313 12702226520 027165 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.*;
public interface NV_framebuffer_vertex_attrib_array {
int GL_FRAMEBUFFER_ATTACHABLE_NV = 0x852A,
GL_VERTEX_ATTRIB_ARRAY_NV = 0x852B,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_SIZE_NV = 0x852C,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_TYPE_NV = 0x852D,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_NORMALIZED_NV = 0x852E,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_OFFSET_NV = 0x852F,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_WIDTH_NV = 0x8530,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_STRIDE_NV = 0x8531,
GL_FRAMEBUFFER_ATTACHMENT_VERTEX_ATTRIB_ARRAY_HEIGHT_NV = 0x8532;
void glFramebufferVertexAttribArrayNV(@GLenum int target, @GLenum int attachment,
@GLenum int buffertarget, @GLuint int bufferobject,
@GLint int size, @GLenum int type, @GLboolean boolean normalized, @GLintptr long offset,
@GLsizeiptr long width, @GLsizeiptr long height, @GLsizei int stride);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_get_program_binary.java 0000644 0001750 0001750 00000005452 12702226520 024522 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface OES_get_program_binary {
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_PROGRAM_BINARY_LENGTH_OES = 0x8741;
/**
* Accepted by the <pname< parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_NUM_PROGRAM_BINARY_FORMATS_OES = 0x87FE,
GL_PROGRAM_BINARY_FORMATS_OES = 0x87FF;
void glGetProgramBinaryOES(@GLuint int program, @AutoSize("binary") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @Check("1") @GLenum IntBuffer binaryFormat,
@OutParameter @GLvoid ByteBuffer binary);
void glProgramBinaryOES(@GLuint int program, @GLenum int binaryFormat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") int length);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_depth24.java 0000644 0001750 0001750 00000003335 12702226520 022120 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_depth24 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_DEPTH_COMPONENT24_OES = 0x81A6;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_array.java 0000644 0001750 0001750 00000005762 12702226520 023564 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_texture_array {
/**
* Accepted by the <target> parameter of TexParameteri, TexParameteriv,
* TexParameterf, TexParameterfv, and BindTexture:
*/
int GL_TEXTURE_1D_ARRAY_EXT = 0x8C18,
GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A;
/**
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CopyTexSubImage3D, CompressedTexImage3D, and CompressedTexSubImage3D:
*/
int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B;
/**
* Accepted by the <target> parameter of TexImage2D, TexSubImage2D,
* CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D, and
* CompressedTexSubImage2D:
*/
int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv
* and GetFloatv:
*/
int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C,
GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D,
GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameterivEXT:
*/
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0,
GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1;
void glFramebufferTextureLayerEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ARB_texture_rectangle.java 0000644 0001750 0001750 00000006113 12702226520 024345 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface ARB_texture_rectangle {
/**
* Accepted by the <cap> parameter of Enable, Disable and IsEnabled;
* by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
* and GetDoublev; and by the <target> parameter of BindTexture,
* GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri,
* TexParameterfv and TexParameteriv:
* Accepted by the <target> parameter of GetTexImage,
* GetTexLevelParameteriv, GetTexLevelParameterfv, TexImage2D,
* CopyTexImage2D, TexSubImage2D and CopySubTexImage2D:
*/
int GL_TEXTURE_RECTANGLE_ARB = 0x84F5;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv and GetDoublev:
*/
int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6;
/**
* Accepted by the <target> parameter of GetTexLevelParameteriv,
* GetTexLevelParameterfv, GetTexParameteriv and TexImage2D:
*/
int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv and GetFloatv:
*/
int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8;
/**
* Returned by <type> parameter of GetActiveUniform when the location
* <index> for program object <program> is of type sampler2DRect:
*/
int GL_SAMPLER_2D_RECT_ARB = 0x8B63;
/**
* Returned by <type> parameter of GetActiveUniform when the location
* <index> for program object <program> is of type sampler2DRectShadow:
*/
int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_surfaceless_context.java 0000644 0001750 0001750 00000003347 12702226520 024734 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_surfaceless_context {
/** Returned by glCheckFramebufferStatusOES and glCheckFramebufferStatus: */
int GL_FRAMEBUFFER_UNDEFINED_OES = 0x8219;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/APPLE_texture_max_level.java 0000644 0001750 0001750 00000003474 12702226520 024621 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface APPLE_texture_max_level {
/**
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv:
*/
int GL_TEXTURE_MAX_LEVEL_APPLE = 0x813D;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/IMG_read_format.java 0000644 0001750 0001750 00000003404 12702226520 023114 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface IMG_read_format {
/** Accepted by the <format> parameter of ReadPixels: */
int GL_BGRA_IMG = 0x80E1,
GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG = 0x8365;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_multiview_draw_buffers.java 0000644 0001750 0001750 00000005352 12702226520 025437 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface EXT_multiview_draw_buffers {
/** Accepted by the <location> parameter of DrawBuffersIndexedEXT: */
int GL_COLOR_ATTACHMENT_EXT = 0x90F0,
GL_MULTIVIEW_EXT = 0x90F1;
/** Accepted by the <target> parameter of GetIntegeri_EXT: */
int GL_DRAW_BUFFER_EXT = 0x0C01,
GL_READ_BUFFER_EXT = 0x0C02;
/** Accepted by the <target> parameter of GetInteger: */
int GL_MAX_MULTIVIEW_BUFFERS_EXT = 0x90F2;
void glReadBufferIndexedEXT(@GLenum int src, int index);
void glDrawBuffersIndexedEXT(@AutoSize("indices") int n, @Check("indices.remaining()") @Const @GLenum IntBuffer location,
@Const IntBuffer indices);
@StripPostfix("data")
void glGetIntegeri_vEXT(@GLenum int target, @GLuint int index, @OutParameter @Check("4") IntBuffer data);
@Alternate("glGetIntegeri_vEXT")
@GLreturn("data")
@StripPostfix("data")
void glGetIntegeri_vEXT2(@GLenum int value, @GLuint int index, @OutParameter IntBuffer data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_format_BGRA8888.java 0000644 0001750 0001750 00000003441 12702226520 025061 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_texture_format_BGRA8888 {
/**
* Accepted by the <format> and <internalformat> parameters of TexImage2D
* and the <format> parameter of TexSubImage2D:
*/
int GL_BGRA_EXT = 0x80E1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_texture_half_float_linear.java 0000644 0001750 0001750 00000003162 12702226520 026055 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_texture_half_float_linear {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_debug_label.java 0000644 0001750 0001750 00000006300 12702226520 023100 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface EXT_debug_label {
/**
* Accepted by the <type> parameter of LabelObjectEXT and
* GetObjectLabelEXT:
*/
int GL_BUFFER_OBJECT_EXT = 0x9151,
GL_SHADER_OBJECT_EXT = 0x8B48,
GL_PROGRAM_OBJECT_EXT = 0x8B40,
GL_VERTEX_ARRAY_OBJECT_EXT = 0x9154,
GL_QUERY_OBJECT_EXT = 0x9153,
GL_PROGRAM_PIPELINE_OBJECT_EXT = 0x8A4F;
void glLabelObjectEXT(@GLenum int type, @GLuint int object,
@AutoSize("label") @GLsizei int length,
@Const @GLchar ByteBuffer label);
@Alternate("glLabelObjectEXT")
void glLabelObjectEXT(@GLenum int type, @GLuint int object,
@Constant("label.length()") @GLsizei int length,
CharSequence label);
void glGetObjectLabelEXT(@GLenum int type, @GLuint int object,
@AutoSize(value = "label", canBeNull = true) @GLsizei int bufSize,
@Check(value = "1", canBeNull = true) @OutParameter @GLsizei IntBuffer length,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer label);
@Alternate("glGetObjectLabelEXT")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectLabelEXT2(@GLenum int type, @GLuint int object,
@GLsizei int bufSize,
@Constant("MemoryUtil.getAddress0(label_length)") @OutParameter @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ANGLE_framebuffer_blit.java 0000644 0001750 0001750 00000004645 12702226520 024351 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ANGLE_framebuffer_blit {
/**
* Accepted by the <target> parameter of BindFramebuffer,
* CheckFramebufferStatus, FramebufferTexture2D, FramebufferTexture3DOES,
* FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv:
*/
int GL_READ_FRAMEBUFFER_ANGLE = 0x8CA8,
GL_DRAW_FRAMEBUFFER_ANGLE = 0x8CA9;
/** Accepted by the <pname> parameters of GetIntegerv and GetFloatv: */
int GL_DRAW_FRAMEBUFFER_BINDING_ANGLE = 0x8CA6, // alias FRAMEBUFFER_BINDING
GL_READ_FRAMEBUFFER_BINDING_ANGLE = 0x8CAA;
void glBlitFramebufferANGLE(int srcX0, int srcY0, int srcX1, int srcY1,
int dstX0, int dstY0, int dstX1, int dstY1,
@GLbitfield int mask, @GLenum int filter);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_separate_shader_objects.java 0000644 0001750 0001750 00000021135 12702226520 025521 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface EXT_separate_shader_objects {
/** Accepted by <stages> parameter to UseProgramStagesEXT: */
int GL_VERTEX_SHADER_BIT_EXT = 0x00000001,
GL_FRAGMENT_SHADER_BIT_EXT = 0x00000002,
GL_ALL_SHADER_BITS_EXT = 0xFFFFFFFF;
/**
* Accepted by the <pname> parameter of ProgramParameteriEXT and
* GetProgramiv:
*/
int GL_PROGRAM_SEPARABLE_EXT = 0x8258;
/** Accepted by <type> parameter to GetProgramPipelineivEXT: */
int GL_ACTIVE_PROGRAM_EXT = 0x8259;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_PROGRAM_PIPELINE_BINDING_EXT = 0x825A;
void glUseProgramStagesEXT(@GLuint int pipeline, @GLbitfield int stages, @GLuint int program);
void glActiveShaderProgramEXT(@GLuint int pipeline, @GLuint int program);
/** Single null-terminated source code string. */
@StripPostfix(value = "string", hasPostfix = false)
@GLuint
int glCreateShaderProgramvEXT(@GLenum int type, @Constant("1") @GLsizei int count, @NullTerminated @Check @Const @Indirect @GLchar ByteBuffer string);
/** Multiple null-terminated source code strings, one after the other. */
@Alternate(value = "glCreateShaderProgramvEXT", nativeAlt = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramvEXT2(@GLenum int type, @GLsizei int count, @NullTerminated("count") @Check @Const @Indirect @GLchar @PointerArray("count") ByteBuffer strings);
@Alternate(value = "glCreateShaderProgramvEXT", nativeAlt = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramvEXT3(@GLenum int type, @Constant("strings.length") @GLsizei int count, @NullTerminated @Check("1") @PointerArray(value = "count") @Const @NativeType("GLchar") ByteBuffer[] strings);
@Alternate("glCreateShaderProgramvEXT")
@StripPostfix(value = "string", hasPostfix = false)
@GLuint
int glCreateShaderProgramvEXT(@GLenum int type, @Constant("1") @GLsizei int count, @NullTerminated CharSequence string);
@Alternate(value = "glCreateShaderProgramvEXT", nativeAlt = true, skipNative = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramvEXT2(@GLenum int type, @Constant("strings.length") @GLsizei int count,
@Const @NullTerminated @PointerArray(value = "count") CharSequence[] strings);
void glBindProgramPipelineEXT(@GLuint int pipeline);
void glDeleteProgramPipelinesEXT(@AutoSize("pipelines") @GLsizei int n, @Const @GLuint IntBuffer pipelines);
@Alternate("glDeleteProgramPipelinesEXT")
void glDeleteProgramPipelinesEXT(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(pipeline)", keepParam = true) int pipeline);
void glGenProgramPipelinesEXT(@AutoSize("pipelines") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
@Alternate("glGenProgramPipelinesEXT")
@GLreturn("pipelines")
void glGenProgramPipelinesEXT2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
boolean glIsProgramPipelineEXT(@GLuint int pipeline);
void glProgramParameteriEXT(@GLuint int program, @GLenum int pname, int value);
@StripPostfix("params")
void glGetProgramPipelineivEXT(@GLuint int pipeline, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetProgramPipelineivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramPipelineivEXT2(@GLuint int pipeline, @GLenum int pname, @OutParameter IntBuffer params);
void glProgramUniform1iEXT(@GLuint int program, int location, int v0);
void glProgramUniform2iEXT(@GLuint int program, int location, int v0, int v1);
void glProgramUniform3iEXT(@GLuint int program, int location, int v0, int v1, int v2);
void glProgramUniform4iEXT(@GLuint int program, int location, int v0, int v1, int v2, int v3);
void glProgramUniform1fEXT(@GLuint int program, int location, float v0);
void glProgramUniform2fEXT(@GLuint int program, int location, float v0, float v1);
void glProgramUniform3fEXT(@GLuint int program, int location, float v0, float v1, float v2);
void glProgramUniform4fEXT(@GLuint int program, int location, float v0, float v1, float v2, float v3);
@StripPostfix("value")
void glProgramUniform1ivEXT(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform2ivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform3ivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform4ivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform1fvEXT(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform2fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform3fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform4fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
void glValidateProgramPipelineEXT(@GLuint int pipeline);
void glGetProgramPipelineInfoLogEXT(@GLuint int pipeline, @AutoSize("infoLog") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Alternate("glGetProgramPipelineInfoLogEXT")
@GLreturn(value = "infoLog", maxLength = "bufSize")
void glGetProgramPipelineInfoLogEXT2(@GLuint int pipeline, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_writeonly_rendering.java 0000644 0001750 0001750 00000003333 12702226520 025046 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface QCOM_writeonly_rendering {
/** Accepted by the <cap> parameter of Enable, Disable. */
int GL_WRITEONLY_RENDERING_QCOM = 0x8823;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_type_2_10_10_10_REV.java 0000644 0001750 0001750 00000003364 12702226520 025460 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_texture_type_2_10_10_10_REV {
/** Accepted by the <type> parameter of TexImage2D and TexImage3D: */
int GL_UNSIGNED_INT_2_10_10_10_REV_EXT = 0x8368;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ARM_rgba8.java 0000644 0001750 0001750 00000003314 12702226520 021637 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface ARM_rgba8 {
/** Accepted by the <internalformat> parameter of RenderbufferStorage: */
int GL_RGBA8_OES = 0x8058;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_texture_float_linear.java 0000644 0001750 0001750 00000003155 12702226520 025065 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_texture_float_linear {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/AMD_compressed_3DC_texture.java 0000644 0001750 0001750 00000003440 12702226520 025173 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface AMD_compressed_3DC_texture {
/**
* Accepted by the <internalFormat> parameter of CompressedTexImage2D and
* CompressedTexImage3DOES:
*/
int GL_3DC_X_AMD = 0x87F9,
GL_3DC_XY_AMD = 0x87FA;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_platform_binary.java 0000644 0001750 0001750 00000003334 12702226520 023732 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_platform_binary {
/** Accepted by the <binaryformat> parameter of ShaderBinary: */
int GL_NVIDIA_PLATFORM_BINARY_NV = 0x890B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_performance_monitor_global_mode.java 0000644 0001750 0001750 00000003526 12702226520 027355 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface QCOM_performance_monitor_global_mode {
/**
* Accepted by the <cap> parameter of Enable and Disable, and
* IsEnabled, and by the <pname> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_PERFMON_GLOBAL_MODE_QCOM = 0x8FA0;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_compression_latc.java 0000644 0001750 0001750 00000004217 12702226520 026004 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureCompressionLATC")
public interface EXT_texture_compression_latc {
/**
* Accepted by the <internalformat> parameter of TexImage2D,
* CopyTexImage2D, and CompressedTexImage2D and the <format> parameter
* of CompressedTexSubImage2D:
*/
int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70,
GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71,
GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72,
GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_storage.java 0000644 0001750 0001750 00000007526 12702226520 024112 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_texture_storage {
/** Accepted by the <value> parameter of GetTexParameter{if}v: */
int GL_TEXTURE_IMMUTABLE_FORMAT_EXT = 0x912F;
/**
* Accepted by the <internalformat> parameter of TexStorage* when
* implemented on OpenGL ES:
*/
int GL_ALPHA8_EXT = 0x803C,
GL_LUMINANCE8_EXT = 0x8040,
GL_LUMINANCE8_ALPHA8_EXT = 0x8045,
GL_RGBA32F_EXT = 0x8814,
GL_RGB32F_EXT = 0x8815,
GL_ALPHA32F_EXT = 0x8816,
GL_LUMINANCE32F_EXT = 0x8818,
GL_LUMINANCE_ALPHA32F_EXT = 0x8819,
GL_RGBA16F_EXT = 0x881A,
GL_RGB16F_EXT = 0x881B,
GL_ALPHA16F_EXT = 0x881C,
GL_LUMINANCE16F_EXT = 0x881E,
GL_LUMINANCE_ALPHA16F_EXT = 0x881F,
GL_RGB10_A2_EXT = 0x8059,
GL_RGB10_EXT = 0x8052,
GL_BGRA8_EXT = 0x93A1;
void glTexStorage1DEXT(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width);
void glTexStorage2DEXT(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glTexStorage3DEXT(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
void glTextureStorage1DEXT(@GLuint int texture, @GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width);
void glTextureStorage2DEXT(@GLuint int texture, @GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glTextureStorage3DEXT(@GLuint int texture, @GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_map_buffer_range.java 0000644 0001750 0001750 00000006644 12702226520 024150 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.CachedResult;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
public interface EXT_map_buffer_range {
/** Accepted by the <access> parameter of MapBufferRangeEXT: */
int GL_MAP_READ_BIT_EXT = 0x0001,
GL_MAP_WRITE_BIT_EXT = 0x0002,
GL_MAP_INVALIDATE_RANGE_BIT_EXT = 0x0004,
GL_MAP_INVALIDATE_BUFFER_BIT_EXT = 0x0008,
GL_MAP_FLUSH_EXPLICIT_BIT_EXT = 0x0010,
GL_MAP_UNSYNCHRONIZED_BIT_EXT = 0x0020;
/**
* glMapBufferRange maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferRange like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRangeEXT(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
void glFlushMappedBufferRangeEXT(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_coverage_sample.java 0000644 0001750 0001750 00000005627 12702226520 023705 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
public interface NV_coverage_sample {
/**
* Accepted by the <attrib_list> parameter of eglChooseConfig
* and eglCreatePbufferSurface, and by the <attribute>
* parameter of eglGetConfigAttrib:
*/
int EGL_COVERAGE_BUFFERS_NV = 0x30E0,
EGL_COVERAGE_SAMPLES_NV = 0x30E1;
/**
* Accepted by the <internalformat> parameter of
* RenderbufferStorageEXT and the <format> parameter of ReadPixels:
*/
int GL_COVERAGE_COMPONENT_NV = 0x8522;
/**
* Accepted by the <internalformat> parameter of
* RenderbufferStorageEXT:
*/
int GL_COVERAGE_COMPONENT4_NV = 0x8523;
/** Accepted by the <operation> parameter of CoverageOperationNV: */
int GL_COVERAGE_ALL_FRAGMENTS_NV = 0x8524,
GL_COVERAGE_EDGE_FRAGMENTS_NV = 0x8525,
GL_COVERAGE_AUTOMATIC_NV = 0x8526;
/**
* Accepted by the <attachment> parameter of
* FramebufferRenderbuffer, and GetFramebufferAttachmentParameteriv:
*/
int GL_COVERAGE_ATTACHMENT_NV = 0x8527;
/** Accepted by the <buf> parameter of Clear: */
int GL_COVERAGE_BUFFER_BIT_NV = 0x8000;
/** Accepted by the <pname> parameter of GetIntegerv: */
int GL_COVERAGE_BUFFERS_NV = 0x8528,
GL_COVERAGE_SAMPLES_NV = 0x8529;
void glCoverageMaskNV(boolean mask);
void glCoverageOperationNV(@GLenum int operation);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_EGL_image.java 0000644 0001750 0001750 00000003646 12702226520 022424 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.opengl.GLenum;
public interface OES_EGL_image {
void glEGLImageTargetTexture2DOES(@GLenum int target, @PointerWrapper("GLeglImageOES") EGLImageOES image);
void glEGLImageTargetRenderbufferStorageOES(@GLenum int target, @PointerWrapper("GLeglImageOES") EGLImageOES image);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/AMD_compressed_ATC_texture.java 0000644 0001750 0001750 00000003571 12702226520 025236 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface AMD_compressed_ATC_texture {
/**
* Accepted by the <internalformat> parameter of CompressedTexImage2D and
* CompressedTexImage3DOES.
*/
int GL_ATC_RGB_AMD = 0x8C92,
GL_ATC_RGBA_EXPLICIT_ALPHA_AMD = 0x8C93,
GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD = 0x87EE;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_fbo_render_mipmap.java 0000644 0001750 0001750 00000003152 12702226520 024313 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_fbo_render_mipmap {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_texture_3D.java 0000644 0001750 0001750 00000010377 12702226520 022700 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
public interface OES_texture_3D {
/**
* Accepted by the <target> parameter of TexImage3DOES, TexSubImage3DOES,
* CopyTexSubImage3DOES, CompressedTexImage3DOES and
* CompressedTexSubImage3DOES, GetTexParameteriv, and GetTexParameterfv:
*/
int GL_TEXTURE_3D_OES = 0x806F;
/**
* Accepted by the <pname> parameter of TexParameteriv, TexParameterfv,
* GetTexParameteriv, and GetTexParameterfv:
*/
int GL_TEXTURE_WRAP_R_OES = 0x8072;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_MAX_3D_TEXTURE_SIZE_OES = 0x8073,
GL_TEXTURE_BINDING_3D_OES = 0x806A;
void glTexImage3DOES(@GLenum int target, int level,
@GLenum int internalFormat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border,
@GLenum int format, @GLenum int type,
@Check(value = "GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth)", canBeNull = true)
@Const @GLbyte @GLshort @GLint @GLfloat Buffer pixels);
void glTexSubImage3DOES(@GLenum int target, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLenum int type,
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const @GLbyte @GLshort @GLint @GLfloat Buffer pixels);
void glCopyTexSubImage3DOES(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
void glCompressedTexImage3DOES(@GLenum int target, int level, @GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
int border, @GLsizei int imageSize,
@Check @Const @GLvoid ByteBuffer data);
void glCompressedTexSubImage3DOES(@GLenum int target, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLsizei int imageSize,
@Check @Const @GLvoid ByteBuffer data);
void glFramebufferTexture3DOES(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level, int zoffset);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_element_index_uint.java 0000644 0001750 0001750 00000003313 12702226520 024521 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_element_index_uint {
/** Accepted by the <type> parameter of DrawElements: */
int GL_UNSIGNED_INT = 0x1405;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_required_internalformat.java 0000644 0001750 0001750 00000003157 12702226520 025575 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_required_internalformat {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_read_buffer.java 0000644 0001750 0001750 00000003452 12702226520 023007 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
public interface NV_read_buffer {
int GL_READ_BUFFER_NV = 0x0C02,
GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_NV = 0x8CDC;
void glReadBufferNV(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_EGL_image_external.java 0000644 0001750 0001750 00000004463 12702226520 024324 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.opengl.GLenum;
public interface OES_EGL_image_external {
/**
* Accepted as a target in the <target> parameter of BindTexture and
* EGLImageTargetTexture2DOES:
*/
int GL_TEXTURE_EXTERNAL_OES = 0x8D65;
/** Returned in the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_EXTERNAL_OES = 0x8D66;
/** Accepted as <value> in GetIntegerv() and GetFloatv() queries: */
int GL_TEXTURE_BINDING_EXTERNAL_OES = 0x8D67;
/** Accepted as <value> in GetTexParameter*() queries: */
int GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES = 0x8D68;
void glEGLImageTargetTexture2DOES(@GLenum int target, @PointerWrapper("GLeglImageOES") EGLImageOES image);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_debug_marker.java 0000644 0001750 0001750 00000004614 12702226520 023310 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.Constant;
import org.lwjgl.util.generator.opengl.GLchar;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.ByteBuffer;
public interface EXT_debug_marker {
void glInsertEventMarkerEXT(@AutoSize("marker") @GLsizei int length, @Const @GLchar ByteBuffer marker);
@Alternate("glInsertEventMarkerEXT")
void glInsertEventMarkerEXT(@Constant("marker.length()") @GLsizei int length, CharSequence marker);
void glPushGroupMarkerEXT(@AutoSize("marker") @GLsizei int length, @Const @GLchar ByteBuffer marker);
@Alternate("glPushGroupMarkerEXT")
void glPushGroupMarkerEXT(@Constant("marker.length()") @GLsizei int length, CharSequence marker);
void glPopGroupMarkerEXT();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/GLES30.java 0000644 0001750 0001750 00000132712 12702226520 021037 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.opengl.GLSync;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface GLES30 {
int GL_READ_BUFFER = 0x0C02;
int GL_UNPACK_ROW_LENGTH = 0x0CF2;
int GL_UNPACK_SKIP_ROWS = 0x0CF3;
int GL_UNPACK_SKIP_PIXELS = 0x0CF4;
int GL_PACK_ROW_LENGTH = 0x0D02;
int GL_PACK_SKIP_ROWS = 0x0D03;
int GL_PACK_SKIP_PIXELS = 0x0D04;
int GL_COLOR = 0x1800;
int GL_DEPTH = 0x1801;
int GL_STENCIL = 0x1802;
int GL_RED = 0x1903;
int GL_RGB8 = 0x8051;
int GL_RGBA8 = 0x8058;
int GL_RGB10_A2 = 0x8059;
int GL_TEXTURE_BINDING_3D = 0x806A;
int GL_PACK_SKIP_IMAGES = 0x806B;
int GL_PACK_IMAGE_HEIGHT = 0x806C;
int GL_UNPACK_SKIP_IMAGES = 0x806D;
int GL_UNPACK_IMAGE_HEIGHT = 0x806E;
int GL_TEXTURE_3D = 0x806F;
int GL_TEXTURE_WRAP_R = 0x8072;
int GL_MAX_3D_TEXTURE_SIZE = 0x8073;
int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
int GL_MAX_ELEMENTS_VERTICES = 0x80E8;
int GL_MAX_ELEMENTS_INDICES = 0x80E9;
int GL_TEXTURE_MIN_LOD = 0x813A;
int GL_TEXTURE_MAX_LOD = 0x813B;
int GL_TEXTURE_BASE_LEVEL = 0x813C;
int GL_TEXTURE_MAX_LEVEL = 0x813D;
int GL_MIN = 0x8007;
int GL_MAX = 0x8008;
int GL_DEPTH_COMPONENT24 = 0x81A6;
int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD;
int GL_TEXTURE_COMPARE_MODE = 0x884C;
int GL_TEXTURE_COMPARE_FUNC = 0x884D;
int GL_CURRENT_QUERY = 0x8865;
int GL_QUERY_RESULT = 0x8866;
int GL_QUERY_RESULT_AVAILABLE = 0x8867;
int GL_BUFFER_MAPPED = 0x88BC;
int GL_BUFFER_MAP_POINTER = 0x88BD;
int GL_STREAM_READ = 0x88E1;
int GL_STREAM_COPY = 0x88E2;
int GL_STATIC_READ = 0x88E5;
int GL_STATIC_COPY = 0x88E6;
int GL_DYNAMIC_READ = 0x88E9;
int GL_DYNAMIC_COPY = 0x88EA;
int GL_MAX_DRAW_BUFFERS = 0x8824;
int GL_DRAW_BUFFER0 = 0x8825;
int GL_DRAW_BUFFER1 = 0x8826;
int GL_DRAW_BUFFER2 = 0x8827;
int GL_DRAW_BUFFER3 = 0x8828;
int GL_DRAW_BUFFER4 = 0x8829;
int GL_DRAW_BUFFER5 = 0x882A;
int GL_DRAW_BUFFER6 = 0x882B;
int GL_DRAW_BUFFER7 = 0x882C;
int GL_DRAW_BUFFER8 = 0x882D;
int GL_DRAW_BUFFER9 = 0x882E;
int GL_DRAW_BUFFER10 = 0x882F;
int GL_DRAW_BUFFER11 = 0x8830;
int GL_DRAW_BUFFER12 = 0x8831;
int GL_DRAW_BUFFER13 = 0x8832;
int GL_DRAW_BUFFER14 = 0x8833;
int GL_DRAW_BUFFER15 = 0x8834;
int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49;
int GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A;
int GL_SAMPLER_3D = 0x8B5F;
int GL_SAMPLER_2D_SHADOW = 0x8B62;
int GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B;
int GL_PIXEL_PACK_BUFFER = 0x88EB;
int GL_PIXEL_UNPACK_BUFFER = 0x88EC;
int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED;
int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF;
int GL_FLOAT_MAT2x3 = 0x8B65;
int GL_FLOAT_MAT2x4 = 0x8B66;
int GL_FLOAT_MAT3x2 = 0x8B67;
int GL_FLOAT_MAT3x4 = 0x8B68;
int GL_FLOAT_MAT4x2 = 0x8B69;
int GL_FLOAT_MAT4x3 = 0x8B6A;
int GL_SRGB = 0x8C40;
int GL_SRGB8 = 0x8C41;
int GL_SRGB8_ALPHA8 = 0x8C43;
int GL_COMPARE_REF_TO_TEXTURE = 0x884E;
int GL_MAJOR_VERSION = 0x821B;
int GL_MINOR_VERSION = 0x821C;
int GL_NUM_EXTENSIONS = 0x821D;
int GL_RGBA32F = 0x8814;
int GL_RGB32F = 0x8815;
int GL_RGBA16F = 0x881A;
int GL_RGB16F = 0x881B;
int GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD;
int GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF;
int GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904;
int GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905;
int GL_MAX_VARYING_COMPONENTS = 0x8B4B;
int GL_TEXTURE_2D_ARRAY = 0x8C1A;
int GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D;
int GL_R11F_G11F_B10F = 0x8C3A;
int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
int GL_RGB9_E5 = 0x8C3D;
int GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E;
int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76;
int GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80;
int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83;
int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84;
int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85;
int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88;
int GL_RASTERIZER_DISCARD = 0x8C89;
int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B;
int GL_INTERLEAVED_ATTRIBS = 0x8C8C;
int GL_SEPARATE_ATTRIBS = 0x8C8D;
int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E;
int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F;
int GL_RGBA32UI = 0x8D70;
int GL_RGB32UI = 0x8D71;
int GL_RGBA16UI = 0x8D76;
int GL_RGB16UI = 0x8D77;
int GL_RGBA8UI = 0x8D7C;
int GL_RGB8UI = 0x8D7D;
int GL_RGBA32I = 0x8D82;
int GL_RGB32I = 0x8D83;
int GL_RGBA16I = 0x8D88;
int GL_RGB16I = 0x8D89;
int GL_RGBA8I = 0x8D8E;
int GL_RGB8I = 0x8D8F;
int GL_RED_INTEGER = 0x8D94;
int GL_RGB_INTEGER = 0x8D98;
int GL_RGBA_INTEGER = 0x8D99;
int GL_SAMPLER_2D_ARRAY = 0x8DC1;
int GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4;
int GL_SAMPLER_CUBE_SHADOW = 0x8DC5;
int GL_UNSIGNED_INT_VEC2 = 0x8DC6;
int GL_UNSIGNED_INT_VEC3 = 0x8DC7;
int GL_UNSIGNED_INT_VEC4 = 0x8DC8;
int GL_INT_SAMPLER_2D = 0x8DCA;
int GL_INT_SAMPLER_3D = 0x8DCB;
int GL_INT_SAMPLER_CUBE = 0x8DCC;
int GL_INT_SAMPLER_2D_ARRAY = 0x8DCF;
int GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2;
int GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3;
int GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4;
int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7;
int GL_BUFFER_ACCESS_FLAGS = 0x911F;
int GL_BUFFER_MAP_LENGTH = 0x9120;
int GL_BUFFER_MAP_OFFSET = 0x9121;
int GL_DEPTH_COMPONENT32F = 0x8CAC;
int GL_DEPTH32F_STENCIL8 = 0x8CAD;
int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD;
int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210;
int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211;
int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212;
int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213;
int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214;
int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215;
int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216;
int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217;
int GL_FRAMEBUFFER_DEFAULT = 0x8218;
int GL_FRAMEBUFFER_UNDEFINED = 0x8219;
int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A;
int GL_DEPTH_STENCIL = 0x84F9;
int GL_UNSIGNED_INT_24_8 = 0x84FA;
int GL_DEPTH24_STENCIL8 = 0x88F0;
int GL_UNSIGNED_NORMALIZED = 0x8C17;
int GL_DRAW_FRAMEBUFFER_BINDING = GLES20.GL_FRAMEBUFFER_BINDING;
int GL_READ_FRAMEBUFFER = 0x8CA8;
int GL_DRAW_FRAMEBUFFER = 0x8CA9;
int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA;
int GL_RENDERBUFFER_SAMPLES = 0x8CAB;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4;
int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF;
int GL_COLOR_ATTACHMENT1 = 0x8CE1;
int GL_COLOR_ATTACHMENT2 = 0x8CE2;
int GL_COLOR_ATTACHMENT3 = 0x8CE3;
int GL_COLOR_ATTACHMENT4 = 0x8CE4;
int GL_COLOR_ATTACHMENT5 = 0x8CE5;
int GL_COLOR_ATTACHMENT6 = 0x8CE6;
int GL_COLOR_ATTACHMENT7 = 0x8CE7;
int GL_COLOR_ATTACHMENT8 = 0x8CE8;
int GL_COLOR_ATTACHMENT9 = 0x8CE9;
int GL_COLOR_ATTACHMENT10 = 0x8CEA;
int GL_COLOR_ATTACHMENT11 = 0x8CEB;
int GL_COLOR_ATTACHMENT12 = 0x8CEC;
int GL_COLOR_ATTACHMENT13 = 0x8CED;
int GL_COLOR_ATTACHMENT14 = 0x8CEE;
int GL_COLOR_ATTACHMENT15 = 0x8CEF;
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56;
int GL_MAX_SAMPLES = 0x8D57;
int GL_HALF_FLOAT = 0x140B;
int GL_MAP_READ_BIT = 0x0001;
int GL_MAP_WRITE_BIT = 0x0002;
int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004;
int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008;
int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010;
int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020;
int GL_RG = 0x8227;
int GL_RG_INTEGER = 0x8228;
int GL_R8 = 0x8229;
int GL_RG8 = 0x822B;
int GL_R16F = 0x822D;
int GL_R32F = 0x822E;
int GL_RG16F = 0x822F;
int GL_RG32F = 0x8230;
int GL_R8I = 0x8231;
int GL_R8UI = 0x8232;
int GL_R16I = 0x8233;
int GL_R16UI = 0x8234;
int GL_R32I = 0x8235;
int GL_R32UI = 0x8236;
int GL_RG8I = 0x8237;
int GL_RG8UI = 0x8238;
int GL_RG16I = 0x8239;
int GL_RG16UI = 0x823A;
int GL_RG32I = 0x823B;
int GL_RG32UI = 0x823C;
int GL_VERTEX_ARRAY_BINDING = 0x85B5;
int GL_R8_SNORM = 0x8F94;
int GL_RG8_SNORM = 0x8F95;
int GL_RGB8_SNORM = 0x8F96;
int GL_RGBA8_SNORM = 0x8F97;
int GL_SIGNED_NORMALIZED = 0x8F9C;
int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69;
int GL_COPY_READ_BUFFER = 0x8F36;
int GL_COPY_WRITE_BUFFER = 0x8F37;
int GL_COPY_READ_BUFFER_BINDING = GL_COPY_READ_BUFFER;
int GL_COPY_WRITE_BUFFER_BINDING = GL_COPY_WRITE_BUFFER;
int GL_UNIFORM_BUFFER = 0x8A11;
int GL_UNIFORM_BUFFER_BINDING = 0x8A28;
int GL_UNIFORM_BUFFER_START = 0x8A29;
int GL_UNIFORM_BUFFER_SIZE = 0x8A2A;
int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B;
int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D;
int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E;
int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F;
int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30;
int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31;
int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33;
int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34;
int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35;
int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36;
int GL_UNIFORM_TYPE = 0x8A37;
int GL_UNIFORM_SIZE = 0x8A38;
int GL_UNIFORM_NAME_LENGTH = 0x8A39;
int GL_UNIFORM_BLOCK_INDEX = 0x8A3A;
int GL_UNIFORM_OFFSET = 0x8A3B;
int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C;
int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D;
int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E;
int GL_UNIFORM_BLOCK_BINDING = 0x8A3F;
int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40;
int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41;
int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42;
int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43;
int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44;
int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46;
int GL_INVALID_INDEX = 0xFFFFFFFF;
int GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122;
int GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125;
int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111;
int GL_OBJECT_TYPE = 0x9112;
int GL_SYNC_CONDITION = 0x9113;
int GL_SYNC_STATUS = 0x9114;
int GL_SYNC_FLAGS = 0x9115;
int GL_SYNC_FENCE = 0x9116;
int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117;
int GL_UNSIGNALED = 0x9118;
int GL_SIGNALED = 0x9119;
int GL_ALREADY_SIGNALED = 0x911A;
int GL_TIMEOUT_EXPIRED = 0x911B;
int GL_CONDITION_SATISFIED = 0x911C;
int GL_WAIT_FAILED = 0x911D;
int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001;
long GL_TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFl;
int GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE;
int GL_ANY_SAMPLES_PASSED = 0x8C2F;
int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A;
int GL_SAMPLER_BINDING = 0x8919;
int GL_RGB10_A2UI = 0x906F;
int GL_TEXTURE_SWIZZLE_R = 0x8E42;
int GL_TEXTURE_SWIZZLE_G = 0x8E43;
int GL_TEXTURE_SWIZZLE_B = 0x8E44;
int GL_TEXTURE_SWIZZLE_A = 0x8E45;
int GL_GREEN = 0x1904;
int GL_BLUE = 0x1905;
int GL_INT_2_10_10_10_REV = 0x8D9F;
int GL_TRANSFORM_FEEDBACK = 0x8E22;
int GL_TRANSFORM_FEEDBACK_PAUSED = 0x8E23;
int GL_TRANSFORM_FEEDBACK_ACTIVE = 0x8E24;
int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25;
int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257;
int GL_PROGRAM_BINARY_LENGTH = 0x8741;
int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE;
int GL_PROGRAM_BINARY_FORMATS = 0x87FF;
int GL_COMPRESSED_R11_EAC = 0x9270;
int GL_COMPRESSED_SIGNED_R11_EAC = 0x9271;
int GL_COMPRESSED_RG11_EAC = 0x9272;
int GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273;
int GL_COMPRESSED_RGB8_ETC2 = 0x9274;
int GL_COMPRESSED_SRGB8_ETC2 = 0x9275;
int GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276;
int GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277;
int GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278;
int GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279;
int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F;
int GL_MAX_ELEMENT_INDEX = 0x8D6B;
int GL_NUM_SAMPLE_COUNTS = 0x9380;
void glReadBuffer(@GLenum int mode);
void glDrawRangeElements(@GLenum int mode, @GLuint int start, @GLuint int end, @AutoSize("indices") @GLsizei int count,
@AutoType("indices")
@GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices);
void glTexImage3D(@GLenum int target, int level, int internalFormat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat Buffer pixels);
void glTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat Buffer pixels);
void glCopyTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
void glCompressedTexImage3D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glCompressedTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glGenQueries(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenQueries")
@GLreturn("ids")
void glGenQueries2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
void glDeleteQueries(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids);
@Alternate("glDeleteQueries")
void glDeleteQueries(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(id)", keepParam = true) int id);
boolean glIsQuery(@GLuint int id);
void glBeginQuery(@GLenum int target, @GLuint int id);
void glEndQuery(@GLenum int target);
@StripPostfix("params")
void glGetQueryiv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetQueryiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryiv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetQueryObjectuiv(@GLenum int id, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params);
@Alternate("glGetQueryObjectuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectuiv2(@GLenum int id, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
boolean glUnmapBuffer(@GLenum int target);
@StripPostfix("pointer")
@AutoSize("GLES20.glGetBufferParameteri(target, GLES20.GL_BUFFER_SIZE)")
void glGetBufferPointerv(@GLenum int target, @GLenum int pname, @OutParameter @Result @GLvoid ByteBuffer pointer);
void glDrawBuffers(@AutoSize("buffers") @GLsizei int size, @Const @GLenum IntBuffer buffers);
@Alternate("glDrawBuffers")
void glDrawBuffers(@Constant("1") @GLsizei int size, @Constant(value = "APIUtil.getInt(buffer)", keepParam = true) int buffer);
@StripPostfix("matrices")
void glUniformMatrix2x3fv(int location, @AutoSize(value = "matrices", expression = " / (2 * 3)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3x2fv(int location, @AutoSize(value = "matrices", expression = " / (3 * 2)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix2x4fv(int location, @AutoSize(value = "matrices", expression = " >> 3") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4x2fv(int location, @AutoSize(value = "matrices", expression = " >> 3") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3x4fv(int location, @AutoSize(value = "matrices", expression = " / (3 * 4)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4x3fv(int location, @AutoSize(value = "matrices", expression = " / (4 * 3)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
/**
* Transfers a rectangle of pixel values from one
* region of the read framebuffer to another in the draw framebuffer.
* <mask> is the bitwise OR of a number of values indicating which
* buffers are to be copied. The values are COLOR_BUFFER_BIT,
* DEPTH_BUFFER_BIT, and STENCIL_BUFFER_BIT.
* The pixels corresponding to these buffers are
* copied from the source rectangle, bound by the locations (srcX0,
* srcY0) and (srcX1, srcY1) inclusive, to the destination rectangle,
* bound by the locations (dstX0, dstY0) and (dstX1, dstY1)
* inclusive.
* If the source and destination rectangle dimensions do not match,
* the source image is stretched to fit the destination
* rectangle. <filter> must be LINEAR or NEAREST and specifies the
* method of interpolation to be applied if the image is
* stretched.
*/
void glBlitFramebuffer(
@GLint int srcX0, @GLint int srcY0, @GLint int srcX1, @GLint int srcY1,
@GLint int dstX0, @GLint int dstY0, @GLint int dstX1, @GLint int dstY1,
@GLbitfield int mask, @GLenum int filter);
/**
* Establishes the data storage, format, dimensions, and number of
* samples of a renderbuffer object's image.
*/
void glRenderbufferStorageMultisample(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glFramebufferTextureLayer(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
/**
* glMapBufferRange maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferRange like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRange(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
void glFlushMappedBufferRange(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length);
@Code(" StateTracker.bindVAO(array);")
void glBindVertexArray(@GLuint int array);
@Code(" StateTracker.deleteVAO(arrays);")
void glDeleteVertexArrays(@AutoSize("arrays") @GLsizei int n, @Const @GLuint IntBuffer arrays);
@Alternate("glDeleteVertexArrays")
@Code(" StateTracker.deleteVAO(array);")
void glDeleteVertexArrays(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(array)", keepParam = true) int array);
void glGenVertexArrays(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Alternate("glGenVertexArrays")
@GLreturn("arrays")
void glGenVertexArrays2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
boolean glIsVertexArray(@GLuint int array);
@StripPostfix("data")
void glGetIntegeri_v(@GLenum int value, @GLuint int index, @OutParameter @Check("4") IntBuffer data);
@Alternate("glGetIntegeri_v")
@GLreturn("data")
@StripPostfix("data")
void glGetIntegeri_v2(@GLenum int value, @GLuint int index, @OutParameter IntBuffer data);
void glBeginTransformFeedback(@GLenum int primitiveMode);
void glEndTransformFeedback();
void glBindBufferRange(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
void glBindBufferBase(@GLenum int target, @GLuint int index, @GLuint int buffer);
void glTransformFeedbackVaryings(@GLuint int program, @GLsizei int count,
@Const @NullTerminated("count") @GLchar @PointerArray("count") ByteBuffer varyings,
@GLenum int bufferMode);
@Alternate("glTransformFeedbackVaryings")
void glTransformFeedbackVaryings(@GLuint int program, @Constant("varyings.length") @GLsizei int count,
@Const @NullTerminated @PointerArray("count") CharSequence[] varyings,
@GLenum int bufferMode);
void glGetTransformFeedbackVarying(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
@Alternate("glGetTransformFeedbackVarying")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetTransformFeedbackVarying2(@GLuint int program, @GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
void glVertexAttribIPointer(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint Buffer buffer);
@StripPostfix("params")
void glGetVertexAttribIiv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("params")
void glGetVertexAttribIuiv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
@NoErrorCheck
void glVertexAttribI4i(@GLuint int index, int x, int y, int z, int w);
@NoErrorCheck
void glVertexAttribI4ui(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4iv(@GLuint int index, @Check("4") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4uiv(@GLuint int index, @Check("4") @Const @GLuint IntBuffer v);
@StripPostfix("params")
void glGetUniformuiv(@GLuint int program, int location, @OutParameter @Check @GLuint IntBuffer params);
int glGetFragDataLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetFragDataLocation")
int glGetFragDataLocation(@GLuint int program, @NullTerminated CharSequence name);
void glUniform1ui(int location, @GLuint int v0);
void glUniform2ui(int location, @GLuint int v0, @GLuint int v1);
void glUniform3ui(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
void glUniform4ui(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
@StripPostfix("value")
void glUniform1uiv(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform2uiv(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform3uiv(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform4uiv(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glClearBufferfv(@GLenum int buffer, int drawbuffer, @Const @Check("4") FloatBuffer value);
@StripPostfix("value")
void glClearBufferiv(@GLenum int buffer, int drawbuffer, @Const @Check("4") IntBuffer value);
@StripPostfix("value")
void glClearBufferuiv(@GLenum int buffer, int drawbuffer, @Const @Check("4") IntBuffer value);
void glClearBufferfi(@GLenum int buffer, int drawbuffer, float depth, int stencil);
String glGetStringi(@GLenum int name, @GLuint int index);
void glCopyBufferSubData(@GLenum int readtarget, @GLenum int writetarget, @GLintptr long readoffset, @GLintptr long writeoffset, @GLsizeiptr long size);
void glGetUniformIndices(@GLuint int program, @AutoSize("uniformIndices") @GLsizei int uniformCount,
@Const @NullTerminated("uniformIndices.remaining()") @GLchar @PointerArray("uniformCount") ByteBuffer uniformNames,
@OutParameter @GLuint IntBuffer uniformIndices);
@Alternate("glGetUniformIndices")
void glGetUniformIndices(@GLuint int program, @Constant("uniformNames.length") @GLsizei int uniformCount,
@Const @NullTerminated @PointerArray("uniformCount") CharSequence[] uniformNames,
@OutParameter @Check("uniformNames.length") @GLuint IntBuffer uniformIndices);
@StripPostfix("params")
void glGetActiveUniformsiv(@GLuint int program, @AutoSize("uniformIndices") @GLsizei int uniformCount,
@Const @GLuint IntBuffer uniformIndices,
@GLenum int pname,
@OutParameter @Check("uniformIndices.remaining()") @GLint IntBuffer params);
@Alternate("glGetActiveUniformsiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetActiveUniformsiv(@GLuint int program, @Constant("1") @GLsizei int uniformCount,
@Constant(value = "MemoryUtil.getAddress(params.put(1, uniformIndex), 1)", keepParam = true) int uniformIndex, // Reuse params buffer
@GLenum int pname,
@OutParameter @GLint IntBuffer params);
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @Const @NullTerminated @GLchar ByteBuffer uniformBlockName);
@Alternate("glGetUniformBlockIndex")
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @NullTerminated CharSequence uniformBlockName);
@StripPostfix("params")
void glGetActiveUniformBlockiv(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @Check(value = "16") @GLint IntBuffer params);
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetActiveUniformBlockiv2(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @GLint IntBuffer params);
void glGetActiveUniformBlockName(@GLuint int program, @GLuint int uniformBlockIndex, @AutoSize("uniformBlockName") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformBlockName);
@Alternate("glGetActiveUniformBlockName")
@GLreturn(value = "uniformBlockName", maxLength = "bufSize")
void glGetActiveUniformBlockName2(@GLuint int program, @GLuint int uniformBlockIndex, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(uniformBlockName_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformBlockName);
void glUniformBlockBinding(@GLuint int program, @GLuint int uniformBlockIndex, @GLuint int uniformBlockBinding);
void glDrawArraysInstanced(@GLenum int mode, int first, @GLsizei int count, @GLsizei int primcount);
void glDrawElementsInstanced(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, @GLsizei int primcount);
@PointerWrapper("GLsync")
GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
boolean glIsSync(@PointerWrapper("GLsync") GLSync sync);
void glDeleteSync(@PointerWrapper("GLsync") GLSync sync);
@GLenum
int glClientWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
void glWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@StripPostfix("data")
void glGetInteger64v(@GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer data);
@Alternate("glGetInteger64v")
@GLreturn("data")
@StripPostfix("data")
void glGetInteger64v2(@GLenum int pname, @OutParameter @GLint64 LongBuffer data);
@StripPostfix("data")
void glGetInteger64i_v(@GLenum int value, @GLuint int index, @OutParameter @Check("4") @GLint64 LongBuffer data);
@Alternate("glGetInteger64i_v")
@GLreturn("data")
@StripPostfix("data")
void glGetInteger64i_v2(@GLenum int value, @GLuint int index, @OutParameter @GLint64 LongBuffer data);
@StripPostfix("values")
void glGetSynciv(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @AutoSize("values") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter IntBuffer values);
@Alternate("glGetSynciv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetSynciv2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer values);
@StripPostfix("params")
void glGetBufferParameteri64v(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") LongBuffer params);
@Alternate("glGetBufferParameteri64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetBufferParameteri64v2(@GLenum int target, @GLenum int pname, @OutParameter LongBuffer params);
void glGenSamplers(@AutoSize("samplers") @GLsizei int count, @OutParameter @GLuint IntBuffer samplers);
@Alternate("glGenSamplers")
@GLreturn("samplers")
void glGenSamplers2(@Constant("1") @GLsizei int count, @OutParameter @GLuint IntBuffer samplers);
void glDeleteSamplers(@AutoSize("samplers") @GLsizei int count, @Const @GLuint IntBuffer samplers);
@Alternate("glDeleteSamplers")
void glDeleteSamplers(@Constant("1") @GLsizei int count, @Constant(value = "APIUtil.getInt(sampler)", keepParam = true) int sampler);
boolean glIsSampler(@GLuint int sampler);
void glBindSampler(@GLenum int unit, @GLuint int sampler);
void glSamplerParameteri(@GLuint int sampler, @GLenum int pname, int param);
void glSamplerParameterf(@GLuint int sampler, @GLenum int pname, float param);
@StripPostfix("params")
void glSamplerParameteriv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glSamplerParameterfv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glGetSamplerParameteriv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetSamplerParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameteriv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetSamplerParameterfv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Alternate("glGetSamplerParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterfv2(@GLuint int sampler, @GLenum int pname, @OutParameter FloatBuffer params);
void glVertexAttribDivisor(@GLuint int index, @GLuint int divisor);
void glBindTransformFeedback(@GLenum int target, @GLuint int id);
void glDeleteTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @Const @GLuint IntBuffer ids);
@Alternate("glDeleteTransformFeedbacks")
void glDeleteTransformFeedbacks(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(id)", keepParam = true) int id);
void glGenTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenTransformFeedbacks")
@GLreturn("ids")
void glGenTransformFeedbacks2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
boolean glIsTransformFeedback(@GLuint int id);
void glPauseTransformFeedback();
void glResumeTransformFeedback();
void glGetProgramBinary(@GLuint int program, @AutoSize("binary") @GLsizei int bufSize,
@Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@Check("1") @GLenum IntBuffer binaryFormat,
@OutParameter @GLvoid ByteBuffer binary);
void glProgramBinary(@GLuint int program, @GLenum int binaryFormat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
void glProgramParameteri(@GLuint int program, @GLenum int pname, int value);
void glInvalidateFramebuffer(@GLenum int target,
@AutoSize("attachments") @GLsizei int numAttachments,
@Const @GLenum IntBuffer attachments);
void glInvalidateSubFramebuffer(@GLenum int target,
@AutoSize("attachments") @GLsizei int numAttachments,
@Const @GLenum IntBuffer attachments,
int x, int y, @GLsizei int width, @GLsizei int height);
void glTexStorage2D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glTexStorage3D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
@StripPostfix("params")
void glGetInternalformativ(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @AutoSize("params") @GLsizei int bufSize, @OutParameter IntBuffer params);
@Alternate("glGetInternalformativ")
@StripPostfix("params")
@GLreturn("params")
void glGetInternalformativ2(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_read_depth_stencil.java 0000644 0001750 0001750 00000003152 12702226520 024360 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_read_depth_stencil {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_bgra.java 0000644 0001750 0001750 00000003420 12702226520 021566 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_bgra {
/**
* Accepted by the <format> parameter of DrawPixels, GetTexImage,
* ReadPixels, TexImage1D, and TexImage2D:
*/
int GL_BGR_EXT = 0x80E0,
GL_BGRA_EXT = 0x80E1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_blend_func_separate.java 0000644 0001750 0001750 00000004144 12702226520 024630 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
public interface OES_blend_func_separate {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_BLEND_DST_RGB_OES = 0x80C8,
BLEND_SRC_RGB_OES = 0x80C9,
BLEND_DST_ALPHA_OES = 0x80CA,
BLEND_SRC_ALPHA_OES = 0x80CB;
void glBlendFuncSeparateOES(@GLenum int sfactorRGB,
@GLenum int dfactorRGB,
@GLenum int sfactorAlpha,
@GLenum int dfactorAlpha);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_stencil8.java 0000644 0001750 0001750 00000003333 12702226520 022375 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_stencil8 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_STENCIL_INDEX8_OES = 0x8D48;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_extended_get2.java 0000644 0001750 0001750 00000005167 12702226520 023505 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.opengl.GLchar;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface QCOM_extended_get2 {
void glExtGetShadersQCOM(@OutParameter @Check("1") @GLuint IntBuffer shaders,
@AutoSize("shaders") int maxShaders,
@OutParameter @Check("1") IntBuffer numShaders);
void glExtGetProgramsQCOM(@OutParameter @Check("1") @GLuint IntBuffer programs,
@AutoSize("programs") int maxPrograms,
@OutParameter @Check("1") IntBuffer numPrograms);
boolean glExtIsProgramBinaryQCOM(@GLuint int program);
void glExtGetProgramBinarySourceQCOM(@GLuint int program, @GLenum int shadertype,
@OutParameter @Check @GLchar ByteBuffer source, @OutParameter @Check("1") IntBuffer length);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_lod_bias.java 0000644 0001750 0001750 00000004417 12702226520 024216 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureLODBias")
public interface EXT_texture_lod_bias {
/**
* Accepted by the <target> parameters of GetTexEnvfv, GetTexEnviv,
* TexEnvi, TexEnvf, Texenviv, and TexEnvfv:
*/
int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500;
/**
* When the <target> parameter of GetTexEnvfv, GetTexEnviv, TexEnvi,
* TexEnvf, TexEnviv, and TexEnvfv is TEXTURE_FILTER_CONTROL_EXT, then
* the value of <pname> may be:
*/
int GL_TEXTURE_LOD_BIAS_EXT = 0x8501;
/**
* Accepted by the <pname> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_stencil4.java 0000644 0001750 0001750 00000003333 12702226520 022371 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_stencil4 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_STENCIL_INDEX4_OES = 0x8D47;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_packed_depth_stencil.java 0000644 0001750 0001750 00000004247 12702226520 025005 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_packed_depth_stencil {
/**
* Accepted by the <format> parameter of TexImage2D and TexSubImage2D and by the
* <internalformat> parameter of TexImage2D:
*/
int GL_DEPTH_STENCIL_OES = 0x84F9;
/** Accepted by the <type> parameter of TexImage2D and TexSubImage2D: */
int GL_UNSIGNED_INT_24_8_OES = 0x84FA;
/**
* Accepted by the <internalformat> parameter of RenderbufferStorage, and
* returned in the <params> parameter of GetRenderbufferParameteriv when
* <pname> is RENDERBUFFER_INTERNAL_FORMAT:
*/
int GL_DEPTH24_STENCIL8_OES = 0x88F0;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ANGLE_framebuffer_multisample.java 0000644 0001750 0001750 00000004345 12702226520 025750 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
public interface ANGLE_framebuffer_multisample {
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv: */
int GL_RENDERBUFFER_SAMPLES_ANGLE = 0x8CAB;
/** Returned by CheckFramebufferStatus: */
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE = 0x8D56;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_SAMPLES_ANGLE = 0x8D57;
void glRenderbufferStorageMultisampleANGLE(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_sRGB.java 0000644 0001750 0001750 00000004177 12702226520 021462 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_sRGB {
/**
* Accepted by the <format> and <internalformat> parameter of TexImage2D, and
* TexImage3DOES. These are also accepted by <format> parameter of
* TexSubImage2D and TexSubImage3DOES:
*/
int GL_SRGB_EXT = 0x8C40,
GL_SRGB_ALPHA_EXT = 0x8C42;
/** Accepted by the <internalformat> parameter of RenderbufferStorage: */
int GL_SRGB8_ALPHA8_EXT = 0x8C43;
/** Accepted by the <pname> parameter of GetFramebufferAttachmentParameteriv: */
int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/IMG_program_binary.java 0000644 0001750 0001750 00000003335 12702226520 023647 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface IMG_program_binary {
/** Accepted by the <binaryFormat> parameter of ProgramBinaryOES: */
int GL_SGX_PROGRAM_BINARY_IMG = 0x9130;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_binning_control.java 0000644 0001750 0001750 00000003720 12702226520 024141 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface QCOM_binning_control {
/** Accepted by the <target> parameter of Hint: */
int GL_BINNING_CONTROL_HINT_QCOM = 0x8FB0;
/** Accepted by the <hint> parameter of Hint: */
int GL_CPU_OPTIMIZED_QCOM = 0x8FB1,
GL_GPU_OPTIMIZED_QCOM = 0x8FB2,
GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM = 0x8FB3,
GL_DONT_CARE = 0x1100;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_fence.java 0000644 0001750 0001750 00000005564 12702226520 021631 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface NV_fence {
/** Accepted by the <condition> parameter of SetFenceNV: */
int GL_ALL_COMPLETED_NV = 0x84F2;
/** Accepted by the <pname> parameter of GetFenceivNV: */
int GL_FENCE_STATUS_NV = 0x84F3,
GL_FENCE_CONDITION_NV = 0x84F4;
void glGenFencesNV(@AutoSize("fences") @GLsizei int n, @OutParameter @GLuint IntBuffer fences);
@Alternate("glGenFencesNV")
@GLreturn("fences")
void glGenFencesNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer fences);
void glDeleteFencesNV(@AutoSize("fences") @GLsizei int n, @Const @GLuint IntBuffer fences);
@Alternate("glDeleteFencesNV")
void glDeleteFencesNV(@Constant("1") @GLsizei int n, @Const @GLuint @Constant(value = "APIUtil.getInt(fence)", keepParam = true) int fence);
void glSetFenceNV(@GLuint int fence, @GLenum int condition);
boolean glTestFenceNV(@GLuint int fence);
void glFinishFenceNV(@GLuint int fence);
boolean glIsFenceNV(@GLuint int fence);
void glGetFenceivNV(@GLuint int fence, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_draw_buffers.java 0000644 0001750 0001750 00000006713 12702226520 023217 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.Constant;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.IntBuffer;
public interface NV_draw_buffers {
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_DRAW_BUFFERS_NV = 0x8824,
GL_DRAW_BUFFER0_NV = 0x8825,
GL_DRAW_BUFFER1_NV = 0x8826,
GL_DRAW_BUFFER2_NV = 0x8827,
GL_DRAW_BUFFER3_NV = 0x8828,
GL_DRAW_BUFFER4_NV = 0x8829,
GL_DRAW_BUFFER5_NV = 0x882A,
GL_DRAW_BUFFER6_NV = 0x882B,
GL_DRAW_BUFFER7_NV = 0x882C,
GL_DRAW_BUFFER8_NV = 0x882D,
GL_DRAW_BUFFER9_NV = 0x882E,
GL_DRAW_BUFFER10_NV = 0x882F,
GL_DRAW_BUFFER11_NV = 0x8830,
GL_DRAW_BUFFER12_NV = 0x8831,
GL_DRAW_BUFFER13_NV = 0x8832,
GL_DRAW_BUFFER14_NV = 0x8833,
GL_DRAW_BUFFER15_NV = 0x8834;
/** Accepted by the <bufs> parameter of DrawBuffersNV: */
int GL_COLOR_ATTACHMENT0_NV = 0x8CE0,
GL_COLOR_ATTACHMENT1_NV = 0x8CE1,
GL_COLOR_ATTACHMENT2_NV = 0x8CE2,
GL_COLOR_ATTACHMENT3_NV = 0x8CE3,
GL_COLOR_ATTACHMENT4_NV = 0x8CE4,
GL_COLOR_ATTACHMENT5_NV = 0x8CE5,
GL_COLOR_ATTACHMENT6_NV = 0x8CE6,
GL_COLOR_ATTACHMENT7_NV = 0x8CE7,
GL_COLOR_ATTACHMENT8_NV = 0x8CE8,
GL_COLOR_ATTACHMENT9_NV = 0x8CE9,
GL_COLOR_ATTACHMENT10_NV = 0x8CEA,
GL_COLOR_ATTACHMENT11_NV = 0x8CEB,
GL_COLOR_ATTACHMENT12_NV = 0x8CEC,
GL_COLOR_ATTACHMENT13_NV = 0x8CED,
GL_COLOR_ATTACHMENT14_NV = 0x8CEE,
GL_COLOR_ATTACHMENT15_NV = 0x8CEF;
void glDrawBuffersNV(@AutoSize("bufs") @GLsizei int n, @Const @GLenum IntBuffer bufs);
@Alternate("glDrawBuffersNV")
void glDrawBuffersNV(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(buf)", keepParam = true) int buf);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_tiled_rendering.java 0000644 0001750 0001750 00000007001 12702226520 024107 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLuint;
public interface QCOM_tiled_rendering {
/**
* Accepted by the <preserveMask> parameter of StartTilingQCOM and
* EndTilingQCOM
*/
int GL_COLOR_BUFFER_BIT0_QCOM = 0x00000001,
GL_COLOR_BUFFER_BIT1_QCOM = 0x00000002,
GL_COLOR_BUFFER_BIT2_QCOM = 0x00000004,
GL_COLOR_BUFFER_BIT3_QCOM = 0x00000008,
GL_COLOR_BUFFER_BIT4_QCOM = 0x00000010,
GL_COLOR_BUFFER_BIT5_QCOM = 0x00000020,
GL_COLOR_BUFFER_BIT6_QCOM = 0x00000040,
GL_COLOR_BUFFER_BIT7_QCOM = 0x00000080,
GL_DEPTH_BUFFER_BIT0_QCOM = 0x00000100,
GL_DEPTH_BUFFER_BIT1_QCOM = 0x00000200,
GL_DEPTH_BUFFER_BIT2_QCOM = 0x00000400,
GL_DEPTH_BUFFER_BIT3_QCOM = 0x00000800,
GL_DEPTH_BUFFER_BIT4_QCOM = 0x00001000,
GL_DEPTH_BUFFER_BIT5_QCOM = 0x00002000,
GL_DEPTH_BUFFER_BIT6_QCOM = 0x00004000,
GL_DEPTH_BUFFER_BIT7_QCOM = 0x00008000,
GL_STENCIL_BUFFER_BIT0_QCOM = 0x00010000,
GL_STENCIL_BUFFER_BIT1_QCOM = 0x00020000,
GL_STENCIL_BUFFER_BIT2_QCOM = 0x00040000,
GL_STENCIL_BUFFER_BIT3_QCOM = 0x00080000,
GL_STENCIL_BUFFER_BIT4_QCOM = 0x00100000,
GL_STENCIL_BUFFER_BIT5_QCOM = 0x00200000,
GL_STENCIL_BUFFER_BIT6_QCOM = 0x00400000,
GL_STENCIL_BUFFER_BIT7_QCOM = 0x00800000,
GL_MULTISAMPLE_BUFFER_BIT0_QCOM = 0x01000000,
GL_MULTISAMPLE_BUFFER_BIT1_QCOM = 0x02000000,
GL_MULTISAMPLE_BUFFER_BIT2_QCOM = 0x04000000,
GL_MULTISAMPLE_BUFFER_BIT3_QCOM = 0x08000000,
GL_MULTISAMPLE_BUFFER_BIT4_QCOM = 0x10000000,
GL_MULTISAMPLE_BUFFER_BIT5_QCOM = 0x20000000,
GL_MULTISAMPLE_BUFFER_BIT6_QCOM = 0x40000000,
GL_MULTISAMPLE_BUFFER_BIT7_QCOM = 0x80000000;
void glStartTilingQCOM(@GLuint int x, @GLuint int y, @GLuint int width, @GLuint int height,
@GLbitfield int preserveMask);
void glEndTilingQCOM(@GLbitfield int preserveMask);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_compression_s3tc.java 0000644 0001750 0001750 00000004126 12702226520 025734 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureCompressionS3TC")
public interface EXT_texture_compression_s3tc {
/**
* Accepted by the <internalformat> parameter of TexImage2D, CopyTexImage2D,
* and CompressedTexImage2D and the <format> parameter of
* CompressedTexSubImage2D:
*/
int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0,
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1,
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_texture_float.java 0000644 0001750 0001750 00000003145 12702226520 023532 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_texture_float {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_color_buffer_half_float.java 0000644 0001750 0001750 00000004156 12702226520 025510 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_color_buffer_half_float {
/**
* Accepted by the <internalformat> parameter of RenderbufferStorage and
* RenderbufferStorageMultisampleAPPLE:
*/
int GL_RGBA16F_EXT = 0x881A,
GL_RGB16F_EXT = 0x881B,
GL_RG16F_EXT = 0x822F,
GL_R16F_EXT = 0x822D;
/** Accepted by the <pname> parameter of GetFramebufferAttachmentParameteriv: */
int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
/** Returned in <params> by GetFramebufferAttachmentParameteriv: */
int GL_UNSIGNED_NORMALIZED_EXT = 0x8C17;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_vertex_half_float.java 0000644 0001750 0001750 00000003323 12702226520 024337 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_vertex_half_float {
/** Accepted by the <type> parameter of VertexAttribPointer: */
int GL_HALF_FLOAT_OES = 0x8D61;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_vertex_type_10_10_10_2.java 0000644 0001750 0001750 00000003417 12702226520 024546 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_vertex_type_10_10_10_2 {
/** Accepted by the <type> parameter of VertexAttribPointer */
int GL_UNSIGNED_INT_10_10_10_2_OES = 0x8DF6,
GL_INT_10_10_10_2_OES = 0x8DF7;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/IMG_multisampled_render_to_texture.java 0000644 0001750 0001750 00000005112 12702226520 027150 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface IMG_multisampled_render_to_texture {
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv: */
int GL_RENDERBUFFER_SAMPLES_IMG = 0x9133;
/** Returned by CheckFramebufferStatus: */
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG = 0x9134;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_SAMPLES_IMG = 0x9135;
/** Accepted by the <pname> parameter of GetFramebufferAttachmentParameteriv: */
int GL_TEXTURE_SAMPLES_IMG = 0x9136;
void glRenderbufferStorageMultisampleIMG(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glFramebufferTexture2DMultisampleIMG(
@GLenum int target, @GLenum int attachment,
@GLenum int textarget, @GLuint int texture,
int level, @GLsizei int samples);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_texture_npot.java 0000644 0001750 0001750 00000003145 12702226520 023405 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_texture_npot {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/APPLE_rgb_422.java 0000644 0001750 0001750 00000004626 12702226520 022226 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface APPLE_rgb_422 {
/**
* Accepted by the <format> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D,
* ConvolutionFilter2D, GetConvolutionFilter, SeparableFilter2D,
* GetSeparableFilter, ColorTable, GetColorTable:
*/
int GL_RGB_422_APPLE = 0x8A1F;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D,
* ConvolutionFilter2D, GetConvolutionFilter, SeparableFilter2D,
* GetSeparableFilter, ColorTable, GetColorTable:
*/
int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA;
int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_texture_compression_s3tc_update.java 0000644 0001750 0001750 00000003167 12702226520 027165 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_texture_compression_s3tc_update {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_compressed_paletted_texture.java 0000644 0001750 0001750 00000004072 12702226520 026453 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_compressed_paletted_texture {
/** Accepted by the <internalformat> paramter of CompressedTexImage2D */
int GL_PALETTE4_RGB8_OES = 0x8B90,
GL_PALETTE4_RGBA8_OES = 0x8B91,
GL_PALETTE4_R5_G6_B5_OES = 0x8B92,
GL_PALETTE4_RGBA4_OES = 0x8B93,
GL_PALETTE4_RGB5_A1_OES = 0x8B94,
GL_PALETTE8_RGB8_OES = 0x8B95,
GL_PALETTE8_RGBA8_OES = 0x8B96,
GL_PALETTE8_R5_G6_B5_OES = 0x8B97,
GL_PALETTE8_RGBA4_OES = 0x8B98,
GL_PALETTE8_RGB5_A1_OES = 0x8B99;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_shader_texture_lod.java 0000644 0001750 0001750 00000003154 12702226520 024543 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_shader_texture_lod {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengles/APPLE_framebuffer_multisample.java 0000644 0001750 0001750 00000005413 12702226520 025760 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
public interface APPLE_framebuffer_multisample {
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv: */
int GL_RENDERBUFFER_SAMPLES_APPLE = 0x8CAB;
/** Returned by CheckFramebufferStatus: */
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE = 0x8D56;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_MAX_SAMPLES_APPLE = 0x8D57;
/**
* Accepted by the <target> parameter of BindFramebuffer,
* CheckFramebufferStatus, FramebufferTexture2D, FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv:
*/
int GL_READ_FRAMEBUFFER_APPLE = 0x8CA8,
GL_DRAW_FRAMEBUFFER_APPLE = 0x8CA9;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, and
* GetFloatv:
*/
int GL_DRAW_FRAMEBUFFER_BINDING_APPLE = 0x8CA6, // FRAMEBUFFER_BINDING
GL_READ_FRAMEBUFFER_BINDING_APPLE = 0x8CAA;
void glRenderbufferStorageMultisampleAPPLE(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glResolveMultisampleFramebufferAPPLE();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_multisampled_render_to_texture.java 0000644 0001750 0001750 00000005125 12702226520 027200 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_multisampled_render_to_texture {
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv: */
int GL_RENDERBUFFER_SAMPLES_EXT = 0x9133;
/** Returned by CheckFramebufferStatus: */
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x9134;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_SAMPLES_EXT = 0x9135;
/** Accepted by the <pname> parameter of GetFramebufferAttachmentParameteriv: */
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT = 0x8D6C;
void glRenderbufferStorageMultisampleEXT(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glFramebufferTexture2DMultisampleEXT(
@GLenum int target, @GLenum int attachment,
@GLenum int textarget, @GLuint int texture,
int level, @GLsizei int samples);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_blend_minmax.java 0000644 0001750 0001750 00000003536 12702226520 023320 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLenum;
public interface EXT_blend_minmax {
/** Accepted by the <mode> parameter of BlendEquationEXT: */
int GL_FUNC_ADD_EXT = 0x8006,
GL_MIN_EXT = 0x8007,
GL_MAX_EXT = 0x8008;
void glBlendEquationEXT(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_shader_framebuffer_fetch.java 0000644 0001750 0001750 00000003433 12702226520 025642 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_shader_framebuffer_fetch {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT = 0x8A52;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_mapbuffer.java 0000644 0001750 0001750 00000010326 12702226520 022613 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
public interface OES_mapbuffer {
/** Accepted by the <access> parameter of MapBufferOES: */
int GL_WRITE_ONLY_OES = 0x88B9;
/** Accepted by the <value> parameter of GetBufferParameteriv: */
int GL_BUFFER_ACCESS_OES = 0x88BB,
GL_BUFFER_MAPPED_OES = 0x88BC;
/** Accepted by the <pname> parameter of GetBufferPointervOES: */
int GL_BUFFER_MAP_POINTER_OES = 0x88BD;
@StripPostfix("pointer")
@CachedResult
@AutoSize("GLES20.glGetBufferParameteri(target, GLES20.GL_BUFFER_SIZE)")
void glGetBufferPointervOES(@GLenum int target, @GLenum int pname, @OutParameter @Result @GLvoid ByteBuffer pointer);
/**
* glMapBufferOES maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferOES(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferOES(..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* The version of this method without an explicit length argument calls glGetBufferParameter internally to
* retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.
*
* The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
* is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
* Security warning: The length argument should match the buffer object size. Reading from or writing to outside
* the memory region that corresponds to the mapped buffer object will cause native crashes.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult
@GLvoid
@AutoSize("GLES20.glGetBufferParameteri(target, GLES20.GL_BUFFER_SIZE)")
ByteBuffer glMapBufferOES(@GLenum int target, @GLenum int access);
boolean glUnmapBufferOES(@GLenum int target);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_stencil1.java 0000644 0001750 0001750 00000003333 12702226520 022366 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_stencil1 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_STENCIL_INDEX1_OES = 0x8D46;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_shader_framebuffer_fetch.java 0000644 0001750 0001750 00000003160 12702226520 025522 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_shader_framebuffer_fetch {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_texture_rg.java 0000644 0001750 0001750 00000003776 12702226520 023061 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_texture_rg {
/**
* Accepted by the <internalformat> parameter of TexImage2D and CopyTexImage2D,
* and the <format> parameter of TexImage2D, TexSubImage2D, and ReadPixels:
*/
int GL_RED_EXT = 0x1903,
GL_RG_EXT = 0x8227;
/**
* Accepted by the <internalformat> parameter of RenderbufferStorage and
* RenderbufferStorageMultisampleAPPLE:
*/
int GL_R8_EXT = 0x8229,
GL_RG8_EXT = 0x822B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_vertex_array_object.java 0000644 0001750 0001750 00000005073 12702226520 024710 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface OES_vertex_array_object {
/** Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv: */
int GL_VERTEX_ARRAY_BINDING_OES = 0x85B5;
void glBindVertexArrayOES(@GLuint int array);
void glDeleteVertexArraysOES(@AutoSize("arrays") @GLsizei int n, @Const @GLuint IntBuffer arrays);
@Alternate("glDeleteVertexArraysOES")
void glDeleteVertexArraysOES(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(array)", keepParam = true) int array);
void glGenVertexArraysOES(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Alternate("glGenVertexArraysOES")
@GLreturn("arrays")
void glGenVertexArraysOES2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
boolean glIsVertexArrayOES(@GLuint int array);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_occlusion_query_boolean.java 0000644 0001750 0001750 00000007202 12702226520 025577 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface EXT_occlusion_query_boolean {
/**
* Accepted by the <target> parameter of BeginQueryEXT, EndQueryEXT,
* and GetQueryivEXT:
*/
int GL_ANY_SAMPLES_PASSED_EXT = 0x8C2F,
GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT = 0x8D6A;
/** Accepted by the <pname> parameter of GetQueryivEXT: */
int GL_CURRENT_QUERY_EXT = 0x8865;
/**
* Accepted by the <pname> parameter of GetQueryObjectivEXT and
* GetQueryObjectuivEXT:
*/
int GL_QUERY_RESULT_EXT = 0x8866,
GL_QUERY_RESULT_AVAILABLE_EXT = 0x8867;
void glGenQueriesEXT(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenQueriesEXT")
@GLreturn("ids")
void glGenQueriesEXT2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
void glDeleteQueriesEXT(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids);
@Alternate("glDeleteQueriesEXT")
void glDeleteQueriesEXT(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(id)", keepParam = true) int id);
boolean glIsQueryEXT(@GLuint int id);
void glBeginQueryEXT(@GLenum int target, @GLuint int id);
void glEndQueryEXT(@GLenum int target);
@StripPostfix("params")
void glGetQueryivEXT(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetQueryivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryivEXT2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetQueryObjectuivEXT(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetQueryObjectuivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectuivEXT2(@GLuint int id, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/ARB_draw_buffers.java 0000644 0001750 0001750 00000005503 12702226520 023274 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.Constant;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.IntBuffer;
public interface ARB_draw_buffers {
/** Accepted by the <pname> parameters of GetIntegerv, GetFloatv: */
int GL_MAX_DRAW_BUFFERS_ARB = 0x8824,
GL_DRAW_BUFFER0_ARB = 0x8825,
GL_DRAW_BUFFER1_ARB = 0x8826,
GL_DRAW_BUFFER2_ARB = 0x8827,
GL_DRAW_BUFFER3_ARB = 0x8828,
GL_DRAW_BUFFER4_ARB = 0x8829,
GL_DRAW_BUFFER5_ARB = 0x882A,
GL_DRAW_BUFFER6_ARB = 0x882B,
GL_DRAW_BUFFER7_ARB = 0x882C,
GL_DRAW_BUFFER8_ARB = 0x882D,
GL_DRAW_BUFFER9_ARB = 0x882E,
GL_DRAW_BUFFER10_ARB = 0x882F,
GL_DRAW_BUFFER11_ARB = 0x8830,
GL_DRAW_BUFFER12_ARB = 0x8831,
GL_DRAW_BUFFER13_ARB = 0x8832,
GL_DRAW_BUFFER14_ARB = 0x8833,
GL_DRAW_BUFFER15_ARB = 0x8834;
void glDrawBuffersARB(@AutoSize("buffers") @GLsizei int size, @Const @GLenum IntBuffer buffers);
@Alternate("glDrawBuffersARB")
void glDrawBuffersARB(@Constant("1") @GLsizei int size, @Constant(value = "APIUtil.getInt(buffer)", keepParam = true) int buffer);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_draw_texture.java 0000644 0001750 0001750 00000004036 12702226520 023257 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.GLfloat;
import org.lwjgl.util.generator.opengl.GLuint;
public interface NV_draw_texture {
void glDrawTextureNV(@GLuint int texture, @GLuint int sampler,
@GLfloat float x0, @GLfloat float y0,
@GLfloat float x1, @GLfloat float y1,
@GLfloat float z,
@GLfloat float s0, @GLfloat float t0,
@GLfloat float s1, @GLfloat float t1);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/QCOM_driver_control.java 0000644 0001750 0001750 00000006226 12702226520 024014 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLchar;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface QCOM_driver_control {
void glGetDriverControlsQCOM(@OutParameter @Check(value = "1", canBeNull = true) IntBuffer num,
@AutoSize(value = "driverControls", canBeNull = true) @GLsizei int size,
@OutParameter @Check(canBeNull = true) @GLuint IntBuffer driverControls);
void glGetDriverControlStringQCOM(@GLuint int driverControl,
@AutoSize(value = "driverControlString", canBeNull = true) @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @Check(canBeNull = true) @GLchar ByteBuffer driverControlString);
@Alternate("glGetDriverControlStringQCOM")
@GLreturn(value = "driverControlString", maxLength = "bufSize")
void glGetDriverControlStringQCOM2(@GLuint int driverControl,
@GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(driverControlString_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer driverControlString);
void glEnableDriverControlQCOM(@GLuint int driverControl);
void glDisableDriverControlQCOM(@GLuint int driverControl);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_EGL_stream_consumer_external.java 0000644 0001750 0001750 00000004106 12702226520 026337 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface NV_EGL_stream_consumer_external {
/** Accepted as a target in the <target> parameter of BindTexture: */
int GL_TEXTURE_EXTERNAL_OES = 0x8D65;
/** Returned in the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_EXTERNAL_OES = 0x8D66;
/** Accepted as <value> in GetIntegerv() and GetFloatv() queries: */
int GL_TEXTURE_BINDING_EXTERNAL_OES = 0x8D67;
/** Accepted as <value> in GetTexParameter*() queries: */
int GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES = 0x8D68;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/NV_system_time.java 0000644 0001750 0001750 00000003365 12702226520 023110 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
import org.lwjgl.util.generator.opengl.EGLuint64NV;
public interface NV_system_time {
@EGLuint64NV
long glGetSystemTimeFrequencyNV();
@EGLuint64NV
long glGetSystemTimeNV();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/OES_compressed_ETC1_RGB8_texture.java 0000644 0001750 0001750 00000003350 12702226520 026125 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface OES_compressed_ETC1_RGB8_texture {
/** Accepted by the <internalformat> parameter of CompressedTexImage2D: */
int GL_ETC1_RGB8_OES = 0x8D64;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengles/EXT_frag_depth.java 0000644 0001750 0001750 00000003143 12702226520 022760 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengles;
public interface EXT_frag_depth {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ 0000755 0001750 0001750 00000000000 12702226520 016741 5 ustar apo apo lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_atomic_counters.java 0000644 0001750 0001750 00000011424 12702226520 025016 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_shader_atomic_counters {
/** Accepted by the <target> parameter of BindBufferBase and BindBufferRange: */
int GL_ATOMIC_COUNTER_BUFFER = 0x92C0;
/**
* Accepted by the <pname> parameter of GetBooleani_v, GetIntegeri_v,
* GetFloati_v, GetDoublei_v, GetInteger64i_v, GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, GetDoublev, and GetActiveAtomicCounterBufferiv:
*/
int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1;
/** Accepted by the <pname> parameter of GetIntegeri_64v: */
int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2,
GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3;
/** Accepted by the <pname> parameter of GetActiveAtomicCounterBufferiv: */
int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4,
GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5,
GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC,
GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD,
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE,
GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF,
GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0,
GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1,
GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2,
GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3,
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4,
GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5,
GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6,
GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7,
GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8,
GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9;
/** Accepted by the <pname> parameter of GetActiveUniformsiv: */
int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA;
/** Returned in <params> by GetActiveUniform and GetActiveUniformsiv: */
int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB;
@StripPostfix("params")
@Reuse("GL42")
void glGetActiveAtomicCounterBufferiv(@GLuint int program, @GLuint int bufferIndex, @GLenum int pname, @Check("1") @OutParameter IntBuffer params);
@Alternate("glGetActiveAtomicCounterBufferiv")
@StripPostfix("params")
@GLreturn("params")
@Reuse("GL42")
void glGetActiveAtomicCounterBufferiv2(@GLuint int program, @GLuint int bufferIndex, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL15.java 0000644 0001750 0001750 00000025361 12702226520 020263 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface GL15 {
// ----------------------------------------------------------------------
// ---------------------- ARB_vertex_buffer_object ----------------------
// ----------------------------------------------------------------------
int GL_ARRAY_BUFFER = 0x8892;
int GL_ELEMENT_ARRAY_BUFFER = 0x8893;
int GL_ARRAY_BUFFER_BINDING = 0x8894;
int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896;
int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897;
int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898;
int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899;
int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A;
int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B;
int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C;
int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D;
int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E;
int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
int GL_STREAM_DRAW = 0x88E0;
int GL_STREAM_READ = 0x88E1;
int GL_STREAM_COPY = 0x88E2;
int GL_STATIC_DRAW = 0x88E4;
int GL_STATIC_READ = 0x88E5;
int GL_STATIC_COPY = 0x88E6;
int GL_DYNAMIC_DRAW = 0x88E8;
int GL_DYNAMIC_READ = 0x88E9;
int GL_DYNAMIC_COPY = 0x88EA;
int GL_READ_ONLY = 0x88B8;
int GL_WRITE_ONLY = 0x88B9;
int GL_READ_WRITE = 0x88BA;
int GL_BUFFER_SIZE = 0x8764;
int GL_BUFFER_USAGE = 0x8765;
int GL_BUFFER_ACCESS = 0x88BB;
int GL_BUFFER_MAPPED = 0x88BC;
int GL_BUFFER_MAP_POINTER = 0x88BD;
int GL_FOG_COORD_SRC = GL14.GL_FOG_COORDINATE_SOURCE;
int GL_FOG_COORD = GL14.GL_FOG_COORDINATE;
int GL_CURRENT_FOG_COORD = GL14.GL_CURRENT_FOG_COORDINATE;
int GL_FOG_COORD_ARRAY_TYPE = GL14.GL_FOG_COORDINATE_ARRAY_TYPE;
int GL_FOG_COORD_ARRAY_STRIDE = GL14.GL_FOG_COORDINATE_ARRAY_STRIDE;
int GL_FOG_COORD_ARRAY_POINTER = GL14.GL_FOG_COORDINATE_ARRAY_POINTER;
int GL_FOG_COORD_ARRAY = GL14.GL_FOG_COORDINATE_ARRAY;
int GL_FOG_COORD_ARRAY_BUFFER_BINDING = GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING;
int GL_SRC0_RGB = GL13.GL_SOURCE0_RGB;
int GL_SRC1_RGB = GL13.GL_SOURCE1_RGB;
int GL_SRC2_RGB = GL13.GL_SOURCE2_RGB;
int GL_SRC0_ALPHA = GL13.GL_SOURCE0_ALPHA;
int GL_SRC1_ALPHA = GL13.GL_SOURCE1_ALPHA;
int GL_SRC2_ALPHA = GL13.GL_SOURCE2_ALPHA;
@Code(" StateTracker.bindBuffer(caps, target, buffer);")
void glBindBuffer(@GLenum int target, @GLuint int buffer);
void glDeleteBuffers(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers);
@Alternate("glDeleteBuffers")
void glDeleteBuffers(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, buffer)", keepParam = true) int buffer);
void glGenBuffers(@AutoSize("buffers") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
@Alternate("glGenBuffers")
@GLreturn("buffers")
void glGenBuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
boolean glIsBuffer(@GLuint int buffer);
@GenerateAutos
void glBufferData(@GLenum int target, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data, @GLenum int usage);
void glBufferSubData(@GLenum int target, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
void glGetBufferSubData(@GLenum int target, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@OutParameter
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
/**
* glMapBuffer maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBuffer(..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* The version of this method without an explicit length argument calls glGetBufferParameter internally to
* retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.
*
* The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
* is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
* Security warning: The length argument should match the buffer object size. Reading from or writing to outside
* the memory region that corresponds to the mapped buffer object will cause native crashes.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult
@GLvoid
@AutoSize("glGetBufferParameteri(target, GL_BUFFER_SIZE)")
ByteBuffer glMapBuffer(@GLenum int target, @GLenum int access);
boolean glUnmapBuffer(@GLenum int target);
@StripPostfix("params")
void glGetBufferParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetBufferParameteri} instead. */
@Alternate("glGetBufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL15", method = "glGetBufferParameteri")
@Deprecated
void glGetBufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetBufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetBufferParameteriv3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("pointer")
@AutoSize("glGetBufferParameteri(target, GL_BUFFER_SIZE)")
void glGetBufferPointerv(@GLenum int target, @GLenum int pname, @OutParameter @Result @GLvoid ByteBuffer pointer);
// -----------------------------------------------------------------
// ---------------------- ARB_occlusion_query ----------------------
// -----------------------------------------------------------------
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery,
* and GetQueryiv:
*/
int GL_SAMPLES_PASSED = 0x8914;
/** Accepted by the <pname> parameter of GetQueryiv: */
int GL_QUERY_COUNTER_BITS = 0x8864;
int GL_CURRENT_QUERY = 0x8865;
/**
* Accepted by the <pname> parameter of GetQueryObjectiv and
* GetQueryObjectuiv:
*/
int GL_QUERY_RESULT = 0x8866;
int GL_QUERY_RESULT_AVAILABLE = 0x8867;
void glGenQueries(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenQueries")
@GLreturn("ids")
void glGenQueries2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
void glDeleteQueries(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids);
@Alternate("glDeleteQueries")
void glDeleteQueries(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, id)", keepParam = true) int id);
boolean glIsQuery(@GLuint int id);
void glBeginQuery(@GLenum int target, @GLuint int id);
void glEndQuery(@GLenum int target);
@StripPostfix("params")
void glGetQueryiv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryi} instead. */
@Alternate("glGetQueryiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL15", method = "glGetQueryi")
@Deprecated
void glGetQueryiv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetQueryiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryiv3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetQueryObjectiv(@GLenum int id, @GLenum int pname, @OutParameter @Check("1") @GLint IntBuffer params);
@Alternate("glGetQueryObjectiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectiv2(@GLenum int id, @GLenum int pname, @OutParameter @GLint IntBuffer params);
@StripPostfix("params")
void glGetQueryObjectuiv(@GLenum int id, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params);
@Alternate("glGetQueryObjectuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectuiv2(@GLenum int id, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_buffer_object_rgb32.java 0000644 0001750 0001750 00000003303 12702226520 025645 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Alias;
@Alias("EXT_texture_buffer_object_rgb32")
public interface ARB_texture_buffer_object_rgb32 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_performance_monitor.java 0000644 0001750 0001750 00000014605 12702226520 024343 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface AMD_performance_monitor {
/** Accepted by the <pame> parameter of GetPerfMonitorCounterInfoAMD */
int GL_COUNTER_TYPE_AMD = 0x8BC0,
GL_COUNTER_RANGE_AMD = 0x8BC1;
/**
* Returned as a valid value in <data> parameter of
* GetPerfMonitorCounterInfoAMD if <pname> = COUNTER_TYPE_AMD
*/
int GL_UNSIGNED_INT64_AMD = 0x8BC2,
GL_PERCENTAGE_AMD = 0x8BC3;
/** Accepted by the <pname> parameter of GetPerfMonitorCounterDataAMD */
int GL_PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4,
GL_PERFMON_RESULT_SIZE_AMD = 0x8BC5,
GL_PERFMON_RESULT_AMD = 0x8BC6;
void glGetPerfMonitorGroupsAMD(@OutParameter @Check(value = "1", canBeNull = true) @GLint IntBuffer numGroups,
@AutoSize("groups") @GLsizei int groupsSize, @GLuint IntBuffer groups);
void glGetPerfMonitorCountersAMD(@GLuint int group,
@OutParameter @Check(value = "1") @GLint IntBuffer numCounters,
@OutParameter @Check(value = "1") @GLint IntBuffer maxActiveCounters,
@AutoSize(value = "counters", canBeNull = true) @GLsizei int countersSize,
@Check(canBeNull = true) @GLuint IntBuffer counters);
void glGetPerfMonitorGroupStringAMD(@GLuint int group,
@AutoSize(value = "groupString", canBeNull = true) @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer groupString);
@Alternate("glGetPerfMonitorGroupStringAMD")
@GLreturn(value = "groupString", maxLength = "bufSize")
void glGetPerfMonitorGroupStringAMD2(@GLuint int group, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(groupString_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer groupString);
void glGetPerfMonitorCounterStringAMD(@GLuint int group, @GLuint int counter, @AutoSize(value = "counterString", canBeNull = true) @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer counterString);
@Alternate("glGetPerfMonitorCounterStringAMD")
@GLreturn(value = "counterString", maxLength = "bufSize")
void glGetPerfMonitorCounterStringAMD2(@GLuint int group, @GLuint int counter, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(counterString_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer counterString);
void glGetPerfMonitorCounterInfoAMD(@GLuint int group, @GLuint int counter, @GLenum int pname, @Check(value = "16") @GLvoid ByteBuffer data);
void glGenPerfMonitorsAMD(@AutoSize("monitors") @GLsizei int n, @OutParameter @GLuint IntBuffer monitors);
@Alternate("glGenPerfMonitorsAMD")
@GLreturn("monitors")
void glGenPerfMonitorsAMD2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer monitors);
void glDeletePerfMonitorsAMD(@AutoSize("monitors") @GLsizei int n, @GLuint IntBuffer monitors);
@Alternate("glDeletePerfMonitorsAMD")
void glDeletePerfMonitorsAMD(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, monitor)", keepParam = true) int monitor);
void glSelectPerfMonitorCountersAMD(@GLuint int monitor, boolean enable, @GLuint int group, @AutoSize("counterList") int numCounters, @GLuint IntBuffer counterList);
@Alternate("glSelectPerfMonitorCountersAMD")
void glSelectPerfMonitorCountersAMD(@GLuint int monitor, boolean enable, @GLuint int group, @Constant("1") int numCounters, @Constant(value = "APIUtil.getInt(caps, counter)", keepParam = true) int counter);
void glBeginPerfMonitorAMD(@GLuint int monitor);
void glEndPerfMonitorAMD(@GLuint int monitor);
void glGetPerfMonitorCounterDataAMD(@GLuint int monitor, @GLenum int pname, @AutoSize("data") @GLsizei int dataSize,
@OutParameter @GLuint IntBuffer data,
@OutParameter @GLint @Check(value = "1", canBeNull = true) IntBuffer bytesWritten);
@Alternate("glGetPerfMonitorCounterDataAMD")
@GLreturn("data")
void glGetPerfMonitorCounterDataAMD2(@GLuint int monitor, @GLenum int pname, @Constant("4") @GLsizei int dataSize,
@OutParameter @GLuint IntBuffer data,
@OutParameter @GLint @Constant("0L") IntBuffer bytesWritten);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_depth_clamp.java 0000644 0001750 0001750 00000003202 12702226520 022464 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_depth_clamp {
int GL_DEPTH_CLAMP_NV = 0x864F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_storage.java 0000644 0001750 0001750 00000006551 12702226520 023523 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Alias;
import org.lwjgl.util.generator.Dependent;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
@Dependent
@Alias(value = "EXT_texture_storage", postfix = "EXT")
public interface ARB_texture_storage {
/** Accepted by the <value> parameter of GetTexParameter{if}v: */
int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F;
@Reuse("GL42")
void glTexStorage1D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width);
@Reuse("GL42")
void glTexStorage2D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
@Reuse("GL42")
void glTexStorage3D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
@Dependent("GL_EXT_direct_state_access")
void glTextureStorage1DEXT(@GLuint int texture, @GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width);
@Dependent("GL_EXT_direct_state_access")
void glTextureStorage2DEXT(@GLuint int texture, @GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
@Dependent("GL_EXT_direct_state_access")
void glTextureStorage3DEXT(@GLuint int texture, @GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_vertex_shader_tessellator.java 0000644 0001750 0001750 00000004276 12702226520 025562 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface AMD_vertex_shader_tessellator {
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_BUFFER_AMD = 0x9001;
int GL_INT_SAMPLER_BUFFER_AMD = 0x9002;
int GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003;
/** Accepted by TessellationModeAMD */
int GL_DISCRETE_AMD = 0x9006;
int GL_CONTINUOUS_AMD = 0x9007;
/** Accepted by GetIntegerv */
int GL_TESSELLATION_MODE_AMD = 0x9004;
/** Accepted by GetFloatv */
int GL_TESSELLATION_FACTOR_AMD = 0x9005;
void glTessellationFactorAMD(float factor);
void glTessellationModeAMD(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_internalformat_query.java 0000644 0001750 0001750 00000004730 12702226520 024546 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_internalformat_query {
/** Accepted by the <pname> parameter of GetInternalformativ: */
int GL_NUM_SAMPLE_COUNTS = 0x9380;
@StripPostfix("params")
@Reuse("GL42")
void glGetInternalformativ(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @AutoSize("params") @GLsizei int bufSize, @OutParameter IntBuffer params);
@Alternate("glGetInternalformativ")
@StripPostfix("params")
@GLreturn("params")
@Reuse("GL42")
void glGetInternalformativ2(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_occlusion_query2.java 0000644 0001750 0001750 00000003361 12702226520 023600 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_occlusion_query2 {
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery,
* and GetQueryiv:
*/
int GL_ANY_SAMPLES_PASSED = 0x8C2F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_fragment_program_option.java 0000644 0001750 0001750 00000003155 12702226520 025135 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_fragment_program_option {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_imaging.java 0000644 0001750 0001750 00000031103 12702226520 021701 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
/**
*
* The GL12 imaging subset extension.
*
* @author cix_foo
* @version $Revision$
* $Id$
*/
@Extension(postfix = "")
@DeprecatedGL
public interface ARB_imaging {
int GL_BLEND_COLOR = 0x8005;
int GL_FUNC_ADD = 0x8006;
int GL_MIN = 0x8007;
int GL_MAX = 0x8008;
int GL_BLEND_EQUATION = 0x8009;
int GL_FUNC_SUBTRACT = 0x800A;
int GL_FUNC_REVERSE_SUBTRACT = 0x800B;
int GL_COLOR_MATRIX = 0x80B1;
int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2;
int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3;
int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4;
int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5;
int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6;
int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7;
int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8;
int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9;
int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA;
int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB;
int GL_COLOR_TABLE = 0x80D0;
int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1;
int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2;
int GL_PROXY_COLOR_TABLE = 0x80D3;
int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4;
int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5;
int GL_COLOR_TABLE_SCALE = 0x80D6;
int GL_COLOR_TABLE_BIAS = 0x80D7;
int GL_COLOR_TABLE_FORMAT = 0x80D8;
int GL_COLOR_TABLE_WIDTH = 0x80D9;
int GL_COLOR_TABLE_RED_SIZE = 0x80DA;
int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB;
int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC;
int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD;
int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE;
int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF;
int GL_CONVOLUTION_1D = 0x8010;
int GL_CONVOLUTION_2D = 0x8011;
int GL_SEPARABLE_2D = 0x8012;
int GL_CONVOLUTION_BORDER_MODE = 0x8013;
int GL_CONVOLUTION_FILTER_SCALE = 0x8014;
int GL_CONVOLUTION_FILTER_BIAS = 0x8015;
int GL_REDUCE = 0x8016;
int GL_CONVOLUTION_FORMAT = 0x8017;
int GL_CONVOLUTION_WIDTH = 0x8018;
int GL_CONVOLUTION_HEIGHT = 0x8019;
int GL_MAX_CONVOLUTION_WIDTH = 0x801A;
int GL_MAX_CONVOLUTION_HEIGHT = 0x801B;
int GL_POST_CONVOLUTION_RED_SCALE = 0x801C;
int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D;
int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E;
int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F;
int GL_POST_CONVOLUTION_RED_BIAS = 0x8020;
int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021;
int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022;
int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023;
int GL_IGNORE_BORDER = 0x8150;
int GL_CONSTANT_BORDER = 0x8151;
int GL_REPLICATE_BORDER = 0x8153;
int GL_CONVOLUTION_BORDER_COLOR = 0x8154;
int GL_HISTOGRAM = 0x8024;
int GL_PROXY_HISTOGRAM = 0x8025;
int GL_HISTOGRAM_WIDTH = 0x8026;
int GL_HISTOGRAM_FORMAT = 0x8027;
int GL_HISTOGRAM_RED_SIZE = 0x8028;
int GL_HISTOGRAM_GREEN_SIZE = 0x8029;
int GL_HISTOGRAM_BLUE_SIZE = 0x802A;
int GL_HISTOGRAM_ALPHA_SIZE = 0x802B;
int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C;
int GL_HISTOGRAM_SINK = 0x802D;
int GL_MINMAX = 0x802E;
int GL_MINMAX_FORMAT = 0x802F;
int GL_MINMAX_SINK = 0x8030;
int GL_TABLE_TOO_LARGE = 0x8031;
@DeprecatedGL
void glColorTable(@GLenum int target, @GLenum int internalFormat, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("256")
@Const
@GLbyte
@GLfloat
@GLdouble Buffer data);
@DeprecatedGL
void glColorSubTable(@GLenum int target, @GLsizei int start, @GLsizei int count, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("256")
@Const
@GLbyte
@GLfloat
@GLdouble Buffer data);
@StripPostfix("params")
@DeprecatedGL
void glColorTableParameteriv(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glColorTableParameterfv(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@DeprecatedGL
void glCopyColorSubTable(@GLenum int target, @GLsizei int start, int x, int y, @GLsizei int width);
@DeprecatedGL
void glCopyColorTable(@GLenum int target, @GLenum int internalformat, int x, int y, @GLsizei int width);
@DeprecatedGL
void glGetColorTable(@GLenum int target, @GLenum int format, @GLenum int type,
@OutParameter
@Check("256")
@GLbyte
@GLfloat
@GLdouble Buffer data);
@StripPostfix("params")
@DeprecatedGL
void glGetColorTableParameteriv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetColorTableParameterfv(@GLenum int target, @GLenum int pname, @Check("4") FloatBuffer params);
@Reuse("GL14")
void glBlendEquation(@GLenum int mode);
@Reuse("GL14")
void glBlendColor(@GLclampf float red, @GLclampf float green, @GLclampf float blue, @GLclampf float alpha);
@DeprecatedGL
void glHistogram(@GLenum int target, @GLsizei int width, @GLenum int internalformat, boolean sink);
@DeprecatedGL
void glResetHistogram(@GLenum int target);
@DeprecatedGL
void glGetHistogram(@GLenum int target, boolean reset, @GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check("256")
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer values);
@StripPostfix("params")
@DeprecatedGL
void glGetHistogramParameterfv(@GLenum int target, @GLenum int pname, @OutParameter @Check("256") FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetHistogramParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("256") IntBuffer params);
@DeprecatedGL
void glMinmax(@GLenum int target, @GLenum int internalformat, boolean sink);
@DeprecatedGL
void glResetMinmax(@GLenum int target);
@DeprecatedGL
void glGetMinmax(@GLenum int target, boolean reset, @GLenum int format, @GLenum int types,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check("4")
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer values);
@StripPostfix("params")
@DeprecatedGL
void glGetMinmaxParameterfv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetMinmaxParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@DeprecatedGL
void glConvolutionFilter1D(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(image, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer image);
@DeprecatedGL
void glConvolutionFilter2D(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(image, format, type, width, height, 1)")
@Const
@GLbyte
@GLshort
@GLint Buffer image);
@DeprecatedGL
void glConvolutionParameterf(@GLenum int target, @GLenum int pname, float params);
@StripPostfix("params")
@DeprecatedGL
void glConvolutionParameterfv(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@DeprecatedGL
void glConvolutionParameteri(@GLenum int target, @GLenum int pname, int params);
@StripPostfix("params")
@DeprecatedGL
void glConvolutionParameteriv(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@DeprecatedGL
void glCopyConvolutionFilter1D(@GLenum int target, @GLenum int internalformat, int x, int y, @GLsizei int width);
@DeprecatedGL
void glCopyConvolutionFilter2D(@GLenum int target, @GLenum int internalformat, int x, int y, @GLsizei int width, @GLsizei int height);
// TODO: check buffer size valid
@DeprecatedGL
void glGetConvolutionFilter(@GLenum int target, @GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer image);
@StripPostfix("params")
@DeprecatedGL
void glGetConvolutionParameterfv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetConvolutionParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
// TODO: check buffer size valid
@DeprecatedGL
void glSeparableFilter2D(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer row,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer column);
// TODO: check buffer size valid
@DeprecatedGL
void glGetSeparableFilter(@GLenum int target, @GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer row,
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint
@GLdouble Buffer column,
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint
@GLdouble Buffer span);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_draw_parameters.java 0000644 0001750 0001750 00000003155 12702226520 025002 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_draw_parameters {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_rgb10_a2ui.java 0000644 0001750 0001750 00000003671 12702226520 023712 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "ARB", className = "ARBTextureRGB10_A2UI")
public interface ARB_texture_rgb10_a2ui {
/**
* Accepted by the <internalFormat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, CopyTexImage2D, RenderbufferStorage and
* RenderbufferStorageMultisample:
*/
int GL_RGB10_A2UI = 0x906F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shading_language_packing.java 0000644 0001750 0001750 00000003160 12702226520 025244 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shading_language_packing {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/KHR_texture_compression_astc_ldr.java 0000644 0001750 0001750 00000006434 12702226520 026313 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface KHR_texture_compression_astc_ldr {
/**
* Accepted by the <internalformat> parameter of CompressedTexImage2D,
* CompressedTexSubImage2D, TexStorage2D, TextureStorage2D, TexStorage3D,
* and TextureStorage3D:
*/
int GL_COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0,
GL_COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1,
GL_COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2,
GL_COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3,
GL_COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4,
GL_COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5,
GL_COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6,
GL_COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7,
GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8,
GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9,
GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA,
GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB,
GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC,
GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_geometry_program4.java 0000644 0001750 0001750 00000005177 12702226520 023667 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface NV_geometry_program4 {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_GEOMETRY_PROGRAM_NV = 0x8C26;
/** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27;
int GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28;
void glProgramVertexLimitNV(@GLenum int target, int limit);
@Reuse("EXTGeometryShader4")
void glFramebufferTextureEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level);
@Reuse("EXTGeometryShader4")
void glFramebufferTextureLayerEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
@Reuse("EXTGeometryShader4")
void glFramebufferTextureFaceEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, @GLenum int face);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_gpu_shader5.java 0000644 0001750 0001750 00000004110 12702226520 022472 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_gpu_shader5 {
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* GetDoublev, and GetInteger64v:
*/
int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A;
int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B;
int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C;
int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D;
int GL_MAX_VERTEX_STREAMS = 0x8E71;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_half_float_pixel.java 0000644 0001750 0001750 00000003771 12702226520 023600 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_half_float_pixel {
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, GetTexImage, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, GetConvolutionFilter,
* SeparableFilter2D, GetSeparableFilter, ColorTable, ColorSubTable,
* and GetColorTable:
*/
int GL_HALF_FLOAT_ARB = 0x140B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_blend_minmax_factor.java 0000644 0001750 0001750 00000003572 12702226520 024267 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_blend_minmax_factor {
/**
* Accepted by the <mode> parameter of BlendEquation and BlendEquationi, and by
* the <modeRGB> and <modeAlpha> parameters of BlendEquationSeparate and
* BlendEquationSeparatei:
*/
int GL_FACTOR_MIN_AMD = 0x901C,
GL_FACTOR_MAX_AMD = 0x901D;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/KHR_debug.java 0000644 0001750 0001750 00000023173 12702226520 021404 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface KHR_debug {
/**
* Tokens accepted by the <target> parameters of Enable, Disable, and
* IsEnabled:
*/
int GL_DEBUG_OUTPUT = 0x92E0,
GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242;
/** Returned by GetIntegerv when <pname> is CONTEXT_FLAGS: */
int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002;
/**
* Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev and GetInteger64v:
*/
int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143,
GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144,
GL_DEBUG_LOGGED_MESSAGES = 0x9145,
GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243,
GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C,
GL_DEBUG_GROUP_STACK_DEPTH = 0x826D,
GL_MAX_LABEL_LENGTH = 0x82E8;
/** Tokens accepted by the <pname> parameter of GetPointerv: */
int GL_DEBUG_CALLBACK_FUNCTION = 0x8244,
GL_DEBUG_CALLBACK_USER_PARAM = 0x8245;
/**
* Tokens accepted or provided by the <source> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources>
* parameter of GetDebugMessageLog:
*/
int GL_DEBUG_SOURCE_API = 0x8246,
GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247,
GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248,
GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249,
GL_DEBUG_SOURCE_APPLICATION = 0x824A,
GL_DEBUG_SOURCE_OTHER = 0x824B;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types>
* parameter of GetDebugMessageLog:
*/
int GL_DEBUG_TYPE_ERROR = 0x824C,
GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D,
GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E,
GL_DEBUG_TYPE_PORTABILITY = 0x824F,
GL_DEBUG_TYPE_PERFORMANCE = 0x8250,
GL_DEBUG_TYPE_OTHER = 0x8251,
GL_DEBUG_TYPE_MARKER = 0x8268;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControl and DEBUGPROC, and the <types> parameter of
* GetDebugMessageLog:
*/
int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269,
GL_DEBUG_TYPE_POP_GROUP = 0x826A;
/**
* Tokens accepted or provided by the <severity> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions,
* and the <severities> parameter of GetDebugMessageLog:
*/
int GL_DEBUG_SEVERITY_HIGH = 0x9146,
GL_DEBUG_SEVERITY_MEDIUM = 0x9147,
GL_DEBUG_SEVERITY_LOW = 0x9148,
GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B;
/**
* Tokens accepted or provided by the <identifier> parameters of
* ObjectLabel and GetObjectLabel:
*/
int GL_BUFFER = 0x82E0,
GL_SHADER = 0x82E1,
GL_PROGRAM = 0x82E2,
GL_QUERY = 0x82E3,
GL_PROGRAM_PIPELINE = 0x82E4,
GL_SAMPLER = 0x82E6,
GL_DISPLAY_LIST = 0x82E7;
// -----------------------------
@Reuse("GL43")
void glDebugMessageControl(@GLenum int source,
@GLenum int type,
@GLenum int severity,
@AutoSize(value = "ids", canBeNull = true) @GLsizei int count,
@Check(canBeNull = true) @Const @GLuint IntBuffer ids,
boolean enabled);
@Reuse("GL43")
void glDebugMessageInsert(@GLenum int source,
@GLenum int type,
@GLuint int id,
@GLenum int severity,
@AutoSize("buf") @GLsizei int length,
@Const @GLchar ByteBuffer buf);
@Reuse("GL43")
@Alternate("glDebugMessageInsert")
void glDebugMessageInsert(@GLenum int source,
@GLenum int type,
@GLuint int id,
@GLenum int severity,
@Constant("buf.length()") @GLsizei int length,
CharSequence buf);
/**
* The {@code KHRDebugCallback.Handler} implementation passed to this method will be used for
* KHR_debug messages. If callback is null, any previously registered handler for the current
* thread will be unregistered and stop receiving messages.
*
* @param callback the callback function to use
*/
@Reuse("GL43")
void glDebugMessageCallback(@PointerWrapper(value = "GLDEBUGPROC", canBeNull = true) KHRDebugCallback callback,
@Constant("userParam") @PointerWrapper("GLvoid *") long userParam);
@Reuse("GL43")
@GLuint
int glGetDebugMessageLog(@GLuint int count,
@AutoSize(value = "messageLog", canBeNull = true) @GLsizei int bufsize,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer sources,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer types,
@Check(value = "count", canBeNull = true) @GLuint IntBuffer ids,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer severities,
@Check(value = "count", canBeNull = true) @GLsizei IntBuffer lengths,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer messageLog);
// Not really useful and a pain to implement in Java
// void glGetPointerv(@GLenum int pname, void** params);
@Reuse("GL43")
void glPushDebugGroup(@GLenum int source, @GLuint int id, @AutoSize("message") @GLsizei int length,
@Const @GLchar ByteBuffer message);
@Reuse("GL43")
@Alternate("glPushDebugGroup")
void glPushDebugGroup(@GLenum int source, @GLuint int id, @Constant("message.length()") @GLsizei int length,
CharSequence message);
@Reuse("GL43")
void glPopDebugGroup();
@Reuse("GL43")
void glObjectLabel(@GLenum int identifier, @GLuint int name, @AutoSize(value = "label", canBeNull = true) @GLsizei int length,
@Check(canBeNull = true) @Const @GLchar ByteBuffer label);
@Reuse("GL43")
@Alternate("glObjectLabel")
void glObjectLabel(@GLenum int identifier, @GLuint int name, @Constant("label.length()") @GLsizei int length,
CharSequence label);
@Reuse("GL43")
void glGetObjectLabel(@GLenum int identifier, @GLuint int name, @AutoSize("label") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Reuse("GL43")
@Alternate("glGetObjectLabel")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectLabel2(@GLenum int identifier, @GLuint int name, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(label_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Reuse("GL43")
void glObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @AutoSize(value = "label", canBeNull = true) @GLsizei int length,
@Check(canBeNull = true) @Const @GLchar ByteBuffer label);
@Reuse("GL43")
@Alternate("glObjectPtrLabel")
void glObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @Constant("label.length()") @GLsizei int length,
CharSequence label);
@Reuse("GL43")
void glGetObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @AutoSize("label") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Reuse("GL43")
@Alternate("glGetObjectPtrLabel")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectPtrLabel2(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(label_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_query_buffer_object.java 0000644 0001750 0001750 00000004642 12702226520 024322 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_query_buffer_object {
/**
* Accepted by the <pname> parameter of GetQueryObjectiv, GetQueryObjectuiv,
* GetQueryObjecti64v and GetQueryObjectui64v:
*/
int GL_QUERY_RESULT_NO_WAIT = 0x9194;
/**
* Accepted by the <target> parameter of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, MapBufferRange, GetBufferSubData,
* GetBufferParameteriv, GetBufferParameteri64v, GetBufferPointerv,
* ClearBufferSubData, and the <readtarget> and <writetarget> parameters of
* CopyBufferSubData:
*/
int GL_QUERY_BUFFER = 0x9192;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_QUERY_BUFFER_BINDING = 0x9193;
/** Accepted in the <barriers> bitfield in MemoryBarrier: */
int GL_QUERY_BUFFER_BARRIER_BIT = 0x00008000;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_gather.java 0000644 0001750 0001750 00000003604 12702226520 023325 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_gather {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E;
int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F;
int GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_fragment_shader.java 0000644 0001750 0001750 00000004402 12702226520 023421 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_fragment_shader {
/**
* Accepted by the <shaderType> argument of CreateShaderObjectARB and
* returned by the <params> parameter of GetObjectParameter{fi}vARB:
*/
int GL_FRAGMENT_SHADER_ARB = 0x8B30;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49;
int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
/**
* Accepted by the <target> parameter of Hint and the <pname> parameter of
* GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_robustness.java 0000644 0001750 0001750 00000020603 12702226520 022500 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
@Dependent
@DeprecatedGL
public interface ARB_robustness {
/** Returned by GetGraphicsResetStatusARB: */
int GL_GUILTY_CONTEXT_RESET_ARB = 0x8253,
GL_INNOCENT_CONTEXT_RESET_ARB = 0x8254,
GL_UNKNOWN_CONTEXT_RESET_ARB = 0x8255;
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256;
/**
* Returned by GetIntegerv and related simple queries when
* <value> is RESET_NOTIFICATION_STRATEGY_ARB:
*/
int GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252,
GL_NO_RESET_NOTIFICATION_ARB = 0x8261;
/** Returned by GetIntegerv when <pname> is CONTEXT_FLAGS: */
int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004;
@GLenum
int glGetGraphicsResetStatusARB();
@DeprecatedGL
void glGetnMapdvARB(@GLenum int target, @GLenum int query, @Constant("v.remaining() << 3") @GLsizei int bufSize, @OutParameter @Check DoubleBuffer v);
@DeprecatedGL
void glGetnMapfvARB(@GLenum int target, @GLenum int query, @Constant("v.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check FloatBuffer v);
@DeprecatedGL
void glGetnMapivARB(@GLenum int target, @GLenum int query, @Constant("v.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check IntBuffer v);
@DeprecatedGL
void glGetnPixelMapfvARB(@GLenum int map, @Constant("values.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check FloatBuffer values);
@DeprecatedGL
void glGetnPixelMapuivARB(@GLenum int map, @Constant("values.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check @GLuint IntBuffer values);
@DeprecatedGL
void glGetnPixelMapusvARB(@GLenum int map, @Constant("values.remaining() << 1") @GLsizei int bufSize, @OutParameter @Check @GLushort ShortBuffer values);
@DeprecatedGL
void glGetnPolygonStippleARB(@AutoSize("pattern") @GLsizei int bufSize, @OutParameter @GLubyte ByteBuffer pattern);
void glGetnTexImageARB(@GLenum int target, int level, @GLenum int format, @GLenum int type, @AutoSize("img") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer img);
void glReadnPixelsARB(int x, int y, @GLsizei int width, @GLsizei int height,
@GLenum int format, @GLenum int type, @AutoSize("data") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
@Dependent("GL_ARB_imaging")
void glGetnColorTableARB(@GLenum int target, @GLenum int format, @GLenum int type, @AutoSize("table") @GLsizei int bufSize,
@OutParameter
@GLbyte
@GLfloat
@GLdouble Buffer table);
@Dependent("GL_ARB_imaging")
void glGetnConvolutionFilterARB(@GLenum int target, @GLenum int format, @GLenum int type, @AutoSize("image") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer image);
@Dependent("GL_ARB_imaging")
void glGetnSeparableFilterARB(@GLenum int target, @GLenum int format, @GLenum int type,
@AutoSize("row") @GLsizei int rowBufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer row,
@AutoSize("column") @GLsizei int columnBufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer column,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer span);
@Dependent("GL_ARB_imaging")
void glGetnHistogramARB(@GLenum int target, boolean reset, @GLenum int format, @GLenum int type, @AutoSize("values") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer values);
@Dependent("GL_ARB_imaging")
void glGetnMinmaxARB(@GLenum int target, boolean reset, @GLenum int format, @GLenum int type, @AutoSize("values") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer values);
@Dependent("OpenGL13")
void glGetnCompressedTexImageARB(@GLenum int target, int lod, @AutoSize("img") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint Buffer img);
@Dependent("OpenGL20")
void glGetnUniformfvARB(@GLuint int program, int location, @Constant("params.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check FloatBuffer params);
@Dependent("OpenGL20")
void glGetnUniformivARB(@GLuint int program, int location, @Constant("params.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check IntBuffer params);
@Dependent("OpenGL20")
void glGetnUniformuivARB(@GLuint int program, int location, @Constant("params.remaining() << 2") @GLsizei int bufSize, @OutParameter @Check @GLuint IntBuffer params);
@Dependent("OpenGL20")
void glGetnUniformdvARB(@GLuint int program, int location, @Constant("params.remaining() << 3") @GLsizei int bufSize, @OutParameter @Check DoubleBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_compression.java 0000644 0001750 0001750 00000012206 12702226520 024412 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.*;
public interface ARB_texture_compression {
int GL_COMPRESSED_ALPHA_ARB = 0x84E9;
int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA;
int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB;
int GL_COMPRESSED_INTENSITY_ARB = 0x84EC;
int GL_COMPRESSED_RGB_ARB = 0x84ED;
int GL_COMPRESSED_RGBA_ARB = 0x84EE;
int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF;
int GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0;
int GL_TEXTURE_COMPRESSED_ARB = 0x86A1;
int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2;
int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3;
void glCompressedTexImage1DARB(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
void glCompressedTexImage2DARB(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
void glCompressedTexImage3DARB(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
void glCompressedTexSubImage1DARB(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
void glCompressedTexSubImage2DARB(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
void glCompressedTexSubImage3DARB(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
void glGetCompressedTexImageARB(@GLenum int target, int lod,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLvoid
ByteBuffer pImg);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_env_crossbar.java 0000644 0001750 0001750 00000003153 12702226520 024540 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_env_crossbar {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_3d.java 0000644 0001750 0001750 00000003141 12702226520 022411 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_3d {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_barrier.java 0000644 0001750 0001750 00000003271 12702226520 023501 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
public interface ARB_texture_barrier {
@Reuse("GL45")
void glTextureBarrier();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_secondary_color.java 0000644 0001750 0001750 00000005433 12702226520 023516 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface EXT_secondary_color {
int GL_COLOR_SUM_EXT = 0x8458;
int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459;
int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A;
int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B;
int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C;
int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D;
int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E;
void glSecondaryColor3bEXT(byte red, byte green, byte blue);
void glSecondaryColor3fEXT(float red, float green, float blue);
void glSecondaryColor3dEXT(double red, double green, double blue);
void glSecondaryColor3ubEXT(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue);
void glSecondaryColorPointerEXT(int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLfloat
@GLdouble Buffer pPointer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_program1_1.java 0000644 0001750 0001750 00000003147 12702226520 023561 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_vertex_program1_1 {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_path_rendering.java 0000644 0001750 0001750 00000054337 12702226520 023214 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface NV_path_rendering {
/**
* Accepted in elements of the <commands> array parameter of
* PathCommandsNV and PathSubCommandsNV:
*/
int GL_CLOSE_PATH_NV = 0x00,
GL_MOVE_TO_NV = 0x02,
GL_RELATIVE_MOVE_TO_NV = 0x03,
GL_LINE_TO_NV = 0x04,
GL_RELATIVE_LINE_TO_NV = 0x05,
GL_HORIZONTAL_LINE_TO_NV = 0x06,
GL_RELATIVE_HORIZONTAL_LINE_TO_NV = 0x07,
GL_VERTICAL_LINE_TO_NV = 0x08,
GL_RELATIVE_VERTICAL_LINE_TO_NV = 0x09,
GL_QUADRATIC_CURVE_TO_NV = 0x0A,
GL_RELATIVE_QUADRATIC_CURVE_TO_NV = 0x0B,
GL_CUBIC_CURVE_TO_NV = 0x0C,
GL_RELATIVE_CUBIC_CURVE_TO_NV = 0x0D,
GL_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0E,
GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0F,
GL_SMOOTH_CUBIC_CURVE_TO_NV = 0x10,
GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV = 0x11,
GL_SMALL_CCW_ARC_TO_NV = 0x12,
GL_RELATIVE_SMALL_CCW_ARC_TO_NV = 0x13,
GL_SMALL_CW_ARC_TO_NV = 0x14,
GL_RELATIVE_SMALL_CW_ARC_TO_NV = 0x15,
GL_LARGE_CCW_ARC_TO_NV = 0x16,
GL_RELATIVE_LARGE_CCW_ARC_TO_NV = 0x17,
GL_LARGE_CW_ARC_TO_NV = 0x18,
GL_RELATIVE_LARGE_CW_ARC_TO_NV = 0x19,
GL_CIRCULAR_CCW_ARC_TO_NV = 0xF8,
GL_CIRCULAR_CW_ARC_TO_NV = 0xFA,
GL_CIRCULAR_TANGENT_ARC_TO_NV = 0xFC,
GL_ARC_TO_NV = 0xFE,
GL_RELATIVE_ARC_TO_NV = 0xFF;
/** Accepted by the <format> parameter of PathStringNV: */
int GL_PATH_FORMAT_SVG_NV = 0x9070,
GL_PATH_FORMAT_PS_NV = 0x9071;
/**
* Accepted by the <fontTarget> parameter of PathGlyphsNV and
* PathGlyphRangeNV:
*/
int GL_STANDARD_FONT_NAME_NV = 0x9072,
GL_SYSTEM_FONT_NAME_NV = 0x9073,
GL_FILE_NAME_NV = 0x9074;
/**
* Accepted by the <handleMissingGlyph> parameter of PathGlyphsNV and
* PathGlyphRangeNV:
*/
int GL_SKIP_MISSING_GLYPH_NV = 0x90A9,
GL_USE_MISSING_GLYPH_NV = 0x90AA;
/**
* Accepted by the <pname> parameter of PathParameterfNV,
* PathParameterfvNV, GetPathParameterfvNV, PathParameteriNV,
* PathParameterivNV, and GetPathParameterivNV:
*/
int GL_PATH_STROKE_WIDTH_NV = 0x9075,
GL_PATH_INITIAL_END_CAP_NV = 0x9077,
GL_PATH_TERMINAL_END_CAP_NV = 0x9078,
GL_PATH_JOIN_STYLE_NV = 0x9079,
GL_PATH_MITER_LIMIT_NV = 0x907A,
GL_PATH_INITIAL_DASH_CAP_NV = 0x907C,
GL_PATH_TERMINAL_DASH_CAP_NV = 0x907D,
GL_PATH_DASH_OFFSET_NV = 0x907E,
GL_PATH_CLIENT_LENGTH_NV = 0x907F,
GL_PATH_DASH_OFFSET_RESET_NV = 0x90B4,
GL_PATH_FILL_MODE_NV = 0x9080,
GL_PATH_FILL_MASK_NV = 0x9081,
GL_PATH_FILL_COVER_MODE_NV = 0x9082,
GL_PATH_STROKE_COVER_MODE_NV = 0x9083,
GL_PATH_STROKE_MASK_NV = 0x9084;
/**
* Accepted by the <pname> parameter of PathParameterfNV and
* PathParameterfvNV:
*/
int GL_PATH_END_CAPS_NV = 0x9076,
GL_PATH_DASH_CAPS_NV = 0x907B;
/**
* Accepted by the <fillMode> parameter of StencilFillPathNV and
* StencilFillPathInstancedNV:
*/
int GL_COUNT_UP_NV = 0x9088,
GL_COUNT_DOWN_NV = 0x9089;
/**
* Accepted by the <color> parameter of PathColorGenNV,
* GetPathColorGenivNV, and GetPathColorGenfvNV:
*/
int GL_PRIMARY_COLOR = 0x8577, // from OpenGL 1.3
GL_PRIMARY_COLOR_NV = 0x852C, // from NV_register_combiners
GL_SECONDARY_COLOR_NV = 0x852D; // from NV_register_combiners
/**
* Accepted by the <genMode> parameter of PathColorGenNV and
* PathTexGenNV:
*/
int GL_PATH_OBJECT_BOUNDING_BOX_NV = 0x908A;
/**
* Accepted by the <coverMode> parameter of CoverFillPathNV and
* CoverFillPathInstancedNV:
*/
int GL_CONVEX_HULL_NV = 0x908B,
GL_BOUNDING_BOX_NV = 0x908D;
/**
* Accepted by the <transformType> parameter of
* StencilFillPathInstancedNV, StencilStrokePathInstancedNV,
* CoverFillPathInstancedNV, and CoverStrokePathInstancedNV:
*/
int GL_TRANSLATE_X_NV = 0x908E,
GL_TRANSLATE_Y_NV = 0x908F,
GL_TRANSLATE_2D_NV = 0x9090,
GL_TRANSLATE_3D_NV = 0x9091,
GL_AFFINE_2D_NV = 0x9092,
GL_AFFINE_3D_NV = 0x9094,
GL_TRANSPOSE_AFFINE_2D_NV = 0x9096,
GL_TRANSPOSE_AFFINE_3D_NV = 0x9098;
/**
* Accepted by the <type> or <pathNameType> parameter of CallLists,
* StencilFillPathInstancedNV, StencilStrokePathInstancedNV,
* CoverFillPathInstancedNV, CoverStrokePathInstancedNV,
* GetPathMetricsNV, and GetPathSpacingNV:
*/
int GL_UTF8_NV = 0x909A,
GL_UTF16_NV = 0x909B;
/** Accepted by the <coverMode> parameter of CoverFillPathInstancedNV: */
int GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV = 0x909C;
/**
* Accepted by the <pname> parameter of GetPathParameterfvNV and
* GetPathParameterivNV:
*/
int GL_PATH_COMMAND_COUNT_NV = 0x909D,
GL_PATH_COORD_COUNT_NV = 0x909E,
GL_PATH_DASH_ARRAY_COUNT_NV = 0x909F,
GL_PATH_COMPUTED_LENGTH_NV = 0x90A0,
GL_PATH_FILL_BOUNDING_BOX_NV = 0x90A1,
GL_PATH_STROKE_BOUNDING_BOX_NV = 0x90A2;
/**
* Accepted by the <value> parameter of PathParameterfNV,
* PathParameterfvNV, PathParameteriNV, and PathParameterivNV
* when <pname> is one of PATH_END_CAPS_NV, PATH_INTIAL_END_CAP_NV,
* PATH_TERMINAL_END_CAP_NV, PATH_DASH_CAPS_NV, PATH_INITIAL_DASH_CAP_NV,
* and PATH_TERMINAL_DASH_CAP_NV:
*/
int GL_SQUARE_NV = 0x90A3,
GL_ROUND_NV = 0x90A4,
GL_TRIANGULAR_NV = 0x90A5;
/**
* Accepted by the <value> parameter of PathParameterfNV,
* PathParameterfvNV, PathParameteriNV, and PathParameterivNV
* when <pname> is PATH_JOIN_STYLE_NV:
*/
int GL_BEVEL_NV = 0x90A6,
GL_MITER_REVERT_NV = 0x90A7,
GL_MITER_TRUNCATE_NV = 0x90A8;
/**
* Accepted by the <value> parameter of PathParameterfNV,
* PathParameterfvNV, PathParameteriNV, and PathParameterivNV when
* <pname> is PATH_DASH_OFFSET_RESET_NV
*/
int GL_MOVE_TO_RESETS_NV = 0x90B5,
GL_MOVE_TO_CONTINUES_NV = 0x90B6;
/** Accepted by the <fontStyle> parameter of PathStringNV: */
int GL_BOLD_BIT_NV = 0x01,
GL_ITALIC_BIT_NV = 0x02;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_PATH_ERROR_POSITION_NV = 0x90AB,
GL_PATH_FOG_GEN_MODE_NV = 0x90AC,
GL_PATH_STENCIL_FUNC_NV = 0x90B7,
GL_PATH_STENCIL_REF_NV = 0x90B8,
GL_PATH_STENCIL_VALUE_MASK_NV = 0x90B9,
GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV = 0x90BD,
GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV = 0x90BE,
GL_PATH_COVER_DEPTH_FUNC_NV = 0x90BF;
/**
* Accepted as a bit within the <metricQueryMask> parameter of
* GetPathMetricRangeNV or GetPathMetricsNV:
*/
int GL_GLYPH_WIDTH_BIT_NV = 0x01, // per-glyph metrics
GL_GLYPH_HEIGHT_BIT_NV = 0x02,
GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV = 0x04,
GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV = 0x08,
GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV = 0x10,
GL_GLYPH_VERTICAL_BEARING_X_BIT_NV = 0x20,
GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV = 0x40,
GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV = 0x80,
GL_GLYPH_HAS_KERNING_NV = 0x100,
GL_FONT_X_MIN_BOUNDS_NV = 0x00010000, // per-font face metrics
GL_FONT_Y_MIN_BOUNDS_NV = 0x00020000,
GL_FONT_X_MAX_BOUNDS_NV = 0x00040000,
GL_FONT_Y_MAX_BOUNDS_NV = 0x00080000,
GL_FONT_UNITS_PER_EM_NV = 0x00100000,
GL_FONT_ASCENDER_NV = 0x00200000,
GL_FONT_DESCENDER_NV = 0x00400000,
GL_FONT_HEIGHT_NV = 0x00800000,
GL_FONT_MAX_ADVANCE_WIDTH_NV = 0x01000000,
GL_FONT_MAX_ADVANCE_HEIGHT_NV = 0x02000000,
GL_FONT_UNDERLINE_POSITION_NV = 0x04000000,
GL_FONT_UNDERLINE_THICKNESS_NV = 0x08000000,
GL_FONT_HAS_KERNING_NV = 0x10000000;
/** Accepted by the <pathListMode> parameter of GetPathSpacingNV: */
int GL_ACCUM_ADJACENT_PAIRS_NV = 0x90AD,
GL_ADJACENT_PAIRS_NV = 0x90AE,
GL_FIRST_TO_REST_NV = 0x90AF;
/**
* Accepted by the <pname> parameter of GetPathColorGenivNV,
* GetPathColorGenfvNV, GetPathTexGenivNV and GetPathTexGenfvNV:
*/
int GL_PATH_GEN_MODE_NV = 0x90B0,
GL_PATH_GEN_COEFF_NV = 0x90B1,
GL_PATH_GEN_COLOR_FORMAT_NV = 0x90B2,
GL_PATH_GEN_COMPONENTS_NV = 0x90B3;
void glPathCommandsNV(@GLuint int path,
@AutoSize("commands") @GLsizei int numCommands, @Const @GLubyte ByteBuffer commands,
@AutoSize("coords") @GLsizei int numCoords, @GLenum int coordType,
@Const @GLvoid ByteBuffer coords);
void glPathCoordsNV(@GLuint int path,
@AutoSize("coords") @GLsizei int numCoords, @GLenum int coordType,
@Const @GLvoid ByteBuffer coords);
void glPathSubCommandsNV(@GLuint int path,
@GLsizei int commandStart, @GLsizei int commandsToDelete,
@AutoSize("commands") @GLsizei int numCommands, @Const @GLubyte ByteBuffer commands,
@AutoSize("coords") @GLsizei int numCoords, @GLenum int coordType,
@Const @GLvoid ByteBuffer coords);
void glPathSubCoordsNV(@GLuint int path,
@GLsizei int coordStart,
@AutoSize("coords") @GLsizei int numCoords, @GLenum int coordType,
@Const @GLvoid ByteBuffer coords);
void glPathStringNV(@GLuint int path, @GLenum int format,
@AutoSize("pathString") @GLsizei int length, @Const @GLvoid ByteBuffer pathString);
void glPathGlyphsNV(@GLuint int firstPathName,
@GLenum int fontTarget,
@NullTerminated @Const @GLvoid ByteBuffer fontName,
@GLbitfield int fontStyle,
@AutoSize(value = "charcodes", expression = " / GLChecks.calculateBytesPerCharCode(type)") @GLsizei int numGlyphs, @GLenum int type,
@Const @GLvoid ByteBuffer charcodes,
@GLenum int handleMissingGlyphs,
@GLuint int pathParameterTemplate,
float emScale);
void glPathGlyphRangeNV(@GLuint int firstPathName,
@GLenum int fontTarget,
@NullTerminated @Const @GLvoid ByteBuffer fontName,
@GLbitfield int fontStyle,
@GLuint int firstGlyph,
@GLsizei int numGlyphs,
@GLenum int handleMissingGlyphs,
@GLuint int pathParameterTemplate,
float emScale);
void glWeightPathsNV(@GLuint int resultPath,
@AutoSize("paths") @GLsizei int numPaths,
@Const @GLuint IntBuffer paths, @Check("paths.remaining()") @Const FloatBuffer weights);
void glCopyPathNV(@GLuint int resultPath, @GLuint int srcPath);
void glInterpolatePathsNV(@GLuint int resultPath,
@GLuint int pathA, @GLuint int pathB,
float weight);
void glTransformPathNV(@GLuint int resultPath,
@GLuint int srcPath,
@GLenum int transformType,
@Check(value = "GLChecks.calculateTransformPathValues(transformType)", canBeNull = true) @Const FloatBuffer transformValues);
@StripPostfix("value")
void glPathParameterivNV(@GLuint int path, @GLenum int pname, @Check("4") @Const IntBuffer value);
void glPathParameteriNV(@GLuint int path, @GLenum int pname, int value);
@StripPostfix("value")
void glPathParameterfvNV(@GLuint int path, @GLenum int pname, @Check("4") @Const FloatBuffer value);
void glPathParameterfNV(@GLuint int path, @GLenum int pname, float value);
void glPathDashArrayNV(@GLuint int path,
@AutoSize("dashArray") @GLsizei int dashCount, @Const FloatBuffer dashArray);
// PATH NAME MANAGEMENT
@GLuint
int glGenPathsNV(@GLsizei int range);
void glDeletePathsNV(@GLuint int path, @GLsizei int range);
boolean glIsPathNV(@GLuint int path);
// PATH STENCILING
void glPathStencilFuncNV(@GLenum int func, int ref, @GLuint int mask);
void glPathStencilDepthOffsetNV(float factor, int units);
void glStencilFillPathNV(@GLuint int path,
@GLenum int fillMode, @GLuint int mask);
void glStencilStrokePathNV(@GLuint int path,
int reference, @GLuint int mask);
void glStencilFillPathInstancedNV(@AutoSize(value="paths", expression = " / GLChecks.calculateBytesPerPathName(pathNameType)") @GLsizei int numPaths,
@GLenum int pathNameType, @Const @GLvoid ByteBuffer paths,
@GLuint int pathBase,
@GLenum int fillMode, @GLuint int mask,
@GLenum int transformType,
@Check(value = "GLChecks.calculateTransformPathValues(transformType)", canBeNull = true) @Const FloatBuffer transformValues);
void glStencilStrokePathInstancedNV(@AutoSize(value = "paths", expression = " / GLChecks.calculateBytesPerPathName(pathNameType)") @GLsizei int numPaths,
@GLenum int pathNameType, @Const @GLvoid ByteBuffer paths,
@GLuint int pathBase,
int reference, @GLuint int mask,
@GLenum int transformType,
@Check(value = "GLChecks.calculateTransformPathValues(transformType)", canBeNull = true) @Const FloatBuffer transformValues);
// PATH COVERING
void glPathCoverDepthFuncNV(@GLenum int zfunc);
void glPathColorGenNV(@GLenum int color,
@GLenum int genMode,
@GLenum int colorFormat, @Check(value = "GLChecks.calculatePathColorGenCoeffsCount(genMode, colorFormat)", canBeNull = true) @Const FloatBuffer coeffs);
void glPathTexGenNV(@GLenum int texCoordSet,
@GLenum int genMode,
@AutoSize(value="coeffs", expression="GLChecks.calculatePathTextGenCoeffsPerComponent(coeffs, genMode)", useExpression = true, canBeNull = true) int components, @Check(canBeNull = true) @Const FloatBuffer coeffs);
void glPathFogGenNV(@GLenum int genMode);
void glCoverFillPathNV(@GLuint int path, @GLenum int coverMode);
void glCoverStrokePathNV(@GLuint int name, @GLenum int coverMode);
void glCoverFillPathInstancedNV(@AutoSize(value = "paths", expression = " / GLChecks.calculateBytesPerPathName(pathNameType)") @GLsizei int numPaths,
@GLenum int pathNameType, @Const @GLvoid ByteBuffer paths,
@GLuint int pathBase,
@GLenum int coverMode,
@GLenum int transformType,
@Check(value = "GLChecks.calculateTransformPathValues(transformType)", canBeNull = true) @Const FloatBuffer transformValues);
void glCoverStrokePathInstancedNV(@AutoSize(value = "paths", expression = " / GLChecks.calculateBytesPerPathName(pathNameType)") @GLsizei int numPaths,
@GLenum int pathNameType, @Const @GLvoid ByteBuffer paths,
@GLuint int pathBase,
@GLenum int coverMode,
@GLenum int transformType,
@Check(value = "GLChecks.calculateTransformPathValues(transformType)", canBeNull = true) @Const FloatBuffer transformValues);
// PATH QUERIES
@StripPostfix("value")
void glGetPathParameterivNV(@GLuint int name, @GLenum int param, @Check("4") @OutParameter IntBuffer value);
@Alternate("glGetPathParameterivNV")
@GLreturn("value")
@StripPostfix(value = "value", hasPostfix = false)
void glGetPathParameterivNV2(@GLuint int name, @GLenum int param, @OutParameter IntBuffer value);
void glGetPathParameterfvNV(@GLuint int name, @GLenum int param, @Check("4") @OutParameter FloatBuffer value);
@Alternate("glGetPathParameterfvNV")
@GLreturn("value")
@StripPostfix(value = "value", hasPostfix = false)
void glGetPathParameterfvNV2(@GLuint int name, @GLenum int param, @OutParameter FloatBuffer value);
void glGetPathCommandsNV(@GLuint int name, @Check @OutParameter @GLubyte ByteBuffer commands);
void glGetPathCoordsNV(@GLuint int name, @Check @OutParameter FloatBuffer coords);
void glGetPathDashArrayNV(@GLuint int name, @Check @OutParameter FloatBuffer dashArray);
void glGetPathMetricsNV(@GLbitfield int metricQueryMask,
@AutoSize(value = "paths", expression = " / GLChecks.calculateBytesPerPathName(pathNameType)") @GLsizei int numPaths,
@GLenum int pathNameType, @Const @GLvoid ByteBuffer paths,
@GLuint int pathBase,
@GLsizei int stride,
@Check("GLChecks.calculateMetricsSize(metricQueryMask, stride)") @OutParameter FloatBuffer metrics);
void glGetPathMetricRangeNV(@GLbitfield int metricQueryMask,
@GLuint int fistPathName,
@GLsizei int numPaths,
@GLsizei int stride,
@Check("GLChecks.calculateMetricsSize(metricQueryMask, stride)") @OutParameter FloatBuffer metrics);
@Code("\t\tint numPaths = paths.remaining() / GLChecks.calculateBytesPerPathName(pathNameType);")
void glGetPathSpacingNV(@GLenum int pathListMode,
@AutoSize(value = "paths", expression = "numPaths", useExpression = true) @GLsizei int numPaths,
@GLenum int pathNameType, @Const @GLvoid ByteBuffer paths,
@GLuint int pathBase,
float advanceScale,
float kerningScale,
@GLenum int transformType,
@Check("numPaths - 1") @OutParameter FloatBuffer returnedSpacing);
@StripPostfix("value")
void glGetPathColorGenivNV(@GLenum int color, @GLenum int pname, @Check("16") @OutParameter IntBuffer value);
@Alternate("glGetPathColorGenivNV")
@GLreturn("value")
@StripPostfix(value = "value", hasPostfix = false)
void glGetPathColorGenivNV2(@GLenum int color, @GLenum int pname, @OutParameter IntBuffer value);
@StripPostfix("value")
void glGetPathColorGenfvNV(@GLenum int color, @GLenum int pname, @Check("16") @OutParameter FloatBuffer value);
@Alternate("glGetPathColorGenfvNV")
@GLreturn("value")
@StripPostfix(value = "value", hasPostfix = false)
void glGetPathColorGenfvNV2(@GLenum int color, @GLenum int pname, @OutParameter FloatBuffer value);
@StripPostfix("value")
void glGetPathTexGenivNV(@GLenum int texCoordSet, @GLenum int pname, @Check("16") @OutParameter IntBuffer value);
@Alternate("glGetPathTexGenivNV")
@GLreturn("value")
@StripPostfix(value = "value", hasPostfix = false)
void glGetPathTexGenivNV2(@GLenum int texCoordSet, @GLenum int pname, @OutParameter IntBuffer value);
@StripPostfix("value")
void glGetPathTexGenfvNV(@GLenum int texCoordSet, @GLenum int pname, @Check("16") @OutParameter FloatBuffer value);
@Alternate("glGetPathTexGenfvNV")
@GLreturn("value")
@StripPostfix(value = "value", hasPostfix = false)
void glGetPathTexGenfvNV2(@GLenum int texCoordSet, @GLenum int pname, @OutParameter FloatBuffer value);
boolean glIsPointInFillPathNV(@GLuint int path,
@GLuint int mask, float x, float y);
boolean glIsPointInStrokePathNV(@GLuint int path,
float x, float y);
float glGetPathLengthNV(@GLuint int path,
@GLsizei int startSegment, @GLsizei int numSegments);
boolean glPointAlongPathNV(@GLuint int path,
@GLsizei int startSegment, @GLsizei int numSegments,
float distance,
@Check(value = "1", canBeNull = true) @OutParameter FloatBuffer x,
@Check(value = "1", canBeNull = true) @OutParameter FloatBuffer y,
@Check(value = "1", canBeNull = true) @OutParameter FloatBuffer tangentX,
@Check(value = "1", canBeNull = true) @OutParameter FloatBuffer tangentY);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_shader3.java 0000644 0001750 0001750 00000004640 12702226520 023324 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_shader3 {
int GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850;
int GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851;
int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852;
int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853;
int GL_OFFSET_HILO_TEXTURE_2D_NV = 0x8854;
int GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855;
int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856;
int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857;
int GL_DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858;
int GL_DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859;
int GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A;
int GL_DOT_PRODUCT_PASS_THROUGH_NV = 0x885B;
int GL_DOT_PRODUCT_TEXTURE_1D_NV = 0x885C;
int GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D;
int GL_HILO8_NV = 0x885E;
int GL_SIGNED_HILO8_NV = 0x885F;
int GL_FORCE_BLUE_TO_ONE_NV = 0x8860;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_draw_buffers_blend.java 0000644 0001750 0001750 00000004234 12702226520 024105 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface AMD_draw_buffers_blend {
void glBlendFuncIndexedAMD(@GLuint int buf, @GLenum int src, @GLenum int dst);
void glBlendFuncSeparateIndexedAMD(@GLuint int buf, @GLenum int srcRGB, @GLenum int dstRGB,
@GLenum int srcAlpha, @GLenum int dstAlpha);
void glBlendEquationIndexedAMD(@GLuint int buf, @GLenum int mode);
void glBlendEquationSeparateIndexedAMD(@GLuint int buf, @GLenum int modeRGB,
@GLenum int modeAlpha);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_row_bytes.java 0000644 0001750 0001750 00000003454 12702226520 022550 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_row_bytes {
/**
* Accepted by the <pname> parameter of PixelStorei and the <pname>
* parameter of GetIntegerv:
*/
int GL_PACK_ROW_BYTES_APPLE = 0x8A15;
int GL_UNPACK_ROW_BYTES_APPLE = 0x8A16;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_gpu_program4.java 0000644 0001750 0001750 00000011231 12702226520 022613 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface NV_gpu_program4 {
/** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906;
int GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907;
int GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908;
int GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909;
int GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5;
int GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6;
// ---
void glProgramLocalParameterI4iNV(@GLenum int target, @GLuint int index, int x, int y, int z, int w);
@StripPostfix("params")
void glProgramLocalParameterI4ivNV(@GLenum int target, @GLuint int index, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glProgramLocalParametersI4ivNV(@GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const IntBuffer params);
// ---
void glProgramLocalParameterI4uiNV(@GLenum int target, @GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
@StripPostfix("params")
void glProgramLocalParameterI4uivNV(@GLenum int target, @GLuint int index, @Check("4") @Const @GLuint IntBuffer params);
@StripPostfix("params")
void glProgramLocalParametersI4uivNV(@GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer params);
// ---
void glProgramEnvParameterI4iNV(@GLenum int target, @GLuint int index, int x, int y, int z, int w);
@StripPostfix("params")
void glProgramEnvParameterI4ivNV(@GLenum int target, @GLuint int index, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glProgramEnvParametersI4ivNV(@GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const IntBuffer params);
// ---
void glProgramEnvParameterI4uiNV(@GLenum int target, @GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
@StripPostfix("params")
void glProgramEnvParameterI4uivNV(@GLenum int target, @GLuint int index, @Check("4") @Const @GLuint IntBuffer params);
@StripPostfix("params")
void glProgramEnvParametersI4uivNV(@GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer params);
// ---
@StripPostfix("params")
void glGetProgramLocalParameterIivNV(@GLenum int target, @GLuint int index, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("params")
void glGetProgramLocalParameterIuivNV(@GLenum int target, @GLuint int index, @OutParameter @Check("4") @GLuint IntBuffer params);
// ---
@StripPostfix("params")
void glGetProgramEnvParameterIivNV(@GLenum int target, @GLuint int index, @OutParameter @Check("4")IntBuffer params);
@StripPostfix("params")
void glGetProgramEnvParameterIuivNV(@GLenum int target, @GLuint int index, @OutParameter @Check("4") @GLuint IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_mirror_clamp.java 0000644 0001750 0001750 00000003760 12702226520 024600 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_mirror_clamp {
/**
* Accepted by the <param> parameter of TexParameteri and TexParameterf,
* and by the <params> parameter of TexParameteriv and TexParameterfv,
* when their <pname> parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T,
* or TEXTURE_WRAP_R:
*/
int GL_MIRROR_CLAMP_EXT = 0x8742;
int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743;
int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_rg.java 0000644 0001750 0001750 00000004650 12702226520 022465 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_rg {
/**
* Accepted by the <internalFormat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, and CopyTexImage2D:
*/
int GL_R8 = 0x8229;
int GL_R16 = 0x822A;
int GL_RG8 = 0x822B;
int GL_RG16 = 0x822C;
int GL_R16F = 0x822D;
int GL_R32F = 0x822E;
int GL_RG16F = 0x822F;
int GL_RG32F = 0x8230;
int GL_R8I = 0x8231;
int GL_R8UI = 0x8232;
int GL_R16I = 0x8233;
int GL_R16UI = 0x8234;
int GL_R32I = 0x8235;
int GL_R32UI = 0x8236;
int GL_RG8I = 0x8237;
int GL_RG8UI = 0x8238;
int GL_RG16I = 0x8239;
int GL_RG16UI = 0x823A;
int GL_RG32I = 0x823B;
int GL_RG32UI = 0x823C;
/**
* Accepted by the <format> parameter of TexImage3D, TexImage2D,
* TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D,
* DrawPixels and ReadPixels:
*/
int GL_RG = 0x8227;
int GL_RG_INTEGER = 0x8228;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_cl_event.java 0000644 0001750 0001750 00000004521 12702226520 022071 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.opencl.CLContext;
import org.lwjgl.opencl.CLEvent;
import org.lwjgl.util.generator.Extension;
import org.lwjgl.util.generator.Imports;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.opengl.GLbitfield;
@Imports("org.lwjgl.opencl.*")
@Extension(postfix = "ARB", className = "ARBCLEvent")
public interface ARB_cl_event {
/** Returned in <values> for GetSynciv <pname> OBJECT_TYPE. */
int GL_SYNC_CL_EVENT_ARB = 0x8240;
/** Returned in <values> for GetSynciv <pname> SYNC_CONDITION. */
int GL_SYNC_CL_EVENT_COMPLETE_ARB = 0x8241;
@PointerWrapper("GLsync")
GLSync glCreateSyncFromCLeventARB(@PointerWrapper("cl_context") CLContext context, @PointerWrapper("cl_event") CLEvent event, @GLbitfield int flags);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_cube_map_array.java 0000644 0001750 0001750 00000005242 12702226520 025024 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_cube_map_array {
/**
* Accepted by the <target> parameter of TexParameteri, TexParameteriv,
* TexParameterf, TexParameterfv, BindTexture, and GenerateMipmap:
*
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CompressedTeximage3D, CompressedTexSubImage3D and CopyTexSubImage3D:
*
* Accepted by the <tex> parameter of GetTexImage:
*/
int GL_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv and GetFloatv:
*/
int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A;
/**
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CompressedTeximage3D, CompressedTexSubImage3D and CopyTexSubImage3D:
*/
int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C;
int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D;
int GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E;
int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_sample_positions.java 0000644 0001750 0001750 00000004106 12702226520 023656 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.StripPostfix;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.FloatBuffer;
public interface AMD_sample_positions {
/** Accepted by the <pname> parameter of GetFloatv: */
int GL_SUBSAMPLE_DISTANCE_AMD = 0x883F;
@StripPostfix("val")
void glSetMultisamplefvAMD(@GLenum int pname, @GLuint int index, @Check("2") @Const FloatBuffer val);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_explicit_attrib_location.java 0000644 0001750 0001750 00000003156 12702226520 025353 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_explicit_attrib_location {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_vertex_shader_layer.java 0000644 0001750 0001750 00000003151 12702226520 024324 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_vertex_shader_layer {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_point_sprite.java 0000644 0001750 0001750 00000004213 12702226520 023007 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_point_sprite {
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the <target> parameter of TexEnvi, TexEnviv,
* TexEnvf, TexEnvfv, GetTexEnviv, and GetTexEnvfv:
*/
int GL_POINT_SPRITE_ARB = 0x8861;
/**
* When the <target> parameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv,
* GetTexEnvfv, or GetTexEnviv is POINT_SPRITE_ARB, then the value of
* <pname> may be:
*/
int GL_COORD_REPLACE_ARB = 0x8862;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_invalidate_subdata.java 0000644 0001750 0001750 00000005467 12702226520 024127 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.*;
import java.nio.IntBuffer;
public interface ARB_invalidate_subdata {
@Reuse("GL43")
void glInvalidateTexSubImage(@GLuint int texture, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
@Reuse("GL43")
void glInvalidateTexImage(@GLuint int texture, int level);
@Reuse("GL43")
void glInvalidateBufferSubData(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length);
@Reuse("GL43")
void glInvalidateBufferData(@GLuint int buffer);
@Reuse("GL43")
void glInvalidateFramebuffer(@GLenum int target,
@AutoSize("attachments") @GLsizei int numAttachments,
@Const @GLenum IntBuffer attachments);
@Reuse("GL43")
void glInvalidateSubFramebuffer(@GLenum int target,
@AutoSize("attachments") @GLsizei int numAttachments,
@Const @GLenum IntBuffer attachments,
int x, int y, @GLsizei int width, @GLsizei int height);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_draw_buffers.java 0000644 0001750 0001750 00000005367 12702226520 022765 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.*;
public interface ATI_draw_buffers {
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_DRAW_BUFFERS_ATI = 0x8824;
int GL_DRAW_BUFFER0_ATI = 0x8825;
int GL_DRAW_BUFFER1_ATI = 0x8826;
int GL_DRAW_BUFFER2_ATI = 0x8827;
int GL_DRAW_BUFFER3_ATI = 0x8828;
int GL_DRAW_BUFFER4_ATI = 0x8829;
int GL_DRAW_BUFFER5_ATI = 0x882A;
int GL_DRAW_BUFFER6_ATI = 0x882B;
int GL_DRAW_BUFFER7_ATI = 0x882C;
int GL_DRAW_BUFFER8_ATI = 0x882D;
int GL_DRAW_BUFFER9_ATI = 0x882E;
int GL_DRAW_BUFFER10_ATI = 0x882F;
int GL_DRAW_BUFFER11_ATI = 0x8830;
int GL_DRAW_BUFFER12_ATI = 0x8831;
int GL_DRAW_BUFFER13_ATI = 0x8832;
int GL_DRAW_BUFFER14_ATI = 0x8833;
int GL_DRAW_BUFFER15_ATI = 0x8834;
void glDrawBuffersATI(@AutoSize("buffers") @GLsizei int size, @Const @GLenum IntBuffer buffers);
@Alternate("glDrawBuffersATI")
void glDrawBuffersATI(@Constant("1") @GLsizei int size, @Constant(value = "APIUtil.getInt(caps, buffer)", keepParam = true) int buffer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_fence.java 0000644 0001750 0001750 00000005557 12702226520 021621 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface APPLE_fence {
/** Accepted by the <object> parameter of TestObjectAPPLE and FinishObjectAPPLE: */
int GL_DRAW_PIXELS_APPLE = 0x8A0A;
int GL_FENCE_APPLE = 0x8A0B;
void glGenFencesAPPLE(@AutoSize("fences") @GLsizei int n, @OutParameter @GLuint IntBuffer fences);
@Alternate("glGenFencesAPPLE")
@GLreturn("fences")
void glGenFencesAPPLE2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer fences);
void glDeleteFencesAPPLE(@AutoSize("fences") @GLsizei int n, @Const @GLuint IntBuffer fences);
@Alternate("glDeleteFencesAPPLE")
void glDeleteFencesAPPLE(@Constant("1") @GLsizei int n, @Const @GLuint @Constant(value = "APIUtil.getInt(caps, fence)", keepParam = true) int fence);
void glSetFenceAPPLE(@GLuint int fence);
boolean glIsFenceAPPLE(@GLuint int fence);
boolean glTestFenceAPPLE(@GLuint int fence);
void glFinishFenceAPPLE(@GLuint int fence);
boolean glTestObjectAPPLE(@GLenum int object, @GLuint int name);
void glFinishObjectAPPLE(@GLenum int object, int name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_sRGB_decode.java 0000644 0001750 0001750 00000004425 12702226520 024211 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_sRGB_decode {
/**
* Accepted by the <pname> parameter of TexParameterf, TexParameteri,
* GetTexParameterfv, GetTexParameteriv, SamplerParameteri,
* SamplerParameterf, SamplerParameteriv, SamplerParameterfv,
* SamplerParameterIiv, SamplerParameterIuiv, GetSamplerParameteriv,
* GetSamplerParameterfv, GetSamplerParameterIiv, and GetSamplerParameterIuiv:
*/
int GL_TEXTURE_SRGB_DECODE_EXT = 0x8A48;
/**
* Accepted by the <enum> parameter of TexParameterf, TexParameteri,
* SamplerParameteri, SamplerParameterf, SamplerParameteriv, SamplerParameterfv,
* SamplerParameterIiv and SamplerParameterIuiv:
*/
int GL_DECODE_EXT = 0x8A49,
GL_SKIP_DECODE_EXT = 0x8A4A;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_framebuffer_sRGB.java 0000644 0001750 0001750 00000004655 12702226520 023443 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_framebuffer_sRGB {
/**
* Accepted by the <attribList> parameter of glXChooseVisual, and by
* the <attrib> parameter of glXGetConfig:
*/
int GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20B2;
/**
* Accepted by the <piAttributes> parameter of
* wglGetPixelFormatAttribivEXT, wglGetPixelFormatAttribfvEXT, and
* the <piAttribIList> and <pfAttribIList> of wglChoosePixelFormatEXT:
*/
int WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20A9;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FRAMEBUFFER_SRGB_ARB = 0x8DB9;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x8DBA;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_subroutine.java 0000644 0001750 0001750 00000014214 12702226520 024017 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_shader_subroutine {
/** Accepted by the <pname> parameter of GetProgramStageiv: */
int GL_ACTIVE_SUBROUTINES = 0x8DE5;
int GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6;
int GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47;
int GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48;
int GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, and GetInteger64v:
*/
int GL_MAX_SUBROUTINES = 0x8DE7;
int GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8;
/** Accepted by the <pname> parameter of GetActiveSubroutineUniformiv: */
int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A;
int GL_COMPATIBLE_SUBROUTINES = 0x8E4B;
@Reuse("GL40")
int glGetSubroutineUniformLocation(@GLuint int program, @GLenum int shadertype, @Const @NullTerminated ByteBuffer name);
@Alternate("glGetSubroutineUniformLocation")
@Reuse("GL40")
int glGetSubroutineUniformLocation(@GLuint int program, @GLenum int shadertype, @NullTerminated CharSequence name);
@Reuse("GL40")
@GLuint
int glGetSubroutineIndex(@GLuint int program, @GLenum int shadertype, @Const @NullTerminated ByteBuffer name);
@Alternate("glGetSubroutineIndex")
@Reuse("GL40")
int glGetSubroutineIndex(@GLuint int program, @GLenum int shadertype, @NullTerminated CharSequence name);
@Reuse("GL40")
@StripPostfix("values")
void glGetActiveSubroutineUniformiv(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLenum int pname,
@Check("1") @OutParameter IntBuffer values);
@Reuse("GL40")
@Alternate("glGetActiveSubroutineUniformiv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetActiveSubroutineUniformiv2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLenum int pname,
@OutParameter IntBuffer values);
@Reuse("GL40")
void glGetActiveSubroutineUniformName(@GLuint int program, @GLenum int shadertype, @GLuint int index, @AutoSize("name") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter ByteBuffer name);
@Reuse("GL40")
@Alternate("glGetActiveSubroutineUniformName")
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveSubroutineUniformName2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLsizei int bufsize,
@OutParameter @Constant("MemoryUtil.getAddress0(name_length)") @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@Reuse("GL40")
void glGetActiveSubroutineName(@GLuint int program, @GLenum int shadertype, @GLuint int index, @AutoSize("name") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter ByteBuffer name);
@Reuse("GL40")
@Alternate("glGetActiveSubroutineName")
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveSubroutineName2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLsizei int bufsize,
@OutParameter @Constant("MemoryUtil.getAddress0(name_length)") @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@Reuse("GL40")
@StripPostfix("indices")
void glUniformSubroutinesuiv(@GLenum int shadertype, @AutoSize("indices") @GLsizei int count, @Const @GLuint IntBuffer indices);
@Reuse("GL40")
@StripPostfix("params")
void glGetUniformSubroutineuiv(@GLenum int shadertype, int location, @Check("1") @OutParameter @GLuint IntBuffer params);
@Reuse("GL40")
@Alternate("glGetUniformSubroutineuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetUniformSubroutineuiv2(@GLenum int shadertype, int location, @OutParameter @GLuint IntBuffer params);
@Reuse("GL40")
@StripPostfix("values")
void glGetProgramStageiv(@GLuint int program, @GLenum int shadertype, @GLenum int pname, @Check("1") @OutParameter IntBuffer values);
@Reuse("GL40")
@Alternate("glGetProgramStageiv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetProgramStageiv2(@GLuint int program, @GLenum int shadertype, @GLenum int pname, @OutParameter IntBuffer values);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_robustness_isolation.java 0000644 0001750 0001750 00000003152 12702226520 024561 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_robustness_isolation {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_provoking_vertex.java 0000644 0001750 0001750 00000004101 12702226520 023733 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface EXT_provoking_vertex {
/** Accepted by the <mode> parameter of ProvokingVertexEXT: */
int GL_FIRST_VERTEX_CONVENTION_EXT = 0x8E4D;
int GL_LAST_VERTEX_CONVENTION_EXT = 0x8E4E;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PROVOKING_VERTEX_EXT = 0x8E4F;
int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C;
void glProvokingVertexEXT(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_blend_func_extended.java 0000644 0001750 0001750 00000005676 12702226520 024265 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLchar;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.ByteBuffer;
public interface ARB_blend_func_extended {
/**
* Accepted by the <src> and <dst> parameters of BlendFunc and
* BlendFunci, and by the <srcRGB>, <dstRGB>, <srcAlpha> and <dstAlpha>
* parameters of BlendFuncSeparate and BlendFuncSeparatei:
*/
int GL_SRC1_COLOR = 0x88F9;
int GL_SRC1_ALPHA = GL15.GL_SRC1_ALPHA;
int GL_ONE_MINUS_SRC1_COLOR = 0x88FA;
int GL_ONE_MINUS_SRC1_ALPHA = 0x88FB;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
* and GetDoublev:
*/
int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC;
@Reuse("GL33")
void glBindFragDataLocationIndexed(@GLuint int program, @GLuint int colorNumber, @GLuint int index, @NullTerminated @Const @GLchar ByteBuffer name);
@Reuse("GL33")
@Alternate("glBindFragDataLocationIndexed")
void glBindFragDataLocationIndexed(@GLuint int program, @GLuint int colorNumber, @GLuint int index, @NullTerminated CharSequence name);
@Reuse("GL33")
int glGetFragDataIndex(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Reuse("GL33")
@Alternate("glGetFragDataIndex")
int glGetFragDataIndex(@GLuint int program, @NullTerminated CharSequence name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_shader_atomic_counter_ops.java 0000644 0001750 0001750 00000003160 12702226520 025507 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_shader_atomic_counter_ops {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_texture_env_combine3.java 0000644 0001750 0001750 00000003633 12702226520 024435 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ATI_texture_env_combine3 {
/**
* Accepted by the <params> parameter of TexEnvf, TexEnvi, TexEnvfv,
* and TexEnviv when the <pname> parameter value is COMBINE_RGB_ARB
* or COMBINE_ALPHA_ARB
*/
int GL_MODULATE_ADD_ATI = 0x8744;
int GL_MODULATE_SIGNED_ADD_ATI = 0x8745;
int GL_MODULATE_SUBTRACT_ATI = 0x8746;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_transform_feedback2.java 0000644 0001750 0001750 00000006107 12702226520 024114 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface NV_transform_feedback2 {
/** Accepted by the <target> parameter of BindTransformFeedbackNV: */
int GL_TRANSFORM_FEEDBACK_NV = 0x8E22;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23;
int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24;
int GL_TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25;
void glBindTransformFeedbackNV(@GLenum int target, @GLuint int id);
void glDeleteTransformFeedbacksNV(@AutoSize("ids") @GLsizei int n, @Const @GLuint IntBuffer ids);
@Alternate("glDeleteTransformFeedbacksNV")
void glDeleteTransformFeedbacksNV(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, id)", keepParam = true) int id);
void glGenTransformFeedbacksNV(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenTransformFeedbacksNV")
@GLreturn("ids")
void glGenTransformFeedbacksNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
boolean glIsTransformFeedbackNV(@GLuint int id);
void glPauseTransformFeedbackNV();
void glResumeTransformFeedbackNV();
void glDrawTransformFeedbackNV(@GLenum int mode, @GLuint int id);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_packed_pixels.java 0000644 0001750 0001750 00000003501 12702226520 023136 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_packed_pixels {
int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032;
int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033;
int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034;
int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035;
int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_float_pixels.java 0000644 0001750 0001750 00000004673 12702226520 023230 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_float_pixels {
/**
* Accepted by the parameters of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and
* GetTexImage:
*/
int GL_HALF_APPLE = 0x140B;
/** Accepted by the GetBooleanv: */
int GL_COLOR_FLOAT_APPLE = 0x8A0F;
/**
* Accepted by the parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RGBA_FLOAT32_APPLE = 0x8814;
int GL_RGB_FLOAT32_APPLE = 0x8815;
int GL_ALPHA_FLOAT32_APPLE = 0x8816;
int GL_INTENSITY_FLOAT32_APPLE = 0x8817;
int GL_LUMINANCE_FLOAT32_APPLE = 0x8818;
int GL_LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819;
int GL_RGBA_FLOAT16_APPLE = 0x881A;
int GL_RGB_FLOAT16_APPLE = 0x881B;
int GL_ALPHA_FLOAT16_APPLE = 0x881C;
int GL_INTENSITY_FLOAT16_APPLE = 0x881D;
int GL_LUMINANCE_FLOAT16_APPLE = 0x881E;
int GL_LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_array_range2.java 0000644 0001750 0001750 00000003237 12702226520 024165 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_vertex_array_range2 {
int GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_abgr.java 0000644 0001750 0001750 00000003166 12702226520 021245 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_abgr {
int GL_ABGR_EXT = 0x8000;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_primitive_restart.java 0000644 0001750 0001750 00000004326 12702226520 023770 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLuint;
@ForceInit
public interface NV_primitive_restart {
/**
* Accepted by the <array> parameter of EnableClientState and
* DisableClientState, by the <cap> parameter of IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_PRIMITIVE_RESTART_NV = 0x8558;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559;
void glPrimitiveRestartNV();
void glPrimitiveRestartIndexNV(@GLuint int index);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_type_2_10_10_10_rev.java 0000644 0001750 0001750 00000016123 12702226520 025046 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
@Extension(postfix = "", className = "ARBVertexType2_10_10_10_REV")
public interface ARB_vertex_type_2_10_10_10_rev {
/**
* Accepted by the <type> parameter of VertexAttribPointer, VertexPointer,
* NormalPointer, ColorPointer, SecondaryColorPointer, TexCoordPointer,
* VertexAttribP{1234}ui, VertexP*, TexCoordP*, MultiTexCoordP*, NormalP3ui,
* ColorP*, SecondaryColorP* and VertexAttribP*
*/
int GL_UNSIGNED_INT_2_10_10_10_REV = GL12.GL_UNSIGNED_INT_2_10_10_10_REV;
int GL_INT_2_10_10_10_REV = 0x8D9F;
@Reuse("GL33")
@NoErrorCheck
void glVertexP2ui(@GLenum int type, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
void glVertexP3ui(@GLenum int type, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
void glVertexP4ui(@GLenum int type, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexP2uiv(@GLenum int type, @Check("2") @Const @GLuint IntBuffer value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexP4uiv(@GLenum int type, @Check("4") @Const @GLuint IntBuffer value);
@Reuse("GL33")
@NoErrorCheck
void glTexCoordP1ui(@GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
void glTexCoordP2ui(@GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
void glTexCoordP3ui(@GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
void glTexCoordP4ui(@GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glTexCoordP1uiv(@GLenum int type, @Check("1") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glTexCoordP2uiv(@GLenum int type, @Check("2") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glTexCoordP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glTexCoordP4uiv(@GLenum int type, @Check("4") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
void glMultiTexCoordP1ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
void glMultiTexCoordP2ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
void glMultiTexCoordP3ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
void glMultiTexCoordP4ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glMultiTexCoordP1uiv(@GLenum int texture, @GLenum int type, @Check("1") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glMultiTexCoordP2uiv(@GLenum int texture, @GLenum int type, @Check("2") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glMultiTexCoordP3uiv(@GLenum int texture, @GLenum int type, @Check("3") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glMultiTexCoordP4uiv(@GLenum int texture, @GLenum int type, @Check("4") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
void glNormalP3ui(@GLenum int type, @GLuint int coords);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("coords")
void glNormalP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer coords);
@Reuse("GL33")
@NoErrorCheck
void glColorP3ui(@GLenum int type, @GLuint int color);
@Reuse("GL33")
@NoErrorCheck
void glColorP4ui(@GLenum int type, @GLuint int color);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("color")
void glColorP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer color);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("color")
void glColorP4uiv(@GLenum int type, @Check("4") @Const @GLuint IntBuffer color);
@Reuse("GL33")
@NoErrorCheck
void glSecondaryColorP3ui(@GLenum int type, @GLuint int color);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("color")
void glSecondaryColorP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer color);
@Reuse("GL33")
@NoErrorCheck
void glVertexAttribP1ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
void glVertexAttribP2ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
void glVertexAttribP3ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
void glVertexAttribP4ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexAttribP1uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("1") @Const @GLuint IntBuffer value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexAttribP2uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("2") @Const @GLuint IntBuffer value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexAttribP3uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("3") @Const @GLuint IntBuffer value);
@Reuse("GL33")
@NoErrorCheck
@StripPostfix("value")
void glVertexAttribP4uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("4") @Const @GLuint IntBuffer value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_text_fragment_shader.java 0000644 0001750 0001750 00000004165 12702226520 024504 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ATI_text_fragment_shader {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev, and by the <target> parameter of ProgramStringARB,
* BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB,
* ProgramLocalParameter4{d,dv,f,fv}ARB,
* GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB,
* GetProgramivARB, GetProgramfvATI, and GetProgramStringARB.
*/
int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_present_video.java 0000644 0001750 0001750 00000011701 12702226520 023055 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.OutParameter;
import org.lwjgl.util.generator.StripPostfix;
import org.lwjgl.util.generator.opengl.*;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
public interface NV_present_video {
/**
* Accepted by the <type> parameter of PresentFrameKeyedNV and
* PresentFrameDualFillNV:
*/
int GL_FRAME_NV = 0x8E26,
FIELDS_NV = 0x8E27;
/**
* Accepted by the <pname> parameter of GetVideoivNV, GetVideouivNV,
* GetVideoi64vNV, GetVideoui64vNV:
*/
int GL_CURRENT_TIME_NV = 0x8E28,
GL_NUM_FILL_STREAMS_NV = 0x8E29;
/** Accepted by the <target> parameter of GetQueryiv: */
int GL_PRESENT_TIME_NV = 0x8E2A,
GL_PRESENT_DURATION_NV = 0x8E2B;
/** Accepted by the <attribute> parameter of NVPresentVideoUtil.glQueryContextNV: */
int GL_NUM_VIDEO_SLOTS_NV = 0x20F0; // GLX_NUM_VIDEO_SLOTS_NV & WGL_NUM_VIDEO_SLOTS_NV
void glPresentFrameKeyedNV(@GLuint int video_slot,
@GLuint64EXT long minPresentTime,
@GLuint int beginPresentTimeId,
@GLuint int presentDurationId,
@GLenum int type,
@GLenum int target0, @GLuint int fill0, @GLuint int key0,
@GLenum int target1, @GLuint int fill1, @GLuint int key1);
void glPresentFrameDualFillNV(@GLuint int video_slot,
@GLuint64EXT long minPresentTime,
@GLuint int beginPresentTimeId,
@GLuint int presentDurationId,
@GLenum int type,
@GLenum int target0, @GLuint int fill0,
@GLenum int target1, @GLuint int fill1,
@GLenum int target2, @GLuint int fill2,
@GLenum int target3, @GLuint int fill3);
@StripPostfix("params")
void glGetVideoivNV(@GLuint int video_slot, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetVideoivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoivNV2(@GLuint int video_slot, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetVideouivNV(@GLuint int video_slot, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params);
@Alternate("glGetVideouivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideouivNV2(@GLuint int video_slot, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
@StripPostfix("params")
void glGetVideoi64vNV(@GLuint int video_slot, @GLenum int pname, @OutParameter @Check("1") @GLint64EXT LongBuffer params);
@Alternate("glGetVideoi64vNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoi64vNV2(@GLuint int video_slot, @GLenum int pname, @OutParameter @GLint64EXT LongBuffer params);
@StripPostfix("params")
void glGetVideoui64vNV(@GLuint int video_slot, @GLenum int pname, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
@Alternate("glGetVideoui64vNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoui64vNV2(@GLuint int video_slot, @GLenum int pname, @OutParameter @GLuint64EXT LongBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_pixel_buffer_object.java 0000644 0001750 0001750 00000004155 12702226520 024275 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_pixel_buffer_object extends ARB_buffer_object {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferParameteriv, and GetBufferPointerv:
*/
int GL_PIXEL_PACK_BUFFER_ARB = 0x88EB;
int GL_PIXEL_UNPACK_BUFFER_ARB = 0x88EC;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED;
int GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/HP_occlusion_test.java 0000644 0001750 0001750 00000003710 12702226520 023231 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface HP_occlusion_test {
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, by
* the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev :
*/
int GL_OCCLUSION_TEST_HP = 0x8165;
/**
* Accepted by the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev :
*/
int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_buffer_storage.java 0000644 0001750 0001750 00000007227 12702226520 023275 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
@Dependent
public interface ARB_buffer_storage {
/**
* Accepted in the <flags> parameter of BufferStorage and
* NamedBufferStorageEXT:
*/
int GL_MAP_PERSISTENT_BIT = 0x0040,
GL_MAP_COHERENT_BIT = 0x0080,
GL_DYNAMIC_STORAGE_BIT = 0x0100,
GL_CLIENT_STORAGE_BIT = 0x0200;
/** Accepted by the <pname> parameter of GetBufferParameter{i|i64}v:\ */
int GL_BUFFER_IMMUTABLE_STORAGE = 0x821F,
GL_BUFFER_STORAGE_FLAGS = 0x8220;
/** Accepted by the <barriers> parameter of MemoryBarrier: */
int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000;
@Reuse("GL44")
void glBufferStorage(@GLenum int target,
@AutoSize("data") @GLsizeiptr long size,
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data,
@GLbitfield int flags);
@Reuse("GL44")
@Alternate("glBufferStorage")
void glBufferStorage2(@GLenum int target,
@GLsizeiptr long size,
@Constant("0L") @Const Buffer data,
@GLbitfield int flags);
@Dependent("GL_EXT_direct_state_access")
void glNamedBufferStorageEXT(@GLuint int buffer,
@AutoSize("data") @GLsizeiptr long size,
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data,
@GLbitfield int flags);
@Dependent("GL_EXT_direct_state_access")
@Alternate("glNamedBufferStorageEXT")
void glNamedBufferStorageEXT2(@GLuint int buffer,
@GLsizeiptr long size,
@Constant("0L") @Const Buffer data,
@GLbitfield int flags);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_image_size.java 0000644 0001750 0001750 00000003147 12702226520 023737 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_image_size {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_multi_draw_arrays.java 0000644 0001750 0001750 00000003636 12702226520 024064 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.*;
public interface EXT_multi_draw_arrays {
void glMultiDrawArraysEXT(@GLenum int mode, IntBuffer piFirst, @Check("piFirst.remaining()") @GLsizei IntBuffer piCount, @AutoSize("piFirst") int primcount);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_program.java 0000644 0001750 0001750 00000030721 12702226520 023256 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface NV_vertex_program extends NV_program {
/**
Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
and GetDoublev, and by the <target> parameter of BindProgramNV,
ExecuteProgramNV, GetProgramParameter[df]vNV, GetTrackMatrixivNV,
LoadProgramNV, ProgramParameter[s]4[df][v]NV, and TrackMatrixNV:
*/
int GL_VERTEX_PROGRAM_NV = 0x8620;
/**
Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
and GetDoublev:
*/
int GL_VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642;
int GL_VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643;
/**
Accepted by the <target> parameter of ExecuteProgramNV and
LoadProgramNV:
*/
int GL_VERTEX_STATE_PROGRAM_NV = 0x8621;
/**
Accepted by the <pname> parameter of GetVertexAttrib[dfi]vNV:
*/
int GL_ATTRIB_ARRAY_SIZE_NV = 0x8623;
int GL_ATTRIB_ARRAY_STRIDE_NV = 0x8624;
int GL_ATTRIB_ARRAY_TYPE_NV = 0x8625;
int GL_CURRENT_ATTRIB_NV = 0x8626;
/**
Accepted by the <pname> parameter of GetProgramParameterfvNV
and GetProgramParameterdvNV:
*/
int GL_PROGRAM_PARAMETER_NV = 0x8644;
/**
Accepted by the <pname> parameter of GetVertexAttribPointervNV:
*/
int GL_ATTRIB_ARRAY_POINTER_NV = 0x8645;
/**
Accepted by the <pname> parameter of GetTrackMatrixivNV:
*/
int GL_TRACK_MATRIX_NV = 0x8648;
int GL_TRACK_MATRIX_TRANSFORM_NV = 0x8649;
/**
Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv, and GetDoublev:
*/
int GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E;
int GL_MAX_TRACK_MATRICES_NV = 0x862F;
int GL_CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640;
int GL_CURRENT_MATRIX_NV = 0x8641;
int GL_VERTEX_PROGRAM_BINDING_NV = 0x864A;
/**
Accepted by the <matrix> parameter of TrackMatrixNV:
*/
int GL_MODELVIEW_PROJECTION_NV = 0x8629;
/**
Accepted by the <matrix> parameter of TrackMatrixNV and by the
<mode> parameter of MatrixMode:
*/
int GL_MATRIX0_NV = 0x8630;
int GL_MATRIX1_NV = 0x8631;
int GL_MATRIX2_NV = 0x8632;
int GL_MATRIX3_NV = 0x8633;
int GL_MATRIX4_NV = 0x8634;
int GL_MATRIX5_NV = 0x8635;
int GL_MATRIX6_NV = 0x8636;
int GL_MATRIX7_NV = 0x8637;
/**
Accepted by the <transform> parameter of TrackMatrixNV:
*/
int GL_IDENTITY_NV = 0x862A;
int GL_INVERSE_NV = 0x862B;
int GL_TRANSPOSE_NV = 0x862C;
int GL_INVERSE_TRANSPOSE_NV = 0x862D;
/**
Accepted by the <array> parameter of EnableClientState and
DisableClientState, by the <cap> parameter of IsEnabled, and by
the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
GetDoublev:
*/
int GL_VERTEX_ATTRIB_ARRAY0_NV = 0x8650;
int GL_VERTEX_ATTRIB_ARRAY1_NV = 0x8651;
int GL_VERTEX_ATTRIB_ARRAY2_NV = 0x8652;
int GL_VERTEX_ATTRIB_ARRAY3_NV = 0x8653;
int GL_VERTEX_ATTRIB_ARRAY4_NV = 0x8654;
int GL_VERTEX_ATTRIB_ARRAY5_NV = 0x8655;
int GL_VERTEX_ATTRIB_ARRAY6_NV = 0x8656;
int GL_VERTEX_ATTRIB_ARRAY7_NV = 0x8657;
int GL_VERTEX_ATTRIB_ARRAY8_NV = 0x8658;
int GL_VERTEX_ATTRIB_ARRAY9_NV = 0x8659;
int GL_VERTEX_ATTRIB_ARRAY10_NV = 0x865A;
int GL_VERTEX_ATTRIB_ARRAY11_NV = 0x865B;
int GL_VERTEX_ATTRIB_ARRAY12_NV = 0x865C;
int GL_VERTEX_ATTRIB_ARRAY13_NV = 0x865D;
int GL_VERTEX_ATTRIB_ARRAY14_NV = 0x865E;
int GL_VERTEX_ATTRIB_ARRAY15_NV = 0x865F;
/**
Accepted by the <target> parameter of GetMapdv, GetMapfv, GetMapiv,
Map1d and Map1f and by the <cap> parameter of Enable, Disable, and
IsEnabled, and by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv, and GetDoublev:
*/
int GL_MAP1_VERTEX_ATTRIB0_4_NV = 0x8660;
int GL_MAP1_VERTEX_ATTRIB1_4_NV = 0x8661;
int GL_MAP1_VERTEX_ATTRIB2_4_NV = 0x8662;
int GL_MAP1_VERTEX_ATTRIB3_4_NV = 0x8663;
int GL_MAP1_VERTEX_ATTRIB4_4_NV = 0x8664;
int GL_MAP1_VERTEX_ATTRIB5_4_NV = 0x8665;
int GL_MAP1_VERTEX_ATTRIB6_4_NV = 0x8666;
int GL_MAP1_VERTEX_ATTRIB7_4_NV = 0x8667;
int GL_MAP1_VERTEX_ATTRIB8_4_NV = 0x8668;
int GL_MAP1_VERTEX_ATTRIB9_4_NV = 0x8669;
int GL_MAP1_VERTEX_ATTRIB10_4_NV = 0x866A;
int GL_MAP1_VERTEX_ATTRIB11_4_NV = 0x866B;
int GL_MAP1_VERTEX_ATTRIB12_4_NV = 0x866C;
int GL_MAP1_VERTEX_ATTRIB13_4_NV = 0x866D;
int GL_MAP1_VERTEX_ATTRIB14_4_NV = 0x866E;
int GL_MAP1_VERTEX_ATTRIB15_4_NV = 0x866F;
/**
Accepted by the <target> parameter of GetMapdv, GetMapfv, GetMapiv,
Map2d and Map2f and by the <cap> parameter of Enable, Disable, and
IsEnabled, and by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv, and GetDoublev:
*/
int GL_MAP2_VERTEX_ATTRIB0_4_NV = 0x8670;
int GL_MAP2_VERTEX_ATTRIB1_4_NV = 0x8671;
int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672;
int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673;
int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674;
int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675;
int GL_MAP2_VERTEX_ATTRIB6_4_NV = 0x8676;
int GL_MAP2_VERTEX_ATTRIB7_4_NV = 0x8677;
int GL_MAP2_VERTEX_ATTRIB8_4_NV = 0x8678;
int GL_MAP2_VERTEX_ATTRIB9_4_NV = 0x8679;
int GL_MAP2_VERTEX_ATTRIB10_4_NV = 0x867A;
int GL_MAP2_VERTEX_ATTRIB11_4_NV = 0x867B;
int GL_MAP2_VERTEX_ATTRIB12_4_NV = 0x867C;
int GL_MAP2_VERTEX_ATTRIB13_4_NV = 0x867D;
int GL_MAP2_VERTEX_ATTRIB14_4_NV = 0x867E;
int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867F;
void glExecuteProgramNV(@GLenum int target, @GLuint int id, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glGetProgramParameterfvNV(@GLenum int target, @GLuint int index, @GLenum int parameterName, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetProgramParameterdvNV(@GLenum int target, @GLuint int index, @GLenum int parameterName, @OutParameter @Check("4") DoubleBuffer params);
@StripPostfix("params")
void glGetTrackMatrixivNV(@GLenum int target, @GLuint int address, @GLenum int parameterName, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("params")
void glGetVertexAttribfvNV(@GLuint int index, @GLenum int parameterName, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetVertexAttribdvNV(@GLuint int index, @GLenum int parameterName, @OutParameter @Check("4") DoubleBuffer params);
@StripPostfix("params")
void glGetVertexAttribivNV(@GLuint int index, @GLenum int parameterName, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("pointer")
void glGetVertexAttribPointervNV(@GLuint int index, @GLenum int parameterName, @Result @GLvoid ByteBuffer pointer);
void glProgramParameter4fNV(@GLenum int target, @GLuint int index, float x, float y, float z, float w);
void glProgramParameter4dNV(@GLenum int target, @GLuint int index, double x, double y, double z, double w);
@StripPostfix("params")
void glProgramParameters4fvNV(@GLenum int target, @GLuint int index, @AutoSize(value = "params", expression = " >> 2") @GLuint int count,
@Const FloatBuffer params);
@StripPostfix("params")
void glProgramParameters4dvNV(@GLenum int target, @GLuint int index, @AutoSize(value = "params", expression = " >> 2") @GLuint int count,
@Const DoubleBuffer params);
void glTrackMatrixNV(@GLenum int target, @GLuint int address, @GLenum int matrix, @GLenum int transform);
void glVertexAttribPointerNV(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
@CachedReference(index="index",name="glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer buffer);
@NoErrorCheck
void glVertexAttrib1sNV(@GLuint int index, short x);
@NoErrorCheck
void glVertexAttrib1fNV(@GLuint int index, float x);
@NoErrorCheck
void glVertexAttrib1dNV(@GLuint int index, double x);
@NoErrorCheck
void glVertexAttrib2sNV(@GLuint int index, short x, short y);
@NoErrorCheck
void glVertexAttrib2fNV(@GLuint int index, float x, float y);
@NoErrorCheck
void glVertexAttrib2dNV(@GLuint int index, double x, double y);
@NoErrorCheck
void glVertexAttrib3sNV(@GLuint int index, short x, short y, short z);
@NoErrorCheck
void glVertexAttrib3fNV(@GLuint int index, float x, float y, float z);
@NoErrorCheck
void glVertexAttrib3dNV(@GLuint int index, double x, double y, double z);
@NoErrorCheck
void glVertexAttrib4sNV(@GLuint int index, short x, short y, short z, short w);
@NoErrorCheck
void glVertexAttrib4fNV(@GLuint int index, float x, float y, float z, float w);
@NoErrorCheck
void glVertexAttrib4dNV(@GLuint int index, double x, double y, double z, double w);
@NoErrorCheck
void glVertexAttrib4ubNV(@GLuint int index, @GLubyte byte x, @GLubyte byte y, @GLubyte byte z, @GLubyte byte w);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs1svNV(@GLuint int index, @AutoSize("v") @GLsizei int n, @Const ShortBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs1fvNV(@GLuint int index, @AutoSize("v") @GLsizei int n, @Const FloatBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs1dvNV(@GLuint int index, @AutoSize("v") @GLsizei int n, @Const DoubleBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs2svNV(@GLuint int index, @AutoSize(value = "v", expression = " >> 1") @GLsizei int n, @Const ShortBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs2fvNV(@GLuint int index, @AutoSize(value = "v", expression = " >> 1") @GLsizei int n, @Const FloatBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs2dvNV(@GLuint int index, @AutoSize(value = "v", expression = " >> 1") @GLsizei int n, @Const DoubleBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs3svNV(@GLuint int index, @AutoSize(value = "v", expression = " / 3") @GLsizei int n, @Const ShortBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs3fvNV(@GLuint int index, @AutoSize(value = "v", expression = " / 3") @GLsizei int n, @Const FloatBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs3dvNV(@GLuint int index, @AutoSize(value = "v", expression = " / 3") @GLsizei int n, @Const DoubleBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs4svNV(@GLuint int index, @AutoSize(value = "v", expression = " >> 2") @GLsizei int n, @Const ShortBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs4fvNV(@GLuint int index, @AutoSize(value = "v", expression = " >> 2") @GLsizei int n, @Const FloatBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribs4dvNV(@GLuint int index, @AutoSize(value = "v", expression = " >> 2") @GLsizei int n, @Const DoubleBuffer v);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_draw_indirect.java 0000644 0001750 0001750 00000006031 12702226520 023106 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import javax.lang.model.type.TypeKind;
public interface ARB_draw_indirect {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, MapBufferRange, FlushMappedBufferRange,
* GetBufferParameteriv, BindBufferRange, BindBufferBase, and
* CopyBufferSubData:
*/
int GL_DRAW_INDIRECT_BUFFER = 0x8F3F;
/**
* Accepted by the <value> parameter of GetIntegerv, GetBooleanv, GetFloatv,
* and GetDoublev:
*/
int GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43;
@Reuse("GL40")
void glDrawArraysIndirect(@GLenum int mode, @BufferObject(BufferKind.IndirectBO) @Check("4 * 4") @Const @GLvoid ByteBuffer indirect);
@Reuse("GL40")
@Alternate("glDrawArraysIndirect")
void glDrawArraysIndirect(@GLenum int mode, @BufferObject(BufferKind.IndirectBO) @Check("4") @Const @GLvoid(TypeKind.INT) IntBuffer indirect);
@Reuse("GL40")
void glDrawElementsIndirect(@GLenum int mode, @GLenum int type, @BufferObject(BufferKind.IndirectBO) @Check("5 * 4") @Const @GLvoid ByteBuffer indirect);
@Reuse("GL40")
@Alternate("glDrawElementsIndirect")
void glDrawElementsIndirect(@GLenum int mode, @GLenum int type, @BufferObject(BufferKind.IndirectBO) @Check("5") @Const @GLvoid(TypeKind.INT) IntBuffer indirect);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_pinned_memory.java 0000644 0001750 0001750 00000003547 12702226520 023143 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_pinned_memory {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferParameteriv, GetBufferPointerv, MapBufferRange:
*/
int GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD = 0x9160;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shading_language_include.java 0000644 0001750 0001750 00000012414 12702226520 025255 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface ARB_shading_language_include {
/** Accepted by the <type> parameter of NamedStringARB: */
int GL_SHADER_INCLUDE_ARB = 0x8DAE;
/** Accepted by the <pname> parameter of GetNamedStringivARB: */
int GL_NAMED_STRING_LENGTH_ARB = 0x8DE9;
int GL_NAMED_STRING_TYPE_ARB = 0x8DEA;
void glNamedStringARB(@GLenum int type,
@AutoSize("name") int namelen, @Const @GLchar ByteBuffer name,
@AutoSize("string") int stringlen, @Const @GLchar ByteBuffer string);
@Alternate("glNamedStringARB")
void glNamedStringARB(@GLenum int type,
@Constant("name.length()") int namelen, CharSequence name,
@Constant("string.length()") int stringlen, CharSequence string);
void glDeleteNamedStringARB(@AutoSize("name") int namelen, @Const @GLchar ByteBuffer name);
@Alternate("glDeleteNamedStringARB")
void glDeleteNamedStringARB(@Constant("name.length()") int namelen, CharSequence name);
void glCompileShaderIncludeARB(@GLuint int shader, @GLsizei int count,
@Const @NullTerminated("count") @PointerArray("count") @GLchar ByteBuffer path,
@Constant("0L") @Const IntBuffer length);
@Alternate(value = "glCompileShaderIncludeARB", nativeAlt = true)
void glCompileShaderIncludeARB2(@GLuint int shader, @Constant("path.length") @GLsizei int count,
@Const @PointerArray(value = "count", lengths = "length") CharSequence[] path,
@Constant("APIUtil.getLengths(caps, path)") @Const IntBuffer length);
boolean glIsNamedStringARB(@AutoSize("name") int namelen, @Const @GLchar ByteBuffer name);
@Alternate("glIsNamedStringARB")
boolean glIsNamedStringARB(@Constant("name.length()") int namelen, CharSequence name);
void glGetNamedStringARB(@AutoSize("name") int namelen, @Const @GLchar ByteBuffer name,
@AutoSize("string") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) IntBuffer stringlen,
@OutParameter @GLchar ByteBuffer string);
@Alternate("glGetNamedStringARB")
void glGetNamedStringARB(@Constant("name.length()") int namelen, CharSequence name,
@AutoSize("string") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) IntBuffer stringlen,
@OutParameter @GLchar ByteBuffer string);
@Alternate("glGetNamedStringARB")
@GLreturn(value = "string", maxLength = "bufSize")
void glGetNamedStringARB2(@Constant("name.length()") int namelen, CharSequence name,
@GLsizei int bufSize,
@OutParameter @Constant("MemoryUtil.getAddress0(string_length)") IntBuffer stringlen,
@OutParameter @GLchar ByteBuffer string);
@StripPostfix("params")
void glGetNamedStringivARB(@AutoSize("name") int namelen, @Const @GLchar ByteBuffer name, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedStringivARB")
@StripPostfix(value = "params", hasPostfix = false)
void glGetNamedStringivARB(@Constant("name.length()") int namelen, CharSequence name, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedStringivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetNamedStringivARB2(@Constant("name.length()") int namelen, CharSequence name, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL13.java 0000644 0001750 0001750 00000025067 12702226520 020264 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
/**
*
* The core OpenGL1.3 API.
*
* @author cix_foo
* @version $Revision$
* $Id$
*/
@DeprecatedGL
public interface GL13 {
int GL_TEXTURE0 = 0x84C0;
int GL_TEXTURE1 = 0x84C1;
int GL_TEXTURE2 = 0x84C2;
int GL_TEXTURE3 = 0x84C3;
int GL_TEXTURE4 = 0x84C4;
int GL_TEXTURE5 = 0x84C5;
int GL_TEXTURE6 = 0x84C6;
int GL_TEXTURE7 = 0x84C7;
int GL_TEXTURE8 = 0x84C8;
int GL_TEXTURE9 = 0x84C9;
int GL_TEXTURE10 = 0x84CA;
int GL_TEXTURE11 = 0x84CB;
int GL_TEXTURE12 = 0x84CC;
int GL_TEXTURE13 = 0x84CD;
int GL_TEXTURE14 = 0x84CE;
int GL_TEXTURE15 = 0x84CF;
int GL_TEXTURE16 = 0x84D0;
int GL_TEXTURE17 = 0x84D1;
int GL_TEXTURE18 = 0x84D2;
int GL_TEXTURE19 = 0x84D3;
int GL_TEXTURE20 = 0x84D4;
int GL_TEXTURE21 = 0x84D5;
int GL_TEXTURE22 = 0x84D6;
int GL_TEXTURE23 = 0x84D7;
int GL_TEXTURE24 = 0x84D8;
int GL_TEXTURE25 = 0x84D9;
int GL_TEXTURE26 = 0x84DA;
int GL_TEXTURE27 = 0x84DB;
int GL_TEXTURE28 = 0x84DC;
int GL_TEXTURE29 = 0x84DD;
int GL_TEXTURE30 = 0x84DE;
int GL_TEXTURE31 = 0x84DF;
int GL_ACTIVE_TEXTURE = 0x84E0;
int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1;
int GL_MAX_TEXTURE_UNITS = 0x84E2;
int GL_NORMAL_MAP = 0x8511;
int GL_REFLECTION_MAP = 0x8512;
int GL_TEXTURE_CUBE_MAP = 0x8513;
int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514;
int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B;
int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
int GL_COMPRESSED_ALPHA = 0x84E9;
int GL_COMPRESSED_LUMINANCE = 0x84EA;
int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB;
int GL_COMPRESSED_INTENSITY = 0x84EC;
int GL_COMPRESSED_RGB = 0x84ED;
int GL_COMPRESSED_RGBA = 0x84EE;
int GL_TEXTURE_COMPRESSION_HINT = 0x84EF;
int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0;
int GL_TEXTURE_COMPRESSED = 0x86A1;
int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2;
int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3;
int GL_MULTISAMPLE = 0x809D;
int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
int GL_SAMPLE_ALPHA_TO_ONE = 0x809F;
int GL_SAMPLE_COVERAGE = 0x80A0;
int GL_SAMPLE_BUFFERS = 0x80A8;
int GL_SAMPLES = 0x80A9;
int GL_SAMPLE_COVERAGE_VALUE = 0x80AA;
int GL_SAMPLE_COVERAGE_INVERT = 0x80AB;
int GL_MULTISAMPLE_BIT = 0x20000000;
int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3;
int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4;
int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5;
int GL_TRANSPOSE_COLOR_MATRIX = 0x84E6;
int GL_COMBINE = 0x8570;
int GL_COMBINE_RGB = 0x8571;
int GL_COMBINE_ALPHA = 0x8572;
int GL_SOURCE0_RGB = 0x8580;
int GL_SOURCE1_RGB = 0x8581;
int GL_SOURCE2_RGB = 0x8582;
int GL_SOURCE0_ALPHA = 0x8588;
int GL_SOURCE1_ALPHA = 0x8589;
int GL_SOURCE2_ALPHA = 0x858A;
int GL_OPERAND0_RGB = 0x8590;
int GL_OPERAND1_RGB = 0x8591;
int GL_OPERAND2_RGB = 0x8592;
int GL_OPERAND0_ALPHA = 0x8598;
int GL_OPERAND1_ALPHA = 0x8599;
int GL_OPERAND2_ALPHA = 0x859A;
int GL_RGB_SCALE = 0x8573;
int GL_ADD_SIGNED = 0x8574;
int GL_INTERPOLATE = 0x8575;
int GL_SUBTRACT = 0x84E7;
int GL_CONSTANT = 0x8576;
int GL_PRIMARY_COLOR = 0x8577;
int GL_PREVIOUS = 0x8578;
int GL_DOT3_RGB = 0x86AE;
int GL_DOT3_RGBA = 0x86AF;
int GL_CLAMP_TO_BORDER = 0x812D;
void glActiveTexture(@GLenum int texture);
@Code("\t\tStateTracker.getReferences(caps).glClientActiveTexture = texture - GL_TEXTURE0;")
@DeprecatedGL
void glClientActiveTexture(@GLenum int texture);
void glCompressedTexImage1D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
Buffer data);
@Alternate("glCompressedTexImage1D")
void glCompressedTexImage1D2(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
@Constant("0L")
Buffer data);
void glCompressedTexImage2D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Alternate("glCompressedTexImage2D")
void glCompressedTexImage2D2(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
@Constant("0L")
ByteBuffer data);
void glCompressedTexImage3D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Alternate("glCompressedTexImage3D")
void glCompressedTexImage3D2(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
@Constant("0L")
ByteBuffer data);
void glCompressedTexSubImage1D(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glCompressedTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glCompressedTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
// TODO: check buffer size valid
void glGetCompressedTexImage(@GLenum int target, int lod,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint Buffer img);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord1f(@GLenum int target, float s);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord1d(@GLenum int target, double s);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord2f(@GLenum int target, float s, float t);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord2d(@GLenum int target, double s, double t);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord3f(@GLenum int target, float s, float t, float r);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord3d(@GLenum int target, double s, double t, double r);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord4f(@GLenum int target, float s, float t, float r, float q);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoord4d(@GLenum int target, double s, double t, double r, double q);
@StripPostfix("m")
@DeprecatedGL
void glLoadTransposeMatrixf(@Check("16") @Const FloatBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glLoadTransposeMatrixd(@Check("16") @Const DoubleBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glMultTransposeMatrixf(@Check("16") @Const FloatBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glMultTransposeMatrixd(@Check("16") @Const DoubleBuffer m);
void glSampleCoverage(float value, boolean invert);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_multi_draw_indirect.java 0000644 0001750 0001750 00000006640 12702226520 024326 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import javax.lang.model.type.TypeKind;
public interface ARB_multi_draw_indirect {
@Reuse("GL43")
void glMultiDrawArraysIndirect(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 * 4 : stride) * primcount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Reuse("GL43")
@Alternate("glMultiDrawArraysIndirect")
void glMultiDrawArraysIndirect(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 : stride >> 2) * primcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Reuse("GL43")
void glMultiDrawElementsIndirect(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 * 4 : stride) * primcount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Reuse("GL43")
@Alternate("glMultiDrawElementsIndirect")
void glMultiDrawElementsIndirect(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 : stride >> 2) * primcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_compatibility.java 0000644 0001750 0001750 00000003143 12702226520 023142 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_compatibility {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_conditional_render.java 0000644 0001750 0001750 00000004034 12702226520 024052 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface NV_conditional_render {
/**
* Accepted by the <mode> parameter of BeginConditionalRenderNV:
*/
int GL_QUERY_WAIT_NV = 0x8E13;
int GL_QUERY_NO_WAIT_NV = 0x8E14;
int GL_QUERY_BY_REGION_WAIT_NV = 0x8E15;
int GL_QUERY_BY_REGION_NO_WAIT_NV = 0x8E16;
void glBeginConditionalRenderNV(@GLuint int id, @GLenum int mode);
void glEndConditionalRenderNV();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_flush_buffer_range.java 0000644 0001750 0001750 00000004206 12702226520 024355 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLsizeiptr;
public interface APPLE_flush_buffer_range {
/**
* Accepted by the <pname> parameter of BufferParameteriAPPLE and
* GetBufferParameteriv:
*/
int GL_BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12;
int GL_BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13;
void glBufferParameteriAPPLE(@GLenum int target, @GLenum int pname, int param);
void glFlushMappedBufferRangeAPPLE(@GLenum int target, @GLintptr long offset, @GLsizeiptr long size);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_map_object_buffer.java 0000644 0001750 0001750 00000007434 12702226520 023745 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLuint;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.*;
public interface ATI_map_object_buffer {
/**
* glMapObjectBufferATI maps an ATI vertex array object to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the vertex array object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapObjectBufferATI like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapObjectBufferATI(..., null); ... // Another map on the same buffer mapped_buffer = glMapObjectBufferATI(..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* The version of this method without an explicit length argument calls glGetObjectBufferATI internally to
* retrieve the current vertex array object size, which may cause a pipeline flush and reduce application performance.
*
* The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
* is made to retrieve the vertex array object size, so the user is responsible for tracking and using the appropriate length.
* Security warning: The length argument should match the vertex array object size. Reading from or writing to outside
* the memory region that corresponds to the mapped vertex array object will cause native crashes.
*
* @param length the length of the mapped memory in bytes.
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult
@GLvoid
@AutoSize("ATIVertexArrayObject.glGetObjectBufferiATI(buffer, ATIVertexArrayObject.GL_OBJECT_BUFFER_SIZE_ATI)")
ByteBuffer glMapObjectBufferATI(@GLuint int buffer);
void glUnmapObjectBufferATI(@GLuint int buffer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_expand_normal.java 0000644 0001750 0001750 00000003506 12702226520 024622 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_expand_normal {
/**
* Accepted by the <pname> parameters of TexParameteri,
* TexParameteriv, TexParameterf, TexParameterfv, GetTexParameteri,
* and GetTexParameteriv:
*/
int GL_TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_framebuffer_object.java 0000644 0001750 0001750 00000021563 12702226520 024145 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface EXT_framebuffer_object {
/**
* Accepted by the <target> parameter of BindFramebufferEXT,
* CheckFramebufferStatusEXT, FramebufferTexture{1D|2D|3D}EXT, and
* FramebufferRenderbufferEXT:
*/
int GL_FRAMEBUFFER_EXT = 0x8D40;
/**
* Accepted by the <target> parameter of BindRenderbufferEXT,
* RenderbufferStorageEXT, and GetRenderbufferParameterivEXT, and
* returned by GetFramebufferAttachmentParameterivEXT:
*/
int GL_RENDERBUFFER_EXT = 0x8D41;
/**
* Accepted by the <internalformat> parameter of
* RenderbufferStorageEXT:
*/
int GL_STENCIL_INDEX1_EXT = 0x8D46;
int GL_STENCIL_INDEX4_EXT = 0x8D47;
int GL_STENCIL_INDEX8_EXT = 0x8D48;
int GL_STENCIL_INDEX16_EXT = 0x8D49;
/** Accepted by the <pname> parameter of GetRenderbufferParameterivEXT: */
int GL_RENDERBUFFER_WIDTH_EXT = 0x8D42;
int GL_RENDERBUFFER_HEIGHT_EXT = 0x8D43;
int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44;
int GL_RENDERBUFFER_RED_SIZE_EXT = 0x8D50;
int GL_RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51;
int GL_RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52;
int GL_RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53;
int GL_RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54;
int GL_RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameterivEXT:
*/
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0;
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4;
/**
* Accepted by the <attachment> parameter of
* FramebufferTexture{1D|2D|3D}EXT, FramebufferRenderbufferEXT, and
* GetFramebufferAttachmentParameterivEXT
*/
int GL_COLOR_ATTACHMENT0_EXT = 0x8CE0;
int GL_COLOR_ATTACHMENT1_EXT = 0x8CE1;
int GL_COLOR_ATTACHMENT2_EXT = 0x8CE2;
int GL_COLOR_ATTACHMENT3_EXT = 0x8CE3;
int GL_COLOR_ATTACHMENT4_EXT = 0x8CE4;
int GL_COLOR_ATTACHMENT5_EXT = 0x8CE5;
int GL_COLOR_ATTACHMENT6_EXT = 0x8CE6;
int GL_COLOR_ATTACHMENT7_EXT = 0x8CE7;
int GL_COLOR_ATTACHMENT8_EXT = 0x8CE8;
int GL_COLOR_ATTACHMENT9_EXT = 0x8CE9;
int GL_COLOR_ATTACHMENT10_EXT = 0x8CEA;
int GL_COLOR_ATTACHMENT11_EXT = 0x8CEB;
int GL_COLOR_ATTACHMENT12_EXT = 0x8CEC;
int GL_COLOR_ATTACHMENT13_EXT = 0x8CED;
int GL_COLOR_ATTACHMENT14_EXT = 0x8CEE;
int GL_COLOR_ATTACHMENT15_EXT = 0x8CEF;
int GL_DEPTH_ATTACHMENT_EXT = 0x8D00;
int GL_STENCIL_ATTACHMENT_EXT = 0x8D20;
/** Returned by CheckFramebufferStatusEXT(): */
int GL_FRAMEBUFFER_COMPLETE_EXT = 0x8CD5;
int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6;
int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7;
int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9;
int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA;
int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB;
int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC;
int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD;
/** Accepted by GetIntegerv(): */
int GL_FRAMEBUFFER_BINDING_EXT = 0x8CA6;
int GL_RENDERBUFFER_BINDING_EXT = 0x8CA7;
int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF;
int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84E8;
/** Returned by GetError(): */
int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506;
boolean glIsRenderbufferEXT(@GLuint int renderbuffer);
void glBindRenderbufferEXT(@GLenum int target, @GLuint int renderbuffer);
void glDeleteRenderbuffersEXT(@AutoSize("renderbuffers") int n, @Const @GLuint IntBuffer renderbuffers);
@Alternate("glDeleteRenderbuffersEXT")
void glDeleteRenderbuffersEXT(@Constant("1") int n, @Constant(value = "APIUtil.getInt(caps, renderbuffer)", keepParam = true) int renderbuffer);
void glGenRenderbuffersEXT(@AutoSize("renderbuffers") int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Alternate("glGenRenderbuffersEXT")
@GLreturn("renderbuffers")
void glGenRenderbuffersEXT2(@Constant("1") int n, @OutParameter @GLuint IntBuffer renderbuffers);
void glRenderbufferStorageEXT(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@StripPostfix("params")
void glGetRenderbufferParameterivEXT(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteriEXT} instead. */
@Alternate("glGetRenderbufferParameterivEXT")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "EXTFramebufferObject", method = "glGetRenderbufferParameteriEXT")
@Deprecated
void glGetRenderbufferParameterivEXT2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetRenderbufferParameterivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetRenderbufferParameterivEXT3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
boolean glIsFramebufferEXT(@GLuint int framebuffer);
void glBindFramebufferEXT(@GLenum int target, @GLuint int framebuffer);
void glDeleteFramebuffersEXT(@AutoSize("framebuffers") int n, @Const @GLuint IntBuffer framebuffers);
@Alternate("glDeleteFramebuffersEXT")
void glDeleteFramebuffersEXT(@Constant("1") int n, @Constant(value = "APIUtil.getInt(caps, framebuffer)", keepParam = true) int framebuffer);
void glGenFramebuffersEXT(@AutoSize("framebuffers") int n, @OutParameter @GLuint IntBuffer framebuffers);
@Alternate("glGenFramebuffersEXT")
@GLreturn("framebuffers")
void glGenFramebuffersEXT2(@Constant("1") int n, @OutParameter @GLuint IntBuffer framebuffers);
@GLenum
int glCheckFramebufferStatusEXT(@GLenum int target);
void glFramebufferTexture1DEXT(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
void glFramebufferTexture2DEXT(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
void glFramebufferTexture3DEXT(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level, int zoffset);
void glFramebufferRenderbufferEXT(@GLenum int target, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
@StripPostfix("params")
void glGetFramebufferAttachmentParameterivEXT(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteriEXT} instead. */
@Alternate("glGetFramebufferAttachmentParameterivEXT")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "EXTFramebufferObject", method = "glGetFramebufferAttachmentParameteriEXT")
@Deprecated
void glGetFramebufferAttachmentParameterivEXT2(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetFramebufferAttachmentParameterivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferAttachmentParameterivEXT3(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
void glGenerateMipmapEXT(@GLenum int target);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_depth_clamp_separate.java 0000644 0001750 0001750 00000003560 12702226520 024435 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_depth_clamp_separate {
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_DEPTH_CLAMP_NEAR_AMD = 0x901E,
GL_DEPTH_CLAMP_FAR_AMD = 0x901F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_transform_feedback3_lines_triangles.java 0000644 0001750 0001750 00000003172 12702226520 027434 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_transform_feedback3_lines_triangles {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_filter_anisotropic.java 0000644 0001750 0001750 00000003317 12702226520 026007 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_filter_anisotropic {
int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_map_buffer_range.java 0000644 0001750 0001750 00000006536 12702226520 023564 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
public interface ARB_map_buffer_range {
/** Accepted by the <access> parameter of MapBufferRange: */
int GL_MAP_READ_BIT = 0x0001;
int GL_MAP_WRITE_BIT = 0x0002;
int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004;
int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008;
int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010;
int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020;
/**
* glMapBufferRange maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferRange like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@Reuse("GL30")
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRange(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
@Reuse("GL30")
void glFlushMappedBufferRange(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_multi_bind.java 0000644 0001750 0001750 00000006361 12702226520 022424 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.*;
import java.nio.IntBuffer;
public interface ARB_multi_bind {
@Reuse("GL44")
void glBindBuffersBase(@GLenum int target, @GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers);
@Reuse("GL44")
void glBindBuffersRange(@GLenum int target, @GLuint int first, @GLsizei int count,
@Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers,
@Check(value = "count", canBeNull = true) @Const @GLintptr PointerBuffer offsets,
@Check(value = "count", canBeNull = true) @Const @GLsizeiptr PointerBuffer sizes);
@Reuse("GL44")
void glBindTextures(@GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer textures);
@Reuse("GL44")
void glBindSamplers(@GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer samplers);
@Reuse("GL44")
void glBindImageTextures(@GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer textures);
@Reuse("GL44")
void glBindVertexBuffers(@GLuint int first, @GLsizei int count,
@Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers,
@Check(value = "count", canBeNull = true) @Const @GLintptr PointerBuffer offsets,
@Check(value = "count", canBeNull = true) @Const @GLsizei IntBuffer strides);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_framebuffer_no_attachments.java 0000644 0001750 0001750 00000007534 12702226520 025654 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
@Dependent
@Extension(postfix = "")
public interface ARB_framebuffer_no_attachments {
/**
* Accepted by the <pname> parameter of FramebufferParameteri,
* GetFramebufferParameteriv, NamedFramebufferParameteriEXT, and
* GetNamedFramebufferParameterivEXT:
*/
int GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310,
GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311,
GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312,
GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313,
GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MAX_FRAMEBUFFER_WIDTH = 0x9315,
GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316,
GL_MAX_FRAMEBUFFER_LAYERS = 0x9317,
GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318;
@Reuse("GL43")
void glFramebufferParameteri(@GLenum int target, @GLenum int pname, int param);
@Reuse("GL43")
@StripPostfix("params")
void glGetFramebufferParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Reuse("GL43")
@Alternate("glGetFramebufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("GL_EXT_direct_state_access")
void glNamedFramebufferParameteriEXT(@GLuint int framebuffer, @GLenum int pname,
int param);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "params", extension = "EXT")
void glGetNamedFramebufferParameterivEXT(@GLuint int framebuffer, @GLenum int pname,
@OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedFramebufferParameterivEXT")
@GLreturn("params")
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "params", extension = "EXT")
void glGetNamedFramebufferParameterivEXT2(@GLuint int framebuffer, @GLenum int pname,
@OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_ES2_compatibility.java 0000644 0001750 0001750 00000006415 12702226520 023620 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface ARB_ES2_compatibility {
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_SHADER_COMPILER = 0x8DFA,
GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9,
GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB,
GL_MAX_VARYING_VECTORS = 0x8DFC,
GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD,
GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A,
GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B;
/** Accepted by the <type> parameter of VertexAttribPointer: */
int GL_FIXED = 0x140C;
/**
* Accepted by the <precisiontype> parameter of
* GetShaderPrecisionFormat:
*/
int GL_LOW_FLOAT = 0x8DF0,
GL_MEDIUM_FLOAT = 0x8DF1,
GL_HIGH_FLOAT = 0x8DF2,
GL_LOW_INT = 0x8DF3,
GL_MEDIUM_INT = 0x8DF4,
GL_HIGH_INT = 0x8DF5;
/** Accepted by the <format> parameter of most commands taking sized internal formats: */
int GL_RGB565 = 0x8D62;
@Reuse("GL41")
void glReleaseShaderCompiler();
@Reuse("GL41")
void glShaderBinary(@AutoSize("shaders") @GLsizei int count, @Const @GLuint IntBuffer shaders,
@GLenum int binaryformat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
@Reuse("GL41")
void glGetShaderPrecisionFormat(@GLenum int shadertype, @GLenum int precisiontype,
@OutParameter @Check("2") IntBuffer range,
@OutParameter @Check("1") IntBuffer precision);
@Reuse("GL41")
void glDepthRangef(@GLclampf float n, @GLclampf float f);
@Reuse("GL41")
void glClearDepthf(@GLclampf float d);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/IBM_rasterpos_clip.java 0000644 0001750 0001750 00000003507 12702226520 023331 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface IBM_rasterpos_clip {
/**
* Accepted by the <target> parameter of Enable and Disable and the <value>
* parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, GetDoublev:
*/
int GL_RASTER_POSITION_UNCLIPPED_IBM = 103010;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NVX_gpu_memory_info.java 0000644 0001750 0001750 00000004011 12702226520 023531 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
/** Experimental extension, may be removed/changed in the future. */
public interface NVX_gpu_memory_info {
/** Accepted by the <pname> parameter of GetIntegerv: */
int GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047;
int GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048;
int GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049;
int GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904A;
int GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_gpu_program5.java 0000644 0001750 0001750 00000003671 12702226520 022625 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_gpu_program5 {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A;
int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B;
int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C;
int GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_pixel_data_range.java 0000644 0001750 0001750 00000005255 12702226520 023504 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface NV_pixel_data_range {
/**
* Accepted by the <target> parameter of PixelDataRangeNV and
* FlushPixelDataRangeNV, and by the <cap> parameter of
* EnableClientState, DisableClientState, and IsEnabled:
*/
int GL_WRITE_PIXEL_DATA_RANGE_NV = 0x8878;
int GL_READ_PIXEL_DATA_RANGE_NV = 0x8879;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A;
int GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B;
/**
* Accepted by the <pname> parameter of GetPointerv:
*/
int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C;
int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D;
void glPixelDataRangeNV(@GLenum int target, @AutoSize("data") @GLsizei int length,
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
void glFlushPixelDataRangeNV(@GLenum int target);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/INTEL_map_texture.java 0000644 0001750 0001750 00000005250 12702226520 023076 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface INTEL_map_texture {
/** Accepted by the <pname> parameter of TexParameteri, for target TEXTURE_2D */
int GL_TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF;
/**
* Accepted by the <params> when <pname> is set to
* <TEXTURE_MEMORY_LAYOUT_INTEL>:
*/
int GL_LAYOUT_DEFAULT_INTEL = 0,
GL_LAYOUT_LINEAR_INTEL = 1,
GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2;
/**
* The length parameter does not exist in the native API. It used by LWJGL to return a ByteBuffer
* with a proper capacity.
*/
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapTexture2DINTEL(@GLuint int texture, int level, @Helper(passToNative = true) @GLsizeiptr long length, @GLbitfield int access,
@Check("1") @OutParameter IntBuffer stride, @Check("1") @OutParameter @GLenum IntBuffer layout);
void glUnmapTexture2DINTEL(@GLuint int texture, int level);
void glSyncTextureINTEL(@GLuint int texture);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_shader_trinary_minmax.java 0000644 0001750 0001750 00000003153 12702226520 024656 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_shader_trinary_minmax {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_rescale_normal.java 0000644 0001750 0001750 00000003212 12702226520 023310 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_rescale_normal {
int GL_RESCALE_NORMAL_EXT = 0x803A;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_program.java 0000644 0001750 0001750 00000020226 12702226520 021741 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
@Extension(postfix = "ARB", isFinal = false)
public interface ARB_program {
/** Accepted by the <format> parameter of ProgramStringARB: */
int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875;
/** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_PROGRAM_LENGTH_ARB = 0x8627;
int GL_PROGRAM_FORMAT_ARB = 0x8876;
int GL_PROGRAM_BINDING_ARB = 0x8677;
int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88A0;
int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1;
int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2;
int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3;
int GL_PROGRAM_TEMPORARIES_ARB = 0x88A4;
int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5;
int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6;
int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7;
int GL_PROGRAM_PARAMETERS_ARB = 0x88A8;
int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88A9;
int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA;
int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB;
int GL_PROGRAM_ATTRIBS_ARB = 0x88AC;
int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88AD;
int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE;
int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF;
int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4;
int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5;
int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6;
/** Accepted by the <pname> parameter of GetProgramStringARB: */
int GL_PROGRAM_STRING_ARB = 0x8628;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PROGRAM_ERROR_POSITION_ARB = 0x864B;
int GL_CURRENT_MATRIX_ARB = 0x8641;
int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7;
int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640;
int GL_MAX_PROGRAM_MATRICES_ARB = 0x862F;
int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E;
/** Accepted by the <name> parameter of GetString: */
int GL_PROGRAM_ERROR_STRING_ARB = 0x8874;
/** Accepted by the <mode> parameter of MatrixMode: */
int GL_MATRIX0_ARB = 0x88C0;
int GL_MATRIX1_ARB = 0x88C1;
int GL_MATRIX2_ARB = 0x88C2;
int GL_MATRIX3_ARB = 0x88C3;
int GL_MATRIX4_ARB = 0x88C4;
int GL_MATRIX5_ARB = 0x88C5;
int GL_MATRIX6_ARB = 0x88C6;
int GL_MATRIX7_ARB = 0x88C7;
int GL_MATRIX8_ARB = 0x88C8;
int GL_MATRIX9_ARB = 0x88C9;
int GL_MATRIX10_ARB = 0x88CA;
int GL_MATRIX11_ARB = 0x88CB;
int GL_MATRIX12_ARB = 0x88CC;
int GL_MATRIX13_ARB = 0x88CD;
int GL_MATRIX14_ARB = 0x88CE;
int GL_MATRIX15_ARB = 0x88CF;
int GL_MATRIX16_ARB = 0x88D0;
int GL_MATRIX17_ARB = 0x88D1;
int GL_MATRIX18_ARB = 0x88D2;
int GL_MATRIX19_ARB = 0x88D3;
int GL_MATRIX20_ARB = 0x88D4;
int GL_MATRIX21_ARB = 0x88D5;
int GL_MATRIX22_ARB = 0x88D6;
int GL_MATRIX23_ARB = 0x88D7;
int GL_MATRIX24_ARB = 0x88D8;
int GL_MATRIX25_ARB = 0x88D9;
int GL_MATRIX26_ARB = 0x88DA;
int GL_MATRIX27_ARB = 0x88DB;
int GL_MATRIX28_ARB = 0x88DC;
int GL_MATRIX29_ARB = 0x88DD;
int GL_MATRIX30_ARB = 0x88DE;
int GL_MATRIX31_ARB = 0x88DF;
void glProgramStringARB(@GLenum int target, @GLenum int format, @AutoSize("string") @GLsizei int length, @Const @GLbyte Buffer string);
@Alternate("glProgramStringARB")
void glProgramStringARB(@GLenum int target, @GLenum int format, @Constant("string.length()") @GLsizei int length, CharSequence string);
void glBindProgramARB(@GLenum int target, @GLuint int program);
void glDeleteProgramsARB(@AutoSize("programs") @GLsizei int n, @Const @GLuint IntBuffer programs);
@Alternate("glDeleteProgramsARB")
void glDeleteProgramsARB(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, program)", keepParam = true) int program);
void glGenProgramsARB(@AutoSize("programs") @GLsizei int n, @OutParameter @GLuint IntBuffer programs);
@Alternate("glGenProgramsARB")
@GLreturn("programs")
void glGenProgramsARB2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer programs);
void glProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w);
void glProgramEnvParameter4dARB(int target, int index, double x, double y, double z, double w);
@StripPostfix("params")
void glProgramEnvParameter4fvARB(@GLenum int target, @GLuint int index, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glProgramEnvParameter4dvARB(@GLenum int target, @GLuint int index, @Check("4") @Const DoubleBuffer params);
void glProgramLocalParameter4fARB(@GLenum int target, @GLuint int index, float x, float y, float z, float w);
void glProgramLocalParameter4dARB(@GLenum int target, @GLuint int index, double x, double y, double z, double w);
@StripPostfix("params")
void glProgramLocalParameter4fvARB(@GLenum int target, @GLuint int index, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glProgramLocalParameter4dvARB(@GLenum int target, @GLuint int index, @Check("4") @Const DoubleBuffer params);
@StripPostfix("params")
void glGetProgramEnvParameterfvARB(@GLenum int target, @GLuint int index, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetProgramEnvParameterdvARB(@GLenum int target, @GLuint int index, @OutParameter @Check("4") DoubleBuffer params);
@StripPostfix("params")
void glGetProgramLocalParameterfvARB(@GLenum int target, @GLuint int index, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetProgramLocalParameterdvARB(@GLenum int target, @GLuint int index, @OutParameter @Check("4") DoubleBuffer params);
@StripPostfix("params")
void glGetProgramivARB(@GLenum int target, @GLenum int parameterName, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgramiARB} instead. */
@Alternate("glGetProgramivARB")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "ARBProgram", method = "glGetProgramiARB")
@Deprecated
void glGetProgramivARB2(@GLenum int target, @GLenum int parameterName, @OutParameter IntBuffer params);
@Alternate("glGetProgramivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramivARB3(@GLenum int target, @GLenum int parameterName, @OutParameter IntBuffer params);
void glGetProgramStringARB(@GLenum int target, @GLenum int parameterName, @OutParameter @Check @GLbyte Buffer paramString);
@Alternate("glGetProgramStringARB")
@Code("\t\tint programLength = glGetProgramiARB(target, GL_PROGRAM_LENGTH_ARB);")
@GLreturn(value="paramString", maxLength = "programLength", forceMaxLength = true)
void glGetProgramStringARB2(@GLenum int target, @GLenum int parameterName, @OutParameter @GLchar ByteBuffer paramString);
boolean glIsProgramARB(@GLuint int program);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_Cg_shader.java 0000644 0001750 0001750 00000004242 12702226520 022205 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_Cg_shader {
/**
* You can pass GL_CG_VERTEX_SHADER_EXT to glCreateShaderARB instead of GL_VERTEX_SHADER_ARB to create a vertex shader object
* that will parse and compile its shader source with the Cg compiler front-end rather than the GLSL front-end. Likewise, you
* can pass GL_CG_FRAGMENT_SHADER_EXT to glCreateShaderARB instead of GL_FRAGMENT_SHADER_ARB to create a fragment shader object
* that will parse and compile its shader source with the Cg front-end rather than the GLSL front-end.
*/
int GL_CG_VERTEX_SHADER_EXT = 0x890E;
int GL_CG_FRAGMENT_SHADER_EXT = 0x890F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_enhanced_layouts.java 0000644 0001750 0001750 00000003500 12702226520 023613 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_enhanced_layouts {
/** Accepted in the <props> array of GetProgramResourceiv: */
int GL_LOCATION_COMPONENT = 0x934A,
GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B,
GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_framebuffer_object.java 0000644 0001750 0001750 00000027733 12702226520 024116 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_framebuffer_object {
/**
* Accepted by the <target> parameter of BindFramebuffer,
* CheckFramebufferStatus, FramebufferTexture{1D|2D|3D},
* FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv:
*/
int GL_FRAMEBUFFER = 0x8D40;
int GL_READ_FRAMEBUFFER = 0x8CA8;
int GL_DRAW_FRAMEBUFFER = 0x8CA9;
/**
* Accepted by the <target> parameter of BindRenderbuffer,
* RenderbufferStorage, and GetRenderbufferParameteriv, and
* returned by GetFramebufferAttachmentParameteriv:
*/
int GL_RENDERBUFFER = 0x8D41;
/**
* Accepted by the <internalformat> parameter of
* RenderbufferStorage:
*/
int GL_STENCIL_INDEX1 = 0x8D46;
int GL_STENCIL_INDEX4 = 0x8D47;
int GL_STENCIL_INDEX8 = 0x8D48;
int GL_STENCIL_INDEX16 = 0x8D49;
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv: */
int GL_RENDERBUFFER_WIDTH = 0x8D42;
int GL_RENDERBUFFER_HEIGHT = 0x8D43;
int GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
int GL_RENDERBUFFER_RED_SIZE = 0x8D50;
int GL_RENDERBUFFER_GREEN_SIZE = 0x8D51;
int GL_RENDERBUFFER_BLUE_SIZE = 0x8D52;
int GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53;
int GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54;
int GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55;
int GL_RENDERBUFFER_SAMPLES = 0x8CAB;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameteriv:
*/
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4;
int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210;
int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211;
int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212;
int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213;
int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214;
int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215;
int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216;
int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217;
/** Returned in <params> by GetFramebufferAttachmentParameteriv: */
int GL_SRGB = 0x8C40;
int GL_UNSIGNED_NORMALIZED = 0x8C17;
int GL_FRAMEBUFFER_DEFAULT = 0x8218;
int GL_INDEX = 0x8222;
/**
* Accepted by the <attachment> parameter of
* FramebufferTexture{1D|2D|3D}, FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv
*/
int GL_COLOR_ATTACHMENT0 = 0x8CE0;
int GL_COLOR_ATTACHMENT1 = 0x8CE1;
int GL_COLOR_ATTACHMENT2 = 0x8CE2;
int GL_COLOR_ATTACHMENT3 = 0x8CE3;
int GL_COLOR_ATTACHMENT4 = 0x8CE4;
int GL_COLOR_ATTACHMENT5 = 0x8CE5;
int GL_COLOR_ATTACHMENT6 = 0x8CE6;
int GL_COLOR_ATTACHMENT7 = 0x8CE7;
int GL_COLOR_ATTACHMENT8 = 0x8CE8;
int GL_COLOR_ATTACHMENT9 = 0x8CE9;
int GL_COLOR_ATTACHMENT10 = 0x8CEA;
int GL_COLOR_ATTACHMENT11 = 0x8CEB;
int GL_COLOR_ATTACHMENT12 = 0x8CEC;
int GL_COLOR_ATTACHMENT13 = 0x8CED;
int GL_COLOR_ATTACHMENT14 = 0x8CEE;
int GL_COLOR_ATTACHMENT15 = 0x8CEF;
int GL_DEPTH_ATTACHMENT = 0x8D00;
int GL_STENCIL_ATTACHMENT = 0x8D20;
int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_SAMPLES = 0x8D57;
/** Returned by CheckFramebufferStatus(): */
int GL_FRAMEBUFFER_COMPLETE = 0x8CD5;
int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB;
int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC;
int GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56;
int GL_FRAMEBUFFER_UNDEFINED = 0x8219;
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FRAMEBUFFER_BINDING = 0x8CA6; // alias DRAW_FRAMEBUFFER_BINDING
int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6;
int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA;
int GL_RENDERBUFFER_BINDING = 0x8CA7;
int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF;
int GL_MAX_RENDERBUFFER_SIZE = 0x84E8;
/** Returned by GetError(): */
int GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506;
/**
* Accepted by the <format> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, and GetTexImage, by the <type> parameter of
* CopyPixels, by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage, and returned in the <data> parameter of
* GetTexLevelParameter and GetRenderbufferParameteriv:
*/
int GL_DEPTH_STENCIL = 0x84F9;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, and GetTexImage:
*/
int GL_UNSIGNED_INT_24_8 = 0x84FA;
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage, and returned in the <data> parameter of
* GetTexLevelParameter and GetRenderbufferParameteriv:
*/
int GL_DEPTH24_STENCIL8 = 0x88F0;
/** Accepted by the <value> parameter of GetTexLevelParameter: */
int GL_TEXTURE_STENCIL_SIZE = 0x88F1;
@Reuse("GL30")
boolean glIsRenderbuffer(@GLuint int renderbuffer);
@Reuse("GL30")
void glBindRenderbuffer(@GLenum int target, @GLuint int renderbuffer);
@Reuse("GL30")
void glDeleteRenderbuffers(@AutoSize("renderbuffers") @GLsizei int n, @Const @GLuint IntBuffer renderbuffers);
@Reuse("GL30")
@Alternate("glDeleteRenderbuffers")
void glDeleteRenderbuffers(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, renderbuffer)", keepParam = true) int renderbuffer);
@Reuse("GL30")
void glGenRenderbuffers(@AutoSize("renderbuffers") @GLsizei int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Reuse("GL30")
@Alternate("glGenRenderbuffers")
@GLreturn("renderbuffers")
void glGenRenderbuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Reuse("GL30")
void glRenderbufferStorage(@GLenum int target, @GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
@Reuse("GL30")
void glRenderbufferStorageMultisample(@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
@Reuse("GL30")
@StripPostfix("params")
void glGetRenderbufferParameteriv(@GLenum int target, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteri} instead. */
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "ARBFramebufferObject", method = "glGetRenderbufferParameteri")
@Deprecated
void glGetRenderbufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL30")
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetRenderbufferParameteriv3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL30")
boolean glIsFramebuffer(@GLuint int framebuffer);
@Reuse("GL30")
void glBindFramebuffer(@GLenum int target, @GLuint int framebuffer);
@Reuse("GL30")
void glDeleteFramebuffers(@AutoSize("framebuffers") @GLsizei int n, @Const @GLuint IntBuffer framebuffers);
@Reuse("GL30")
@Alternate("glDeleteFramebuffers")
void glDeleteFramebuffers(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, framebuffer)", keepParam = true) int framebuffer);
@Reuse("GL30")
void glGenFramebuffers(@AutoSize("framebuffers") @GLsizei int n, @OutParameter @GLuint IntBuffer framebuffers);
@Reuse("GL30")
@Alternate("glGenFramebuffers")
@GLreturn("framebuffers")
void glGenFramebuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer framebuffers);
@Reuse("GL30")
@GLenum
int glCheckFramebufferStatus(@GLenum int target);
@Reuse("GL30")
void glFramebufferTexture1D(@GLenum int target, @GLenum int attachment,
@GLenum int textarget, @GLuint int texture, int level);
@Reuse("GL30")
void glFramebufferTexture2D(@GLenum int target, @GLenum int attachment,
@GLenum int textarget, @GLuint int texture, int level);
@Reuse("GL30")
void glFramebufferTexture3D(@GLenum int target, @GLenum int attachment,
@GLenum int textarget, @GLuint int texture,
int level, int layer);
@Reuse("GL30")
void glFramebufferTextureLayer(@GLenum int target, @GLenum int attachment,
@GLuint int texture, int level, int layer);
@Reuse("GL30")
void glFramebufferRenderbuffer(@GLenum int target, @GLenum int attachment,
@GLenum int renderbuffertarget, @GLuint int renderbuffer);
@Reuse("GL30")
@StripPostfix("params")
void glGetFramebufferAttachmentParameteriv(@GLenum int target, @GLenum int attachment,
@GLenum int pname, @Check("4") @OutParameter IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteri} instead. */
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL30", method = "glGetFramebufferAttachmentParameteri")
@Deprecated
void glGetFramebufferAttachmentParameteriv2(@GLenum int target, @GLenum int attachment,
@GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL30")
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferAttachmentParameteriv3(@GLenum int target, @GLenum int attachment,
@GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL30")
void glBlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1,
int dstX0, int dstY0, int dstX1, int dstY1,
@GLbitfield int mask, @GLenum int filter);
@Reuse("GL30")
void glGenerateMipmap(@GLenum int target);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shading_language_100.java 0000644 0001750 0001750 00000003336 12702226520 024135 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shading_language_100 {
/**
* Accepted by the <name> parameter of GetString:
*/
int GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_integer.java 0000644 0001750 0001750 00000012610 12702226520 023541 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface EXT_texture_integer {
/**
* Accepted by the <pname> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_RGBA_INTEGER_MODE_EXT = 0x8D9E;
/**
* Accepted by the <internalFormat> parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RGBA32UI_EXT = 0x8D70;
int GL_RGB32UI_EXT = 0x8D71;
int GL_ALPHA32UI_EXT = 0x8D72;
int GL_INTENSITY32UI_EXT = 0x8D73;
int GL_LUMINANCE32UI_EXT = 0x8D74;
int GL_LUMINANCE_ALPHA32UI_EXT = 0x8D75;
int GL_RGBA16UI_EXT = 0x8D76;
int GL_RGB16UI_EXT = 0x8D77;
int GL_ALPHA16UI_EXT = 0x8D78;
int GL_INTENSITY16UI_EXT = 0x8D79;
int GL_LUMINANCE16UI_EXT = 0x8D7A;
int GL_LUMINANCE_ALPHA16UI_EXT = 0x8D7B;
int GL_RGBA8UI_EXT = 0x8D7C;
int GL_RGB8UI_EXT = 0x8D7D;
int GL_ALPHA8UI_EXT = 0x8D7E;
int GL_INTENSITY8UI_EXT = 0x8D7F;
int GL_LUMINANCE8UI_EXT = 0x8D80;
int GL_LUMINANCE_ALPHA8UI_EXT = 0x8D81;
int GL_RGBA32I_EXT = 0x8D82;
int GL_RGB32I_EXT = 0x8D83;
int GL_ALPHA32I_EXT = 0x8D84;
int GL_INTENSITY32I_EXT = 0x8D85;
int GL_LUMINANCE32I_EXT = 0x8D86;
int GL_LUMINANCE_ALPHA32I_EXT = 0x8D87;
int GL_RGBA16I_EXT = 0x8D88;
int GL_RGB16I_EXT = 0x8D89;
int GL_ALPHA16I_EXT = 0x8D8A;
int GL_INTENSITY16I_EXT = 0x8D8B;
int GL_LUMINANCE16I_EXT = 0x8D8C;
int GL_LUMINANCE_ALPHA16I_EXT = 0x8D8D;
int GL_RGBA8I_EXT = 0x8D8E;
int GL_RGB8I_EXT = 0x8D8F;
int GL_ALPHA8I_EXT = 0x8D90;
int GL_INTENSITY8I_EXT = 0x8D91;
int GL_LUMINANCE8I_EXT = 0x8D92;
int GL_LUMINANCE_ALPHA8I_EXT = 0x8D93;
/**
* Accepted by the <format> parameter of TexImage1D, TexImage2D,
* TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D,
* DrawPixels and ReadPixels:
*/
int GL_RED_INTEGER_EXT = 0x8D94;
int GL_GREEN_INTEGER_EXT = 0x8D95;
int GL_BLUE_INTEGER_EXT = 0x8D96;
int GL_ALPHA_INTEGER_EXT = 0x8D97;
int GL_RGB_INTEGER_EXT = 0x8D98;
int GL_RGBA_INTEGER_EXT = 0x8D99;
int GL_BGR_INTEGER_EXT = 0x8D9A;
int GL_BGRA_INTEGER_EXT = 0x8D9B;
int GL_LUMINANCE_INTEGER_EXT = 0x8D9C;
int GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D;
void glClearColorIiEXT(int r, int g, int b, int a);
void glClearColorIuiEXT(@GLuint int r, @GLuint int g, @GLuint int b, @GLuint int a);
@StripPostfix("params")
void glTexParameterIivEXT(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params);
@Alternate("glTexParameterIivEXT")
@StripPostfix(value = "param", hasPostfix = false)
void glTexParameterIivEXT(@GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@StripPostfix("params")
void glTexParameterIuivEXT(@GLenum int target, @GLenum int pname, @Check("4") @GLuint IntBuffer params);
@Alternate("glTexParameterIuivEXT")
@StripPostfix(value = "param", hasPostfix = false)
void glTexParameterIuivEXT(@GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@StripPostfix("params")
void glGetTexParameterIivEXT(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTexParameterIivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameterIivEXT2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTexParameterIuivEXT(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
@Alternate("glGetTexParameterIuivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameterIuivEXT2(@GLenum int target, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_program3.java 0000644 0001750 0001750 00000003415 12702226520 023341 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_vertex_program3 {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_array_object.java 0000644 0001750 0001750 00000005310 12702226520 024330 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface ARB_vertex_array_object {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_VERTEX_ARRAY_BINDING = 0x85B5;
@Reuse("GL30")
void glBindVertexArray(@GLuint int array);
@Reuse("GL30")
void glDeleteVertexArrays(@AutoSize("arrays") @GLsizei int n, @Const @GLuint IntBuffer arrays);
@Reuse("GL30")
@Alternate("glDeleteVertexArrays")
void glDeleteVertexArrays(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, array)", keepParam = true) int array);
@Reuse("GL30")
void glGenVertexArrays(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Reuse("GL30")
@Alternate("glGenVertexArrays")
@GLreturn("arrays")
void glGenVertexArrays2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Reuse("GL30")
boolean glIsVertexArray(@GLuint int array);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_debug_output.java 0000644 0001750 0001750 00000011621 12702226520 022774 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.Alias;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@Alias(value = "AMDX_debug_output", postfix = "X")
public interface AMD_debug_output {
/** Tokens accepted by GetIntegerv: */
int GL_MAX_DEBUG_MESSAGE_LENGTH_AMD = 0x9143,
GL_MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144,
GL_DEBUG_LOGGED_MESSAGES_AMD = 0x9145;
/**
* Tokens accepted by DebugMessageEnableAMD, GetDebugMessageLogAMD,
* DebugMessageInsertAMD, and DEBUGPROCAMD callback function
* for <severity>:
*/
int GL_DEBUG_SEVERITY_HIGH_AMD = 0x9146,
GL_DEBUG_SEVERITY_MEDIUM_AMD = 0x9147,
GL_DEBUG_SEVERITY_LOW_AMD = 0x9148;
/**
* Tokens accepted by DebugMessageEnableAMD, GetDebugMessageLogAMD,
* and DEBUGPROCAMD callback function for <category>:
*/
int GL_DEBUG_CATEGORY_API_ERROR_AMD = 0x9149,
GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A,
GL_DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B,
GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C,
GL_DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D,
GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E,
GL_DEBUG_CATEGORY_APPLICATION_AMD = 0x914F,
GL_DEBUG_CATEGORY_OTHER_AMD = 0x9150;
void glDebugMessageEnableAMD(@GLenum int category, @GLenum int severity, @AutoSize(value = "ids", canBeNull = true) @GLsizei int count, @Check(canBeNull = true) @Const @GLuint IntBuffer ids, boolean enabled);
void glDebugMessageInsertAMD(@GLenum int category, @GLenum int severity, @GLuint int id, @AutoSize("buf") @GLsizei int length, @Const @GLchar ByteBuffer buf);
@Alternate("glDebugMessageInsertAMD")
void glDebugMessageInsertAMD(@GLenum int category, @GLenum int severity, @GLuint int id, @Constant("buf.length()") @GLsizei int length, CharSequence buf);
/**
* The {@code AMDDebugOutputCallback.Handler} implementation passed to this method will be used for
* AMD_debug_output messages. If callback is null, any previously registered handler for the current
* thread will be unregistered and stop receiving messages.
*
* @param callback the callback function to use
*/
@Code(
// Create a GlobalRef to the callback object and register it with the current context.
javaBeforeNative = "\t\tlong userParam = callback == null ? 0 : CallbackUtil.createGlobalRef(callback.getHandler());\n" +
"\t\tCallbackUtil.registerContextCallbackAMD(userParam);"
)
void glDebugMessageCallbackAMD(@PointerWrapper(value = "GLDEBUGPROCAMD", canBeNull = true) AMDDebugOutputCallback callback,
@Constant("userParam") @PointerWrapper("GLvoid *") long userParam);
@GLuint
int glGetDebugMessageLogAMD(@GLuint int count,
@AutoSize(value = "messageLog", canBeNull = true) @GLsizei int logSize,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer categories,
@Check(value = "count", canBeNull = true) @GLuint IntBuffer severities,
@Check(value = "count", canBeNull = true) @GLuint IntBuffer ids,
@Check(value = "count", canBeNull = true) @GLsizei IntBuffer lengths,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer messageLog);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_name_gen_delete.java 0000644 0001750 0001750 00000005461 12702226520 023366 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface AMD_name_gen_delete {
/** Accepted as the <identifier> parameter of GenNamesAMD and DeleteNamesAMD: */
int GL_DATA_BUFFER_AMD = 0x9151,
GL_PERFORMANCE_MONITOR_AMD = 0x9152,
GL_QUERY_OBJECT_AMD = 0x9153,
GL_VERTEX_ARRAY_OBJECT_AMD = 0x9154,
GL_SAMPLER_OBJECT_AMD = 0x9155;
void glGenNamesAMD(@GLenum int identifier, @AutoSize("names") @GLuint int num, @OutParameter @GLuint IntBuffer names);
@Alternate("glGenNamesAMD")
@GLreturn("names")
void glGenNamesAMD2(@GLenum int identifier, @Constant("1") @GLsizei int num, @OutParameter @GLuint IntBuffer names);
void glDeleteNamesAMD(@GLenum int identifier, @AutoSize("names") @GLsizei int num, @Const @GLuint IntBuffer names);
@Alternate("glDeleteNamesAMD")
void glDeleteNamesAMD(@GLenum int identifier, @Constant("1") @GLsizei int num, @Constant(value = "APIUtil.getInt(caps, name)", keepParam = true) int name);
boolean glIsNameAMD(@GLenum int identifier, @GLuint int name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_non_power_of_two.java 0000644 0001750 0001750 00000003157 12702226520 025441 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_non_power_of_two {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_point_parameters.java 0000644 0001750 0001750 00000004045 12702226520 023703 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import java.nio.*;
public interface EXT_point_parameters {
int GL_POINT_SIZE_MIN_EXT = 0x8126;
int GL_POINT_SIZE_MAX_EXT = 0x8127;
int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128;
int GL_DISTANCE_ATTENUATION_EXT = 0x8129;
void glPointParameterfEXT(@GLenum int pname, float param);
@StripPostfix("pfParams")
void glPointParameterfvEXT(@GLenum int pname, @Check("4") @Const FloatBuffer pfParams);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_transform_feedback2.java 0000644 0001750 0001750 00000006263 12702226520 024200 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface ARB_transform_feedback2 {
/** Accepted by the <target> parameter of BindTransformFeedback: */
int GL_TRANSFORM_FEEDBACK = 0x8E22;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23;
int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24;
int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25;
@Reuse("GL40")
void glBindTransformFeedback(@GLenum int target, @GLuint int id);
@Reuse("GL40")
void glDeleteTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @Const @GLuint IntBuffer ids);
@Reuse("GL40")
@Alternate("glDeleteTransformFeedbacks")
void glDeleteTransformFeedbacks(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, id)", keepParam = true) int id);
@Reuse("GL40")
void glGenTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Reuse("GL40")
@Alternate("glGenTransformFeedbacks")
@GLreturn("ids")
void glGenTransformFeedbacks2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Reuse("GL40")
boolean glIsTransformFeedback(@GLuint int id);
@Reuse("GL40")
void glPauseTransformFeedback();
@Reuse("GL40")
void glResumeTransformFeedback();
@Reuse("GL40")
void glDrawTransformFeedback(@GLenum int mode, @GLuint int id);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_bindless_texture.java 0000644 0001750 0001750 00000006217 12702226520 023600 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.StripPostfix;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import org.lwjgl.util.generator.opengl.GLuint64;
import java.nio.LongBuffer;
public interface NV_bindless_texture {
@GLuint64
long glGetTextureHandleNV(@GLuint int texture);
@GLuint64
long glGetTextureSamplerHandleNV(@GLuint int texture, @GLuint int sampler);
void glMakeTextureHandleResidentNV(@GLuint64 long handle);
void glMakeTextureHandleNonResidentNV(@GLuint64 long handle);
@GLuint64
long glGetImageHandleNV(@GLuint int texture, int level, boolean layered,
int layer, @GLenum int format);
void glMakeImageHandleResidentNV(@GLuint64 long handle, @GLenum int access);
void glMakeImageHandleNonResidentNV(@GLuint64 long handle);
void glUniformHandleui64NV(int location, @GLuint64 long value);
@StripPostfix("value")
void glUniformHandleui64vNV(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint64 LongBuffer value);
void glProgramUniformHandleui64NV(@GLuint int program, int location,
@GLuint64 long value);
@StripPostfix("values")
void glProgramUniformHandleui64vNV(@GLuint int program, int location,
@AutoSize("values") @GLsizei int count, @Const @GLuint64 LongBuffer values);
boolean glIsTextureHandleResidentNV(@GLuint64 long handle);
boolean glIsImageHandleResidentNV(@GLuint64 long handle);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/SGIS_generate_mipmap.java 0000644 0001750 0001750 00000004036 12702226520 023571 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
public interface SGIS_generate_mipmap {
/**
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.
*/
int GL_GENERATE_MIPMAP_SGIS = 0x8191;
/**
* Accepted by the <target> parameter of Hint, and by the
* parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
*/
int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_shadow_funcs.java 0000644 0001750 0001750 00000003143 12702226520 023010 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_shadow_funcs {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_bindless_multi_draw_indirect.java 0000644 0001750 0001750 00000005612 12702226520 026126 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.BufferKind;
import org.lwjgl.util.generator.BufferObject;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
public interface NV_bindless_multi_draw_indirect {
void glMultiDrawArraysIndirectBindlessNV(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 20 + 24 * vertexBufferCount : stride) * drawCount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int drawCount,
@GLsizei int stride,
int vertexBufferCount);
void glMultiDrawElementsIndirectBindlessNV(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 48 + 24 * vertexBufferCount : stride) * drawCount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int drawCount,
@GLsizei int stride,
int vertexBufferCount);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_env_combine.java 0000644 0001750 0001750 00000004475 12702226520 024402 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_env_combine {
int GL_COMBINE_EXT = 0x8570;
int GL_COMBINE_RGB_EXT = 0x8571;
int GL_COMBINE_ALPHA_EXT = 0x8572;
int GL_SOURCE0_RGB_EXT = 0x8580;
int GL_SOURCE1_RGB_EXT = 0x8581;
int GL_SOURCE2_RGB_EXT = 0x8582;
int GL_SOURCE0_ALPHA_EXT = 0x8588;
int GL_SOURCE1_ALPHA_EXT = 0x8589;
int GL_SOURCE2_ALPHA_EXT = 0x858A;
int GL_OPERAND0_RGB_EXT = 0x8590;
int GL_OPERAND1_RGB_EXT = 0x8591;
int GL_OPERAND2_RGB_EXT = 0x8592;
int GL_OPERAND0_ALPHA_EXT = 0x8598;
int GL_OPERAND1_ALPHA_EXT = 0x8599;
int GL_OPERAND2_ALPHA_EXT = 0x859A;
int GL_RGB_SCALE_EXT = 0x8573;
int GL_ADD_SIGNED_EXT = 0x8574;
int GL_INTERPOLATE_EXT = 0x8575;
int GL_CONSTANT_EXT = 0x8576;
int GL_PRIMARY_COLOR_EXT = 0x8577;
int GL_PREVIOUS_EXT = 0x8578;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_compression_bptc.java 0000644 0001750 0001750 00000004441 12702226520 025424 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Alias;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "ARB", className = "ARBTextureCompressionBPTC")
@Alias("EXT_texture_compression_bptc")
public interface ARB_texture_compression_bptc {
/**
* Accepted by the <internalformat> parameter of TexImage2D, TexImage3D,
* CopyTexImage2D, CopyTexImage3D, CompressedTexImage2DARB, and
* CompressedTexImage3DARB and the <format> parameter of
* CompressedTexSubImage2DARB and CompressedTexSubImage3DARB:
*/
int GL_COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C;
int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D;
int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E;
int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_occlusion_query.java 0000644 0001750 0001750 00000010451 12702226520 023514 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface ARB_occlusion_query {
/**
* Accepted by the <target> parameter of BeginQueryARB, EndQueryARB,
* and GetQueryivARB:
*/
int GL_SAMPLES_PASSED_ARB = 0x8914;
/** Accepted by the <pname> parameter of GetQueryivARB: */
int GL_QUERY_COUNTER_BITS_ARB = 0x8864;
int GL_CURRENT_QUERY_ARB = 0x8865;
/**
* Accepted by the <pname> parameter of GetQueryObjectivARB and
* GetQueryObjectuivARB:
*/
int GL_QUERY_RESULT_ARB = 0x8866;
int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867;
void glGenQueriesARB(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenQueriesARB")
@GLreturn("ids")
void glGenQueriesARB2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
void glDeleteQueriesARB(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids);
@Alternate("glDeleteQueriesARB")
void glDeleteQueriesARB(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, id)", keepParam = true) int id);
boolean glIsQueryARB(@GLuint int id);
void glBeginQueryARB(@GLenum int target, @GLuint int id);
void glEndQueryARB(@GLenum int target);
@StripPostfix("params")
void glGetQueryivARB(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryiARB} instead. */
@Alternate("glGetQueryivARB")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "ARBOcclusionQuery", method = "glGetQueryiARB")
@Deprecated
void glGetQueryivARB2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetQueryivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryivARB3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetQueryObjectivARB(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetQueryObjectivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectivARB2(@GLuint int id, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetQueryObjectuivARB(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetQueryObjectuivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectuivARB2(@GLuint int id, @GLenum int pname, @OutParameter IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_packed_float.java 0000644 0001750 0001750 00000006244 12702226520 022746 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_packed_float {
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorageEXT:
*/
int GL_R11F_G11F_B10F_EXT = 0x8C3A;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
* GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter,
* ColorTable, ColorSubTable, and GetColorTable:
*/
int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B;
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C;
/**
* Accepted as a value in the <piAttribIList> and <pfAttribFList>
* parameter arrays of wglChoosePixelFormatARB, and returned in the
* <piValues> parameter array of wglGetPixelFormatAttribivARB, and the
* <pfValues> parameter array of wglGetPixelFormatAttribfvARB:
*/
int WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT = 0x20A8;
/**
* Accepted as values of the <render_type> arguments in the
* glXCreateNewContext and glXCreateContext functions
*/
int GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT = 0x20B1;
/**
* Returned by glXGetFBConfigAttrib (when <attribute> is set to
* GLX_RENDER_TYPE) and accepted by the <attrib_list> parameter of
* glXChooseFBConfig (following the GLX_RENDER_TYPE token):
*/
int GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x00000008;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_draw_buffers2.java 0000644 0001750 0001750 00000005560 12702226520 023065 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLboolean;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
import java.nio.ByteBuffer;
public interface EXT_draw_buffers2 {
void glColorMaskIndexedEXT(@GLuint int buf, boolean r, boolean g, boolean b, boolean a);
@StripPostfix("data")
void glGetBooleanIndexedvEXT(@GLenum int value, @GLuint int index, @OutParameter @Check("4") @GLboolean ByteBuffer data);
@Alternate("glGetBooleanIndexedvEXT")
@GLreturn("data")
@StripPostfix("data")
void glGetBooleanIndexedvEXT2(@GLenum int value, @GLuint int index, @OutParameter @GLboolean ByteBuffer data);
@StripPostfix("data")
void glGetIntegerIndexedvEXT(@GLenum int value, @GLuint int index, @OutParameter @Check("4") IntBuffer data);
@Alternate("glGetIntegerIndexedvEXT")
@GLreturn("data")
@StripPostfix("data")
void glGetIntegerIndexedvEXT2(@GLenum int value, @GLuint int index, @OutParameter IntBuffer data);
void glEnableIndexedEXT(@GLenum int target, @GLuint int index);
void glDisableIndexedEXT(@GLenum int target, @GLuint int index);
boolean glIsEnabledIndexedEXT(@GLenum int target, @GLuint int index);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_fog_distance.java 0000644 0001750 0001750 00000003321 12702226520 022633 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_fog_distance {
int GL_FOG_DISTANCE_MODE_NV = 0x855A;
int GL_EYE_RADIAL_NV = 0x855B;
int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_ycbcr_422.java 0000644 0001750 0001750 00000004754 12702226520 022230 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_ycbcr_422 {
/**
* Accepted by the <format> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D,
* ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter,
* SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable,
* GetColorTable:
*/
int GL_YCBCR_422_APPLE = 0x85B9;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D,
* ConvolutionFilter2D, ConvolutionFilter3D, GetConvolutionFilter,
* SeparableFilter2D, SeparableFilter3D, GetSeparableFilter, ColorTable,
* GetColorTable:
*/
int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA;
int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_evaluators.java 0000644 0001750 0001750 00000010346 12702226520 022400 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLfloat;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
public interface NV_evaluators {
int GL_EVAL_2D_NV = 0x86C0;
int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1;
int GL_MAP_TESSELLATION_NV = 0x86C2;
int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3;
int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4;
int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5;
int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6;
int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7;
int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8;
int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9;
int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA;
int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB;
int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC;
int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD;
int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE;
int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF;
int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0;
int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1;
int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2;
int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3;
int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4;
int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5;
int GL_MAX_MAP_TESSELLATION_NV = 0x86D6;
int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7;
void glGetMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, boolean packed,
@OutParameter
@Check
@Const
@GLfloat Buffer pPoints);
void glMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, int uorder, int vorder, boolean packed, @Check @Const @GLfloat Buffer pPoints);
@StripPostfix("params")
void glMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glGetMapParameterfvNV(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glGetMapParameterivNV(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glGetMapAttribParameterfvNV(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetMapAttribParameterivNV(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
void glEvalMapsNV(@GLenum int target, @GLenum int mode);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_clip_control.java 0000644 0001750 0001750 00000004276 12702226520 022770 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ARB_clip_control {
/** Accepted by the <origin> parameter of ClipControl: */
int GL_LOWER_LEFT = 0x8CA1,
GL_UPPER_LEFT = 0x8CA2;
/** Accepted by the <depth> parameter of ClipControl: */
int GL_NEGATIVE_ONE_TO_ONE = 0x935E,
GL_ZERO_TO_ONE = 0x935F;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_CLIP_ORIGIN = 0x935C,
GL_CLIP_DEPTH_MODE = 0x935D;
@Reuse("GL45")
void glClipControl(@GLenum int origin, @GLenum int depth);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_fragment_layer_viewport.java 0000644 0001750 0001750 00000003155 12702226520 025232 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_fragment_layer_viewport {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_buffer_object.java 0000644 0001750 0001750 00000004672 12702226520 024714 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_texture_buffer_object {
/**
* Accepted by the <target> parameter of BindBuffer, BufferData,
* BufferSubData, MapBuffer, BindTexture, UnmapBuffer, GetBufferSubData,
* GetBufferParameteriv, GetBufferPointerv, and TexBufferEXT, and
* the <pname> parameter of GetBooleanv, GetDoublev, GetFloatv, and
* GetIntegerv:
*/
int GL_TEXTURE_BUFFER_EXT = 0x8C2A;
/**
* Accepted by the <pname> parameters of GetBooleanv, GetDoublev,
* GetFloatv, and GetIntegerv:
*/
int GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B;
int GL_TEXTURE_BINDING_BUFFER_EXT = 0x8C2C;
int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D;
int GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E;
void glTexBufferEXT(@GLenum int target, @GLenum int internalformat, @GLuint int buffer);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_gpu_program_parameters.java 0000644 0001750 0001750 00000004210 12702226520 025066 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
public interface EXT_gpu_program_parameters {
@StripPostfix("params")
void glProgramEnvParameters4fvEXT(@GLenum int target, @GLuint int index, @GLsizei int count, @Check("count << 2") @Const FloatBuffer params);
@StripPostfix("params")
void glProgramLocalParameters4fvEXT(@GLenum int target, @GLuint int index, @GLsizei int count, @Check("count << 2") @Const FloatBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_conservative_depth.java 0000644 0001750 0001750 00000003150 12702226520 024163 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_conservative_depth {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_array_bgra.java 0000644 0001750 0001750 00000003372 12702226520 024003 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_vertex_array_bgra {
/**
* Accepted by the <size> parameter of ColorPointer,
* SecondaryColorPointer, and VertexAttribPointer:
*/
int GL_BGRA = 0x80E1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_viewport_array.java 0000644 0001750 0001750 00000011441 12702226520 023346 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_viewport_array {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* GetDoublev and GetInteger64v:
*/
int GL_MAX_VIEWPORTS = 0x825B,
GL_VIEWPORT_SUBPIXEL_BITS = 0x825C,
GL_VIEWPORT_BOUNDS_RANGE = 0x825D,
GL_LAYER_PROVOKING_VERTEX = 0x825E,
GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F;
/**
* Returned in the <data> parameter from a Get query with a <pname> of
* LAYER_PROVOKING_VERTEX or VIEWPORT_INDEX_PROVOKING_VERTEX:
*/
int GL_FIRST_VERTEX_CONVENTION = 0x8E4D,
GL_LAST_VERTEX_CONVENTION = 0x8E4E,
GL_PROVOKING_VERTEX = 0x8E4F,
GL_UNDEFINED_VERTEX = 0x8260;
@Reuse("GL41")
@StripPostfix("v")
void glViewportArrayv(@GLuint int first, @AutoSize(value = "v", expression = " >> 2") @GLsizei int count, @Const FloatBuffer v);
@Reuse("GL41")
void glViewportIndexedf(@GLuint int index, float x, float y, float w, float h);
@Reuse("GL41")
@StripPostfix("v")
void glViewportIndexedfv(@GLuint int index, @Check("4") @Const FloatBuffer v);
@Reuse("GL41")
@StripPostfix("v")
void glScissorArrayv(@GLuint int first, @AutoSize(value = "v", expression = " >> 2") @GLsizei int count, @Const IntBuffer v);
@Reuse("GL41")
void glScissorIndexed(@GLuint int index, int left, int bottom, @GLsizei int width, @GLsizei int height);
@Reuse("GL41")
@StripPostfix("v")
void glScissorIndexedv(@GLuint int index, @Check("4") @Const IntBuffer v);
@Reuse("GL41")
@StripPostfix("v")
void glDepthRangeArrayv(@GLuint int first, @AutoSize(value = "v", expression = " >> 1") @GLsizei int count, @Const @GLclampd DoubleBuffer v);
@Reuse("GL41")
void glDepthRangeIndexed(@GLuint int index, @GLclampd double n, @GLclampd double f);
@Reuse("GL41")
@StripPostfix("data")
void glGetFloati_v(@GLenum int target, @GLuint int index, @Check @OutParameter FloatBuffer data);
@Reuse("GL41")
@Alternate("glGetFloati_v")
@GLreturn("data")
@StripPostfix("data")
void glGetFloati_v2(@GLenum int target, @GLuint int index, @OutParameter FloatBuffer data);
@Reuse("GL41")
@StripPostfix("data")
void glGetDoublei_v(@GLenum int target, @GLuint int index, @Check @OutParameter DoubleBuffer data);
@Reuse("GL41")
@Alternate("glGetDoublei_v")
@GLreturn("data")
@StripPostfix("data")
void glGetDoublei_v2(@GLenum int target, @GLuint int index, @OutParameter DoubleBuffer data);
@Reuse("EXTDrawBuffers2")
@StripPostfix(value = "v", extension = "EXT")
void glGetIntegerIndexedvEXT(@GLenum int target, @GLuint int index, @Check @OutParameter IntBuffer v);
@Reuse("EXTDrawBuffers2")
@Alternate("glGetIntegerIndexedivEXT")
@GLreturn("v")
@StripPostfix(value = "v", extension = "EXT")
void glGetIntegerIndexedvEXT2(@GLenum int target, @GLuint int index, @OutParameter IntBuffer v);
@Reuse("EXTDrawBuffers2")
void glEnableIndexedEXT(@GLenum int target, @GLuint int index);
@Reuse("EXTDrawBuffers2")
void glDisableIndexedEXT(@GLenum int target, @GLuint int index);
@Reuse("EXTDrawBuffers2")
boolean glIsEnabledIndexedEXT(@GLenum int target, @GLuint int index);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_envmap_bumpmap.java 0000644 0001750 0001750 00000004673 12702226520 023322 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import java.nio.*;
public interface ATI_envmap_bumpmap {
int GL_BUMP_ROT_MATRIX_ATI = 0x8775;
int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776;
int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777;
int GL_BUMP_TEX_UNITS_ATI = 0x8778;
int GL_DUDV_ATI = 0x8779;
int GL_DU8DV8_ATI = 0x877A;
int GL_BUMP_ENVMAP_ATI = 0x877B;
int GL_BUMP_TARGET_ATI = 0x877C;
@StripPostfix("param")
void glTexBumpParameterfvATI(@GLenum int pname, @Check("4") @Const FloatBuffer param);
@StripPostfix("param")
void glTexBumpParameterivATI(@GLenum int pname, @Check("4") @Const IntBuffer param);
@StripPostfix("param")
void glGetTexBumpParameterfvATI(@GLenum int pname, @OutParameter @Check("4") FloatBuffer param);
@StripPostfix("param")
void glGetTexBumpParameterivATI(@GLenum int pname, @OutParameter @Check("4") IntBuffer param);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL45.java 0000644 0001750 0001750 00000067513 12702226520 020273 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface GL45 {
// ----------------------------------------------------------------
// ----------------------[ ARB_clip_control ]----------------------
// ----------------------------------------------------------------
/** Accepted by the <depth> parameter of ClipControl: */
int GL_NEGATIVE_ONE_TO_ONE = 0x935E,
GL_ZERO_TO_ONE = 0x935F;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_CLIP_ORIGIN = 0x935C,
GL_CLIP_DEPTH_MODE = 0x935D;
void glClipControl(@GLenum int origin, @GLenum int depth);
// -------------------------------------------------------------------------------
// ----------------------[ ARB_conditional_render_inverted ]----------------------
// -------------------------------------------------------------------------------
/** Accepted by the <mode> parameter of BeginConditionalRender: */
int GL_QUERY_WAIT_INVERTED = 0x8E17,
GL_QUERY_NO_WAIT_INVERTED = 0x8E18,
GL_QUERY_BY_REGION_WAIT_INVERTED = 0x8E19,
GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A;
// -----------------------------------------------------------------
// ----------------------[ ARB_cull_distance ]----------------------
// -----------------------------------------------------------------
/** Accepted by the <pname> parameter of GetBooeleanv, GetDoublev, GetFloatv GetIntegerv, and GetInteger64v: */
int GL_MAX_CULL_DISTANCES = 0x82F9,
GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA;
// -----------------------------------------------------------------------
// ----------------------[ ARB_direct_state_access ]----------------------
// -----------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetTextureParameter{if}v and
* GetTextureParameterI{i ui}v:
*/
int GL_TEXTURE_TARGET = 0x1006;
/** Accepted by the <pname> parameter of GetQueryObjectiv: */
int GL_QUERY_TARGET = 0x82EA;
/** Accepted by the <pname> parameter of GetIntegeri_v: */
int GL_TEXTURE_BINDING = 0x82EB;
// Transform Feedback object functions
void glCreateTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glCreateTransformFeedbacks")
@GLreturn("ids")
void glCreateTransformFeedbacks2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
void glTransformFeedbackBufferBase(@GLuint int xfb, @GLuint int index, @GLuint int buffer);
void glTransformFeedbackBufferRange(@GLuint int xfb, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
@StripPostfix("param")
void glGetTransformFeedbackiv(@GLuint int xfb, @GLenum int pname, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetTransformFeedbackiv")
@GLreturn("param")
@StripPostfix(value = "param", hasPostfix = false)
void glGetTransformFeedbackiv2(@GLuint int xfb, @GLenum int pname, @OutParameter IntBuffer param);
@StripPostfix("param")
void glGetTransformFeedbacki_v(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetTransformFeedbacki_v")
@GLreturn("param")
@StripPostfix(value = "param", postfix = "_v")
void glGetTransformFeedbacki_v2(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter IntBuffer param);
@StripPostfix("param")
void glGetTransformFeedbacki64_v(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter @Check("1") @GLint64 LongBuffer param);
@Alternate("glGetTransformFeedbacki64_v")
@GLreturn("param")
@StripPostfix(value = "param", postfix = "_v")
void glGetTransformFeedbacki64_v2(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter @GLint64 LongBuffer param);
// Buffer object functions
void glCreateBuffers(@AutoSize("buffers") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
@Alternate("glCreateBuffers")
@GLreturn("buffers")
void glCreateBuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
void glNamedBufferStorage(@GLuint int buffer, @AutoSize("data") @GLsizeiptr long size,
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data,
@GLbitfield int flags);
@Alternate("glNamedBufferStorage")
void glNamedBufferStorage2(@GLuint int buffer, @GLsizeiptr long size, @Constant("0L") @Const Buffer data, @GLbitfield int flags);
@GenerateAutos
void glNamedBufferData(@GLuint int buffer, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data,
@GLenum int usage);
void glNamedBufferSubData(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
void glCopyNamedBufferSubData(@GLuint int readBuffer, @GLuint int writeBuffer, @GLintptr long readOffset, @GLintptr long writeOffset, @GLsizeiptr long size);
void glClearNamedBufferData(@GLuint int buffer, @GLenum int internalformat, @GLenum int format, @GLenum int type, @Check("1") @Const @GLvoid ByteBuffer data);
void glClearNamedBufferSubData(@GLuint int buffer, @GLenum int internalformat, @GLintptr long offset, @GLsizeiptr long size, @GLenum int format, @GLenum int type, @Check("1") @Const @GLvoid ByteBuffer data);
/**
* Maps a buffer object's data store.
*
* LWJGL note: This method comes in 2 flavors:
*
*
{@link #glMapNamedBuffer(int, int, ByteBuffer)} - Calls {@link #glGetNamedBufferParameteri} to retrieve the buffer size and the {@code old_buffer} parameter is reused if the returned size and pointer match the buffer capacity and address, respectively.
*
{@link #glMapNamedBuffer(int, int, int, ByteBuffer)} - The buffer size is explicitly specified and the {@code old_buffer} parameter is reused if {@code size} and the returned pointer match the buffer capacity and address, respectively. This is the most efficient method.
*
*
* @param buffer the buffer object being mapped
* @param access the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store
*/
@CachedResult
@GLvoid
@AutoSize("glGetNamedBufferParameteri(buffer, GL15.GL_BUFFER_SIZE)")
ByteBuffer glMapNamedBuffer(@GLuint int buffer, @GLenum int access);
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapNamedBufferRange(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
boolean glUnmapNamedBuffer(@GLuint int buffer);
void glFlushMappedNamedBufferRange(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length);
@StripPostfix("params")
void glGetNamedBufferParameteriv(@GLuint int buffer, @GLenum int pname, @OutParameter @Check IntBuffer params);
@Alternate("glGetNamedBufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetNamedBufferParameteriv2(@GLuint int buffer, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetNamedBufferParameteri64v(@GLuint int buffer, @GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer params);
@Alternate("glGetNamedBufferParameteri64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetNamedBufferParameteri64v2(@GLuint int buffer, @GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@StripPostfix("params")
@AutoSize("glGetNamedBufferParameteri(buffer, GL15.GL_BUFFER_SIZE)")
void glGetNamedBufferPointerv(@GLuint int buffer, @GLenum int pname, @Result @GLvoid ByteBuffer params);
void glGetNamedBufferSubData(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@OutParameter
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
// Framebuffer object functions
void glCreateFramebuffers(@AutoSize("framebuffers") @GLsizei int n, @OutParameter @GLuint IntBuffer framebuffers);
@Alternate("glCreateFramebuffers")
@GLreturn("framebuffers")
void glCreateFramebuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer framebuffers);
void glNamedFramebufferRenderbuffer(@GLuint int framebuffer, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
void glNamedFramebufferParameteri(@GLuint int framebuffer, @GLenum int pname, int param);
void glNamedFramebufferTexture(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level);
void glNamedFramebufferTextureLayer(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level, int layer);
void glNamedFramebufferDrawBuffer(@GLuint int framebuffer, @GLenum int mode);
void glNamedFramebufferDrawBuffers(@GLuint int framebuffer, @AutoSize("bufs") @GLsizei int n, @Const @GLenum IntBuffer bufs);
void glNamedFramebufferReadBuffer(@GLuint int framebuffer, @GLenum int mode);
void glInvalidateNamedFramebufferData(@GLuint int framebuffer, @AutoSize("attachments") @GLsizei int numAttachments, @Const @GLenum IntBuffer attachments);
void glInvalidateNamedFramebufferSubData(@GLuint int framebuffer, @AutoSize("attachments") @GLsizei int numAttachments, @Const @GLenum IntBuffer attachments, int x, int y, @GLsizei int width, @GLsizei int height);
@StripPostfix("value")
void glClearNamedFramebufferiv(@GLuint int framebuffer, @GLenum int buffer, int drawbuffer, @Const @Check("1") IntBuffer value);
@StripPostfix("value")
void glClearNamedFramebufferuiv(@GLuint int framebuffer, @GLenum int buffer, int drawbuffer, @Const @Check("4") @GLuint IntBuffer value);
@StripPostfix("value")
void glClearNamedFramebufferfv(@GLuint int framebuffer, @GLenum int buffer, int drawbuffer, @Const @Check("1") FloatBuffer value);
void glClearNamedFramebufferfi(@GLuint int framebuffer, @GLenum int buffer, float depth, int stencil);
void glBlitNamedFramebuffer(
@GLuint int readFramebuffer, @GLuint int drawFramebuffer,
int srcX0, int srcY0, int srcX1, int srcY1,
int dstX0, int dstY0, int dstX1, int dstY1,
@GLbitfield int mask, @GLenum int filter);
@GLenum
int glCheckNamedFramebufferStatus(@GLuint int framebuffer, @GLenum int target);
@StripPostfix("params")
void glGetNamedFramebufferParameteriv(@GLuint int framebuffer, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedFramebufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
void glGetNamedFramebufferParameteriv2(@GLuint int framebuffer, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetNamedFramebufferAttachmentParameteriv(@GLuint int framebuffer, @GLenum int attachment, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix("params")
void glGetNamedFramebufferAttachmentParameteriv2(@GLuint int framebuffer, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
// Renderbuffer object functions
void glCreateRenderbuffers(@AutoSize("renderbuffers") @GLsizei int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Alternate("glCreateRenderbuffers")
@GLreturn("renderbuffers")
void glCreateRenderbuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer renderbuffers);
void glNamedRenderbufferStorage(@GLuint int renderbuffer, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
void glNamedRenderbufferStorageMultisample(@GLuint int renderbuffer, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@StripPostfix("params")
void glGetNamedRenderbufferParameteriv(@GLuint int renderbuffer, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
void glGetNamedRenderbufferParameteriv2(@GLuint int renderbuffer, @GLenum int pname, @OutParameter IntBuffer params);
// Texture object functions
void glCreateTextures(@GLenum int target, @AutoSize("textures") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
@Alternate("glCreateTextures")
@GLreturn("textures")
void glCreateTextures2(@GLenum int target, @Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
void glTextureBuffer(@GLuint int texture, @GLenum int internalformat, @GLuint int buffer);
void glTextureBufferRange(@GLuint int texture, @GLenum int internalformat, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
void glTextureStorage1D(@GLuint int texture, @GLsizei int levels, @GLenum int internalformat, @GLsizei int width);
void glTextureStorage2D(@GLuint int texture, @GLsizei int levels, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
void glTextureStorage3D(@GLuint int texture, @GLsizei int levels, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth);
void glTextureStorage2DMultisample(@GLuint int texture, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, boolean fixedsamplelocations);
void glTextureStorage3DMultisample(@GLuint int texture, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, boolean fixedsamplelocations);
void glTextureSubImage1D(@GLuint int texture, int level, int xoffset, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTextureSubImage2D(@GLuint int texture, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTextureSubImage3D(@GLuint int texture, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glCompressedTextureSubImage1D(@GLuint int texture, int level, int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glCompressedTextureSubImage2D(@GLuint int texture, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glCompressedTextureSubImage3D(@GLuint int texture, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
void glCopyTextureSubImage1D(@GLuint int texture, int level, int xoffset, int x, int y, @GLsizei int width);
void glCopyTextureSubImage2D(@GLuint int texture, int level, int xoffset, int yoffset, int x, int y, @GLsizei int width, @GLsizei int height);
void glCopyTextureSubImage3D(@GLuint int texture, int level, int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
void glTextureParameterf(@GLuint int texture, @GLenum int pname, float param);
@StripPostfix("params")
void glTextureParameterfv(@GLuint int texture, @GLenum int pname, @Const @Check("4") FloatBuffer params);
void glTextureParameteri(@GLuint int texture, @GLenum int pname, int param);
@StripPostfix("params")
void glTextureParameterIiv(@GLuint int texture, @GLenum int pname, @Const @Check("1") IntBuffer params);
@StripPostfix("params")
void glTextureParameterIuiv(@GLuint int texture, @GLenum int pname, @Const @Check("1") @GLuint IntBuffer params);
@StripPostfix("params")
void glTextureParameteriv(@GLuint int texture, @GLenum int pname, @Const @Check("4") IntBuffer params);
void glGenerateTextureMipmap(@GLuint int texture);
void glBindTextureUnit(@GLuint int unit, @GLuint int texture);
void glGetTextureImage(@GLuint int texture, int level, @GLenum int format, @GLenum int type, @AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glGetCompressedTextureImage(@GLuint int texture, int level, @AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint Buffer pixels);
@StripPostfix("params")
void glGetTextureLevelParameterfv(@GLuint int texture, int level, @GLenum int pname, @OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetTextureLevelParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureLevelParameterfv2(@GLuint int texture, int level, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTextureLevelParameteriv(@GLuint int texture, int level, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTextureLevelParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureLevelParameteriv2(@GLuint int texture, int level, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTextureParameterfv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetTextureParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterfv2(@GLuint int texture, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTextureParameterIiv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTextureParameterIiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterIiv2(@GLuint int texture, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTextureParameterIuiv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params);
@Alternate("glGetTextureParameterIuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterIuiv2(@GLuint int texture, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
@StripPostfix("params")
void glGetTextureParameteriv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTextureParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameteriv2(@GLuint int texture, @GLenum int pname, @OutParameter IntBuffer params);
// Vertex Array object functions
void glCreateVertexArrays(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Alternate("glCreateVertexArrays")
@GLreturn("arrays")
void glCreateVertexArrays2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
void glDisableVertexArrayAttrib(@GLuint int vaobj, @GLuint int index);
void glEnableVertexArrayAttrib(@GLuint int vaobj, @GLuint int index);
void glVertexArrayElementBuffer(@GLuint int vaobj, @GLuint int buffer);
void glVertexArrayVertexBuffer(@GLuint int vaobj, @GLuint int bindingindex, @GLuint int buffer, @GLintptr long offset, @GLsizei int stride);
void glVertexArrayVertexBuffers(@GLuint int vaobj, @GLuint int first, @GLsizei int count,
@Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers,
@Check(value = "count", canBeNull = true) @Const @GLintptr PointerBuffer offsets,
@Check(value = "count", canBeNull = true) @Const @GLsizei IntBuffer strides);
void glVertexArrayAttribFormat(@GLuint int vaobj, @GLuint int attribindex, int size, @GLenum int type, boolean normalized, @GLuint int relativeoffset);
void glVertexArrayAttribIFormat(@GLuint int vaobj, @GLuint int attribindex, int size, @GLenum int type, @GLuint int relativeoffset);
void glVertexArrayAttribLFormat(@GLuint int vaobj, @GLuint int attribindex, int size, @GLenum int type, @GLuint int relativeoffset);
void glVertexArrayAttribBinding(@GLuint int vaobj, @GLuint int attribindex, @GLuint int bindingindex);
void glVertexArrayBindingDivisor(@GLuint int vaobj, @GLuint int bindingindex, @GLuint int divisor);
@StripPostfix("param")
void glGetVertexArrayiv(@GLuint int vaobj, @GLenum int pname, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetVertexArrayiv")
@GLreturn("param")
@StripPostfix("param")
void glGetVertexArrayiv2(@GLuint int vaobj, @GLenum int pname, @OutParameter IntBuffer param);
@StripPostfix("param")
void glGetVertexArrayIndexediv(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetVertexArrayIndexediv")
@GLreturn("param")
@StripPostfix("param")
void glGetVertexArrayIndexediv2(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer param);
@StripPostfix("param")
void glGetVertexArrayIndexed64iv(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer param);
@Alternate("glGetVertexArrayIndexed64iv")
@GLreturn("param")
@StripPostfix("param")
void glGetVertexArrayIndexed64iv2(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @GLint64 LongBuffer param);
// Sampler object functions
void glCreateSamplers(@AutoSize("samplers") @GLsizei int n, @OutParameter @GLuint IntBuffer samplers);
@Alternate("glCreateSamplers")
@GLreturn("samplers")
void glCreateSamplers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer samplers);
// Program Pipeline object functions
void glCreateProgramPipelines(@AutoSize("pipelines") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
@Alternate("glCreateProgramPipelines")
@GLreturn("pipelines")
void glCreateProgramPipelines2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
// Query object functions
void glCreateQueries(@GLenum int target, @AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glCreateQueries")
@GLreturn("ids")
void glCreateQueries2(@GLenum int target, @Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
// -----------------------------------------------------------------------
// ----------------------[ ARB_ES3_1_compatibility ]----------------------
// -----------------------------------------------------------------------
void glMemoryBarrierByRegion(@GLbitfield int barriers);
// -------------------------------------------------------------------------
// ----------------------[ ARB_get_texture_sub_image ]----------------------
// -------------------------------------------------------------------------
void glGetTextureSubImage(
@GLuint int texture, int level, int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLenum int type,
@AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels
);
void glGetCompressedTextureSubImage(
@GLuint int texture, int level, int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels
);
// -------------------------------------------------------------------
// ----------------------[ ARB_texture_barrier ]----------------------
// -------------------------------------------------------------------
void glTextureBarrier();
// -------------------------------------------------------------------------
// ----------------------[ KHR_context_flush_control ]----------------------
// -------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetIntegerv, GetFloatv, GetBooleanv
* GetDoublev and GetInteger64v:
*/
int GL_CONTEXT_RELEASE_BEHAVIOR = 0x82FB;
/**
* Returned in <data> by GetIntegerv, GetFloatv, GetBooleanv
* GetDoublev and GetInteger64v when <pname> is
* GL_CONTEXT_RELEASE_BEHAVIOR:
*/
int GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC;
// --------------------------------------------------------------
// ----------------------[ KHR_robustness ]----------------------
// --------------------------------------------------------------
/** Returned by GetGraphicsResetStatus: */
int GL_GUILTY_CONTEXT_RESET = 0x8253,
GL_INNOCENT_CONTEXT_RESET = 0x8254,
GL_UNKNOWN_CONTEXT_RESET = 0x8255;
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_CONTEXT_ROBUST_ACCESS = 0x90F3,
GL_RESET_NOTIFICATION_STRATEGY = 0x8256;
/**
* Returned by GetIntegerv and related simple queries when <value> is
* RESET_NOTIFICATION_STRATEGY:
*/
int GL_LOSE_CONTEXT_ON_RESET = 0x8252,
GL_NO_RESET_NOTIFICATION = 0x8261;
/** Returned by GetError: */
int GL_CONTEXT_LOST = 0x0507;
@GLenum
int glGetGraphicsResetStatus();
void glReadnPixels(int x, int y, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type, @AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@StripPostfix("params")
void glGetnUniformfv(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetnUniformiv(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetnUniformuiv(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter @GLuint IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_direct_state_access.java 0000644 0001750 0001750 00000210447 12702226520 024327 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
@ForceInit
@Dependent
@DeprecatedGL
public interface EXT_direct_state_access {
/**
* Accepted by the <pname> parameter of GetBooleanIndexedvEXT,
* GetIntegerIndexedvEXT, GetFloatIndexedvEXT, GetDoubleIndexedvEXT:
* GetBooleani_v, GetIntegeri_v, GetFloati_vEXT, GetDoublei_vEXT:
*/
int GL_PROGRAM_MATRIX_EXT = 0x8E2D;
int GL_TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E;
int GL_PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F;
/*
OpenGL 1.1: New client commands
*/
@DeprecatedGL
void glClientAttribDefaultEXT(@GLbitfield int mask);
@DeprecatedGL
void glPushClientAttribDefaultEXT(@GLbitfield int mask);
/*
OpenGL 1.0: New matrix commands add "Matrix" prefix to name,
drops "Matrix" suffix from name, and add initial "enum matrixMode"
parameter
*/
@StripPostfix("m")
@DeprecatedGL
void glMatrixLoadfEXT(@GLenum int matrixMode, @Check("16") @Const FloatBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glMatrixLoaddEXT(@GLenum int matrixMode, @Check("16") @Const DoubleBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glMatrixMultfEXT(@GLenum int matrixMode, @Check("16") @Const FloatBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glMatrixMultdEXT(@GLenum int matrixMode, @Check("16") @Const DoubleBuffer m);
@DeprecatedGL
void glMatrixLoadIdentityEXT(@GLenum int matrixMode);
@DeprecatedGL
void glMatrixRotatefEXT(@GLenum int matrixMode, float angle, float x, float y, float z);
@DeprecatedGL
void glMatrixRotatedEXT(@GLenum int matrixMode, double angle, double x, double y, double z);
@DeprecatedGL
void glMatrixScalefEXT(@GLenum int matrixMode, float x, float y, float z);
@DeprecatedGL
void glMatrixScaledEXT(@GLenum int matrixMode, double x, double y, double z);
@DeprecatedGL
void glMatrixTranslatefEXT(@GLenum int matrixMode, float x, float y, float z);
@DeprecatedGL
void glMatrixTranslatedEXT(@GLenum int matrixMode, double x, double y, double z);
@DeprecatedGL
void glMatrixOrthoEXT(@GLenum int matrixMode, double l, double r, double b, double t, double n, double f);
@DeprecatedGL
void glMatrixFrustumEXT(@GLenum int matrixMode, double l, double r, double b, double t, double n, double f);
@DeprecatedGL
void glMatrixPushEXT(@GLenum int matrixMode);
@DeprecatedGL
void glMatrixPopEXT(@GLenum int matrixMode);
/*
OpenGL 1.1: New texture object commands and queries replace "Tex"
in name with "Texture" and add initial "uint texture" parameter
*/
void glTextureParameteriEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, int param);
@StripPostfix("param")
void glTextureParameterivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer param);
void glTextureParameterfEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, float param);
@StripPostfix("param")
void glTextureParameterfvEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer param);
void glTextureImage1DEXT(@GLuint int texture, @GLenum int target, int level,
int internalformat, @GLsizei int width, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage1DStorage(pixels, format, type, width)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTextureImage2DEXT(@GLuint int texture, @GLenum int target, int level,
int internalformat, @GLsizei int width, @GLsizei int height, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTextureSubImage1DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTextureSubImage2DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glCopyTextureImage1DEXT(@GLuint int texture, @GLenum int target, int level, @GLenum int internalformat, int x, int y, @GLsizei int width, int border);
void glCopyTextureImage2DEXT(@GLuint int texture, @GLenum int target, int level, @GLenum int internalformat, int x, int y, @GLsizei int width, @GLsizei int height, int border);
void glCopyTextureSubImage1DEXT(@GLuint int texture, @GLenum int target, int level, int xoffset, int x, int y, @GLsizei int width);
void glCopyTextureSubImage2DEXT(@GLuint int texture, @GLenum int target, int level, int xoffset, int yoffset, int x, int y, @GLsizei int width, @GLsizei int height);
void glGetTextureImageEXT(@GLuint int texture, @GLenum int target, int level,
@GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)")
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@StripPostfix("params")
void glGetTextureParameterfvEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetTextureParameterfvEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterfvEXT2(@GLuint int texture, @GLenum int target, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTextureParameterivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTextureParameterivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterivEXT2(@GLuint int texture, @GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTextureLevelParameterfvEXT(@GLuint int texture, @GLenum int target, int level, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetTextureLevelParameterfvEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureLevelParameterfvEXT2(@GLuint int texture, @GLenum int target, int level, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTextureLevelParameterivEXT(@GLuint int texture, @GLenum int target, int level, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTextureLevelParameterivEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureLevelParameterivEXT2(@GLuint int texture, @GLenum int target, int level, @GLenum int pname, @OutParameter IntBuffer params);
/*
OpenGL 1.2: New 3D texture object commands replace "Tex" in name with
"Texture" and adds initial "uint texture" parameter
*/
@Dependent("OpenGL12")
void glTextureImage3DEXT(@GLuint int texture, @GLenum int target, int level,
int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL12")
void glTextureSubImage3DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL12")
void glCopyTextureSubImage3DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
/*
OpenGL 1.2.1: New multitexture commands and queries prefix "Multi"
before "Tex" and add an initial "enum texunit" parameter (to identify
the texture unit
*/
@Dependent("OpenGL13")
void glBindMultiTextureEXT(@GLenum int texunit, @GLenum int target, @GLuint int texture);
@Dependent("OpenGL13")
@DeprecatedGL
void glMultiTexCoordPointerEXT(@GLenum int texunit, int size, @AutoType("pointer") @GLenum int type, @GLsizei int stride,
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLfloat
@GLdouble
Buffer pointer);
@Dependent("OpenGL13")
@DeprecatedGL
void glMultiTexEnvfEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, float param);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glMultiTexEnvfvEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@Dependent("OpenGL13")
@DeprecatedGL
void glMultiTexEnviEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, int param);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glMultiTexEnvivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@Dependent("OpenGL13")
@DeprecatedGL
void glMultiTexGendEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, double param);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glMultiTexGendvEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, @Check("4") @Const DoubleBuffer params);
@Dependent("OpenGL13")
@DeprecatedGL
void glMultiTexGenfEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, float param);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glMultiTexGenfvEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@Dependent("OpenGL13")
@DeprecatedGL
void glMultiTexGeniEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, int param);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glMultiTexGenivEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, @Check("4") @Const IntBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glGetMultiTexEnvfvEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glGetMultiTexEnvivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glGetMultiTexGendvEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, @Check("4") @OutParameter DoubleBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glGetMultiTexGenfvEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
@DeprecatedGL
void glGetMultiTexGenivEXT(@GLenum int texunit, @GLenum int coord, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Dependent("OpenGL13")
void glMultiTexParameteriEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, int param);
@Dependent("OpenGL13")
@StripPostfix("param")
void glMultiTexParameterivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer param);
@Dependent("OpenGL13")
void glMultiTexParameterfEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, float param);
@Dependent("OpenGL13")
@StripPostfix("param")
void glMultiTexParameterfvEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer param);
@Dependent("OpenGL13")
void glMultiTexImage1DEXT(@GLenum int texunit, @GLenum int target, int level,
int internalformat, @GLsizei int width, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage1DStorage(pixels, format, type, width)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
void glMultiTexImage2DEXT(@GLenum int texunit, @GLenum int target, int level,
int internalformat, @GLsizei int width, @GLsizei int height, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
void glMultiTexSubImage1DEXT(@GLenum int texunit, @GLenum int target, int level,
int xoffset, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
void glMultiTexSubImage2DEXT(@GLenum int texunit, @GLenum int target, int level,
int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
void glCopyMultiTexImage1DEXT(@GLenum int texunit, @GLenum int target, int level, @GLenum int internalformat, int x, int y, @GLsizei int width, int border);
@Dependent("OpenGL13")
void glCopyMultiTexImage2DEXT(@GLenum int texunit, @GLenum int target, int level, @GLenum int internalformat, int x, int y, @GLsizei int width, @GLsizei int height, int border);
@Dependent("OpenGL13")
void glCopyMultiTexSubImage1DEXT(@GLenum int texunit, @GLenum int target, int level, int xoffset, int x, int y, @GLsizei int width);
@Dependent("OpenGL13")
void glCopyMultiTexSubImage2DEXT(@GLenum int texunit, @GLenum int target, int level, int xoffset, int yoffset, int x, int y, @GLsizei int width, @GLsizei int height);
@Dependent("OpenGL13")
void glGetMultiTexImageEXT(@GLenum int texunit, @GLenum int target, int level, @GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)")
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetMultiTexParameterfvEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Alternate("glGetMultiTexParameterfvEXT")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetMultiTexParameterfvEXT2(@GLenum int texunit, @GLenum int target, @GLenum int pname, @OutParameter FloatBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetMultiTexParameterivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetMultiTexParameterivEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix(value = "params", hasPostfix = false)
void glGetMultiTexParameterivEXT2(@GLenum int texunit, @GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetMultiTexLevelParameterfvEXT(@GLenum int texunit, @GLenum int target, int level, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Alternate("glGetMultiTexLevelParameterfvEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix(value = "params", hasPostfix = false)
void glGetMultiTexLevelParameterfvEXT2(@GLenum int texunit, @GLenum int target, int level, @GLenum int pname, @OutParameter FloatBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetMultiTexLevelParameterivEXT(@GLenum int texunit, @GLenum int target, int level, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetMultiTexLevelParameterivEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix(value = "params", hasPostfix = false)
void glGetMultiTexLevelParameterivEXT2(@GLenum int texunit, @GLenum int target, int level, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("OpenGL13")
void glMultiTexImage3DEXT(@GLenum int texunit, @GLenum int target, int level,
int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
void glMultiTexSubImage3DEXT(@GLenum int texunit, @GLenum int target, int level,
int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Dependent("OpenGL13")
void glCopyMultiTexSubImage3DEXT(@GLenum int texunit, @GLenum int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
/*
OpenGL 1.2.1: New indexed texture commands and queries append
"Indexed" to name and add "uint index" parameter (to identify the
texture unit index) after state name parameters (if any) and before
state value parameters
*/
@Dependent("OpenGL13")
@DeprecatedGL
void glEnableClientStateIndexedEXT(@GLenum int array, @GLuint int index);
@Dependent("OpenGL13")
@DeprecatedGL
void glDisableClientStateIndexedEXT(@GLenum int array, @GLuint int index);
/*
OpenGL 3.0: New indexed texture commands and queries append "i"
to name and add "uint index" parameter (to identify the texture
unit index) after state name parameters (if any) and before state
value parameters
*/
@Optional(reason = "AMD does not expose this (last driver checked: 14.7)")
@Dependent("OpenGL30")
void glEnableClientStateiEXT(@GLenum int array, @GLuint int index);
@Optional(reason = "AMD does not expose this (last driver checked: 14.7)")
@Dependent("OpenGL30")
void glDisableClientStateiEXT(@GLenum int array, @GLuint int index);
/*
OpenGL 1.2.1: New indexed generic queries (added for indexed texture
state) append "Indexed" to name and add "uint index" parameter
(to identify the texture unit) after state name parameters (if any)
and before state value parameters
*/
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetFloatIndexedvEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("16") FloatBuffer params);
@Alternate("glGetFloatIndexedvEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetFloatIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter FloatBuffer params);
@Dependent("OpenGL13")
@StripPostfix(value = "params", hasPostfix = false)
void glGetDoubleIndexedvEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("16") DoubleBuffer params);
@Alternate("glGetDoubleIndexedvEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix(value = "params", hasPostfix = false)
void glGetDoubleIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter DoubleBuffer params);
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetPointerIndexedvEXT(@GLenum int pname, @GLuint int index, @Result @GLvoid ByteBuffer params);
/*
OpenGL 3.0: New indexed generic queries (added for indexed texture
state) replace "v" for "i_v" to name and add "uint index" parameter
(to identify the texture unit) after state name parameters (if any)
and before state value parameters
*/
@Optional(reason = "AMD does not expose this (last driver checked: 14.7)")
@Dependent("OpenGL30")
@StripPostfix("params")
void glGetFloati_vEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("16") FloatBuffer params);
@Alternate("glGetFloati_vEXT")
@GLreturn("params")
@Dependent("OpenGL30")
@StripPostfix("params")
void glGetFloati_vEXT2(@GLenum int pname, @GLuint int index, @OutParameter FloatBuffer params);
@Optional(reason = "AMD does not expose this (last driver checked: 14.7)")
@Dependent("OpenGL30")
@StripPostfix("params")
void glGetDoublei_vEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("16") DoubleBuffer params);
@Alternate("glGetDoublei_vEXT")
@GLreturn("params")
@Dependent("OpenGL30")
@StripPostfix("params")
void glGetDoublei_vEXT2(@GLenum int pname, @GLuint int index, @OutParameter DoubleBuffer params);
@Optional(reason = "AMD does not expose this (last driver checked: 14.7)")
@Dependent("OpenGL30")
@StripPostfix(value = "params", postfix = "i_v")
void glGetPointeri_vEXT(@GLenum int pname, @GLuint int index, @Result @GLvoid ByteBuffer params);
/*
OpenGL 1.2.1: Extend the functionality of these EXT_draw_buffers2
commands and queries for multitexture
TODO: Why 1.2.1 and not EXT_draw_buffers2?
*/
@Reuse("EXTDrawBuffers2")
@Dependent("OpenGL13")
void glEnableIndexedEXT(@GLenum int cap, @GLuint int index);
@Reuse("EXTDrawBuffers2")
@Dependent("OpenGL13")
void glDisableIndexedEXT(@GLenum int cap, @GLuint int index);
@Reuse("EXTDrawBuffers2")
@Dependent("OpenGL13")
boolean glIsEnabledIndexedEXT(@GLenum int cap, @GLuint int index);
@Reuse("EXTDrawBuffers2")
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetIntegerIndexedvEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("16") IntBuffer params);
@Reuse("EXTDrawBuffers2")
@Alternate("glGetIntegerIndexedvEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetIntegerIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter IntBuffer params);
@Reuse("EXTDrawBuffers2")
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetBooleanIndexedvEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("4") @GLboolean ByteBuffer params);
@Reuse("EXTDrawBuffers2")
@Alternate("glGetBooleanIndexedvEXT")
@GLreturn("params")
@Dependent("OpenGL13")
@StripPostfix("params")
void glGetBooleanIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter @GLboolean ByteBuffer params);
/*
ARB_vertex_program: New program commands and queries add "Named"
prefix to name and adds initial "uint program" parameter
*/
@Dependent("GL_ARB_vertex_program")
void glNamedProgramStringEXT(@GLuint int program, @GLenum int target, @GLenum int format, @AutoSize("string") @GLsizei int len, @Const @GLvoid Buffer string);
@Alternate("glNamedProgramStringEXT")
@Dependent("GL_ARB_vertex_program")
void glNamedProgramStringEXT(@GLuint int program, @GLenum int target, @GLenum int format, @Constant("string.length()") @GLsizei int length, CharSequence string);
@Dependent("GL_ARB_vertex_program")
void glNamedProgramLocalParameter4dEXT(@GLuint int program, @GLenum int target, @GLuint int index, double x, double y, double z, double w);
@Dependent("GL_ARB_vertex_program")
@StripPostfix("params")
void glNamedProgramLocalParameter4dvEXT(@GLuint int program, @GLenum int target, @GLuint int index, @Const @Check("4") DoubleBuffer params);
@Dependent("GL_ARB_vertex_program")
void glNamedProgramLocalParameter4fEXT(@GLuint int program, @GLenum int target, @GLuint int index, float x, float y, float z, float w);
@Dependent("GL_ARB_vertex_program")
@StripPostfix("params")
void glNamedProgramLocalParameter4fvEXT(@GLuint int program, @GLenum int target, @GLuint int index, @Const @Check("4") FloatBuffer params);
@Dependent("GL_ARB_vertex_program")
@StripPostfix("params")
void glGetNamedProgramLocalParameterdvEXT(@GLuint int program, @GLenum int target, @GLuint int index, @OutParameter @Check("4") DoubleBuffer params);
@Dependent("GL_ARB_vertex_program")
@StripPostfix("params")
void glGetNamedProgramLocalParameterfvEXT(@GLuint int program, @GLenum int target, @GLuint int index, @OutParameter @Check("4") FloatBuffer params);
@Dependent("GL_ARB_vertex_program")
@StripPostfix("params")
void glGetNamedProgramivEXT(@GLuint int program, @GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetNamedProgramivEXT")
@GLreturn("params")
@Dependent("GL_ARB_vertex_program")
@StripPostfix("params")
void glGetNamedProgramivEXT2(@GLuint int program, @GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("GL_ARB_vertex_program")
void glGetNamedProgramStringEXT(@GLuint int program, @GLenum int target, @GLenum int pname, @OutParameter @Check @GLvoid ByteBuffer string);
@Alternate("glGetNamedProgramStringEXT")
@Code("\t\tint programLength = glGetNamedProgramEXT(program, target, ARBProgram.GL_PROGRAM_LENGTH_ARB);")
@GLreturn(value = "paramString", maxLength = "programLength", forceMaxLength = true)
void glGetNamedProgramStringEXT2(@GLuint int program, @GLenum int target, @GLenum int pname, @OutParameter @GLchar ByteBuffer paramString);
/*
OpenGL 1.3: New compressed texture object commands replace "Tex"
in name with "Texture" and add initial "uint texture" parameter
*/
@Dependent("OpenGL13")
void glCompressedTextureImage3DEXT(@GLuint int texture, @GLenum int target, int level,
@GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedTextureImage2DEXT(@GLuint int texture, @GLenum int target, int level,
@GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedTextureImage1DEXT(@GLuint int texture, @GLenum int target, int level,
@GLenum int internalformat, @GLsizei int width, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedTextureSubImage3DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedTextureSubImage2DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedTextureSubImage1DEXT(@GLuint int texture, @GLenum int target, int level,
int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glGetCompressedTextureImageEXT(@GLuint int texture, @GLenum int target, int level,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint Buffer img);
/*
OpenGL 1.3: New multitexture compressed texture commands and queries
prefix "Multi" before "Tex" and add an initial "enum texunit"
parameter (to identify the texture unit)
*/
@Dependent("OpenGL13")
void glCompressedMultiTexImage3DEXT(@GLenum int texunit, @GLenum int target, int level,
@GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedMultiTexImage2DEXT(@GLenum int texunit, @GLenum int target, int level,
@GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedMultiTexImage1DEXT(@GLenum int texunit, @GLenum int target, int level,
@GLenum int internalformat, @GLsizei int width, int border, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedMultiTexSubImage3DEXT(@GLenum int texunit, @GLenum int target, int level,
int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedMultiTexSubImage2DEXT(@GLenum int texunit, @GLenum int target, int level,
int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glCompressedMultiTexSubImage1DEXT(@GLenum int texunit, @GLenum int target, int level,
int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Dependent("OpenGL13")
void glGetCompressedMultiTexImageEXT(@GLenum int texunit, @GLenum int target, int level,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint Buffer img);
/*
OpenGL 1.3: New transpose matrix commands add "Matrix" suffix
to name, drops "Matrix" suffix from name, and add initial "enum
matrixMode" parameter
*/
@Dependent("OpenGL13")
@StripPostfix("m")
@DeprecatedGL
void glMatrixLoadTransposefEXT(@GLenum int matrixMode, @Check("16") @Const FloatBuffer m);
@Dependent("OpenGL13")
@StripPostfix("m")
@DeprecatedGL
void glMatrixLoadTransposedEXT(@GLenum int matrixMode, @Check("16") @Const DoubleBuffer m);
@Dependent("OpenGL13")
@StripPostfix("m")
@DeprecatedGL
void glMatrixMultTransposefEXT(@GLenum int matrixMode, @Check("16") @Const FloatBuffer m);
@Dependent("OpenGL13")
@StripPostfix("m")
@DeprecatedGL
void glMatrixMultTransposedEXT(@GLenum int matrixMode, @Check("16") @Const DoubleBuffer m);
/*
OpenGL 1.5: New buffer commands and queries replace "Buffer" with
"NamedBuffer" in name and replace "enum target" parameter with
"uint buffer"
*/
@Dependent("OpenGL15")
@GenerateAutos
void glNamedBufferDataEXT(@GLuint int buffer, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data, @GLenum int usage);
@Dependent("OpenGL15")
void glNamedBufferSubDataEXT(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
/**
* glMapNamedBufferEXT maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapNamedBufferEXT like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapNamedBufferEXT(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapNamedBufferEXT(..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* The version of this method without an explicit length argument calls glGetNamedBufferParameterEXT internally to
* retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.
*
* The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
* is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
* Security warning: The length argument should match the buffer object size. Reading from or writing to outside
* the memory region that corresponds to the mapped buffer object will cause native crashes.
*
* @param length the length of the mapped memory in bytes.
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@Dependent("OpenGL15")
@CachedResult
@GLvoid
@AutoSize("glGetNamedBufferParameterEXT(buffer, GL15.GL_BUFFER_SIZE)")
ByteBuffer glMapNamedBufferEXT(@GLuint int buffer, @GLenum int access);
@Dependent("OpenGL15")
boolean glUnmapNamedBufferEXT(@GLuint int buffer);
@Dependent("OpenGL15")
@StripPostfix("params")
void glGetNamedBufferParameterivEXT(@GLuint int buffer, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetNamedBufferParameterivEXT")
@GLreturn("params")
@Dependent("OpenGL15")
@StripPostfix("params")
void glGetNamedBufferParameterivEXT2(@GLuint int buffer, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("OpenGL15")
@StripPostfix("params")
@AutoSize("glGetNamedBufferParameterEXT(buffer, GL15.GL_BUFFER_SIZE)")
void glGetNamedBufferPointervEXT(@GLuint int buffer, @GLenum int pname, @OutParameter @Result @GLvoid ByteBuffer params);
@Dependent("OpenGL15")
void glGetNamedBufferSubDataEXT(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@OutParameter
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
/*
OpenGL 2.0: New uniform commands add "Program" prefix to name and
add initial "uint program" parameter
*/
@Dependent("OpenGL20")
void glProgramUniform1fEXT(@GLuint int program, int location, float v0);
@Dependent("OpenGL20")
void glProgramUniform2fEXT(@GLuint int program, int location, float v0, float v1);
@Dependent("OpenGL20")
void glProgramUniform3fEXT(@GLuint int program, int location, float v0, float v1, float v2);
@Dependent("OpenGL20")
void glProgramUniform4fEXT(@GLuint int program, int location, float v0, float v1, float v2, float v3);
@Dependent("OpenGL20")
void glProgramUniform1iEXT(@GLuint int program, int location, int v0);
@Dependent("OpenGL20")
void glProgramUniform2iEXT(@GLuint int program, int location, int v0, int v1);
@Dependent("OpenGL20")
void glProgramUniform3iEXT(@GLuint int program, int location, int v0, int v1, int v2);
@Dependent("OpenGL20")
void glProgramUniform4iEXT(@GLuint int program, int location, int v0, int v1, int v2, int v3);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform1fvEXT(@GLuint int program, int location, @AutoSize(value = "value") @GLsizei int count, @Const FloatBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform2fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const FloatBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform3fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const FloatBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform4fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const FloatBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform1ivEXT(@GLuint int program, int location, @AutoSize(value = "value") @GLsizei int count, @Const IntBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform2ivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const IntBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform3ivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const IntBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniform4ivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const IntBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniformMatrix2fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniformMatrix3fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL20")
@StripPostfix("value")
void glProgramUniformMatrix4fvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
/*
OpenGL 2.1: New uniform matrix commands add "Program" prefix to
name and add initial "uint program" parameter
*/
@Dependent("OpenGL21")
@StripPostfix("value")
void glProgramUniformMatrix2x3fvEXT(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL21")
@StripPostfix("value")
void glProgramUniformMatrix3x2fvEXT(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL21")
@StripPostfix("value")
void glProgramUniformMatrix2x4fvEXT(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL21")
@StripPostfix("value")
void glProgramUniformMatrix4x2fvEXT(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL21")
@StripPostfix("value")
void glProgramUniformMatrix3x4fvEXT(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Dependent("OpenGL21")
@StripPostfix("value")
void glProgramUniformMatrix4x3fvEXT(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
/*
EXT_texture_buffer_object: New texture buffer object command
replaces "Tex" in name with "Texture" and adds initial "uint texture"
parameter
*/
@Dependent("GL_EXT_texture_buffer_object")
void glTextureBufferEXT(@GLuint int texture, @GLenum int target, @GLenum int internalformat, @GLuint int buffer);
/*
EXT_texture_buffer_object: New multitexture texture buffer command
prefixes "Multi" before "Tex" and add an initial "enum texunit"
parameter (to identify the texture unit)
*/
@Dependent("GL_EXT_texture_buffer_object")
void glMultiTexBufferEXT(@GLenum int texunit, @GLenum int target, @GLenum int internalformat, @GLuint int buffer);
/*
EXT_texture_integer: New integer texture object commands and queries
replace "Tex" in name with "Texture" and add initial "uint texture"
parameter
*/
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glTextureParameterIivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@Alternate("glTextureParameterIivEXT")
@Dependent("GL_EXT_texture_integer")
@StripPostfix("param")
void glTextureParameterIivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glTextureParameterIuivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Check("4") @Const @GLuint IntBuffer params);
@Alternate("glTextureParameterIuivEXT")
@Dependent("GL_EXT_texture_integer")
@StripPostfix("param")
void glTextureParameterIuivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) @GLuint int param);
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glGetTextureParameterIivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetTextureParameterIivEXT")
@GLreturn("params")
@Dependent("GL_EXT_texture_integer")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterIivEXT2(@GLuint int texture, @GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glGetTextureParameterIuivEXT(@GLuint int texture, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter @GLuint IntBuffer params);
@Alternate("glGetTextureParameterIuivEXT")
@GLreturn("params")
@Dependent("GL_EXT_texture_integer")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTextureParameterIuivEXT2(@GLuint int texture, @GLenum int target, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
/*
EXT_texture_integer: New multitexture integer texture commands and
queries prefix "Multi" before "Tex" and add an initial "enum texunit"
parameter (to identify the texture unit)
*/
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glMultiTexParameterIivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@Alternate("glMultiTexParameterIivEXT")
@Dependent("GL_EXT_texture_integer")
@StripPostfix("param")
void glMultiTexParameterIivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glMultiTexParameterIuivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @Const @GLuint IntBuffer params);
@Alternate("glMultiTexParameterIuivEXT")
@Dependent("GL_EXT_texture_integer")
@StripPostfix("param")
void glMultiTexParameterIuivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glGetMultiTexParameterIivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetMultiTexParameterIivEXT")
@GLreturn("params")
@Dependent("GL_EXT_texture_integer")
@StripPostfix(value = "params", hasPostfix = false)
void glGetMultiTexParameterIivEXT2(@GLenum int texunit, @GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Dependent("GL_EXT_texture_integer")
@StripPostfix("params")
void glGetMultiTexParameterIuivEXT(@GLenum int texunit, @GLenum int target, @GLenum int pname, @Check("4") @OutParameter @GLuint IntBuffer params);
@Alternate("glGetMultiTexParameterIuivEXT")
@GLreturn("params")
@Dependent("GL_EXT_texture_integer")
@StripPostfix(value = "params", hasPostfix = false)
void glGetMultiTexParameterIuivEXT2(@GLenum int texunit, @GLenum int target, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
/*
EXT_gpu_shader4: New integer uniform commands add "Program" prefix
to name and add initial "uint program" parameter
*/
@Dependent("GL_EXT_gpu_shader4")
void glProgramUniform1uiEXT(@GLuint int program, int location, @GLuint int v0);
@Dependent("GL_EXT_gpu_shader4")
void glProgramUniform2uiEXT(@GLuint int program, int location, @GLuint int v0, @GLuint int v1);
@Dependent("GL_EXT_gpu_shader4")
void glProgramUniform3uiEXT(@GLuint int program, int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
@Dependent("GL_EXT_gpu_shader4")
void glProgramUniform4uiEXT(@GLuint int program, int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
@Dependent("GL_EXT_gpu_shader4")
@StripPostfix("value")
void glProgramUniform1uivEXT(@GLuint int program, int location, @AutoSize(value = "value") @GLsizei int count, @Const @GLuint IntBuffer value);
@Dependent("GL_EXT_gpu_shader4")
@StripPostfix("value")
void glProgramUniform2uivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
@Dependent("GL_EXT_gpu_shader4")
@StripPostfix("value")
void glProgramUniform3uivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
@Dependent("GL_EXT_gpu_shader4")
@StripPostfix("value")
void glProgramUniform4uivEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
/*
EXT_gpu_program_parameters: New program command adds "Named" prefix
to name and adds "uint program" parameter
*/
@Dependent("GL_EXT_gpu_program_parameters")
@StripPostfix("params")
void glNamedProgramLocalParameters4fvEXT(@GLuint int program, @GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const FloatBuffer params);
/*
NV_gpu_program4: New program commands and queries add "Named"
prefix to name and replace "enum target" with "uint program"
*/
@Dependent("GL_NV_gpu_program4")
void glNamedProgramLocalParameterI4iEXT(@GLuint int program, @GLenum int target, @GLuint int index, int x, int y, int z, int w);
@Dependent("GL_NV_gpu_program4")
@StripPostfix("params")
void glNamedProgramLocalParameterI4ivEXT(@GLuint int program, @GLenum int target, @GLuint int index, @Check("4") @Const IntBuffer params);
@Dependent("GL_NV_gpu_program4")
@StripPostfix("params")
void glNamedProgramLocalParametersI4ivEXT(@GLuint int program, @GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const IntBuffer params);
@Dependent("GL_NV_gpu_program4")
void glNamedProgramLocalParameterI4uiEXT(@GLuint int program, @GLenum int target, @GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
@Dependent("GL_NV_gpu_program4")
@StripPostfix("params")
void glNamedProgramLocalParameterI4uivEXT(@GLuint int program, @GLenum int target, @GLuint int index, @Check("4") @Const @GLuint IntBuffer params);
@Dependent("GL_NV_gpu_program4")
@StripPostfix("params")
void glNamedProgramLocalParametersI4uivEXT(@GLuint int program, @GLenum int target, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer params);
@Dependent("GL_NV_gpu_program4")
@StripPostfix("params")
void glGetNamedProgramLocalParameterIivEXT(@GLuint int program, @GLenum int target, @GLuint int index, @Check("4") @OutParameter IntBuffer params);
@Dependent("GL_NV_gpu_program4")
@StripPostfix("params")
void glGetNamedProgramLocalParameterIuivEXT(@GLuint int program, @GLenum int target, @GLuint int index, @Check("4") @OutParameter @GLuint IntBuffer params);
/*
OpenGL 3.0: New renderbuffer commands add "Named" prefix to name
and replace "enum target" with "uint renderbuffer"
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glNamedRenderbufferStorageEXT(@GLuint int renderbuffer, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@StripPostfix("params")
void glGetNamedRenderbufferParameterivEXT(@GLuint int renderbuffer, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetNamedRenderbufferParameterivEXT")
@GLreturn("params")
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@StripPostfix("params")
void glGetNamedRenderbufferParameterivEXT2(@GLuint int renderbuffer, @GLenum int pname, @OutParameter IntBuffer params);
/*
EXT_framebuffer_multisample: New renderbuffer commands add "Named"
prefix to name and replace "enum target" with "uint renderbuffer"
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_multisample")
void glNamedRenderbufferStorageMultisampleEXT(@GLuint int renderbuffer, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
/*
NV_framebuffer_multisample_coverage: New renderbuffer commands
add "Named" prefix to name and replace "enum target" with "uint
renderbuffer"
*/
@Dependent("GL_NV_framebuffer_multisample_coverage")
void glNamedRenderbufferStorageMultisampleCoverageEXT(@GLuint int renderbuffer, @GLsizei int coverageSamples, @GLsizei int colorSamples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
/*
OpenGL 3.0: New framebuffer commands add "Named" prefix to name
and replace "enum target" with "uint framebuffer"
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@GLenum
int glCheckNamedFramebufferStatusEXT(@GLuint int framebuffer, @GLenum int target);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glNamedFramebufferTexture1DEXT(@GLuint int framebuffer, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glNamedFramebufferTexture2DEXT(@GLuint int framebuffer, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glNamedFramebufferTexture3DEXT(@GLuint int framebuffer, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level, int zoffset);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glNamedFramebufferRenderbufferEXT(@GLuint int framebuffer, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@StripPostfix("params")
void glGetNamedFramebufferAttachmentParameterivEXT(@GLuint int framebuffer, @GLenum int attachment, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetNamedFramebufferAttachmentParameterivEXT")
@GLreturn("params")
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@StripPostfix("params")
void glGetNamedFramebufferAttachmentParameterivEXT2(@GLuint int framebuffer, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
/*
OpenGL 3.0: New texture commands add "Texture" within name and
replace "enum target" with "uint texture"
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glGenerateTextureMipmapEXT(@GLuint int texture, @GLenum int target);
/*
OpenGL 3.0: New texture commands add "MultiTex" within name and
replace "enum target" with "enum texunit"
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glGenerateMultiTexMipmapEXT(@GLenum int texunit, @GLenum int target);
/*
OpenGL 3.0: New framebuffer commands
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glFramebufferDrawBufferEXT(@GLuint int framebuffer, @GLenum int mode);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glFramebufferDrawBuffersEXT(@GLuint int framebuffer, @AutoSize("bufs") @GLsizei int n, @Const @GLenum IntBuffer bufs);
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
void glFramebufferReadBufferEXT(@GLuint int framebuffer, @GLenum int mode);
/*
OpenGL 3.0: New framebuffer query
*/
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@StripPostfix("param")
void glGetFramebufferParameterivEXT(@GLuint int framebuffer, @GLenum int pname, @Check("4") @OutParameter IntBuffer param);
@Alternate("glGetFramebufferParameterivEXT")
@GLreturn("param")
@Dependent("OpenGL30,GL_EXT_framebuffer_object")
@StripPostfix("param")
void glGetFramebufferParameterivEXT2(@GLuint int framebuffer, @GLenum int pname, @OutParameter IntBuffer param);
/*
OpenGL 3.1: New buffer data copy command
*/
@Dependent("OpenGL31,GL_ARB_copy_buffer")
void glNamedCopyBufferSubDataEXT(@GLuint int readBuffer, @GLuint int writeBuffer, @GLintptr long readoffset, @GLintptr long writeoffset, @GLsizeiptr long size);
/*
EXT_geometry_shader4 or NV_geometry_program4: New framebuffer commands
add "Named" prefix to name and replace "enum target" with "uint
framebuffer"
*/
@Dependent("GL_EXT_geometry_shader4,GL_NV_geometry_program4")
void glNamedFramebufferTextureEXT(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level);
@Dependent("GL_EXT_geometry_shader4,GL_NV_geometry_program4")
void glNamedFramebufferTextureLayerEXT(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level, int layer);
@Dependent("GL_EXT_geometry_shader4,GL_NV_geometry_program4")
void glNamedFramebufferTextureFaceEXT(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level, @GLenum int face);
/*
NV_explicit_multisample: New texture renderbuffer object command
replaces "Tex" in name with "Texture" and add initial "uint texture"
parameter
*/
@Dependent("GL_NV_explicit_multisample")
void glTextureRenderbufferEXT(@GLuint int texture, @GLenum int target, @GLuint int renderbuffer);
/*
NV_explicit_multisample: New multitexture texture renderbuffer command
prefixes "Multi" before "Tex" and add an initial "enum texunit"
parameter (to identify the texture unit)
*/
@Dependent("GL_NV_explicit_multisample")
void glMultiTexRenderbufferEXT(@GLenum int texunit, @GLenum int target, @GLuint int renderbuffer);
/*
OpenGL 3.0: New vertex array specification commands for vertex
array objects prefix "VertexArray", add initial "uint vaobj" and
"uint buffer" parameters, change "Pointer" suffix to "Offset",
and change the final parameter from "const void *" to "intptr offset"
*/
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayVertexOffsetEXT(@GLuint int vaobj, @GLuint int buffer, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayColorOffsetEXT(@GLuint int vaobj, @GLuint int buffer, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayEdgeFlagOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
void glVertexArrayIndexOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayNormalOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayTexCoordOffsetEXT(@GLuint int vaobj, @GLuint int buffer, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayMultiTexCoordOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLenum int texunit, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArrayFogCoordOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
@DeprecatedGL
void glVertexArraySecondaryColorOffsetEXT(@GLuint int vaobj, @GLuint int buffer, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
void glVertexArrayVertexAttribOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride, @GLintptr long offset);
@Dependent("OpenGL30")
void glVertexArrayVertexAttribIOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLuint int index, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
/*
OpenGL 3.0: New vertex array enable commands for vertex array
objects change "ClientState" to "VertexArray" and add an initial
"uint vaobj" parameter
*/
@Dependent("OpenGL30")
void glEnableVertexArrayEXT(@GLuint int vaobj, @GLenum int array);
@Dependent("OpenGL30")
void glDisableVertexArrayEXT(@GLuint int vaobj, @GLenum int array);
/*
OpenGL 3.0: New vertex attrib array enable commands for vertex
array objects change "VertexAttribArray" to "VertexArrayAttrib"
and add an initial "uint vaobj" parameter
*/
@Dependent("OpenGL30")
void glEnableVertexArrayAttribEXT(@GLuint int vaobj, @GLuint int index);
@Dependent("OpenGL30")
void glDisableVertexArrayAttribEXT(@GLuint int vaobj, @GLuint int index);
/*
OpenGL 3.0: New queries for vertex array objects
*/
@Dependent("OpenGL30")
@StripPostfix("param")
void glGetVertexArrayIntegervEXT(@GLuint int vaobj, @GLenum int pname, @OutParameter @Check("16") IntBuffer param);
@Alternate("glGetVertexArrayIntegervEXT")
@GLreturn("param")
@Dependent("OpenGL30")
@StripPostfix("param")
void glGetVertexArrayIntegervEXT2(@GLuint int vaobj, @GLenum int pname, @OutParameter IntBuffer param);
@Dependent("OpenGL30")
@StripPostfix("param")
void glGetVertexArrayPointervEXT(@GLuint int vaobj, @GLenum int pname, @Result @GLvoid ByteBuffer param);
@Dependent("OpenGL30")
@StripPostfix(value = "param")
void glGetVertexArrayIntegeri_vEXT(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @Check("16") IntBuffer param);
@Alternate("glGetVertexArrayIntegeri_vEXT")
@GLreturn("param")
@Dependent("OpenGL30")
@StripPostfix(value = "param", postfix = "_v")
void glGetVertexArrayIntegeri_vEXT2(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer param);
@Dependent("OpenGL30")
@StripPostfix(value = "param", postfix = "i_v")
void glGetVertexArrayPointeri_vEXT(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @Result @GLvoid ByteBuffer param);
/*
OpenGL 3.0: New buffer commands replace "Buffer" with "NamedBuffer"
in name and replace "enum target" parameter with "uint buffer"
*/
/**
* glMapNamedBufferRangeEXT maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapNamedBufferRangeEXT like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapNamedBufferRangeEXT(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapNamedBufferRangeEXT(..., ..., ..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@Dependent("OpenGL30")
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapNamedBufferRangeEXT(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
@Dependent("OpenGL30")
void glFlushMappedNamedBufferRangeEXT(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_multisample_coverage.java 0000644 0001750 0001750 00000003446 12702226520 024425 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_multisample_coverage {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv, and GetFloatv:
*/
int GL_COVERAGE_SAMPLES_NV = 0x80A9;
int GL_COLOR_SAMPLES_NV = 0x8E20;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_conservative_depth.java 0000644 0001750 0001750 00000003150 12702226520 024160 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_conservative_depth {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_fragment_program.java 0000644 0001750 0001750 00000006445 12702226520 023552 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLubyte;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
public interface NV_fragment_program extends NV_program {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, by the
* <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev,
* and by the <target> parameter of BindProgramNV, LoadProgramNV,
* ProgramLocalParameter4dARB, ProgramLocalParameter4dvARB,
* ProgramLocalParameter4fARB, ProgramLocalParameter4fvARB,
* GetProgramLocalParameterdvARB, and GetProgramLocalParameterfvARB:
*/
int GL_FRAGMENT_PROGRAM_NV = 0x8870;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_TEXTURE_COORDS_NV = 0x8871;
int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872;
int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873;
int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868;
void glProgramNamedParameter4fNV(@GLuint int id, @AutoSize("name") @GLsizei int length, @Const @GLubyte ByteBuffer name, float x, float y, float z, float w);
void glProgramNamedParameter4dNV(@GLuint int id, @AutoSize("name") @GLsizei int length, @Const @GLubyte ByteBuffer name, double x, double y, double z, double w);
@StripPostfix("params")
void glGetProgramNamedParameterfvNV(@GLuint int id, @AutoSize("name") @GLsizei int length, @Const @GLubyte ByteBuffer name, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetProgramNamedParameterdvNV(@GLuint int id, @AutoSize("name") @GLsizei int length, @Const @GLubyte ByteBuffer name, @OutParameter @Check("4") DoubleBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL44.java 0000644 0001750 0001750 00000020235 12702226520 020260 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.IntBuffer;
public interface GL44 {
/** Implementation-dependent state which constrains the maximum value of stride parameters to vertex array pointer-setting commands. */
int GL_MAX_VERTEX_ATTRIB_STRIDE = 0x82E5;
// ------------------------------------------------------------------
// ----------------------[ ARB_buffer_storage ]----------------------
// ------------------------------------------------------------------
/**
* Accepted in the <flags> parameter of BufferStorage and
* NamedBufferStorageEXT:
*/
int GL_MAP_PERSISTENT_BIT = 0x0040,
GL_MAP_COHERENT_BIT = 0x0080,
GL_DYNAMIC_STORAGE_BIT = 0x0100,
GL_CLIENT_STORAGE_BIT = 0x0200;
/** Accepted by the <pname> parameter of GetBufferParameter{i|i64}v:\ */
int GL_BUFFER_IMMUTABLE_STORAGE = 0x821F,
GL_BUFFER_STORAGE_FLAGS = 0x8220;
/** Accepted by the <barriers> parameter of MemoryBarrier: */
int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000;
void glBufferStorage(@GLenum int target,
@AutoSize("data") @GLsizeiptr long size,
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data,
@GLbitfield int flags);
@Alternate("glBufferStorage")
void glBufferStorage2(@GLenum int target,
@GLsizeiptr long size,
@Constant("0L") @Const Buffer data,
@GLbitfield int flags);
// -----------------------------------------------------------------
// ----------------------[ ARB_clear_texture ]----------------------
// -----------------------------------------------------------------
/**
* Accepted by the <pname> parameter for GetInternalformativ and
* GetInternalformati64v:
*/
int GL_CLEAR_TEXTURE = 0x9365;
void glClearTexImage(@GLuint int texture, int level,
@GLenum int format, @GLenum int type,
@Check(value = "1", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data);
void glClearTexSubImage(@GLuint int texture, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLenum int type,
@Check(value = "1", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data);
// --------------------------------------------------------------------
// ----------------------[ ARB_enhanced_layouts ]----------------------
// --------------------------------------------------------------------
/** Accepted in the <props> array of GetProgramResourceiv: */
int GL_LOCATION_COMPONENT = 0x934A,
GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B,
GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C;
// --------------------------------------------------------------
// ----------------------[ ARB_multi_bind ]----------------------
// --------------------------------------------------------------
void glBindBuffersBase(@GLenum int target, @GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers);
void glBindBuffersRange(@GLenum int target, @GLuint int first, @GLsizei int count,
@Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers,
@Check(value = "count", canBeNull = true) @Const @GLintptr PointerBuffer offsets,
@Check(value = "count", canBeNull = true) @Const @GLsizeiptr PointerBuffer sizes);
void glBindTextures(@GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer textures);
void glBindSamplers(@GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer samplers);
void glBindImageTextures(@GLuint int first, @GLsizei int count, @Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer textures);
void glBindVertexBuffers(@GLuint int first, @GLsizei int count,
@Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers,
@Check(value = "count", canBeNull = true) @Const @GLintptr PointerBuffer offsets,
@Check(value = "count", canBeNull = true) @Const @GLsizei IntBuffer strides);
// -----------------------------------------------------------------------
// ----------------------[ ARB_query_buffer_object ]----------------------
// -----------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetQueryObjectiv, GetQueryObjectuiv,
* GetQueryObjecti64v and GetQueryObjectui64v:
*/
int GL_QUERY_RESULT_NO_WAIT = 0x9194;
/**
* Accepted by the <target> parameter of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, MapBufferRange, GetBufferSubData,
* GetBufferParameteriv, GetBufferParameteri64v, GetBufferPointerv,
* ClearBufferSubData, and the <readtarget> and <writetarget> parameters of
* CopyBufferSubData:
*/
int GL_QUERY_BUFFER = 0x9192;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_QUERY_BUFFER_BINDING = 0x9193;
/** Accepted in the <barriers> bitfield in MemoryBarrier: */
int GL_QUERY_BUFFER_BARRIER_BIT = 0x00008000;
// --------------------------------------------------------------------------------
// ----------------------[ ARB_texture_mirror_clamp_to_edge ]----------------------
// --------------------------------------------------------------------------------
/**
* Accepted by the <param> parameter of TexParameter{if}, SamplerParameter{if}
* and SamplerParameter{if}v, and by the <params> parameter of
* TexParameter{if}v, TexParameterI{i ui}v and SamplerParameterI{i ui}v when
* their <pname> parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or
* TEXTURE_WRAP_R:
*/
int GL_MIRROR_CLAMP_TO_EDGE = 0x8743;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_query_lod.java 0000644 0001750 0001750 00000003147 12702226520 024060 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_query_lod {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_array.java 0000644 0001750 0001750 00000006621 12702226520 023227 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_texture_array {
/**
* Accepted by the <target> parameter of TexParameteri, TexParameteriv,
* TexParameterf, TexParameterfv, and BindTexture:
*/
int GL_TEXTURE_1D_ARRAY_EXT = 0x8C18;
int GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A;
/**
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CopyTexSubImage3D, CompressedTexImage3D, and CompressedTexSubImage3D:
*/
int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B;
/**
* Accepted by the <target> parameter of TexImage2D, TexSubImage2D,
* CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D, and
* CompressedTexSubImage2D:
*/
int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv
* and GetFloatv:
*/
int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C;
int GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D;
int GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF;
/**
* Accepted by the <param> parameter of TexParameterf, TexParameteri,
* TexParameterfv, and TexParameteriv when the <pname> parameter is
* TEXTURE_COMPARE_MODE_ARB:
*/
int GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameterivEXT:
*/
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0;
int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1;
int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3;
int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4;
@Reuse("EXTGeometryShader4")
void glFramebufferTextureLayerEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_copy_image.java 0000644 0001750 0001750 00000004101 12702226520 022317 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface NV_copy_image {
void glCopyImageSubDataNV(
@GLuint int srcName, @GLenum int srcTarget, int srcLevel,
int srcX, int srcY, int srcZ,
@GLuint int dstName, @GLenum int dstTarget, int dstLevel,
int dstX, int dstY, int dstZ,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
// TODO: Implement WGL and GLX cross-context copying.
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_barrier.java 0000644 0001750 0001750 00000003203 12702226520 023413 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_barrier {
void glTextureBarrierNV();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_rectangle.java 0000644 0001750 0001750 00000006046 12702226520 024022 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_rectangle {
/**
Accepted by the <cap> parameter of Enable, Disable and IsEnabled;
by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
and GetDoublev; and by the <target> parameter of BindTexture,
GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri,
TexParameterfv and TexParameteriv:
Accepted by the <target> parameter of GetTexImage,
GetTexLevelParameteriv, GetTexLevelParameterfv, TexImage2D,
CopyTexImage2D, TexSubImage2D and CopySubTexImage2D:
*/
int GL_TEXTURE_RECTANGLE_ARB = 0x84F5;
/**
Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv and GetDoublev:
*/
int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6;
/**
Accepted by the <target> parameter of GetTexLevelParameteriv,
GetTexLevelParameterfv, GetTexParameteriv and TexImage2D:
*/
int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7;
/**
Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
GetIntegerv and GetFloatv:
*/
int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8;
/**
Returned by <type> parameter of GetActiveUniform when the location
<index> for program object <program> is of type sampler2DRect:
*/
int GL_SAMPLER_2D_RECT_ARB = 0x8B63;
/**
Returned by <type> parameter of GetActiveUniform when the location
<index> for program object <program> is of type sampler2DRectShadow:
*/
int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_conditional_render_inverted.java 0000644 0001750 0001750 00000003600 12702226520 026031 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_conditional_render_inverted {
/** Accepted by the <mode> parameter of BeginConditionalRender: */
int GL_QUERY_WAIT_INVERTED = 0x8E17,
GL_QUERY_NO_WAIT_INVERTED = 0x8E18,
GL_QUERY_BY_REGION_WAIT_INVERTED = 0x8E19,
GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_depth_bounds_test.java 0000644 0001750 0001750 00000004120 12702226520 024036 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLclampd;
public interface EXT_depth_bounds_test {
/**
Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
and by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv, and GetDoublev:
*/
int GL_DEPTH_BOUNDS_TEST_EXT = 0x8890;
/**
Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv, and GetDoublev:
*/
int GL_DEPTH_BOUNDS_EXT = 0x8891;
void glDepthBoundsEXT(@GLclampd double zmin, @GLclampd double zmax);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_provoking_vertex.java 0000644 0001750 0001750 00000004142 12702226520 023704 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ARB_provoking_vertex {
/** Accepted by the <mode> parameter of ProvokingVertex: */
int GL_FIRST_VERTEX_CONVENTION = 0x8E4D;
int GL_LAST_VERTEX_CONVENTION = 0x8E4E;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PROVOKING_VERTEX = 0x8E4F;
int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C;
@Reuse("GL32")
void glProvokingVertex(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_gpu_shader5.java 0000644 0001750 0001750 00000020635 12702226520 022423 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLint64EXT;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import org.lwjgl.util.generator.opengl.GLuint64EXT;
import java.nio.LongBuffer;
@Dependent
public interface NV_gpu_shader5 {
/**
* Returned by the <type> parameter of GetActiveAttrib, GetActiveUniform, and
* GetTransformFeedbackVarying:
*/
int GL_INT64_NV = 0x140E;
int GL_UNSIGNED_INT64_NV = 0x140F;
int GL_INT8_NV = 0x8FE0;
int GL_INT8_VEC2_NV = 0x8FE1;
int GL_INT8_VEC3_NV = 0x8FE2;
int GL_INT8_VEC4_NV = 0x8FE3;
int GL_INT16_NV = 0x8FE4;
int GL_INT16_VEC2_NV = 0x8FE5;
int GL_INT16_VEC3_NV = 0x8FE6;
int GL_INT16_VEC4_NV = 0x8FE7;
int GL_INT64_VEC2_NV = 0x8FE9;
int GL_INT64_VEC3_NV = 0x8FEA;
int GL_INT64_VEC4_NV = 0x8FEB;
int GL_UNSIGNED_INT8_NV = 0x8FEC;
int GL_UNSIGNED_INT8_VEC2_NV = 0x8FED;
int GL_UNSIGNED_INT8_VEC3_NV = 0x8FEE;
int GL_UNSIGNED_INT8_VEC4_NV = 0x8FEF;
int GL_UNSIGNED_INT16_NV = 0x8FF0;
int GL_UNSIGNED_INT16_VEC2_NV = 0x8FF1;
int GL_UNSIGNED_INT16_VEC3_NV = 0x8FF2;
int GL_UNSIGNED_INT16_VEC4_NV = 0x8FF3;
int GL_UNSIGNED_INT64_VEC2_NV = 0x8FF5;
int GL_UNSIGNED_INT64_VEC3_NV = 0x8FF6;
int GL_UNSIGNED_INT64_VEC4_NV = 0x8FF7;
int GL_FLOAT16_NV = 0x8FF8;
int GL_FLOAT16_VEC2_NV = 0x8FF9;
int GL_FLOAT16_VEC3_NV = 0x8FFA;
int GL_FLOAT16_VEC4_NV = 0x8FFB;
/** Accepted by the <primitiveMode> parameter of BeginTransformFeedback: */
int GL_PATCHES = ARB_tessellation_shader.GL_PATCHES;
void glUniform1i64NV(int location, @GLint64EXT long x);
void glUniform2i64NV(int location, @GLint64EXT long x, @GLint64EXT long y);
void glUniform3i64NV(int location, @GLint64EXT long x, @GLint64EXT long y, @GLint64EXT long z);
void glUniform4i64NV(int location, @GLint64EXT long x, @GLint64EXT long y, @GLint64EXT long z, @GLint64EXT long w);
@StripPostfix("value")
void glUniform1i64vNV(int location, @AutoSize("value") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@StripPostfix("value")
void glUniform2i64vNV(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@StripPostfix("value")
void glUniform3i64vNV(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@StripPostfix("value")
void glUniform4i64vNV(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
void glUniform1ui64NV(int location, @GLuint64EXT long x);
void glUniform2ui64NV(int location, @GLuint64EXT long x, @GLuint64EXT long y);
void glUniform3ui64NV(int location, @GLuint64EXT long x, @GLuint64EXT long y, @GLuint64EXT long z);
void glUniform4ui64NV(int location, @GLuint64EXT long x, @GLuint64EXT long y, @GLuint64EXT long z, @GLuint64EXT long w);
@StripPostfix("value")
void glUniform1ui64vNV(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@StripPostfix("value")
void glUniform2ui64vNV(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@StripPostfix("value")
void glUniform3ui64vNV(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@StripPostfix("value")
void glUniform4ui64vNV(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@StripPostfix("params")
void glGetUniformi64vNV(@GLuint int program, int location, @OutParameter @Check("1") @GLint64EXT LongBuffer params);
@StripPostfix("params")
void glGetUniformui64vNV(@GLuint int program, int location, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
// -------------
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform1i64NV(@GLuint int program, int location, @GLint64EXT long x);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform2i64NV(@GLuint int program, int location, @GLint64EXT long x, @GLint64EXT long y);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform3i64NV(@GLuint int program, int location, @GLint64EXT long x, @GLint64EXT long y, @GLint64EXT long z);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform4i64NV(@GLuint int program, int location, @GLint64EXT long x, @GLint64EXT long y, @GLint64EXT long z, @GLint64EXT long w);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform1i64vNV(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform2i64vNV(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform3i64vNV(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform4i64vNV(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform1ui64NV(@GLuint int program, int location, @GLuint64EXT long x);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform2ui64NV(@GLuint int program, int location, @GLuint64EXT long x, @GLuint64EXT long y);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform3ui64NV(@GLuint int program, int location, @GLuint64EXT long x, @GLuint64EXT long y, @GLuint64EXT long z);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform4ui64NV(@GLuint int program, int location, @GLuint64EXT long x, @GLuint64EXT long y, @GLuint64EXT long z, @GLuint64EXT long w);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform1ui64vNV(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform2ui64vNV(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform3ui64vNV(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix("value")
void glProgramUniform4ui64vNV(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_shared_texture_palette.java 0000644 0001750 0001750 00000003232 12702226520 025070 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_shared_texture_palette {
int GL_SHARED_TEXTURE_PALETTE_EXT = 0x81FB;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_point_parameters.java 0000644 0001750 0001750 00000004055 12702226520 023650 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import java.nio.*;
public interface ARB_point_parameters {
int GL_POINT_SIZE_MIN_ARB = 0x8126;
int GL_POINT_SIZE_MAX_ARB = 0x8127;
int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128;
int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129;
void glPointParameterfARB(@GLenum int pname, float param);
@StripPostfix("pfParams")
void glPointParameterfvARB(@GLenum int pname, @Check("4") @Const FloatBuffer pfParams);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_program2.java 0000644 0001750 0001750 00000003145 12702226520 023340 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_vertex_program2 {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_instanced_arrays.java 0000644 0001750 0001750 00000003616 12702226520 023627 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_instanced_arrays {
/**
* Accepted by the <pname> parameters of GetVertexAttribdv,
* GetVertexAttribfv, and GetVertexAttribiv:
*/
int GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE;
void glVertexAttribDivisorARB(@GLuint int index, @GLuint int divisor);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_framebuffer_blit.java 0000644 0001750 0001750 00000006442 12702226520 023630 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLint;
public interface EXT_framebuffer_blit {
/**
Accepted by the <target> parameter of BindFramebufferEXT,
CheckFramebufferStatusEXT, FramebufferTexture{1D|2D|3D}EXT,
FramebufferRenderbufferEXT, and
GetFramebufferAttachmentParameterivEXT.
*/
int GL_READ_FRAMEBUFFER_EXT = 0x8CA8;
int GL_DRAW_FRAMEBUFFER_EXT = 0x8CA9;
/**
Accepted by the <pname> parameters of GetIntegerv, GetFloatv, and GetDoublev.
*/
int GL_DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6; // alias FRAMEBUFFER_BINDING_EXT
int GL_READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA;
/**
Transfers a rectangle of pixel values from one
region of the read framebuffer to another in the draw framebuffer.
<mask> is the bitwise OR of a number of values indicating which
buffers are to be copied. The values are COLOR_BUFFER_BIT,
DEPTH_BUFFER_BIT, and STENCIL_BUFFER_BIT.
The pixels corresponding to these buffers are
copied from the source rectangle, bound by the locations (srcX0,
srcY0) and (srcX1, srcY1) inclusive, to the destination rectangle,
bound by the locations (dstX0, dstY0) and (dstX1, dstY1)
inclusive.
If the source and destination rectangle dimensions do not match,
the source image is stretched to fit the destination
rectangle. <filter> must be LINEAR or NEAREST and specifies the
method of interpolation to be applied if the image is
stretched.
*/
void glBlitFramebufferEXT(
@GLint int srcX0, @GLint int srcY0, @GLint int srcX1, @GLint int srcY1,
@GLint int dstX0, @GLint int dstY0, @GLint int dstX1, @GLint int dstY1,
@GLbitfield int mask, @GLenum int filter);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_image_load_store.java 0000644 0001750 0001750 00000014120 12702226520 025111 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_shader_image_load_store {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, and GetInteger64v:
*/
int GL_MAX_IMAGE_UNITS = 0x8F38,
GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39,
GL_MAX_IMAGE_SAMPLES = 0x906D,
GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA,
GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB,
GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC,
GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD,
GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE,
GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF;
/** Accepted by the <target> parameter of GetIntegeri_v and GetBooleani_v: */
int GL_IMAGE_BINDING_NAME = 0x8F3A,
GL_IMAGE_BINDING_LEVEL = 0x8F3B,
GL_IMAGE_BINDING_LAYERED = 0x8F3C,
GL_IMAGE_BINDING_LAYER = 0x8F3D,
GL_IMAGE_BINDING_ACCESS = 0x8F3E,
GL_IMAGE_BINDING_FORMAT = 0x906E;
/** Accepted by the <barriers> parameter of MemoryBarrier: */
int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001,
GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002,
GL_UNIFORM_BARRIER_BIT = 0x00000004,
GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008,
GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020,
GL_COMMAND_BARRIER_BIT = 0x00000040,
GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080,
GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100,
GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200,
GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400,
GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800,
GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000,
GL_ALL_BARRIER_BITS = 0xFFFFFFFF;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_IMAGE_1D = 0x904C,
GL_IMAGE_2D = 0x904D,
GL_IMAGE_3D = 0x904E,
GL_IMAGE_2D_RECT = 0x904F,
GL_IMAGE_CUBE = 0x9050,
GL_IMAGE_BUFFER = 0x9051,
GL_IMAGE_1D_ARRAY = 0x9052,
GL_IMAGE_2D_ARRAY = 0x9053,
GL_IMAGE_CUBE_MAP_ARRAY = 0x9054,
GL_IMAGE_2D_MULTISAMPLE = 0x9055,
GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056,
GL_INT_IMAGE_1D = 0x9057,
GL_INT_IMAGE_2D = 0x9058,
GL_INT_IMAGE_3D = 0x9059,
GL_INT_IMAGE_2D_RECT = 0x905A,
GL_INT_IMAGE_CUBE = 0x905B,
GL_INT_IMAGE_BUFFER = 0x905C,
GL_INT_IMAGE_1D_ARRAY = 0x905D,
GL_INT_IMAGE_2D_ARRAY = 0x905E,
GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F,
GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060,
GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061,
GL_UNSIGNED_INT_IMAGE_1D = 0x9062,
GL_UNSIGNED_INT_IMAGE_2D = 0x9063,
GL_UNSIGNED_INT_IMAGE_3D = 0x9064,
GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065,
GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066,
GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067,
GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068,
GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069,
GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A,
GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B,
GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C;
/**
* Accepted by the <value> parameter of GetTexParameteriv, GetTexParameterfv,
* GetTexParameterIiv, and GetTexParameterIuiv:
*/
int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7;
/**
* Returned in the <data> parameter of GetTexParameteriv, GetTexParameterfv,
* GetTexParameterIiv, and GetTexParameterIuiv when <value> is
* IMAGE_FORMAT_COMPATIBILITY_TYPE:
*/
int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8,
IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9;
@Reuse("GL42")
void glBindImageTexture(@GLuint int unit, @GLuint int texture, int level,
boolean layered, int layer, @GLenum int access,
@GLenum int format);
@Reuse("GL42")
void glMemoryBarrier(@GLbitfield int barriers);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_stencil_clear_tag.java 0000644 0001750 0001750 00000004224 12702226520 023770 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_stencil_clear_tag {
/**
Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
GetFloatv, and GetDoublev.
*/
int GL_STENCIL_TAG_BITS_EXT = 0x88F2;
int GL_STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3;
/**
Controls the stencil clear tag state. stencilTagBits is a count of
the number of most-significant stencil buffer bits involved in the
stencil clear tag update.
*/
void glStencilClearTagEXT(@GLsizei int stencilTagBits, @GLuint int stencilClearTag);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_vertex_array_bgra.java 0000644 0001750 0001750 00000003372 12702226520 024037 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_vertex_array_bgra {
/**
* Accepted by the <size> parameter of ColorPointer,
* SecondaryColorPointer, and VertexAttribPointer:
*/
int GL_BGRA = 0x80E1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_seamless_cubemap_per_texture.java 0000644 0001750 0001750 00000003547 12702226520 026237 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_seamless_cubemap_per_texture {
/**
* Accepted by the <pname> parameter of TexParameter{if},
* TexParameter{if}v, GetTexParameter{if}v, SamplerParameter{if},
* SamplerParameter{if}v, and GetSamplerParameter{if}v:
*/
int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_fog_coord.java 0000644 0001750 0001750 00000005136 12702226520 022272 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLdouble;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLfloat;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.*;
public interface EXT_fog_coord {
int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450;
int GL_FOG_COORDINATE_EXT = 0x8451;
int GL_FRAGMENT_DEPTH_EXT = 0x8452;
int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453;
int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454;
int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455;
int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456;
int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457;
void glFogCoordfEXT(float coord);
void glFogCoorddEXT(double coord);
void glFogCoordPointerEXT(@AutoType("data") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLfloat
@GLdouble Buffer data);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_vertex_streams.java 0000644 0001750 0001750 00000007312 12702226520 023357 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ATI_vertex_streams {
int GL_MAX_VERTEX_STREAMS_ATI = 0x876B;
int GL_VERTEX_SOURCE_ATI = 0x876C;
int GL_VERTEX_STREAM0_ATI = 0x876D;
int GL_VERTEX_STREAM1_ATI = 0x876E;
int GL_VERTEX_STREAM2_ATI = 0x876F;
int GL_VERTEX_STREAM3_ATI = 0x8770;
int GL_VERTEX_STREAM4_ATI = 0x8771;
int GL_VERTEX_STREAM5_ATI = 0x8772;
int GL_VERTEX_STREAM6_ATI = 0x8773;
int GL_VERTEX_STREAM7_ATI = 0x8774;
@NoErrorCheck
void glVertexStream2fATI(@GLenum int stream, float x, float y);
@NoErrorCheck
void glVertexStream2dATI(@GLenum int stream, double x, double y);
@NoErrorCheck
void glVertexStream2iATI(@GLenum int stream, int x, int y);
@NoErrorCheck
void glVertexStream2sATI(@GLenum int stream, short x, short y);
@NoErrorCheck
void glVertexStream3fATI(@GLenum int stream, float x, float y, float z);
@NoErrorCheck
void glVertexStream3dATI(@GLenum int stream, double x, double y, double z);
@NoErrorCheck
void glVertexStream3iATI(@GLenum int stream, int x, int y, int z);
@NoErrorCheck
void glVertexStream3sATI(@GLenum int stream, short x, short y, short z);
@NoErrorCheck
void glVertexStream4fATI(@GLenum int stream, float x, float y, float z, float w);
@NoErrorCheck
void glVertexStream4dATI(@GLenum int stream, double x, double y, double z, double w);
@NoErrorCheck
void glVertexStream4iATI(@GLenum int stream, int x, int y, int z, int w);
@NoErrorCheck
void glVertexStream4sATI(@GLenum int stream, short x, short y, short z, short w);
@NoErrorCheck
void glNormalStream3bATI(@GLenum int stream, byte x, byte y, byte z);
@NoErrorCheck
void glNormalStream3fATI(@GLenum int stream, float x, float y, float z);
@NoErrorCheck
void glNormalStream3dATI(@GLenum int stream, double x, double y, double z);
@NoErrorCheck
void glNormalStream3iATI(@GLenum int stream, int x, int y, int z);
@NoErrorCheck
void glNormalStream3sATI(@GLenum int stream, short x, short y, short z);
void glClientActiveVertexStreamATI(@GLenum int stream);
void glVertexBlendEnvfATI(@GLenum int pname, float param);
void glVertexBlendEnviATI(@GLenum int pname, int param);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_multisample.java 0000644 0001750 0001750 00000010112 12702226520 024316 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface NV_texture_multisample {
/** Accepted by the <pname> parameter of GetTexLevelParameter: */
int GL_TEXTURE_COVERAGE_SAMPLES_NV = 0x9045,
GL_TEXTURE_COLOR_SAMPLES_NV = 0x9046;
void glTexImage2DMultisampleCoverageNV(@GLenum int target,
@GLsizei int coverageSamples, @GLsizei int colorSamples,
int internalFormat,
@GLsizei int width, @GLsizei int height,
boolean fixedSampleLocations);
void glTexImage3DMultisampleCoverageNV(@GLenum int target,
@GLsizei int coverageSamples, @GLsizei int colorSamples,
int internalFormat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
boolean fixedSampleLocations);
void glTextureImage2DMultisampleNV(@GLuint int texture, @GLenum int target,
@GLsizei int samples, int internalFormat,
@GLsizei int width, @GLsizei int height,
boolean fixedSampleLocations);
void glTextureImage3DMultisampleNV(@GLuint int texture, @GLenum int target,
@GLsizei int samples, int internalFormat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
boolean fixedSampleLocations);
void glTextureImage2DMultisampleCoverageNV(@GLuint int texture, @GLenum int target,
@GLsizei int coverageSamples, @GLsizei int colorSamples,
int internalFormat,
@GLsizei int width, @GLsizei int height,
boolean fixedSampleLocations);
void glTextureImage3DMultisampleCoverageNV(@GLuint int texture, @GLenum int target,
@GLsizei int coverageSamples, @GLsizei int colorSamples,
int internalFormat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
boolean fixedSampleLocations);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_attrib_integer_64bit.java 0000644 0001750 0001750 00000010112 12702226520 025611 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.LongBuffer;
@Dependent
public interface NV_vertex_attrib_integer_64bit {
/**
* Accepted by the <type> parameter of VertexAttribLPointerEXT,
* VertexArrayVertexAttribLOffsetEXT, and VertexAttribLFormatNV:
*/
int GL_INT64_NV = 0x140E;
int GL_UNSIGNED_INT64_NV = 0x140F;
void glVertexAttribL1i64NV(@GLuint int index, @GLint64EXT long x);
void glVertexAttribL2i64NV(@GLuint int index, @GLint64EXT long x, @GLint64EXT long y);
void glVertexAttribL3i64NV(@GLuint int index, @GLint64EXT long x, @GLint64EXT long y, @GLint64EXT long z);
void glVertexAttribL4i64NV(@GLuint int index, @GLint64EXT long x, @GLint64EXT long y, @GLint64EXT long z, @GLint64EXT long w);
@StripPostfix("v")
void glVertexAttribL1i64vNV(@GLuint int index, @Const @GLint64EXT @Check("1") LongBuffer v);
@StripPostfix("v")
void glVertexAttribL2i64vNV(@GLuint int index, @Const @GLint64EXT @Check("2") LongBuffer v);
@StripPostfix("v")
void glVertexAttribL3i64vNV(@GLuint int index, @Const @GLint64EXT @Check("3") LongBuffer v);
@StripPostfix("v")
void glVertexAttribL4i64vNV(@GLuint int index, @Const @GLint64EXT @Check("4") LongBuffer v);
void glVertexAttribL1ui64NV(@GLuint int index, @GLuint64EXT long x);
void glVertexAttribL2ui64NV(@GLuint int index, @GLuint64EXT long x, @GLuint64EXT long y);
void glVertexAttribL3ui64NV(@GLuint int index, @GLuint64EXT long x, @GLuint64EXT long y, @GLuint64EXT long z);
void glVertexAttribL4ui64NV(@GLuint int index, @GLuint64EXT long x, @GLuint64EXT long y, @GLuint64EXT long z, @GLuint64EXT long w);
@StripPostfix("v")
void glVertexAttribL1ui64vNV(@GLuint int index, @Const @GLuint64EXT @Check("1") LongBuffer v);
@StripPostfix("v")
void glVertexAttribL2ui64vNV(@GLuint int index, @Const @GLuint64EXT @Check("2") LongBuffer v);
@StripPostfix("v")
void glVertexAttribL3ui64vNV(@GLuint int index, @Const @GLuint64EXT @Check("3") LongBuffer v);
@StripPostfix("v")
void glVertexAttribL4ui64vNV(@GLuint int index, @Const @GLuint64EXT @Check("4") LongBuffer v);
@StripPostfix("params")
void glGetVertexAttribLi64vNV(@GLuint int index, @GLenum int pname, @OutParameter @GLint64EXT @Check("4") LongBuffer params);
@StripPostfix("params")
void glGetVertexAttribLui64vNV(@GLuint int index, @GLenum int pname, @OutParameter @GLuint64EXT @Check("4") LongBuffer params);
@Dependent("GL_NV_vertex_buffer_unified_memory")
void glVertexAttribLFormatNV(@GLuint int index, int size, @GLenum int type, @GLsizei int stride);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_copy_buffer.java 0000644 0001750 0001750 00000004541 12702226520 022577 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLsizeiptr;
public interface ARB_copy_buffer {
/**
* Accepted by the target parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, MapBufferRange, FlushMappedBufferRange,
* GetBufferParameteriv, BindBufferRange, BindBufferBase,
* and CopyBufferSubData:
*/
int GL_COPY_READ_BUFFER = 0x8F36;
int GL_COPY_WRITE_BUFFER = 0x8F37;
@Reuse("GL31")
void glCopyBufferSubData(@GLenum int readTarget, @GLenum int writeTarget,
@GLintptr long readOffset, @GLintptr long writeOffset,
@GLsizeiptr long size);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_buffer_unified_memory.java 0000644 0001750 0001750 00000010753 12702226520 026156 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.LongBuffer;
public interface NV_vertex_buffer_unified_memory {
/**
* Accepted by the <cap> parameter of DisableClientState,
* EnableClientState, IsEnabled:
*/
int GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E;
int GL_ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F;
/**
* Accepted by the <pname> parameter of BufferAddressRangeNV
* and the <value> parameter of GetIntegerui64i_vNV:
*/
int GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20;
int GL_TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25;
/**
* Accepted by the <pname> parameter of BufferAddressRangeNV
* and the <value> parameter of GetIntegerui64vNV:
*/
int GL_VERTEX_ARRAY_ADDRESS_NV = 0x8F21;
int GL_NORMAL_ARRAY_ADDRESS_NV = 0x8F22;
int GL_COLOR_ARRAY_ADDRESS_NV = 0x8F23;
int GL_INDEX_ARRAY_ADDRESS_NV = 0x8F24;
int GL_EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26;
int GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27;
int GL_FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28;
int GL_ELEMENT_ARRAY_ADDRESS_NV = 0x8F29;
/** Accepted by the <target> parameter of GetIntegeri_vNV: */
int GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A;
int GL_TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F;
/** Accepted by the <value> parameter of GetIntegerv: */
int GL_VERTEX_ARRAY_LENGTH_NV = 0x8F2B;
int GL_NORMAL_ARRAY_LENGTH_NV = 0x8F2C;
int GL_COLOR_ARRAY_LENGTH_NV = 0x8F2D;
int GL_INDEX_ARRAY_LENGTH_NV = 0x8F2E;
int GL_EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30;
int GL_SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31;
int GL_FOG_COORD_ARRAY_LENGTH_NV = 0x8F32;
int GL_ELEMENT_ARRAY_LENGTH_NV = 0x8F33;
void glBufferAddressRangeNV(@GLenum int pname, @GLuint int index, @GLuint64EXT long address, @GLsizeiptr long length);
void glVertexFormatNV(int size, @GLenum int type, @GLsizei int stride);
void glNormalFormatNV(@GLenum int type, @GLsizei int stride);
void glColorFormatNV(int size, @GLenum int type, @GLsizei int stride);
void glIndexFormatNV(@GLenum int type, @GLsizei int stride);
void glTexCoordFormatNV(int size, @GLenum int type, @GLsizei int stride);
void glEdgeFlagFormatNV(@GLsizei int stride);
void glSecondaryColorFormatNV(int size, @GLenum int type, @GLsizei int stride);
void glFogCoordFormatNV(@GLenum int type, @GLsizei int stride);
void glVertexAttribFormatNV(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride);
void glVertexAttribIFormatNV(@GLuint int index, int size, @GLenum int type, @GLsizei int stride);
@StripPostfix(value = "result", postfix = "i64i_v")
void glGetIntegerui64i_vNV(@GLenum int value, @GLuint int index, @OutParameter @Check("1") @GLuint64EXT LongBuffer result);
@Alternate("glGetIntegerui64i_vNV")
@GLreturn("result")
@StripPostfix(value = "result", postfix = "i_v")
void glGetIntegerui64i_vNV2(@GLenum int value, @GLuint int index, @OutParameter @GLuint64EXT LongBuffer result);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_draw_range_elements.java 0000644 0001750 0001750 00000004263 12702226520 024336 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface EXT_draw_range_elements {
int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8;
int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9;
void glDrawRangeElementsEXT(@GLenum int mode, @GLuint int start, @GLuint int end, @AutoSize("pIndices") @GLsizei int count, @AutoType("pIndices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer pIndices);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_vertex_program_evaluators.java 0000644 0001750 0001750 00000007231 12702226520 026041 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
public interface APPLE_vertex_program_evaluators {
/**
* Accepted by the <pname> parameter of EnableVertexAttribAPPLE,
* DisableVertexAttribAPPLE, and IsVertexAttribEnabledAPPLE.
*/
int GL_VERTEX_ATTRIB_MAP1_APPLE = 0x8A00;
int GL_VERTEX_ATTRIB_MAP2_APPLE = 0x8A01;
/**
* Accepted by the <pname> parameter of GetVertexAttribdvARB,
* GetVertexAttribfvARB, and GetVertexAttribivARB.
*/
int GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02;
int GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03;
int GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04;
int GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05;
int GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06;
int GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07;
int GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08;
int GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09;
void glEnableVertexAttribAPPLE(@GLuint int index, @GLenum int pname);
void glDisableVertexAttribAPPLE(@GLuint int index, @GLenum int pname);
boolean glIsVertexAttribEnabledAPPLE(@GLuint int index, @GLenum int pname);
void glMapVertexAttrib1dAPPLE(@GLuint int index, @GLuint int size, double u1, double u2,
int stride, int order, @Check @Const DoubleBuffer points);
void glMapVertexAttrib1fAPPLE(@GLuint int index, @GLuint int size, float u1, float u2,
int stride, int order, @Check @Const FloatBuffer points);
void glMapVertexAttrib2dAPPLE(@GLuint int index, @GLuint int size, double u1, double u2,
int ustride, int uorder, double v1, double v2, int vstride, int vorder,
@Check @Const DoubleBuffer points);
void glMapVertexAttrib2fAPPLE(@GLuint int index, @GLuint int size, float u1, float u2,
int ustride, int uorder, float v1, float v2, int vstride, int vorder,
@Check @Const FloatBuffer points);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_depth_buffer_float.java 0000644 0001750 0001750 00000004735 12702226520 024042 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_depth_buffer_float {
/**
* Accepted by the <internalformat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, CopyTexImage2D, and RenderbufferStorageEXT,
* and returned in the <data> parameter of GetTexLevelParameter and
* GetRenderbufferParameterivEXT:
*/
int GL_DEPTH_COMPONENT32F_NV = 0x8DAB;
int GL_DEPTH32F_STENCIL8_NV = 0x8DAC;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and
* GetTexImage:
*/
int GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD;
/**
* Accepted by the <pname> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF;
void glDepthRangedNV(double n, double f);
void glClearDepthdNV(double d);
void glDepthBoundsdNV(double zmin, double zmax);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_copy_image.java 0000644 0001750 0001750 00000004103 12702226520 022402 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_copy_image {
@Reuse("GL43")
void glCopyImageSubData(
@GLuint int srcName, @GLenum int srcTarget, int srcLevel,
int srcX, int srcY, int srcZ,
@GLuint int dstName, @GLenum int dstTarget, int dstLevel,
int dstX, int dstY, int dstZ,
@GLsizei int srcWidth, @GLsizei int srcHeight, @GLsizei int srcDepth);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_program_interface_query.java 0000644 0001750 0001750 00000016710 12702226520 025211 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_program_interface_query {
/**
* Accepted by the <programInterface> parameter of GetProgramInterfaceiv,
* GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
* GetProgramResourceLocation, and GetProgramResourceLocationIndex:
*/
int GL_UNIFORM = 0x92E1,
GL_UNIFORM_BLOCK = 0x92E2,
GL_PROGRAM_INPUT = 0x92E3,
GL_PROGRAM_OUTPUT = 0x92E4,
GL_BUFFER_VARIABLE = 0x92E5,
GL_SHADER_STORAGE_BLOCK = 0x92E6,
GL_VERTEX_SUBROUTINE = 0x92E8,
GL_TESS_CONTROL_SUBROUTINE = 0x92E9,
GL_TESS_EVALUATION_SUBROUTINE = 0x92EA,
GL_GEOMETRY_SUBROUTINE = 0x92EB,
GL_FRAGMENT_SUBROUTINE = 0x92EC,
GL_COMPUTE_SUBROUTINE = 0x92ED,
GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE,
GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF,
GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0,
GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1,
GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2,
GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3,
GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4;
/** Accepted by the <pname> parameter of GetProgramInterfaceiv: */
int GL_ACTIVE_RESOURCES = 0x92F5,
GL_MAX_NAME_LENGTH = 0x92F6,
GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7,
GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8;
/** Accepted in the <props> array of GetProgramResourceiv: */
int GL_NAME_LENGTH = 0x92F9,
GL_TYPE = 0x92FA,
GL_ARRAY_SIZE = 0x92FB,
GL_OFFSET = 0x92FC,
GL_BLOCK_INDEX = 0x92FD,
GL_ARRAY_STRIDE = 0x92FE,
GL_MATRIX_STRIDE = 0x92FF,
GL_IS_ROW_MAJOR = 0x9300,
GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301,
GL_BUFFER_BINDING = 0x9302,
GL_BUFFER_DATA_SIZE = 0x9303,
GL_NUM_ACTIVE_VARIABLES = 0x9304,
GL_ACTIVE_VARIABLES = 0x9305,
GL_REFERENCED_BY_VERTEX_SHADER = 0x9306,
GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307,
GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308,
GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309,
GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A,
GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B,
GL_TOP_LEVEL_ARRAY_SIZE = 0x930C,
GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D,
GL_LOCATION = 0x930E,
GL_LOCATION_INDEX = 0x930F,
GL_IS_PER_PATCH = 0x92E7;
@Reuse("GL43")
@StripPostfix("params")
void glGetProgramInterfaceiv(@GLuint int program, @GLenum int programInterface,
@GLenum int pname, @Check("1") @OutParameter IntBuffer params);
@Reuse("GL43")
@Alternate("glGetProgramInterfaceiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramInterfaceiv2(@GLuint int program, @GLenum int programInterface,
@GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL43")
@GLuint
int glGetProgramResourceIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated @Const @GLchar ByteBuffer name);
@Reuse("GL43")
@Alternate("glGetProgramResourceIndex")
@GLuint
int glGetProgramResourceIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated CharSequence name);
@Reuse("GL43")
void glGetProgramResourceName(@GLuint int program, @GLenum int programInterface,
@GLuint int index, @AutoSize(value = "name", canBeNull = true) @GLsizei int bufSize, @Check(value = "1", canBeNull = true) @OutParameter @GLsizei IntBuffer length,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer name);
@Reuse("GL43")
@Alternate("glGetProgramResourceName")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetProgramResourceName2(@GLuint int program, @GLenum int programInterface,
@GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@Reuse("GL43")
@StripPostfix("params")
void glGetProgramResourceiv(@GLuint int program, @GLenum int programInterface,
@GLuint int index, @AutoSize("props") @GLsizei int propCount,
@Const @GLenum IntBuffer props, @AutoSize("params") @GLsizei int bufSize,
@Check(value = "1", canBeNull = true) @OutParameter @GLsizei IntBuffer length, @OutParameter IntBuffer params);
@Reuse("GL43")
int glGetProgramResourceLocation(@GLuint int program, @GLenum int programInterface,
@NullTerminated @Const @GLchar ByteBuffer name);
@Reuse("GL43")
@Alternate("glGetProgramResourceLocation")
int glGetProgramResourceLocation(@GLuint int program, @GLenum int programInterface,
@NullTerminated CharSequence name);
@Reuse("GL43")
int glGetProgramResourceLocationIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated @Const @GLchar ByteBuffer name);
@Reuse("GL43")
@Alternate("glGetProgramResourceLocationIndex")
int glGetProgramResourceLocationIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated CharSequence name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_sync.java 0000644 0001750 0001750 00000011466 12702226520 021254 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.PointerWrapper;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
@Extension(postfix = "")
public interface ARB_sync {
/** Accepted as the <pname> parameter of GetInteger64v: */
int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111;
/** Accepted as the <pname> parameter of GetSynciv: */
int GL_OBJECT_TYPE = 0x9112;
int GL_SYNC_CONDITION = 0x9113;
int GL_SYNC_STATUS = 0x9114;
int GL_SYNC_FLAGS = 0x9115;
/** Returned in <values> for GetSynciv <pname> OBJECT_TYPE: */
int GL_SYNC_FENCE = 0x9116;
/** Returned in <values> for GetSynciv <pname> SYNC_CONDITION: */
int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117;
/** Returned in <values> for GetSynciv <pname> SYNC_STATUS: */
int GL_UNSIGNALED = 0x9118;
int GL_SIGNALED = 0x9119;
/** Accepted in the <flags> parameter of ClientWaitSync: */
int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001;
/** Accepted in the <timeout> parameter of WaitSync: */
long GL_TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFl;
/** Returned by ClientWaitSync: */
int GL_ALREADY_SIGNALED = 0x911A;
int GL_TIMEOUT_EXPIRED = 0x911B;
int GL_CONDITION_SATISFIED = 0x911C;
int GL_WAIT_FAILED = 0x911D;
@Reuse("GL32")
@PointerWrapper("GLsync")
GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
@Reuse("GL32")
boolean glIsSync(@PointerWrapper("GLsync") GLSync sync);
@Reuse("GL32")
void glDeleteSync(@PointerWrapper("GLsync") GLSync sync);
@Reuse("GL32")
@GLenum
int glClientWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@Reuse("GL32")
void glWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@Reuse("GL32")
@StripPostfix("params")
void glGetInteger64v(@GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer params);
@Reuse("GL32")
@Alternate("glGetInteger64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetInteger64v2(@GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@Reuse("GL32")
@StripPostfix("values")
void glGetSynciv(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @AutoSize("values") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter IntBuffer values);
/** @deprecated Will be removed in 3.0. Use {@link #glGetSynci} instead. */
@Alternate("glGetSynciv")
@GLreturn("values")
@StripPostfix("values")
@Reuse(value = "GL32", method = "glGetSynci")
@Deprecated
void glGetSynciv2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer values);
@Reuse("GL32")
@Alternate("glGetSynciv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetSynciv3(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer values);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_transpose_matrix.java 0000644 0001750 0001750 00000004040 12702226520 023670 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import java.nio.*;
public interface ARB_transpose_matrix {
int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3;
int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4;
int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5;
int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6;
@StripPostfix("pfMtx")
void glLoadTransposeMatrixfARB(@Check("16") @Const FloatBuffer pfMtx);
@StripPostfix("pfMtx")
void glMultTransposeMatrixfARB(@Check("16") @Const FloatBuffer pfMtx);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_packed_depth_stencil.java 0000644 0001750 0001750 00000005367 12702226520 024473 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_packed_depth_stencil {
/**
Accepted by the <format> parameter of DrawPixels, ReadPixels,
TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
TexSubImage3D, and GetTexImage, by the <type> parameter of
CopyPixels, by the <internalformat> parameter of TexImage1D,
TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
RenderbufferStorageEXT, and returned in the <data> parameter of
GetTexLevelParameter and GetRenderbufferParameterivEXT.
*/
int GL_DEPTH_STENCIL_EXT = 0x84F9;
/**
Accepted by the <type> parameter of DrawPixels, ReadPixels,
TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
TexSubImage3D, and GetTexImage.
*/
int GL_UNSIGNED_INT_24_8_EXT = 0x84FA;
/**
Accepted by the <internalformat> parameter of TexImage1D,
TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
RenderbufferStorageEXT, and returned in the <data> parameter of
GetTexLevelParameter and GetRenderbufferParameterivEXT.
*/
int GL_DEPTH24_STENCIL8_EXT = 0x88F0;
/**
Accepted by the <value> parameter of GetTexLevelParameter.
*/
int GL_TEXTURE_STENCIL_SIZE_EXT = 0x88F1;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_geometry_shader4.java 0000644 0001750 0001750 00000007625 12702226520 023603 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_geometry_shader4 {
/**
* Accepted by the <type> parameter of CreateShader and returned by the
* <params> parameter of GetShaderiv:
*/
int GL_GEOMETRY_SHADER_EXT = 0x8DD9;
/**
* Accepted by the <pname> parameter of ProgramParameteriEXT and
* GetProgramiv:
*/
int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA;
int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8DDB;
int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29;
int GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD;
int GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE;
int GL_MAX_VARYING_COMPONENTS_EXT = 0x8B4B;
int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF;
int GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0;
int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1;
/**
* Accepted by the <mode> parameter of Begin, DrawArrays,
* MultiDrawArrays, DrawElements, MultiDrawElements, and
* DrawRangeElements:
*/
int GL_LINES_ADJACENCY_EXT = 0xA;
int GL_LINE_STRIP_ADJACENCY_EXT = 0xB;
int GL_TRIANGLES_ADJACENCY_EXT = 0xC;
int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0xD;
/** Returned by CheckFramebufferStatusEXT: */
int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8;
int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9;
/**
* Accepted by the <pname> parameter of GetFramebufferAttachment-
* ParameterivEXT:
*/
int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetIntegerv, GetFloatv, GetDoublev,
* and GetBooleanv:
*/
int GL_PROGRAM_POINT_SIZE_EXT = 0x8642;
void glProgramParameteriEXT(@GLuint int program, @GLenum int pname, int value);
void glFramebufferTextureEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level);
void glFramebufferTextureLayerEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
void glFramebufferTextureFaceEXT(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, @GLenum int face);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_shader_texture_lod.java 0000644 0001750 0001750 00000003150 12702226520 024164 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ATI_shader_texture_lod {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_program4.java 0000644 0001750 0001750 00000003145 12702226520 023342 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_vertex_program4 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_get_texture_sub_image.java 0000644 0001750 0001750 00000004675 12702226520 024656 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface ARB_get_texture_sub_image {
@Reuse("GL45")
void glGetTextureSubImage(
@GLuint int texture, int level, int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLenum int type,
@AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels
);
@Reuse("GL45")
void glGetCompressedTextureSubImage(
@GLuint int texture, int level, int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels
);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_parameter_buffer_object.java 0000644 0001750 0001750 00000006221 12702226520 025047 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface NV_parameter_buffer_object {
/** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0;
int GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1;
/**
* Accepted by the <target> parameter of ProgramBufferParametersfvNV,
* ProgramBufferParametersIivNV, and ProgramBufferParametersIuivNV,
* BindBufferRangeNV, BindBufferOffsetNV, BindBufferBaseNV, and BindBuffer
* and the <value> parameter of GetIntegerIndexedvEXT:
*/
int GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2;
int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3;
int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4;
@StripPostfix("params")
void glProgramBufferParametersfvNV(@GLenum int target, @GLuint int buffer, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const FloatBuffer params);
@StripPostfix("params")
void glProgramBufferParametersIivNV(@GLenum int target, @GLuint int buffer, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const IntBuffer params);
@StripPostfix("params")
void glProgramBufferParametersIuivNV(@GLenum int target, @GLuint int buffer, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLuint int count, @Const @GLuint IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_env_combine4.java 0000644 0001750 0001750 00000003422 12702226520 024340 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_env_combine4 {
int GL_COMBINE4_NV = 0x8503;
int GL_SOURCE3_RGB_NV = 0x8583;
int GL_SOURCE3_ALPHA_NV = 0x858B;
int GL_OPERAND3_RGB_NV = 0x8593;
int GL_OPERAND3_ALPHA_NV = 0x859B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_transform_feedback.java 0000644 0001750 0001750 00000013302 12702226520 024142 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface EXT_transform_feedback {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, BindBufferRangeEXT, BindBufferOffsetEXT and
* BindBufferBaseEXT:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E;
/**
* Accepted by the <param> parameter of GetIntegerIndexedvEXT and
* GetBooleanIndexedvEXT:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84;
int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85;
/**
* Accepted by the <param> parameter of GetIntegerIndexedvEXT and
* GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv,
* GetDoublev, GetIntegerv, and GetFloatv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F;
/** Accepted by the <bufferMode> parameter of TransformFeedbackVaryingsEXT: */
int GL_INTERLEAVED_ATTRIBS_EXT = 0x8C8C;
int GL_SEPARATE_ATTRIBS_EXT = 0x8C8D;
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
* GetQueryiv:
*/
int GL_PRIMITIVES_GENERATED_EXT = 0x8C87;
int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_RASTERIZER_DISCARD_EXT = 0x8C89;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83;
int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F;
int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76;
void glBindBufferRangeEXT(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
void glBindBufferOffsetEXT(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset);
void glBindBufferBaseEXT(@GLenum int target, @GLuint int index, @GLuint int buffer);
void glBeginTransformFeedbackEXT(@GLenum int primitiveMode);
void glEndTransformFeedbackEXT();
void glTransformFeedbackVaryingsEXT(@GLuint int program, @GLsizei int count,
@Const @NullTerminated("count") @GLchar @PointerArray("count") ByteBuffer varyings,
@GLenum int bufferMode);
@Alternate("glTransformFeedbackVaryingsEXT")
void glTransformFeedbackVaryingsEXT(@GLuint int program, @Constant("varyings.length") @GLsizei int count,
@Const @NullTerminated @PointerArray("count") CharSequence[] varyings,
@GLenum int bufferMode);
void glGetTransformFeedbackVaryingEXT(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
@Alternate("glGetTransformFeedbackVaryingEXT")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetTransformFeedbackVaryingEXT2(@GLuint int program, @GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_separate_shader_objects.java 0000644 0001750 0001750 00000036423 12702226520 025143 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_separate_shader_objects {
/** Accepted by <stages> parameter to UseProgramStages: */
int GL_VERTEX_SHADER_BIT = 0x00000001,
GL_FRAGMENT_SHADER_BIT = 0x00000002,
GL_GEOMETRY_SHADER_BIT = 0x00000004,
GL_TESS_CONTROL_SHADER_BIT = 0x00000008,
GL_TESS_EVALUATION_SHADER_BIT = 0x00000010,
GL_ALL_SHADER_BITS = 0xFFFFFFFF;
/**
* Accepted by the <pname> parameter of ProgramParameteri and
* GetProgramiv:
*/
int GL_PROGRAM_SEPARABLE = 0x8258;
/** Accepted by <type> parameter to GetProgramPipelineiv: */
int GL_ACTIVE_PROGRAM = 0x8259;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_PROGRAM_PIPELINE_BINDING = 0x825A;
@Reuse("GL41")
void glUseProgramStages(@GLuint int pipeline, @GLbitfield int stages, @GLuint int program);
@Reuse("GL41")
void glActiveShaderProgram(@GLuint int pipeline, @GLuint int program);
/** Single null-terminated source code string. */
@Reuse("GL41")
@StripPostfix(value = "string", hasPostfix = false)
@GLuint
int glCreateShaderProgramv(@GLenum int type, @Constant("1") @GLsizei int count, @NullTerminated @Check @Const @Indirect @GLchar ByteBuffer string);
/** Multiple null-terminated source code strings, one after the other. */
@Reuse("GL41")
@Alternate(value = "glCreateShaderProgramv", nativeAlt = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramv2(@GLenum int type, @GLsizei int count, @NullTerminated("count") @Check @Const @Indirect @GLchar @PointerArray("count") ByteBuffer strings);
@Reuse("GL41")
@Alternate(value = "glCreateShaderProgramv", nativeAlt = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramv3(@GLenum int type, @Constant("strings.length") @GLsizei int count, @NullTerminated @Check("1") @PointerArray(value = "count") @Const @NativeType("GLchar") ByteBuffer[] strings);
@Reuse("GL41")
@Alternate("glCreateShaderProgramv")
@StripPostfix(value = "string", hasPostfix = false)
@GLuint
int glCreateShaderProgramv(@GLenum int type, @Constant("1") @GLsizei int count, @NullTerminated CharSequence string);
@Reuse("GL41")
@Alternate(value = "glCreateShaderProgramv", nativeAlt = true, skipNative = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramv2(@GLenum int type, @Constant("strings.length") @GLsizei int count,
@Const @NullTerminated @PointerArray(value = "count") CharSequence[] strings);
@Reuse("GL41")
void glBindProgramPipeline(@GLuint int pipeline);
@Reuse("GL41")
void glDeleteProgramPipelines(@AutoSize("pipelines") @GLsizei int n, @Const @GLuint IntBuffer pipelines);
@Reuse("GL41")
@Alternate("glDeleteProgramPipelines")
void glDeleteProgramPipelines(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, pipeline)", keepParam = true) int pipeline);
@Reuse("GL41")
void glGenProgramPipelines(@AutoSize("pipelines") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
@Reuse("GL41")
@Alternate("glGenProgramPipelines")
@GLreturn("pipelines")
void glGenProgramPipelines2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
@Reuse("GL41")
boolean glIsProgramPipeline(@GLuint int pipeline);
@Reuse("GL41")
void glProgramParameteri(@GLuint int program, @GLenum int pname, int value);
@Reuse("GL41")
@StripPostfix("params")
void glGetProgramPipelineiv(@GLuint int pipeline, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Reuse("GL41")
@Alternate("glGetProgramPipelineiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramPipelineiv2(@GLuint int pipeline, @GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL41")
void glProgramUniform1i(@GLuint int program, int location, int v0);
@Reuse("GL41")
void glProgramUniform2i(@GLuint int program, int location, int v0, int v1);
@Reuse("GL41")
void glProgramUniform3i(@GLuint int program, int location, int v0, int v1, int v2);
@Reuse("GL41")
void glProgramUniform4i(@GLuint int program, int location, int v0, int v1, int v2, int v3);
@Reuse("GL41")
void glProgramUniform1f(@GLuint int program, int location, float v0);
@Reuse("GL41")
void glProgramUniform2f(@GLuint int program, int location, float v0, float v1);
@Reuse("GL41")
void glProgramUniform3f(@GLuint int program, int location, float v0, float v1, float v2);
@Reuse("GL41")
void glProgramUniform4f(@GLuint int program, int location, float v0, float v1, float v2, float v3);
@Reuse("GL41")
void glProgramUniform1d(@GLuint int program, int location, double v0);
@Reuse("GL41")
void glProgramUniform2d(@GLuint int program, int location, double v0, double v1);
@Reuse("GL41")
void glProgramUniform3d(@GLuint int program, int location, double v0, double v1, double v2);
@Reuse("GL41")
void glProgramUniform4d(@GLuint int program, int location, double v0, double v1, double v2, double v3);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform1iv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform2iv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform3iv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform4iv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform1fv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform2fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform3fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform4fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform1dv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform2dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform3dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform4dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL41")
void glProgramUniform1ui(@GLuint int program, int location, int v0);
@Reuse("GL41")
void glProgramUniform2ui(@GLuint int program, int location, int v0, int v1);
@Reuse("GL41")
void glProgramUniform3ui(@GLuint int program, int location, int v0, int v1, int v2);
@Reuse("GL41")
void glProgramUniform4ui(@GLuint int program, int location, int v0, int v1, int v2, int v3);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform1uiv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform2uiv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform3uiv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniform4uiv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const IntBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix2fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix3fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix4fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix2dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix3dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix4dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix2x3fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix3x2fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix2x4fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix4x2fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix3x4fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix4x3fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix2x3dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix3x2dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix2x4dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix4x2dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix3x4dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
@StripPostfix("value")
void glProgramUniformMatrix4x3dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL41")
void glValidateProgramPipeline(@GLuint int pipeline);
@Reuse("GL41")
void glGetProgramPipelineInfoLog(@GLuint int pipeline, @AutoSize("infoLog") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Reuse("GL41")
@Alternate("glGetProgramPipelineInfoLog")
@GLreturn(value = "infoLog", maxLength = "bufSize")
void glGetProgramPipelineInfoLog2(@GLuint int pipeline, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/SUN_slice_accum.java 0000644 0001750 0001750 00000003303 12702226520 022577 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface SUN_slice_accum {
/**
* Accepted by the <op> parameter of Accum,
*/
int GL_SLICE_ACCUM_SUN = 0x85CC;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_view.java 0000644 0001750 0001750 00000004466 12702226520 023034 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_texture_view {
/**
* Accepted by the <pname> parameters of GetTexParameterfv and
* GetTexParameteriv:
*/
int GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB,
GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC,
GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD,
GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE,
GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF;
@Reuse("GL43")
void glTextureView(@GLuint int texture, @GLenum int target, @GLuint int origtexture,
@GLenum int internalformat,
@GLuint int minlevel, @GLuint int numlevels,
@GLuint int minlayer, @GLuint int numlayers);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_shader_stencil_export.java 0000644 0001750 0001750 00000003153 12702226520 024657 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_shader_stencil_export {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_program.java 0000644 0001750 0001750 00000014647 12702226520 023350 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface ARB_vertex_program extends ARB_program {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, by the
* <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev,
* and by the <target> parameter of ProgramStringARB, BindProgramARB,
* ProgramEnvParameter4[df][v]ARB, ProgramLocalParameter4[df][v]ARB,
* GetProgramEnvParameter[df]vARB, GetProgramLocalParameter[df]vARB,
* GetProgramivARB, and GetProgramStringARB.
*/
int GL_VERTEX_PROGRAM_ARB = 0x8620;
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642;
int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643;
int GL_COLOR_SUM_ARB = 0x8458;
/** Accepted by the <pname> parameter of GetVertexAttrib[dfi]vARB: */
int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622;
int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623;
int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624;
int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625;
int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A;
int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
/** Accepted by the <pname> parameter of GetVertexAttribPointervARB: */
int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
/** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0;
int GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1;
int GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2;
int GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869;
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib1sARB(@GLuint int index, short x);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib1fARB(@GLuint int index, float x);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib1dARB(@GLuint int index, double x);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib2sARB(@GLuint int index, short x, short y);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib2fARB(@GLuint int index, float x, float y);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib2dARB(@GLuint int index, double x, double y);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib3sARB(@GLuint int index, short x, short y, short z);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib3fARB(@GLuint int index, float x, float y, float z);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib3dARB(@GLuint int index, double x, double y, double z);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib4sARB(@GLuint int index, short x, short y, short z, short w);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib4fARB(@GLuint int index, float x, float y, float z, float w);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib4dARB(@GLuint int index, double x, double y, double z, double w);
@Reuse("ARBVertexShader")
@NoErrorCheck
void glVertexAttrib4NubARB(@GLuint int index, @GLubyte byte x, @GLubyte byte y, @GLubyte byte z, @GLubyte byte w);
@Reuse("ARBVertexShader")
void glVertexAttribPointerARB(@GLuint int index, int size, @AutoType("buffer") @GLenum int type, boolean normalized, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer buffer);
@Reuse("ARBVertexShader")
void glEnableVertexAttribArrayARB(@GLuint int index);
@Reuse("ARBVertexShader")
void glDisableVertexAttribArrayARB(@GLuint int index);
@Reuse("ARBVertexShader")
@StripPostfix("params")
void glGetVertexAttribfvARB(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Reuse("ARBVertexShader")
@StripPostfix("params")
void glGetVertexAttribdvARB(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
@Reuse("ARBVertexShader")
@StripPostfix("params")
void glGetVertexAttribivARB(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Reuse("ARBVertexShader")
@StripPostfix("result")
void glGetVertexAttribPointervARB(@GLuint int index, @GLenum int pname, @Result @GLvoid ByteBuffer result);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_blend_subtract.java 0000644 0001750 0001750 00000003265 12702226520 023325 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_blend_subtract {
int GL_FUNC_SUBTRACT_EXT = 0x800A;
int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_geometry_shader4.java 0000644 0001750 0001750 00000003147 12702226520 023461 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_geometry_shader4 {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL32.java 0000644 0001750 0001750 00000034452 12702226520 020263 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
public interface GL32 {
// ----------------------------------------------------------
// ----------------------[ OpenGL 3.2 ]----------------------
// ----------------------------------------------------------
int GL_CONTEXT_PROFILE_MASK = 0x9126;
int GL_CONTEXT_CORE_PROFILE_BIT = 0x00000001;
int GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002;
int GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122;
int GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123;
int GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124;
int GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125;
@StripPostfix("params")
void glGetBufferParameteri64v(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") LongBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetBufferParameteri64} instead. */
@Alternate("glGetBufferParameteri64v")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL32", method = "glGetBufferParameteri64")
@Deprecated
void glGetBufferParameteri64v2(@GLenum int target, @GLenum int pname, @OutParameter LongBuffer params);
@Alternate("glGetBufferParameteri64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetBufferParameteri64v3(@GLenum int target, @GLenum int pname, @OutParameter LongBuffer params);
// -----------------------------------------------------------------------------
// ----------------------[ ARB_draw_elements_base_vertex ]----------------------
// -----------------------------------------------------------------------------
void glDrawElementsBaseVertex(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, int basevertex);
void glDrawRangeElementsBaseVertex(@GLenum int mode, @GLuint int start, @GLuint int end, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, int basevertex);
void glDrawElementsInstancedBaseVertex(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, @GLsizei int primcount, int basevertex);
//void glMultiDrawElementsBaseVertex(@GLenum int mode, @GLsizei*count, @GLenum int type, void**indices, @GLsizei int primcount, int*basevertex)
// --------------------------------------------------------------------
// ----------------------[ ARB_provoking_vertex ]----------------------
// --------------------------------------------------------------------
/** Accepted by the <mode> parameter of ProvokingVertex: */
int GL_FIRST_VERTEX_CONVENTION = 0x8E4D;
int GL_LAST_VERTEX_CONVENTION = 0x8E4E;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PROVOKING_VERTEX = 0x8E4F;
int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C;
void glProvokingVertex(@GLenum int mode);
// ---------------------------------------------------------------------
// ----------------------[ ARB_seamless_cube_map ]----------------------
// ---------------------------------------------------------------------
/**
* Accepted by the <cap> parameter of Enable, Disable and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
* and GetDoublev:
*/
int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F;
// -----------------------------------------------------------------------
// ----------------------[ ARB_texture_multisample ]----------------------
// -----------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetMultisamplefv: */
int GL_SAMPLE_POSITION = 0x8E50;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_SAMPLE_MASK = 0x8E51;
/**
* Accepted by the <target> parameter of GetBooleani_v and
* GetIntegeri_v:
*/
int GL_SAMPLE_MASK_VALUE = 0x8E52;
/**
* Accepted by the <target> parameter of BindTexture and
* TexImage2DMultisample:
*/
int GL_TEXTURE_2D_MULTISAMPLE = 0x9100;
/** Accepted by the <target> parameter of TexImage2DMultisample: */
int GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101;
/**
* Accepted by the <target> parameter of BindTexture and
* TexImage3DMultisample:
*/
int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102;
/** Accepted by the <target> parameter of TexImage3DMultisample: */
int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_SAMPLE_MASK_WORDS = 0x8E59;
int GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E;
int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F;
int GL_MAX_INTEGER_SAMPLES = 0x9110;
int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104;
int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105;
/** Accepted by the <pname> parameter of GetTexLevelParameter */
int GL_TEXTURE_SAMPLES = 0x9106;
int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_2D_MULTISAMPLE = 0x9108;
int GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109;
int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A;
int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B;
int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C;
int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D;
void glTexImage2DMultisample(@GLenum int target, @GLsizei int samples, int internalformat,
@GLsizei int width, @GLsizei int height,
boolean fixedsamplelocations);
void glTexImage3DMultisample(@GLenum int target, @GLsizei int samples, int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
boolean fixedsamplelocations);
@StripPostfix("val")
void glGetMultisamplefv(@GLenum int pname, @GLuint int index, @OutParameter @Check("2") FloatBuffer val);
void glSampleMaski(@GLuint int index, @GLbitfield int mask);
// ---------------------------------------------------------------
// ----------------------[ ARB_depth_clamp ]----------------------
// ---------------------------------------------------------------
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_DEPTH_CLAMP = 0x864F;
// --------------------------------------------------------------------
// ----------------------[ ARB_geometry_shader4 ]----------------------
// --------------------------------------------------------------------
/**
* Accepted by the <type> parameter of CreateShader and returned by the
* <params> parameter of GetShaderiv:
*/
int GL_GEOMETRY_SHADER = 0x8DD9;
/**
* Accepted by the <pname> parameter of ProgramParameteriEXT and
* GetProgramiv:
*/
int GL_GEOMETRY_VERTICES_OUT = 0x8DDA;
int GL_GEOMETRY_INPUT_TYPE = 0x8DDB;
int GL_GEOMETRY_OUTPUT_TYPE = 0x8DDC;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29;
//int GL_MAX_GEOMETRY_VARYING_COMPONENTS = 0x8DDD; -- Missing from 3.2 spec
//int GL_MAX_VERTEX_VARYING_COMPONENTS = 0x8DDE; -- Missing from 3.2 spec
int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF;
int GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0;
int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1;
/**
* Accepted by the <mode> parameter of Begin, DrawArrays,
* MultiDrawArrays, DrawElements, MultiDrawElements, and
* DrawRangeElements:
*/
int GL_LINES_ADJACENCY = 0xA;
int GL_LINE_STRIP_ADJACENCY = 0xB;
int GL_TRIANGLES_ADJACENCY = 0xC;
int GL_TRIANGLE_STRIP_ADJACENCY = 0xD;
/** Returned by CheckFramebufferStatusEXT: */
int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8;
/**
* Accepted by the <pname> parameter of GetFramebufferAttachment-
* ParameterivEXT:
*/
int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetIntegerv, GetFloatv, GetDoublev,
* and GetBooleanv:
*/
int GL_PROGRAM_POINT_SIZE = 0x8642;
void glFramebufferTexture(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level);
// --------------------------------------------------------
// ----------------------[ ARB_sync ]----------------------
// --------------------------------------------------------
/** Accepted as the <pname> parameter of GetInteger64v: */
int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111;
/** Accepted as the <pname> parameter of GetSynciv: */
int GL_OBJECT_TYPE = 0x9112;
int GL_SYNC_CONDITION = 0x9113;
int GL_SYNC_STATUS = 0x9114;
int GL_SYNC_FLAGS = 0x9115;
/** Returned in <values> for GetSynciv <pname> OBJECT_TYPE: */
int GL_SYNC_FENCE = 0x9116;
/** Returned in <values> for GetSynciv <pname> SYNC_CONDITION: */
int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117;
/** Returned in <values> for GetSynciv <pname> SYNC_STATUS: */
int GL_UNSIGNALED = 0x9118;
int GL_SIGNALED = 0x9119;
/** Accepted in the <flags> parameter of ClientWaitSync: */
int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001;
/** Accepted in the <timeout> parameter of WaitSync: */
long GL_TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFl;
/** Returned by ClientWaitSync: */
int GL_ALREADY_SIGNALED = 0x911A;
int GL_TIMEOUT_EXPIRED = 0x911B;
int GL_CONDITION_SATISFIED = 0x911C;
int GL_WAIT_FAILED = 0x911D;
@PointerWrapper("GLsync")
GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
boolean glIsSync(@PointerWrapper("GLsync") GLSync sync);
void glDeleteSync(@PointerWrapper("GLsync") GLSync sync);
@GLenum
int glClientWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
void glWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@StripPostfix("data")
void glGetInteger64v(@GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer data);
@Alternate("glGetInteger64v")
@GLreturn("data")
@StripPostfix("data")
void glGetInteger64v2(@GLenum int pname, @OutParameter @GLint64 LongBuffer data);
@StripPostfix("data")
void glGetInteger64i_v(@GLenum int value, @GLuint int index, @OutParameter @Check("4") @GLint64 LongBuffer data);
@Alternate("glGetInteger64i_v")
@GLreturn("data")
@StripPostfix("data")
void glGetInteger64i_v2(@GLenum int value, @GLuint int index, @OutParameter @GLint64 LongBuffer data);
@StripPostfix("values")
void glGetSynciv(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @AutoSize("values") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter IntBuffer values);
/** @deprecated Will be removed in 3.0. Use {@link #glGetSynci} instead. */
@Alternate("glGetSynciv")
@GLreturn("values")
@StripPostfix("values")
@Reuse(value = "GL32", method = "glGetSynci")
@Deprecated
void glGetSynciv2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer values);
@Alternate("glGetSynciv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetSynciv3(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer values);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/KHR_robustness.java 0000644 0001750 0001750 00000006364 12702226520 022530 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface KHR_robustness {
/** Returned by GetGraphicsResetStatus: */
int GL_GUILTY_CONTEXT_RESET = 0x8253,
GL_INNOCENT_CONTEXT_RESET = 0x8254,
GL_UNKNOWN_CONTEXT_RESET = 0x8255;
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* and GetFloatv:
*/
int GL_CONTEXT_ROBUST_ACCESS = 0x90F3,
GL_RESET_NOTIFICATION_STRATEGY = 0x8256;
/**
* Returned by GetIntegerv and related simple queries when <value> is
* RESET_NOTIFICATION_STRATEGY:
*/
int GL_LOSE_CONTEXT_ON_RESET = 0x8252,
GL_NO_RESET_NOTIFICATION = 0x8261;
/** Returned by GetError: */
int GL_CONTEXT_LOST = 0x0507;
@Reuse("GL45")
@GLenum
int glGetGraphicsResetStatus();
@Reuse("GL45")
void glReadnPixels(int x, int y, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type, @AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@StripPostfix("params")
@Reuse("GL45")
void glGetnUniformfv(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter FloatBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetnUniformiv(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetnUniformuiv(@GLuint int program, int location, @AutoSize("params") @GLsizei int bufSize, @OutParameter @GLuint IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_tessellation_shader.java 0000644 0001750 0001750 00000010541 12702226520 024325 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import java.nio.FloatBuffer;
@Extension(postfix = "")
public interface ARB_tessellation_shader {
/**
* Accepted by the <mode> parameter of Begin and all vertex array functions
* that implicitly call Begin:
*/
int GL_PATCHES = 0xE;
/**
* Accepted by the <pname> parameter of PatchParameteri, GetBooleanv,
* GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v:
*/
int GL_PATCH_VERTICES = 0x8E72;
/**
* Accepted by the <pname> parameter of PatchParameterfv, GetBooleanv,
* GetDoublev, GetFloatv, and GetIntegerv, and GetInteger64v:
*/
int GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73;
int GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75;
int GL_TESS_GEN_MODE = 0x8E76;
int GL_TESS_GEN_SPACING = 0x8E77;
int GL_TESS_GEN_VERTEX_ORDER = 0x8E78;
int GL_TESS_GEN_POINT_MODE = 0x8E79;
/** Returned by GetProgramiv when <pname> is TESS_GEN_MODE: */
int GL_ISOLINES = 0x8E7A;
/** Returned by GetProgramiv when <pname> is TESS_GEN_SPACING: */
int GL_FRACTIONAL_ODD = 0x8E7B;
int GL_FRACTIONAL_EVEN = 0x8E7C;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetFloatv,
* GetIntegerv, and GetInteger64v:
*/
int GL_MAX_PATCH_VERTICES = 0x8E7D;
int GL_MAX_TESS_GEN_LEVEL = 0x8E7E;
int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F;
int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80;
int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81;
int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82;
int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83;
int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84;
int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85;
int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86;
int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89;
int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A;
int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C;
int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D;
int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E;
int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F;
/** Accepted by the <pname> parameter of GetActiveUniformBlockiv: */
int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0;
int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1;
/**
* Accepted by the <type> parameter of CreateShader and returned by the
* <params> parameter of GetShaderiv:
*/
int GL_TESS_EVALUATION_SHADER = 0x8E87;
int GL_TESS_CONTROL_SHADER = 0x8E88;
@Reuse("GL40")
void glPatchParameteri(@GLenum int pname, int value);
@Reuse("GL40")
@StripPostfix("values")
void glPatchParameterfv(@GLenum int pname, @Check("4") @Const FloatBuffer values);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_occlusion_query.java 0000644 0001750 0001750 00000007023 12702226520 023434 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface NV_occlusion_query {
int GL_OCCLUSION_TEST_HP = 0x8165;
int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
/* HP_occlusion_test */
int GL_PIXEL_COUNTER_BITS_NV = 0x8864;
int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865;
int GL_PIXEL_COUNT_NV = 0x8866;
int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867;
void glGenOcclusionQueriesNV(@AutoSize("piIDs") @GLsizei int n, @OutParameter @GLuint IntBuffer piIDs);
@Alternate("glGenOcclusionQueriesNV")
@GLreturn("piIDs")
void glGenOcclusionQueriesNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer piIDs);
void glDeleteOcclusionQueriesNV(@AutoSize("piIDs") @GLsizei int n, @Const @GLuint IntBuffer piIDs);
@Alternate("glDeleteOcclusionQueriesNV")
void glDeleteOcclusionQueriesNV(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, piID)", keepParam = true) int piID);
boolean glIsOcclusionQueryNV(@GLuint int id);
void glBeginOcclusionQueryNV(@GLuint int id);
void glEndOcclusionQueryNV();
@StripPostfix("params")
void glGetOcclusionQueryuivNV(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params);
@Alternate("glGetOcclusionQueryuivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetOcclusionQueryuivNV2(@GLuint int id, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
@StripPostfix("params")
void glGetOcclusionQueryivNV(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetOcclusionQueryivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetOcclusionQueryivNV2(@GLuint int id, @GLenum int pname, @OutParameter IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_texture_texture4.java 0000644 0001750 0001750 00000003146 12702226520 023635 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_texture_texture4 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_sparse_texture.java 0000644 0001750 0001750 00000007311 12702226520 023347 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Dependent;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
@Dependent
public interface ARB_sparse_texture {
/**
* Accepted by the <pname> parameter to TexParameter{i f}{v},
* TexParameterI{u}v, GetTexParameter{if}v and GetTexParameterIi{u}v:
*/
int GL_TEXTURE_SPARSE_ARB = 0x91A6,
GL_VIRTUAL_PAGE_SIZE_INDEX_ARB = 0x91A7;
/**
* Accepted by the <pname> parameter of GetTexParameter{if}v and
* GetTexParameterIi{u}v:
*/
int GL_NUM_SPARSE_LEVELS_ARB = 0x91AA;
/** Accepted by the <pname> parameter to GetInternalformativ: */
int GL_NUM_VIRTUAL_PAGE_SIZES_ARB = 0x91A8,
GL_VIRTUAL_PAGE_SIZE_X_ARB = 0x9195,
GL_VIRTUAL_PAGE_SIZE_Y_ARB = 0x9196,
GL_VIRTUAL_PAGE_SIZE_Z_ARB = 0x9197;
/**
* Accepted by the <pname> parameter to GetIntegerv, GetFloatv, GetDoublev,
* GetInteger64v, and GetBooleanv:
*/
int GL_MAX_SPARSE_TEXTURE_SIZE_ARB = 0x9198,
GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199,
GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919A,
GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9;
void glTexPageCommitmentARB(@GLenum int target,
int level,
int xoffset,
int yoffset,
int zoffset,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
boolean commit);
@Dependent("GL_EXT_direct_state_access")
void glTexturePageCommitmentEXT(@GLuint int texture,
@GLenum int target,
int level,
int xoffset,
int yoffset,
int zoffset,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
boolean commit);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_shader_image_load_store.java 0000644 0001750 0001750 00000011306 12702226520 025150 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_shader_image_load_store {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_IMAGE_UNITS_EXT = 0x8F38;
int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39;
int GL_MAX_IMAGE_SAMPLES_EXT = 0x906D;
/** Accepted by the <target> parameter of GetIntegeri_v and GetBooleani_v: */
int GL_IMAGE_BINDING_NAME_EXT = 0x8F3A;
int GL_IMAGE_BINDING_LEVEL_EXT = 0x8F3B;
int GL_IMAGE_BINDING_LAYERED_EXT = 0x8F3C;
int GL_IMAGE_BINDING_LAYER_EXT = 0x8F3D;
int GL_IMAGE_BINDING_ACCESS_EXT = 0x8F3E;
int GL_IMAGE_BINDING_FORMAT_EXT = 0x906E;
/** Accepted by the <barriers> parameter of MemoryBarrierEXT: */
int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001;
int GL_ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002;
int GL_UNIFORM_BARRIER_BIT_EXT = 0x00000004;
int GL_TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008;
int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020;
int GL_COMMAND_BARRIER_BIT_EXT = 0x00000040;
int GL_PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080;
int GL_TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100;
int GL_BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200;
int GL_FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400;
int GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800;
int GL_ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000;
int GL_ALL_BARRIER_BITS_EXT = 0xFFFFFFFF;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_IMAGE_1D_EXT = 0x904C;
int GL_IMAGE_2D_EXT = 0x904D;
int GL_IMAGE_3D_EXT = 0x904E;
int GL_IMAGE_2D_RECT_EXT = 0x904F;
int GL_IMAGE_CUBE_EXT = 0x9050;
int GL_IMAGE_BUFFER_EXT = 0x9051;
int GL_IMAGE_1D_ARRAY_EXT = 0x9052;
int GL_IMAGE_2D_ARRAY_EXT = 0x9053;
int GL_IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054;
int GL_IMAGE_2D_MULTISAMPLE_EXT = 0x9055;
int GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056;
int GL_INT_IMAGE_1D_EXT = 0x9057;
int GL_INT_IMAGE_2D_EXT = 0x9058;
int GL_INT_IMAGE_3D_EXT = 0x9059;
int GL_INT_IMAGE_2D_RECT_EXT = 0x905A;
int GL_INT_IMAGE_CUBE_EXT = 0x905B;
int GL_INT_IMAGE_BUFFER_EXT = 0x905C;
int GL_INT_IMAGE_1D_ARRAY_EXT = 0x905D;
int GL_INT_IMAGE_2D_ARRAY_EXT = 0x905E;
int GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F;
int GL_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060;
int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061;
int GL_UNSIGNED_INT_IMAGE_1D_EXT = 0x9062;
int GL_UNSIGNED_INT_IMAGE_2D_EXT = 0x9063;
int GL_UNSIGNED_INT_IMAGE_3D_EXT = 0x9064;
int GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065;
int GL_UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066;
int GL_UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067;
int GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068;
int GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069;
int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A;
int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B;
int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C;
void glBindImageTextureEXT(@GLuint int index, @GLuint int texture, int level, boolean layered, int layer, @GLenum int access, int format);
void glMemoryBarrierEXT(@GLbitfield int barriers);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_buffer_range.java 0000644 0001750 0001750 00000005445 12702226520 024505 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Dependent;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLsizeiptr;
import org.lwjgl.util.generator.opengl.GLuint;
@Dependent
public interface ARB_texture_buffer_range {
/** Accepted by the <pname> parameter of GetTexLevelParameter: */
int GL_TEXTURE_BUFFER_OFFSET = 0x919D,
GL_TEXTURE_BUFFER_SIZE = 0x919E;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F;
@Reuse("GL43")
void glTexBufferRange(@GLenum int target,
@GLenum int internalformat,
@GLuint int buffer,
@GLintptr long offset,
@GLsizeiptr long size);
@Dependent("GL_EXT_direct_state_access")
void glTextureBufferRangeEXT(@GLuint int texture,
@GLenum int target,
@GLenum int internalformat,
@GLuint int buffer,
@GLintptr long offset,
@GLsizeiptr long size);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_compressed_texture_pixel_storage.java 0000644 0001750 0001750 00000004174 12702226520 027147 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_compressed_texture_pixel_storage {
/**
* Accepted by the <pname> parameter of PixelStore[fi], GetBooleanv,
* GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127,
GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128,
GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129,
GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A,
GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B,
GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C,
GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D,
GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_snorm.java 0000644 0001750 0001750 00000005047 12702226520 023250 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_snorm {
/**
* Accepted by the <internalFormat> parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RED_SNORM = 0x8F90;
int GL_RG_SNORM = 0x8F91;
int GL_RGB_SNORM = 0x8F92;
int GL_RGBA_SNORM = 0x8F93;
int GL_ALPHA_SNORM = 0x9010;
int GL_LUMINANCE_SNORM = 0x9011;
int GL_LUMINANCE_ALPHA_SNORM = 0x9012;
int GL_INTENSITY_SNORM = 0x9013;
int GL_R8_SNORM = 0x8F94;
int GL_RG8_SNORM = 0x8F95;
int GL_RGB8_SNORM = 0x8F96;
int GL_RGBA8_SNORM = 0x8F97;
int GL_ALPHA8_SNORM = 0x9014;
int GL_LUMINANCE8_SNORM = 0x9015;
int GL_LUMINANCE8_ALPHA8_SNORM = 0x9016;
int GL_INTENSITY8_SNORM = 0x9017;
int GL_R16_SNORM = 0x8F98;
int GL_RG16_SNORM = 0x8F99;
int GL_RGB16_SNORM = 0x8F9A;
int GL_RGBA16_SNORM = 0x8F9B;
int GL_ALPHA16_SNORM = 0x9018;
int GL_LUMINANCE16_SNORM = 0x9019;
int GL_LUMINANCE16_ALPHA16_SNORM = 0x901A;
int GL_INTENSITY16_SNORM = 0x901B;
/** Returned by GetTexLevelParmeter */
int GL_SIGNED_NORMALIZED = 0x8F9C;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_compression_rgtc.java 0000644 0001750 0001750 00000004143 12702226520 025466 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureCompressionRGTC")
public interface EXT_texture_compression_rgtc {
/**
* Accepted by the <internalformat> parameter of TexImage2D,
* CopyTexImage2D, and CompressedTexImage2D and the <format> parameter
* of CompressedTexSubImage2D:
*/
int GL_COMPRESSED_RED_RGTC1_EXT = 0x8DBB;
int GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC;
int GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD;
int GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_sRGB.java 0000644 0001750 0001750 00000005070 12702226520 022703 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_sRGB {
/**
Accepted by the <internalformat> parameter of TexImage1D, TexImage2D,
TexImage3D, CopyTexImage1D, CopyTexImage2D.
*/
int GL_SRGB_EXT = 0x8C40;
int GL_SRGB8_EXT = 0x8C41;
int GL_SRGB_ALPHA_EXT = 0x8C42;
int GL_SRGB8_ALPHA8_EXT = 0x8C43;
int GL_SLUMINANCE_ALPHA_EXT = 0x8C44;
int GL_SLUMINANCE8_ALPHA8_EXT = 0x8C45;
int GL_SLUMINANCE_EXT = 0x8C46;
int GL_SLUMINANCE8_EXT = 0x8C47;
int GL_COMPRESSED_SRGB_EXT = 0x8C48;
int GL_COMPRESSED_SRGB_ALPHA_EXT = 0x8C49;
int GL_COMPRESSED_SLUMINANCE_EXT = 0x8C4A;
int GL_COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B;
/**
Accepted by the <internalformat> parameter of TexImage2D,
CopyTexImage2D, and CompressedTexImage2DARB and the <format> parameter
of CompressedTexSubImage2DARB.
*/
int GL_COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C;
int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D;
int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E;
int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_fragment_program2.java 0000644 0001750 0001750 00000003623 12702226520 023627 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_fragment_program2 {
/**
* Accepted by the <pname> parameter of GetProgramivARB:
*/
int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4;
int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5;
int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88F6;
int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7;
int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_transform_feedback_instanced.java 0000644 0001750 0001750 00000004051 12702226520 026137 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_transform_feedback_instanced {
@Reuse("GL42")
void glDrawTransformFeedbackInstanced(@GLenum int mode, @GLuint int id, @GLsizei int primcount);
@Reuse("GL42")
void glDrawTransformFeedbackStreamInstanced(@GLenum int mode, @GLuint int id, @GLuint int stream, @GLsizei int primcount);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_buffer_object.java 0000644 0001750 0001750 00000004706 12702226520 024656 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_texture_buffer_object {
/**
* Accepted by the <target> parameter of BindBuffer, BufferData,
* BufferSubData, MapBuffer, MapBufferRangeARB, BindTexture, UnmapBuffer,
* GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBufferARB,
* and the parameter of GetBooleanv, GetDoublev, GetFloatv, and
* GetIntegerv:
*/
int GL_TEXTURE_BUFFER_ARB = 0x8C2A;
/**
* Accepted by the <pname> parameters of GetBooleanv, GetDoublev,
* GetFloatv, and GetIntegerv:
*/
int GL_MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B;
int GL_TEXTURE_BINDING_BUFFER_ARB = 0x8C2C;
int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D;
int GL_TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E;
void glTexBufferARB(@GLenum int target, @GLenum int internalformat, @GLuint int buffer);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL41.java 0000644 0001750 0001750 00000051327 12702226520 020263 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface GL41 {
// ---------------------------------------------------------------------
// ----------------------[ ARB_ES2_compatibility ]----------------------
// ---------------------------------------------------------------------
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_SHADER_COMPILER = 0x8DFA,
GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9,
GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB,
GL_MAX_VARYING_VECTORS = 0x8DFC,
GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD,
GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A,
GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B;
/** Accepted by the <type> parameter of VertexAttribPointer: */
int GL_FIXED = 0x140C;
/**
* Accepted by the <precisiontype> parameter of
* GetShaderPrecisionFormat:
*/
int GL_LOW_FLOAT = 0x8DF0,
GL_MEDIUM_FLOAT = 0x8DF1,
GL_HIGH_FLOAT = 0x8DF2,
GL_LOW_INT = 0x8DF3,
GL_MEDIUM_INT = 0x8DF4,
GL_HIGH_INT = 0x8DF5;
/** Accepted by the <format> parameter of most commands taking sized internal formats: */
int GL_RGB565 = 0x8D62;
void glReleaseShaderCompiler();
void glShaderBinary(@AutoSize("shaders") @GLsizei int count, @Const @GLuint IntBuffer shaders,
@GLenum int binaryformat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
void glGetShaderPrecisionFormat(@GLenum int shadertype, @GLenum int precisiontype,
@OutParameter @Check("2") IntBuffer range,
@OutParameter @Check("1") IntBuffer precision);
void glDepthRangef(float n, float f);
void glClearDepthf(float d);
// ----------------------------------------------------------------------
// ----------------------[ ARB_get_program_binary ]----------------------
// ----------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of ProgramParameteri and
* GetProgramiv:
*/
int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_PROGRAM_BINARY_LENGTH = 0x8741;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv and GetDoublev:
*/
int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE,
GL_PROGRAM_BINARY_FORMATS = 0x87FF;
void glGetProgramBinary(@GLuint int program, @AutoSize("binary") @GLsizei int bufSize,
@Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@Check("1") @GLenum IntBuffer binaryFormat,
@OutParameter @GLvoid ByteBuffer binary);
void glProgramBinary(@GLuint int program, @GLenum int binaryFormat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
void glProgramParameteri(@GLuint int program, @GLenum int pname, int value);
// ---------------------------------------------------------------------------
// ----------------------[ ARB_separate_shader_objects ]----------------------
// ---------------------------------------------------------------------------
/** Accepted by <stages> parameter to UseProgramStages: */
int GL_VERTEX_SHADER_BIT = 0x00000001,
GL_FRAGMENT_SHADER_BIT = 0x00000002,
GL_GEOMETRY_SHADER_BIT = 0x00000004,
GL_TESS_CONTROL_SHADER_BIT = 0x00000008,
GL_TESS_EVALUATION_SHADER_BIT = 0x00000010,
GL_ALL_SHADER_BITS = 0xFFFFFFFF;
/**
* Accepted by the <pname> parameter of ProgramParameteri and
* GetProgramiv:
*/
int GL_PROGRAM_SEPARABLE = 0x8258;
/** Accepted by <type> parameter to GetProgramPipelineiv: */
int GL_ACTIVE_PROGRAM = 0x8259;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_PROGRAM_PIPELINE_BINDING = 0x825A;
void glUseProgramStages(@GLuint int pipeline, @GLbitfield int stages, @GLuint int program);
void glActiveShaderProgram(@GLuint int pipeline, @GLuint int program);
/** Single null-terminated source code string. */
@StripPostfix(value = "string", hasPostfix = false)
@GLuint
int glCreateShaderProgramv(@GLenum int type, @Constant("1") @GLsizei int count, @NullTerminated @Check @Const @Indirect @GLchar ByteBuffer string);
/** Multiple null-terminated source code strings, one after the other. */
@Alternate(value = "glCreateShaderProgramv", nativeAlt = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramv2(@GLenum int type, @GLsizei int count, @NullTerminated("count") @Check @Const @Indirect @GLchar @PointerArray("count") ByteBuffer strings);
@Alternate(value = "glCreateShaderProgramv", nativeAlt = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramv3(@GLenum int type, @Constant("strings.length") @GLsizei int count, @NullTerminated @Check("1") @PointerArray(value = "count") @Const @NativeType("GLchar") ByteBuffer[] strings);
@Alternate("glCreateShaderProgramv")
@StripPostfix(value = "string", hasPostfix = false)
@GLuint
int glCreateShaderProgramv(@GLenum int type, @Constant("1") @GLsizei int count, @NullTerminated CharSequence string);
@Alternate(value = "glCreateShaderProgramv", nativeAlt = true, skipNative = true)
@StripPostfix(value = "strings", hasPostfix = false)
@GLuint
int glCreateShaderProgramv2(@GLenum int type, @Constant("strings.length") @GLsizei int count,
@Const @NullTerminated @PointerArray(value = "count") CharSequence[] strings);
void glBindProgramPipeline(@GLuint int pipeline);
void glDeleteProgramPipelines(@AutoSize("pipelines") @GLsizei int n, @Const @GLuint IntBuffer pipelines);
@Alternate("glDeleteProgramPipelines")
void glDeleteProgramPipelines(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, pipeline)", keepParam = true) int pipeline);
void glGenProgramPipelines(@AutoSize("pipelines") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
@Alternate("glGenProgramPipelines")
@GLreturn("pipelines")
void glGenProgramPipelines2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
boolean glIsProgramPipeline(@GLuint int pipeline);
@StripPostfix("params")
void glGetProgramPipelineiv(@GLuint int pipeline, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetProgramPipelineiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramPipelineiv2(@GLuint int pipeline, @GLenum int pname, @OutParameter IntBuffer params);
void glProgramUniform1i(@GLuint int program, int location, int v0);
void glProgramUniform2i(@GLuint int program, int location, int v0, int v1);
void glProgramUniform3i(@GLuint int program, int location, int v0, int v1, int v2);
void glProgramUniform4i(@GLuint int program, int location, int v0, int v1, int v2, int v3);
void glProgramUniform1f(@GLuint int program, int location, float v0);
void glProgramUniform2f(@GLuint int program, int location, float v0, float v1);
void glProgramUniform3f(@GLuint int program, int location, float v0, float v1, float v2);
void glProgramUniform4f(@GLuint int program, int location, float v0, float v1, float v2, float v3);
void glProgramUniform1d(@GLuint int program, int location, double v0);
void glProgramUniform2d(@GLuint int program, int location, double v0, double v1);
void glProgramUniform3d(@GLuint int program, int location, double v0, double v1, double v2);
void glProgramUniform4d(@GLuint int program, int location, double v0, double v1, double v2, double v3);
@StripPostfix("value")
void glProgramUniform1iv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform2iv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform3iv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform4iv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform1fv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform2fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform3fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform4fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniform1dv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniform2dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniform3dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniform4dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const DoubleBuffer value);
void glProgramUniform1ui(@GLuint int program, int location, int v0);
void glProgramUniform2ui(@GLuint int program, int location, int v0, int v1);
void glProgramUniform3ui(@GLuint int program, int location, int v0, int v1, int v2);
void glProgramUniform4ui(@GLuint int program, int location, int v0, int v1, int v2, int v3);
@StripPostfix("value")
void glProgramUniform1uiv(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform2uiv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform3uiv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniform4uiv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const IntBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4fv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4dv(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2x3fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3x2fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2x4fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4x2fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3x4fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4x3fv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2x3dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3x2dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix2x4dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4x2dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix3x4dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glProgramUniformMatrix4x3dv(@GLuint int program, int location,
@AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
void glValidateProgramPipeline(@GLuint int pipeline);
void glGetProgramPipelineInfoLog(@GLuint int pipeline, @AutoSize("infoLog") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Alternate("glGetProgramPipelineInfoLog")
@GLreturn(value = "infoLog", maxLength = "bufSize")
void glGetProgramPipelineInfoLog2(@GLuint int pipeline, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
// -----------------------------------------------------------------------
// ----------------------[ ARB_vertex_attrib_64bit ]----------------------
// -----------------------------------------------------------------------
void glVertexAttribL1d(@GLuint int index, double x);
void glVertexAttribL2d(@GLuint int index, double x, double y);
void glVertexAttribL3d(@GLuint int index, double x, double y, double z);
void glVertexAttribL4d(@GLuint int index, double x, double y, double z, double w);
@StripPostfix("v")
void glVertexAttribL1dv(@GLuint int index, @Const @Check("1") DoubleBuffer v);
@StripPostfix("v")
void glVertexAttribL2dv(@GLuint int index, @Const @Check("2") DoubleBuffer v);
@StripPostfix("v")
void glVertexAttribL3dv(@GLuint int index, @Const @Check("3") DoubleBuffer v);
@StripPostfix("v")
void glVertexAttribL4dv(@GLuint int index, @Const @Check("4") DoubleBuffer v);
void glVertexAttribLPointer(@GLuint int index, int size, @Constant("GL11.GL_DOUBLE") @GLenum int type, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check @Const @GLdouble Buffer pointer);
@StripPostfix("params")
void glGetVertexAttribLdv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
// ------------------------------------------------------------------
// ----------------------[ ARB_viewport_array ]----------------------
// ------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* GetDoublev and GetInteger64v:
*/
int GL_MAX_VIEWPORTS = 0x825B,
GL_VIEWPORT_SUBPIXEL_BITS = 0x825C,
GL_VIEWPORT_BOUNDS_RANGE = 0x825D,
GL_LAYER_PROVOKING_VERTEX = 0x825E,
GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F;
/**
* Returned in the <data> parameter from a Get query with a <pname> of
* LAYER_PROVOKING_VERTEX or VIEWPORT_INDEX_PROVOKING_VERTEX:
*/
int GL_UNDEFINED_VERTEX = 0x8260;
@StripPostfix("v")
void glViewportArrayv(@GLuint int first, @AutoSize(value = "v", expression = " >> 2") @GLsizei int count, @Const FloatBuffer v);
void glViewportIndexedf(@GLuint int index, float x, float y, float w, float h);
@StripPostfix("v")
void glViewportIndexedfv(@GLuint int index, @Check("4") @Const FloatBuffer v);
@StripPostfix("v")
void glScissorArrayv(@GLuint int first, @AutoSize(value = "v", expression = " >> 2") @GLsizei int count, @Const IntBuffer v);
void glScissorIndexed(@GLuint int index, int left, int bottom, @GLsizei int width, @GLsizei int height);
@StripPostfix("v")
void glScissorIndexedv(@GLuint int index, @Check("4") @Const IntBuffer v);
@StripPostfix("v")
void glDepthRangeArrayv(@GLuint int first, @AutoSize(value = "v", expression = " >> 1") @GLsizei int count, @Const DoubleBuffer v);
void glDepthRangeIndexed(@GLuint int index, double n, double f);
@StripPostfix("data")
void glGetFloati_v(@GLenum int target, @GLuint int index, @Check @OutParameter FloatBuffer data);
@Alternate("glGetFloati_v")
@GLreturn("data")
@StripPostfix("data")
void glGetFloati_v2(@GLenum int target, @GLuint int index, @OutParameter FloatBuffer data);
@StripPostfix("data")
void glGetDoublei_v(@GLenum int target, @GLuint int index, @Check @OutParameter DoubleBuffer data);
@Alternate("glGetDoublei_v")
@GLreturn("data")
@StripPostfix("data")
void glGetDoublei_v2(@GLenum int target, @GLuint int index, @OutParameter DoubleBuffer data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_sparse_buffer.java 0000644 0001750 0001750 00000004223 12702226520 023117 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLsizeiptr;
public interface ARB_sparse_buffer {
/** Accepted as part of the the <flags> parameter to BufferStorage */
int GL_SPARSE_STORAGE_BIT_ARB = 0x0400;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetFloatv,
* GetIntegerv, and GetInteger64v:
*/
int GL_SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8;
void glBufferPageCommitmentARB(@GLenum int target, @GLintptr long offset, @GLsizeiptr long size, boolean commit);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_separate_shader_objects.java 0000644 0001750 0001750 00000004477 12702226520 025203 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLchar;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.ByteBuffer;
public interface EXT_separate_shader_objects {
/** Accepted by <type> parameter to GetIntegerv and GetFloatv: */
int GL_ACTIVE_PROGRAM_EXT = 0x8B8D;
void glUseShaderProgramEXT(@GLenum int type, @GLuint int program);
void glActiveProgramEXT(@GLuint int program);
@GLuint int glCreateShaderProgramEXT(@GLenum int type, @NullTerminated @Const @GLchar ByteBuffer string);
@Alternate("glCreateShaderProgramEXT")
@GLuint
int glCreateShaderProgramEXT(@GLenum int type, @NullTerminated CharSequence string);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_point_sprite.java 0000644 0001750 0001750 00000003737 12702226520 022740 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import java.nio.*;
public interface NV_point_sprite {
int GL_POINT_SPRITE_NV = 0x8861;
int GL_COORD_REPLACE_NV = 0x8862;
int GL_POINT_SPRITE_R_MODE_NV = 0x8863;
void glPointParameteriNV(@GLenum int pname, int param);
@StripPostfix("params")
void glPointParameterivNV(@GLenum int pname, @Check("4") @Const IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shadow_ambient.java 0000644 0001750 0001750 00000003226 12702226520 023257 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shadow_ambient {
int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_stencil8.java 0000644 0001750 0001750 00000003147 12702226520 023606 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_stencil8 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_query_buffer_object.java 0000644 0001750 0001750 00000004272 12702226520 024316 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_query_buffer_object {
/**
* Accepted by the <pname> parameter of GetQueryObjectiv, GetQueryObjectuiv,
* GetQueryObjecti64v and GetQueryObjectui64v:
*/
int GL_QUERY_RESULT_NO_WAIT_AMD = 0x9194;
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, MapBufferRange, GetBufferSubData,
* GetBufferParameteriv
* and GetBufferPointerv:
*/
int GL_QUERY_BUFFER_AMD = 0x9192;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_QUERY_BUFFER_BINDING_AMD = 0x9193;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shading_language_420pack.java 0000644 0001750 0001750 00000003160 12702226520 024774 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shading_language_420pack {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL14.java 0000644 0001750 0001750 00000013454 12702226520 020262 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
/**
*
* The core OpenGL1.4 API.
*
* @author cix_foo
* @version $Revision$
* $Id$
*/
@DeprecatedGL
public interface GL14 {
int GL_GENERATE_MIPMAP = 0x8191;
int GL_GENERATE_MIPMAP_HINT = 0x8192;
int GL_DEPTH_COMPONENT16 = 0x81A5;
int GL_DEPTH_COMPONENT24 = 0x81A6;
int GL_DEPTH_COMPONENT32 = 0x81A7;
int GL_TEXTURE_DEPTH_SIZE = 0x884A;
int GL_DEPTH_TEXTURE_MODE = 0x884B;
int GL_TEXTURE_COMPARE_MODE = 0x884C;
int GL_TEXTURE_COMPARE_FUNC = 0x884D;
int GL_COMPARE_R_TO_TEXTURE = 0x884E;
int GL_FOG_COORDINATE_SOURCE = 0x8450;
int GL_FOG_COORDINATE = 0x8451;
int GL_FRAGMENT_DEPTH = 0x8452;
int GL_CURRENT_FOG_COORDINATE = 0x8453;
int GL_FOG_COORDINATE_ARRAY_TYPE = 0x8454;
int GL_FOG_COORDINATE_ARRAY_STRIDE = 0x8455;
int GL_FOG_COORDINATE_ARRAY_POINTER = 0x8456;
int GL_FOG_COORDINATE_ARRAY = 0x8457;
int GL_POINT_SIZE_MIN = 0x8126;
int GL_POINT_SIZE_MAX = 0x8127;
int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128;
int GL_POINT_DISTANCE_ATTENUATION = 0x8129;
int GL_COLOR_SUM = 0x8458;
int GL_CURRENT_SECONDARY_COLOR = 0x8459;
int GL_SECONDARY_COLOR_ARRAY_SIZE = 0x845A;
int GL_SECONDARY_COLOR_ARRAY_TYPE = 0x845B;
int GL_SECONDARY_COLOR_ARRAY_STRIDE = 0x845C;
int GL_SECONDARY_COLOR_ARRAY_POINTER = 0x845D;
int GL_SECONDARY_COLOR_ARRAY = 0x845E;
int GL_BLEND_DST_RGB = 0x80C8;
int GL_BLEND_SRC_RGB = 0x80C9;
int GL_BLEND_DST_ALPHA = 0x80CA;
int GL_BLEND_SRC_ALPHA = 0x80CB;
int GL_INCR_WRAP = 0x8507;
int GL_DECR_WRAP = 0x8508;
int GL_TEXTURE_FILTER_CONTROL = 0x8500;
int GL_TEXTURE_LOD_BIAS = 0x8501;
int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD;
int GL_MIRRORED_REPEAT = 0x8370;
int GL_BLEND_COLOR = 0x8005;
int GL_BLEND_EQUATION = 0x8009;
int GL_FUNC_ADD = 0x8006;
int GL_FUNC_SUBTRACT = 0x800A;
int GL_FUNC_REVERSE_SUBTRACT = 0x800B;
int GL_MIN = 0x8007;
int GL_MAX = 0x8008;
void glBlendEquation(@GLenum int mode);
void glBlendColor(float red, float green, float blue, float alpha);
@DeprecatedGL
void glFogCoordf(float coord);
@DeprecatedGL
void glFogCoordd(double coord);
@DeprecatedGL
void glFogCoordPointer(@AutoType("data") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLfloat
@GLdouble Buffer data);
void glMultiDrawArrays(@GLenum int mode, IntBuffer piFirst, @Check("piFirst.remaining()") @GLsizei IntBuffer piCount, @AutoSize("piFirst") @GLsizei int primcount);
//void glMultiDrawElements(int mode, int piCount, int type, int pIndices, int primcount);
void glPointParameteri(@GLenum int pname, int param);
void glPointParameterf(@GLenum int pname, float param);
@StripPostfix("params")
void glPointParameteriv(@GLenum int pname, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glPointParameterfv(@GLenum int pname, @Check("4") @Const FloatBuffer params);
@DeprecatedGL
void glSecondaryColor3b(byte red, byte green, byte blue);
@DeprecatedGL
void glSecondaryColor3f(float red, float green, float blue);
@DeprecatedGL
void glSecondaryColor3d(double red, double green, double blue);
@DeprecatedGL
void glSecondaryColor3ub(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue);
@DeprecatedGL
void glSecondaryColorPointer(int size, @AutoType("data") @GLenum int type, @GLsizei int stride,
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLfloat
@GLdouble Buffer data);
void glBlendFuncSeparate(@GLenum int sfactorRGB, @GLenum int dfactorRGB, @GLenum int sfactorAlpha, @GLenum int dfactorAlpha);
@DeprecatedGL
void glWindowPos2f(float x, float y);
@DeprecatedGL
void glWindowPos2d(double x, double y);
@DeprecatedGL
void glWindowPos2i(int x, int y);
@DeprecatedGL
void glWindowPos3f(float x, float y, float z);
@DeprecatedGL
void glWindowPos3d(double x, double y, double z);
@DeprecatedGL
void glWindowPos3i(int x, int y, int z);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_shader2.java 0000644 0001750 0001750 00000005154 12702226520 023324 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_shader2 {
int GL_DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF;
int GL_HILO_NV = 0x86F4;
int GL_DSDT_NV = 0x86F5;
int GL_DSDT_MAG_NV = 0x86F6;
int GL_DSDT_MAG_VIB_NV = 0x86F7;
int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA;
int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB;
int GL_SIGNED_RGBA_NV = 0x86FB;
int GL_SIGNED_RGBA8_NV = 0x86FC;
int GL_SIGNED_RGB_NV = 0x86FE;
int GL_SIGNED_RGB8_NV = 0x86FF;
int GL_SIGNED_LUMINANCE_NV = 0x8701;
int GL_SIGNED_LUMINANCE8_NV = 0x8702;
int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703;
int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704;
int GL_SIGNED_ALPHA_NV = 0x8705;
int GL_SIGNED_ALPHA8_NV = 0x8706;
int GL_SIGNED_INTENSITY_NV = 0x8707;
int GL_SIGNED_INTENSITY8_NV = 0x8708;
int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C;
int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D;
int GL_HILO16_NV = 0x86F8;
int GL_SIGNED_HILO_NV = 0x86F9;
int GL_SIGNED_HILO16_NV = 0x86FA;
int GL_DSDT8_NV = 0x8709;
int GL_DSDT8_MAG8_NV = 0x870A;
int GL_DSDT_MAG_INTENSITY_NV = 0x86DC;
int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_stencil_export.java 0000644 0001750 0001750 00000003153 12702226520 024662 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_stencil_export {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_border_clamp.java 0000644 0001750 0001750 00000003221 12702226520 024477 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_border_clamp {
int GL_CLAMP_TO_BORDER_ARB = 0x812D;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_gpu_program5_mem_extended.java 0000644 0001750 0001750 00000003157 12702226520 025342 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_gpu_program5_mem_extended {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_fragment_shader.java 0000644 0001750 0001750 00000015264 12702226520 023442 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
public interface ATI_fragment_shader {
int GL_FRAGMENT_SHADER_ATI = 0x8920;
int GL_REG_0_ATI = 0x8921;
int GL_REG_1_ATI = 0x8922;
int GL_REG_2_ATI = 0x8923;
int GL_REG_3_ATI = 0x8924;
int GL_REG_4_ATI = 0x8925;
int GL_REG_5_ATI = 0x8926;
int GL_REG_6_ATI = 0x8927;
int GL_REG_7_ATI = 0x8928;
int GL_REG_8_ATI = 0x8929;
int GL_REG_9_ATI = 0x892A;
int GL_REG_10_ATI = 0x892B;
int GL_REG_11_ATI = 0x892C;
int GL_REG_12_ATI = 0x892D;
int GL_REG_13_ATI = 0x892E;
int GL_REG_14_ATI = 0x892F;
int GL_REG_15_ATI = 0x8930;
int GL_REG_16_ATI = 0x8931;
int GL_REG_17_ATI = 0x8932;
int GL_REG_18_ATI = 0x8933;
int GL_REG_19_ATI = 0x8934;
int GL_REG_20_ATI = 0x8935;
int GL_REG_21_ATI = 0x8936;
int GL_REG_22_ATI = 0x8937;
int GL_REG_23_ATI = 0x8938;
int GL_REG_24_ATI = 0x8939;
int GL_REG_25_ATI = 0x893A;
int GL_REG_26_ATI = 0x893B;
int GL_REG_27_ATI = 0x893C;
int GL_REG_28_ATI = 0x893D;
int GL_REG_29_ATI = 0x893E;
int GL_REG_30_ATI = 0x893F;
int GL_REG_31_ATI = 0x8940;
int GL_CON_0_ATI = 0x8941;
int GL_CON_1_ATI = 0x8942;
int GL_CON_2_ATI = 0x8943;
int GL_CON_3_ATI = 0x8944;
int GL_CON_4_ATI = 0x8945;
int GL_CON_5_ATI = 0x8946;
int GL_CON_6_ATI = 0x8947;
int GL_CON_7_ATI = 0x8948;
int GL_CON_8_ATI = 0x8949;
int GL_CON_9_ATI = 0x894A;
int GL_CON_10_ATI = 0x894B;
int GL_CON_11_ATI = 0x894C;
int GL_CON_12_ATI = 0x894D;
int GL_CON_13_ATI = 0x894E;
int GL_CON_14_ATI = 0x894F;
int GL_CON_15_ATI = 0x8950;
int GL_CON_16_ATI = 0x8951;
int GL_CON_17_ATI = 0x8952;
int GL_CON_18_ATI = 0x8953;
int GL_CON_19_ATI = 0x8954;
int GL_CON_20_ATI = 0x8955;
int GL_CON_21_ATI = 0x8956;
int GL_CON_22_ATI = 0x8957;
int GL_CON_23_ATI = 0x8958;
int GL_CON_24_ATI = 0x8959;
int GL_CON_25_ATI = 0x895A;
int GL_CON_26_ATI = 0x895B;
int GL_CON_27_ATI = 0x895C;
int GL_CON_28_ATI = 0x895D;
int GL_CON_29_ATI = 0x895E;
int GL_CON_30_ATI = 0x895F;
int GL_CON_31_ATI = 0x8960;
int GL_MOV_ATI = 0x8961;
int GL_ADD_ATI = 0x8963;
int GL_MUL_ATI = 0x8964;
int GL_SUB_ATI = 0x8965;
int GL_DOT3_ATI = 0x8966;
int GL_DOT4_ATI = 0x8967;
int GL_MAD_ATI = 0x8968;
int GL_LERP_ATI = 0x8969;
int GL_CND_ATI = 0x896A;
int GL_CND0_ATI = 0x896B;
int GL_DOT2_ADD_ATI = 0x896C;
int GL_SECONDARY_INTERPOLATOR_ATI = 0x896D;
int GL_NUM_FRAGMENT_REGISTERS_ATI = 0x896E;
int GL_NUM_FRAGMENT_CONSTANTS_ATI = 0x896F;
int GL_NUM_PASSES_ATI = 0x8970;
int GL_NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971;
int GL_NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972;
int GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973;
int GL_NUM_LOOPBACK_COMPONENTS_ATI = 0x8974;
int GL_COLOR_ALPHA_PAIRING_ATI = 0x8975;
int GL_SWIZZLE_STR_ATI = 0x8976;
int GL_SWIZZLE_STQ_ATI = 0x8977;
int GL_SWIZZLE_STR_DR_ATI = 0x8978;
int GL_SWIZZLE_STQ_DQ_ATI = 0x8979;
int GL_SWIZZLE_STRQ_ATI = 0x897A;
int GL_SWIZZLE_STRQ_DQ_ATI = 0x897B;
int GL_RED_BIT_ATI = 0x00000001;
int GL_GREEN_BIT_ATI = 0x00000002;
int GL_BLUE_BIT_ATI = 0x00000004;
int GL_2X_BIT_ATI = 0x00000001;
int GL_4X_BIT_ATI = 0x00000002;
int GL_8X_BIT_ATI = 0x00000004;
int GL_HALF_BIT_ATI = 0x00000008;
int GL_QUARTER_BIT_ATI = 0x00000010;
int GL_EIGHTH_BIT_ATI = 0x00000020;
int GL_SATURATE_BIT_ATI = 0x00000040;
int GL_COMP_BIT_ATI = 0x00000002;
int GL_NEGATE_BIT_ATI = 0x00000004;
int GL_BIAS_BIT_ATI = 0x00000008;
@GLuint
int glGenFragmentShadersATI(@GLuint int range);
void glBindFragmentShaderATI(@GLuint int id);
void glDeleteFragmentShaderATI(@GLuint int id);
void glBeginFragmentShaderATI();
void glEndFragmentShaderATI();
void glPassTexCoordATI(@GLuint int dst, @GLuint int coord, @GLenum int swizzle);
void glSampleMapATI(@GLuint int dst, @GLuint int interp, @GLenum int swizzle);
void glColorFragmentOp1ATI(@GLenum int op, @GLuint int dst, @GLuint int dstMask, @GLuint int dstMod, @GLuint int arg1, @GLuint int arg1Rep, @GLuint int arg1Mod);
void glColorFragmentOp2ATI(@GLenum int op, @GLuint int dst, @GLuint int dstMask, @GLuint int dstMod, @GLuint int arg1, @GLuint int arg1Rep, @GLuint int arg1Mod, @GLuint int arg2, @GLuint int arg2Rep, @GLuint int arg2Mod);
void glColorFragmentOp3ATI(@GLenum int op, @GLuint int dst, @GLuint int dstMask, @GLuint int dstMod, @GLuint int arg1, @GLuint int arg1Rep, @GLuint int arg1Mod, @GLuint int arg2, @GLuint int arg2Rep, @GLuint int arg2Mod, @GLuint int arg3, @GLuint int arg3Rep, @GLuint int arg3Mod);
void glAlphaFragmentOp1ATI(@GLenum int op, @GLuint int dst, @GLuint int dstMod, @GLuint int arg1, @GLuint int arg1Rep, @GLuint int arg1Mod);
void glAlphaFragmentOp2ATI(@GLenum int op, @GLuint int dst, @GLuint int dstMod, @GLuint int arg1, @GLuint int arg1Rep, @GLuint int arg1Mod, @GLuint int arg2, @GLuint int arg2Rep, @GLuint int arg2Mod);
void glAlphaFragmentOp3ATI(@GLenum int op, @GLuint int dst, @GLuint int dstMod, @GLuint int arg1, @GLuint int arg1Rep, @GLuint int arg1Mod, @GLuint int arg2, @GLuint int arg2Rep, @GLuint int arg2Mod, @GLuint int arg3, @GLuint int arg3Rep, @GLuint int arg3Mod);
// TODO:is the @Check correct?
void glSetFragmentShaderConstantATI(@GLuint int dst, @Check("4") @Const FloatBuffer pfValue);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_gpu_shader_fp64.java 0000644 0001750 0001750 00000022114 12702226520 023250 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
@Dependent
@Extension(postfix = "")
public interface ARB_gpu_shader_fp64 {
/**
* Returned in the <type> parameter of GetActiveUniform, and
* GetTransformFeedbackVarying:
*/
int GL_DOUBLE_VEC2 = 0x8FFC;
int GL_DOUBLE_VEC3 = 0x8FFD;
int GL_DOUBLE_VEC4 = 0x8FFE;
int GL_DOUBLE_MAT2 = 0x8F46;
int GL_DOUBLE_MAT3 = 0x8F47;
int GL_DOUBLE_MAT4 = 0x8F48;
int GL_DOUBLE_MAT2x3 = 0x8F49;
int GL_DOUBLE_MAT2x4 = 0x8F4A;
int GL_DOUBLE_MAT3x2 = 0x8F4B;
int GL_DOUBLE_MAT3x4 = 0x8F4C;
int GL_DOUBLE_MAT4x2 = 0x8F4D;
int GL_DOUBLE_MAT4x3 = 0x8F4E;
@Reuse("GL40")
void glUniform1d(int location, double x);
@Reuse("GL40")
void glUniform2d(int location, double x, double y);
@Reuse("GL40")
void glUniform3d(int location, double x, double y, double z);
@Reuse("GL40")
void glUniform4d(int location, double x, double y, double z, double w);
@Reuse("GL40")
@StripPostfix("value")
void glUniform1dv(int location, @AutoSize("value") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniform2dv(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniform3dv(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniform4dv(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix2dv(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix3dv(int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix4dv(int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix2x3dv(int location, @AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix2x4dv(int location, @AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix3x2dv(int location, @AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix3x4dv(int location, @AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix4x2dv(int location, @AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("value")
void glUniformMatrix4x3dv(int location, @AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Reuse("GL40")
@StripPostfix("params")
void glGetUniformdv(@GLuint int program, int location, @OutParameter @Check DoubleBuffer params);
// ----
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform1dEXT(@GLuint int program, int location, double x);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform2dEXT(@GLuint int program, int location, double x, double y);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform3dEXT(@GLuint int program, int location, double x, double y, double z);
@Dependent("GL_EXT_direct_state_access")
void glProgramUniform4dEXT(@GLuint int program, int location, double x, double y, double z, double w);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value="value", extension="EXT")
void glProgramUniform1dvEXT(@GLuint int program, int location, @AutoSize(value = "value") @GLsizei int count, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniform2dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniform3dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniform4dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix2dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix3dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix4dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix2x3dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix2x4dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix3x2dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix3x4dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix4x2dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@Dependent("GL_EXT_direct_state_access")
@StripPostfix(value = "value", extension = "EXT")
void glProgramUniformMatrix4x3dvEXT(@GLuint int program, int location, @AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_uniform_buffer_object.java 0000644 0001750 0001750 00000023105 12702226520 024627 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_uniform_buffer_object {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_UNIFORM_BUFFER = 0x8A11;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleanv,
* GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_UNIFORM_BUFFER_BINDING = 0x8A28;
/** Accepted by the <pname> parameter of GetIntegeri_v: */
int GL_UNIFORM_BUFFER_START = 0x8A29;
int GL_UNIFORM_BUFFER_SIZE = 0x8A2A;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B;
int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C;
int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D;
int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E;
int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F;
int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30;
int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31;
int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32;
int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33;
int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35;
int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36;
/** Accepted by the <pname> parameter of GetActiveUniformsivARB: */
int GL_UNIFORM_TYPE = 0x8A37;
int GL_UNIFORM_SIZE = 0x8A38;
int GL_UNIFORM_NAME_LENGTH = 0x8A39;
int GL_UNIFORM_BLOCK_INDEX = 0x8A3A;
int GL_UNIFORM_OFFSET = 0x8A3B;
int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C;
int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D;
int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E;
/** Accepted by the <pname> parameter of GetActiveUniformBlockivARB: */
int GL_UNIFORM_BLOCK_BINDING = 0x8A3F;
int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40;
int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41;
int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42;
int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43;
int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44;
int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45;
int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46;
/** Returned by GetActiveUniformsivARB and GetUniformBlockIndexARB */
int GL_INVALID_INDEX = 0xFFFFFFFF;
@Reuse("GL31")
void glGetUniformIndices(@GLuint int program, @AutoSize("uniformIndices") @GLsizei int uniformCount,
@Const @NullTerminated("uniformIndices.remaining()") @GLchar @PointerArray("uniformCount") ByteBuffer uniformNames,
@OutParameter @GLuint IntBuffer uniformIndices);
@Reuse("GL31")
@Alternate(value = "glGetUniformIndices")
void glGetUniformIndices(@GLuint int program, @Constant("uniformNames.length") @GLsizei int uniformCount,
@Const @NullTerminated @PointerArray("uniformCount") CharSequence[] uniformNames,
@OutParameter @Check("uniformNames.length") @GLuint IntBuffer uniformIndices);
@Reuse("GL31")
@StripPostfix("params")
void glGetActiveUniformsiv(@GLuint int program, @AutoSize("uniformIndices") @GLsizei int uniformCount,
@Const @GLuint IntBuffer uniformIndices,
@GLenum int pname,
@OutParameter @Check("uniformIndices.remaining()") @GLint IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveUniformsi} instead. */
@Alternate("glGetActiveUniformsiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL31", method = "glGetActiveUniformsi")
@Deprecated
void glGetActiveUniformsiv(@GLuint int program, @Constant("1") @GLsizei int uniformCount,
@Constant(value = "params.put(1, uniformIndex), 1", keepParam = true) int uniformIndex, // Reuse params buffer
@GLenum int pname,
@OutParameter @GLint IntBuffer params);
@Reuse("GL31")
@Alternate("glGetActiveUniformsiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetActiveUniformsiv2(@GLuint int program, @Constant("1") @GLsizei int uniformCount,
@Constant(value = "params.put(1, uniformIndex), 1", keepParam = true) int uniformIndex, // Reuse params buffer
@GLenum int pname,
@OutParameter @GLint IntBuffer params);
@Reuse("GL31")
void glGetActiveUniformName(@GLuint int program, @GLuint int uniformIndex, @AutoSize("uniformName") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformName);
@Reuse("GL31")
@Alternate("glGetActiveUniformName")
@GLreturn(value = "uniformName", maxLength = "bufSize")
void glGetActiveUniformName2(@GLuint int program, @GLuint int uniformIndex, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(uniformName_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformName);
@Reuse("GL31")
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @Const @NullTerminated @GLchar ByteBuffer uniformBlockName);
@Reuse("GL31")
@Alternate("glGetUniformBlockIndex")
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @NullTerminated CharSequence uniformBlockName);
@Reuse("GL31")
@StripPostfix("params")
void glGetActiveUniformBlockiv(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @Check(value = "16") @GLint IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveUniformBlocki} instead. */
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL31", method = "glGetActiveUniformBlocki")
@Deprecated
void glGetActiveUniformBlockiv2(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @GLint IntBuffer params);
@Reuse("GL31")
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetActiveUniformBlockiv3(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @GLint IntBuffer params);
@Reuse("GL31")
void glGetActiveUniformBlockName(@GLuint int program, @GLuint int uniformBlockIndex, @AutoSize("uniformBlockName") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformBlockName);
@Reuse("GL31")
@Alternate("glGetActiveUniformBlockName")
@GLreturn(value = "uniformBlockName", maxLength = "bufSize")
void glGetActiveUniformBlockName2(@GLuint int program, @GLuint int uniformBlockIndex, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(uniformBlockName_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformBlockName);
@Reuse("GL30")
void glBindBufferRange(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
@Reuse("GL30")
void glBindBufferBase(@GLenum int target, @GLuint int index, @GLuint int buffer);
@Reuse("GL30")
@StripPostfix(value = "data", extension = "")
void glGetIntegeri_v(@GLenum int value, @GLuint int index, @OutParameter @Check("4") IntBuffer data);
@Reuse("GL30")
@Alternate("glGetIntegeri_v")
@GLreturn("data")
@StripPostfix("data")
void glGetIntegeri_v2(@GLenum int value, @GLuint int index, @OutParameter IntBuffer data);
@Reuse("GL31")
void glUniformBlockBinding(@GLuint int program, @GLuint int uniformBlockIndex, @GLuint int uniformBlockBinding);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_stencil_texturing.java 0000644 0001750 0001750 00000003355 12702226520 024050 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_stencil_texturing {
/** Accepted by the <pname> parameter of TexParameter* and GetTexParameter*: */
int GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_multi_draw_indirect.java 0000644 0001750 0001750 00000006634 12702226520 024326 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import javax.lang.model.type.TypeKind;
public interface AMD_multi_draw_indirect {
void glMultiDrawArraysIndirectAMD(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 * 4 : stride) * primcount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Alternate("glMultiDrawArraysIndirectAMD")
void glMultiDrawArraysIndirectAMD(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 : stride >> 2) * primcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
void glMultiDrawElementsIndirectAMD(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 * 4 : stride) * primcount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Alternate("glMultiDrawElementsIndirectAMD")
void glMultiDrawElementsIndirectAMD(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 : stride >> 2) * primcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_video_capture.java 0000644 0001750 0001750 00000020210 12702226520 023033 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
public interface NV_video_capture {
/**
* Accepted by the <target> parameters of BindBufferARB, BufferDataARB,
* BufferSubDataARB, MapBufferARB, UnmapBufferARB, GetBufferSubDataARB,
* GetBufferParameterivARB, and GetBufferPointervARB:
*/
int GL_VIDEO_BUFFER_NV = 0x9020;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_VIDEO_BUFFER_BINDING_NV = 0x9021;
/**
* Accepted by the <frame_region> parameter of
* BindVideoCaptureStreamBufferNV, and BindVideoCaptureStreamTextureNV:
*/
int GL_FIELD_UPPER_NV = 0x9022,
GL_FIELD_LOWER_NV = 0x9023;
/** Accepted by the <pname> parameter of GetVideoCaptureivNV: */
int GL_NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024,
GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025;
/**
* Accepted by the <pname> parameter of
* GetVideoCaptureStream{i,f,d}vNV:
*/
int GL_LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027,
GL_VIDEO_BUFFER_PITCH_NV = 0x9028,
GL_VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038,
GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039,
GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A,
GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B,
GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026;
/**
* Accepted by the <pname> parameter of
* GetVideoCaptureStream{i,f,d}vNV and as the <pname> parameter of
* VideoCaptureStreamParameter{i,f,d}vNV:
*/
int GL_VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029,
GL_VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A,
GL_VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B,
GL_VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C,
GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D,
GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C;
/** Returned by VideoCaptureNV: */
int GL_PARTIAL_SUCCESS_NV = 0x902E;
/**
* Returned by VideoCaptureNV and GetVideoCaptureStream{i,f,d}vNV
* when <pname> is LAST_VIDEO_CAPTURE_STATUS_NV:
*/
int GL_SUCCESS_NV = 0x902F,
GL_FAILURE_NV = 0x9030;
/**
* Accepted in the <params> parameter of
* VideoCaptureStreamParameter{i,f,d}vNV when <pname> is
* VIDEO_BUFFER_INTERNAL_FORMAT_NV and returned by
* GetVideoCaptureStream{i,f,d}vNV when <pname> is
* VIDEO_BUFFER_INTERNAL_FORMAT_NV:
*/
int GL_YCBYCR8_422_NV = 0x9031,
GL_YCBAYCR8A_4224_NV = 0x9032,
GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033,
GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034,
GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035,
GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036,
GL_Z4Y12Z4CB12Z4CR12_444_NV = 0x9037;
/*
* Accepted in the attribute list of the GLX reply to the
* glXEnumerateVideoCaptureDevicesNV command:
*/
/*int GLX_DEVICE_ID_NV = 0x20CD;*/
/** Accepted by the <attribute> parameter of NVPresentVideoUtil.glQueryContextNV: */
int GL_NUM_VIDEO_CAPTURE_SLOTS_NV = 0x20CF;
/**
* Accepted by the <attribute> parameter of
* glQueryVideoCaptureDeviceNV:
*/
int GL_UNIQUE_ID_NV = 0x20CE;
void glBeginVideoCaptureNV(@GLuint int video_capture_slot);
void glBindVideoCaptureStreamBufferNV(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int frame_region,
@GLintptrARB long offset);
void glBindVideoCaptureStreamTextureNV(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int frame_region,
@GLenum int target, @GLuint int texture);
void glEndVideoCaptureNV(@GLuint int video_capture_slot);
@StripPostfix("params")
void glGetVideoCaptureivNV(@GLuint int video_capture_slot, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetVideoCaptureivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoCaptureivNV2(@GLuint int video_capture_slot, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetVideoCaptureStreamivNV(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int pname,
@OutParameter @Check("1") IntBuffer params);
@Alternate("glGetVideoCaptureStreamivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoCaptureStreamivNV2(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int pname,
@OutParameter IntBuffer params);
@StripPostfix("params")
void glGetVideoCaptureStreamfvNV(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int pname,
@OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetVideoCaptureStreamfvNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoCaptureStreamfvNV2(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int pname,
@OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetVideoCaptureStreamdvNV(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int pname,
@OutParameter @Check("1") DoubleBuffer params);
@Alternate("glGetVideoCaptureStreamdvNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetVideoCaptureStreamdvNV2(@GLuint int video_capture_slot,
@GLuint int stream, @GLenum int pname,
@OutParameter DoubleBuffer params);
@GLenum
int glVideoCaptureNV(@GLuint int video_capture_slot,
@OutParameter @Check("1") @GLuint IntBuffer sequence_num,
@OutParameter @Check("1") @GLuint64EXT LongBuffer capture_time);
@StripPostfix("params")
void glVideoCaptureStreamParameterivNV(@GLuint int video_capture_slot, @GLuint int stream, @GLenum int pname, @Const @Check("16") IntBuffer params);
@StripPostfix("params")
void glVideoCaptureStreamParameterfvNV(@GLuint int video_capture_slot, @GLuint int stream, @GLenum int pname, @Const @Check("16") FloatBuffer params);
@StripPostfix("params")
void glVideoCaptureStreamParameterdvNV(@GLuint int video_capture_slot, @GLuint int stream, @GLenum int pname, @Const @Check("16") DoubleBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_env_add.java 0000644 0001750 0001750 00000003146 12702226520 023454 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_env_add {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_paletted_texture.java 0000644 0001750 0001750 00000010036 12702226520 023706 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface EXT_paletted_texture {
/**
* Accepted by the internalformat parameter of TexImage1D, TexImage2D and
* TexImage3DEXT:
*/
int GL_COLOR_INDEX1_EXT = 0x80E2;
int GL_COLOR_INDEX2_EXT = 0x80E3;
int GL_COLOR_INDEX4_EXT = 0x80E4;
int GL_COLOR_INDEX8_EXT = 0x80E5;
int GL_COLOR_INDEX12_EXT = 0x80E6;
int GL_COLOR_INDEX16_EXT = 0x80E7;
/**
* Accepted by the pname parameter of GetColorTableParameterivEXT and
* GetColorTableParameterfvEXT:
*/
int GL_COLOR_TABLE_FORMAT_EXT = 0x80D8;
int GL_COLOR_TABLE_WIDTH_EXT = 0x80D9;
int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80DA;
int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB;
int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80DC;
int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD;
int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE;
int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF;
/**
* Accepted by the value parameter of GetTexLevelParameter{if}v:
*/
int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ED;
void glColorTableEXT(@GLenum int target, @GLenum int internalFormat, @GLsizei int width, @GLenum int format, @GLenum int type,
@Check("GLChecks.calculateImageStorage(data, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
void glColorSubTableEXT(@GLenum int target, @GLsizei int start, @GLsizei int count, @GLenum int format, @GLenum int type,
@Check("GLChecks.calculateImageStorage(data, format, type, count, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
void glGetColorTableEXT(@GLenum int target, @GLenum int format, @GLenum int type,
@OutParameter
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
@StripPostfix("params")
void glGetColorTableParameterivEXT(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("params")
void glGetColorTableParameterfvEXT(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_indirect_parameters.java 0000644 0001750 0001750 00000010437 12702226520 024321 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import javax.lang.model.type.TypeKind;
public interface ARB_indirect_parameters {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, MapBufferRange, FlushMappedBufferRange,
* GetBufferParameteriv, and CopyBufferSubData:
*/
int GL_PARAMETER_BUFFER_ARB = 0x80EE;
/**
* Accepted by the <value> parameter of GetIntegerv, GetBooleanv, GetFloatv,
* and GetDoublev:
*/
int GL_PARAMETER_BUFFER_BINDING_ARB = 0x80EF;
void glMultiDrawArraysIndirectCountARB(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 * 4 : stride) * maxdrawcount") @Const @GLvoid ByteBuffer indirect,
@GLintptr long drawcount,
@GLsizei int maxdrawcount,
@GLsizei int stride);
@Alternate("glMultiDrawArraysIndirectCountARB")
void glMultiDrawArraysIndirectCountARB(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 : stride >> 2) * maxdrawcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLintptr long drawcount,
@GLsizei int maxdrawcount,
@GLsizei int stride);
void glMultiDrawElementsIndirectCountARB(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 * 4 : stride) * maxdrawcount") @Const @GLvoid ByteBuffer indirect,
@GLintptr long drawcount,
@GLsizei int maxdrawcount,
@GLsizei int stride);
@Alternate("glMultiDrawElementsIndirectCountARB")
void glMultiDrawElementsIndirectCountARB(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 : stride >> 2) * maxdrawcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLintptr long drawcount,
@GLsizei int maxdrawcount,
@GLsizei int stride);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_type_10f_11f_11f_rev.java 0000644 0001750 0001750 00000003162 12702226520 025310 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_vertex_type_10f_11f_11f_rev {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_compression_latc.java 0000644 0001750 0001750 00000004174 12702226520 025456 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureCompressionLATC")
public interface EXT_texture_compression_latc {
/**
* Accepted by the <internalformat> parameter of TexImage2D,
* CopyTexImage2D, and CompressedTexImage2D and the <format> parameter
* of CompressedTexSubImage2D:
*/
int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70;
int GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71;
int GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72;
int GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_stencil_operation_extended.java 0000644 0001750 0001750 00000004256 12702226520 025675 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface AMD_stencil_operation_extended {
/**
* Accepted by the <sfail>, <dpfail> and <dppass> parameters of StencilOp
* and StencilOpSeparate:
*/
int GL_SET_AMD = 0x874A,
GL_REPLACE_VALUE_AMD = 0x874B;
/**
* Accepted by the <param> parameter of GetIntegerv, GetFloatv, GetBooleanv
* GetDoublev and GetInteger64v:
*/
int GL_STENCIL_OP_VALUE_AMD = 0x874C,
GL_STENCIL_BACK_OP_VALUE_AMD = 0x874D;
void glStencilOpValueAMD(@GLenum int face, @GLuint int value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_half_float.java 0000644 0001750 0001750 00000012341 12702226520 022307 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLhalf;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
@Dependent
public interface NV_half_float {
/**
* Accepted by the <type> argument of VertexPointer, NormalPointer,
* ColorPointer, TexCoordPointer, FogCoordPointerEXT,
* SecondaryColorPointerEXT, VertexWeightPointerEXT, VertexAttribPointerNV,
* DrawPixels, ReadPixels, TexImage1D, TexImage2D, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, and GetTexImage:
*/
int GL_HALF_FLOAT_NV = 0x140B;
@NoErrorCheck
void glVertex2hNV(@GLhalf short x, @GLhalf short y);
@NoErrorCheck
void glVertex3hNV(@GLhalf short x, @GLhalf short y, @GLhalf short z);
@NoErrorCheck
void glVertex4hNV(@GLhalf short x, @GLhalf short y, @GLhalf short z, @GLhalf short w);
@NoErrorCheck
void glNormal3hNV(@GLhalf short nx, @GLhalf short ny, @GLhalf short nz);
@NoErrorCheck
void glColor3hNV(@GLhalf short red, @GLhalf short green, @GLhalf short blue);
@NoErrorCheck
void glColor4hNV(@GLhalf short red, @GLhalf short green, @GLhalf short blue, @GLhalf short alpha);
@NoErrorCheck
void glTexCoord1hNV(@GLhalf short s);
@NoErrorCheck
void glTexCoord2hNV(@GLhalf short s, @GLhalf short t);
@NoErrorCheck
void glTexCoord3hNV(@GLhalf short s, @GLhalf short t, @GLhalf short r);
@NoErrorCheck
void glTexCoord4hNV(@GLhalf short s, @GLhalf short t, @GLhalf short r, @GLhalf short q);
@NoErrorCheck
void glMultiTexCoord1hNV(@GLenum int target, @GLhalf short s);
@NoErrorCheck
void glMultiTexCoord2hNV(@GLenum int target, @GLhalf short s, @GLhalf short t);
@NoErrorCheck
void glMultiTexCoord3hNV(@GLenum int target, @GLhalf short s, @GLhalf short t, @GLhalf short r);
@NoErrorCheck
void glMultiTexCoord4hNV(@GLenum int target, @GLhalf short s, @GLhalf short t, @GLhalf short r, @GLhalf short q);
@Dependent("GL_EXT_fog_coord")
@NoErrorCheck
void glFogCoordhNV(@GLhalf short fog);
@Dependent("GL_EXT_secondary_color")
@NoErrorCheck
void glSecondaryColor3hNV(@GLhalf short red, @GLhalf short green, @GLhalf short blue);
@Dependent("GL_EXT_vertex_weighting")
@NoErrorCheck
void glVertexWeighthNV(@GLhalf short weight);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
void glVertexAttrib1hNV(@GLuint int index, @GLhalf short x);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
void glVertexAttrib2hNV(@GLuint int index, @GLhalf short x, @GLhalf short y);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
void glVertexAttrib3hNV(@GLuint int index, @GLhalf short x, @GLhalf short y, @GLhalf short z);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
void glVertexAttrib4hNV(@GLuint int index, @GLhalf short x, @GLhalf short y, @GLhalf short z, @GLhalf short w);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
@StripPostfix("attribs")
void glVertexAttribs1hvNV(@GLuint int index, @AutoSize("attribs") @GLsizei int n, @Const @GLhalf ShortBuffer attribs);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
@StripPostfix("attribs")
void glVertexAttribs2hvNV(@GLuint int index, @AutoSize(value = "attribs", expression = " >> 1") @GLsizei int n, @Const @GLhalf ShortBuffer attribs);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
@StripPostfix("attribs")
void glVertexAttribs3hvNV(@GLuint int index, @AutoSize(value = "attribs", expression = " / 3") @GLsizei int n, @Const @GLhalf ShortBuffer attribs);
@Dependent("GL_NV_vertex_program")
@NoErrorCheck
@StripPostfix("attribs")
void glVertexAttribs4hvNV(@GLuint int index, @AutoSize(value = "attribs", expression = " >> 2") @GLsizei int n, @Const @GLhalf ShortBuffer attribs);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_swizzle.java 0000644 0001750 0001750 00000004121 12702226520 023555 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_swizzle {
/**
* Accepted by the <pname> parameters of TexParameteri,
* TexParameterf, TexParameteriv, TexParameterfv,
* GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_SWIZZLE_R = 0x8E42;
int GL_TEXTURE_SWIZZLE_G = 0x8E43;
int GL_TEXTURE_SWIZZLE_B = 0x8E44;
int GL_TEXTURE_SWIZZLE_A = 0x8E45;
/**
* Accepted by the <pname> parameters of TexParameteriv,
* TexParameterfv, GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_SWIZZLE_RGBA = 0x8E46;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_vertex_shader_viewport_index.java 0000644 0001750 0001750 00000003162 12702226520 026260 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_vertex_shader_viewport_index {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_compression_vtc.java 0000644 0001750 0001750 00000004104 12702226520 025203 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
@Extension(postfix = "NV", className = "NVTextureCompressionVTC")
public interface NV_texture_compression_vtc {
/**
* Accepted by the <internalformat> parameter of TexImage3D and
* CompressedTexImage3DARB and the <format> parameter of
* CompressedTexSubImage2DARB:
*/
int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_shader_buffer_store.java 0000644 0001750 0001750 00000003353 12702226520 024226 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_shader_buffer_store {
/** Accepted by the <barriers> parameter of MemoryBarrierNV: */
int GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_rectangle.java 0000644 0001750 0001750 00000003432 12702226520 023735 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_rectangle {
int GL_TEXTURE_RECTANGLE_NV = 0x84F5;
int GL_TEXTURE_BINDING_RECTANGLE_NV = 0x84F6;
int GL_PROXY_TEXTURE_RECTANGLE_NV = 0x84F7;
int GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_fragment_program4.java 0000644 0001750 0001750 00000003147 12702226520 023632 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_fragment_program4 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_swizzle.java 0000644 0001750 0001750 00000004145 12702226520 023617 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_swizzle {
/**
* Accepted by the <pname> parameters of TexParameteri,
* TexParameterf, TexParameteriv, TexParameterfv,
* GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_SWIZZLE_R_EXT = 0x8E42;
int GL_TEXTURE_SWIZZLE_G_EXT = 0x8E43;
int GL_TEXTURE_SWIZZLE_B_EXT = 0x8E44;
int GL_TEXTURE_SWIZZLE_A_EXT = 0x8E45;
/**
* Accepted by the <pname> parameters of TexParameteriv,
* TexParameterfv, GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_window_pos.java 0000644 0001750 0001750 00000004215 12702226520 022462 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.DeprecatedGL;
@DeprecatedGL
public interface ARB_window_pos {
@DeprecatedGL
void glWindowPos2fARB(float x, float y);
@DeprecatedGL
void glWindowPos2dARB(double x, double y);
@DeprecatedGL
void glWindowPos2iARB(int x, int y);
@DeprecatedGL
void glWindowPos2sARB(short x, short y);
@DeprecatedGL
void glWindowPos3fARB(float x, float y, float z);
@DeprecatedGL
void glWindowPos3dARB(double x, double y, double z);
@DeprecatedGL
void glWindowPos3iARB(int x, int y, int z);
@DeprecatedGL
void glWindowPos3sARB(short x, short y, short z);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_clear_buffer_object.java 0000644 0001750 0001750 00000006203 12702226520 024236 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
@Dependent
public interface ARB_clear_buffer_object {
@Reuse("GL43")
void glClearBufferData(@GLenum int target,
@GLenum int internalformat,
@GLenum int format,
@GLenum int type,
@Check("1") @Const @GLvoid ByteBuffer data);
@Reuse("GL43")
void glClearBufferSubData(@GLenum int target,
@GLenum int internalformat,
@GLintptr long offset,
@GLsizeiptr long size,
@GLenum int format,
@GLenum int type,
@Check("1") @Const @GLvoid ByteBuffer data);
@Dependent("GL_EXT_direct_state_access")
void glClearNamedBufferDataEXT(@GLuint int buffer,
@GLenum int internalformat,
@GLenum int format,
@GLenum int type,
@Check("1") @Const @GLvoid ByteBuffer data);
@Dependent("GL_EXT_direct_state_access")
void glClearNamedBufferSubDataEXT(@GLuint int buffer,
@GLenum int internalformat,
@GLintptr long offset,
@GLsizeiptr long size,
@GLenum int format,
@GLenum int type,
@Check("1") @GLvoid ByteBuffer data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/KHR_robust_buffer_access_behavior.java 0000644 0001750 0001750 00000003163 12702226520 026362 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface KHR_robust_buffer_access_behavior {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_vertex_attrib_array_object.java 0000644 0001750 0001750 00000004407 12702226520 025714 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
public interface ATI_vertex_attrib_array_object {
void glVertexAttribArrayObjectATI(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride, @GLuint int buffer, @GLuint int offset);
@StripPostfix("params")
void glGetVertexAttribArrayObjectfvATI(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetVertexAttribArrayObjectivATI(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_deep_texture3D.java 0000644 0001750 0001750 00000003477 12702226520 023106 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_deep_texture3D {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv
* and GetFloatv:
*/
int GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV = 0x90D0,
GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV = 0x90D1;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_depth_clamp.java 0000644 0001750 0001750 00000003473 12702226520 022557 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_depth_clamp {
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_DEPTH_CLAMP = 0x864F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_map_buffer_alignment.java 0000644 0001750 0001750 00000003430 12702226520 024434 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_map_buffer_alignment {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_packed_pixels.java 0000644 0001750 0001750 00000005017 12702226520 023343 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_packed_pixels {
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
* GetConvolutionFilter, SeparableFilter2D, SeparableFilter3D,
* GetSeparableFilter, ColorTable, GetColorTable, TexImage4DSGIS,
* and TexSubImage4DSGIS:
*/
int GL_UNSIGNED_BYTE_3_3_2 = 0x8032;
int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362;
int GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364;
int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033;
int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365;
int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034;
int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366;
int GL_UNSIGNED_INT_8_8_8_8 = 0x8035;
int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367;
int GL_UNSIGNED_INT_10_10_10_2 = 0x8036;
int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_element_array.java 0000644 0001750 0001750 00000004360 12702226520 023133 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface ATI_element_array {
int GL_ELEMENT_ARRAY_ATI = 0x8768;
int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769;
int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876A;
void glElementPointerATI(@AutoType("pPointer") @GLenum int type,
@Check
@Const
@GLubyte
@GLushort
@GLuint Buffer pPointer);
void glDrawElementArrayATI(@GLenum int mode, @GLsizei int count);
void glDrawRangeElementArrayATI(@GLenum int mode, @GLuint int start, @GLuint int end, @GLsizei int count);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_half_float_vertex.java 0000644 0001750 0001750 00000003503 12702226520 023765 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_half_float_vertex {
/**
* Accepted by the <type> argument of VertexPointer, NormalPointer,
* ColorPointer, SecondaryColorPointer, FogCoordPointer, TexCoordPointer,
* and VertexAttribPointer:
*/
int GL_HALF_FLOAT = 0x140B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_vertex_array_range.java 0000644 0001750 0001750 00000006103 12702226520 024414 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
public interface APPLE_vertex_array_range {
/**
* Accepted by the <cap> parameter of EnableClientState, DisableClientState,
* and IsEnabled:
*/
int GL_VERTEX_ARRAY_RANGE_APPLE = 0x851D;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E;
int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_APPLE = 0x8520;
/** Accepted by the <pname> parameter of GetPointerv: */
int GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521;
/**
* Accepted by the <pname> parameter of VertexArrayParameteriAPPLE,
* GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F;
/** Accepted by the <param> parameter of VertexArrayParameteriAPPLE: */
int GL_STORAGE_CACHED_APPLE = 0x85BE;
int GL_STORAGE_SHARED_APPLE = 0x85BF;
/** Accepted by the <object> parameter of TestObjectAPPLE and FinishObjectAPPLE: */
int GL_DRAW_PIXELS_APPLE = 0x8A0A;
int GL_FENCE_APPLE = 0x8A0B;
void glVertexArrayRangeAPPLE(@AutoSize("pointer") @GLsizei int length, @GLvoid ByteBuffer pointer);
void glFlushVertexArrayRangeAPPLE(@AutoSize("pointer") @GLsizei int length, @GLvoid ByteBuffer pointer);
void glVertexArrayParameteriAPPLE(@GLenum int pname, int param);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_separate_specular_color.java 0000644 0001750 0001750 00000003357 12702226520 025234 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_separate_specular_color {
int GL_SINGLE_COLOR_EXT = 0x81F9;
int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81FA;
int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_vertex_attrib_64bit.java 0000644 0001750 0001750 00000007242 12702226520 024223 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.DoubleBuffer;
@Dependent
public interface EXT_vertex_attrib_64bit {
/** Returned in the <type> parameter of GetActiveAttrib: */
int GL_DOUBLE_VEC2_EXT = 0x8FFC;
int GL_DOUBLE_VEC3_EXT = 0x8FFD;
int GL_DOUBLE_VEC4_EXT = 0x8FFE;
int GL_DOUBLE_MAT2_EXT = 0x8F46;
int GL_DOUBLE_MAT3_EXT = 0x8F47;
int GL_DOUBLE_MAT4_EXT = 0x8F48;
int GL_DOUBLE_MAT2x3_EXT = 0x8F49;
int GL_DOUBLE_MAT2x4_EXT = 0x8F4A;
int GL_DOUBLE_MAT3x2_EXT = 0x8F4B;
int GL_DOUBLE_MAT3x4_EXT = 0x8F4C;
int GL_DOUBLE_MAT4x2_EXT = 0x8F4D;
int GL_DOUBLE_MAT4x3_EXT = 0x8F4E;
void glVertexAttribL1dEXT(@GLuint int index, double x);
void glVertexAttribL2dEXT(@GLuint int index, double x, double y);
void glVertexAttribL3dEXT(@GLuint int index, double x, double y, double z);
void glVertexAttribL4dEXT(@GLuint int index, double x, double y, double z, double w);
@StripPostfix("v")
void glVertexAttribL1dvEXT(@GLuint int index, @Const @Check("1") DoubleBuffer v);
@StripPostfix("v")
void glVertexAttribL2dvEXT(@GLuint int index, @Const @Check("2") DoubleBuffer v);
@StripPostfix("v")
void glVertexAttribL3dvEXT(@GLuint int index, @Const @Check("3") DoubleBuffer v);
@StripPostfix("v")
void glVertexAttribL4dvEXT(@GLuint int index, @Const @Check("4") DoubleBuffer v);
void glVertexAttribLPointerEXT(@GLuint int index, int size, @Constant("GL11.GL_DOUBLE") @GLenum int type, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check @Const @GLdouble Buffer pointer);
@StripPostfix("params")
void glGetVertexAttribLdvEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
@Reuse("ARBVertexAttrib64bit")
@Dependent("GL_EXT_direct_state_access")
void glVertexArrayVertexAttribLOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLuint int index, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_shared_exponent.java 0000644 0001750 0001750 00000004607 12702226520 025301 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_shared_exponent {
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorageEXT:
*/
int GL_RGB9_E5_EXT = 0x8C3D;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
* GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter,
* ColorTable, ColorSubTable, and GetColorTable:
*/
int GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E;
/**
* Accepted by the <pname> parameter of GetTexLevelParameterfv and
* GetTexLevelParameteriv:
*/
int GL_TEXTURE_SHARED_SIZE_EXT = 0x8C3F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_base_instance.java 0000644 0001750 0001750 00000006762 12702226520 023101 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface ARB_base_instance {
@Reuse("GL42")
void glDrawArraysInstancedBaseInstance(@GLenum int mode,
int first,
@GLsizei int count,
@GLsizei int primcount,
@GLuint int baseinstance);
@Reuse("GL42")
void glDrawElementsInstancedBaseInstance(@GLenum int mode,
@AutoSize("indices") @GLsizei int count,
@AutoType("indices") @GLenum int type,
@Const
@BufferObject(BufferKind.ElementVBO)
@GLubyte
@GLushort
@GLuint Buffer indices,
@GLsizei int primcount,
@GLuint int baseinstance);
@Reuse("GL42")
void glDrawElementsInstancedBaseVertexBaseInstance(@GLenum int mode,
@AutoSize("indices") @GLsizei int count,
@AutoType("indices") @GLenum int type,
@Const
@BufferObject(BufferKind.ElementVBO)
@GLubyte
@GLushort
@GLuint Buffer indices,
@GLsizei int primcount,
int basevertex,
@GLuint int baseinstance);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_compression_rgtc.java 0000644 0001750 0001750 00000004114 12702226520 025430 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "ARB", className = "ARBTextureCompressionRGTC")
public interface ARB_texture_compression_rgtc {
/**
* Accepted by the <internalformat> parameter of TexImage2D,
* CopyTexImage2D, and CompressedTexImage2D and the <format> parameter
* of CompressedTexSubImage2D:
*/
int GL_COMPRESSED_RED_RGTC1 = 0x8DBB,
GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC,
GL_COMPRESSED_RG_RGTC2 = 0x8DBD,
GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_texture_lod.java 0000644 0001750 0001750 00000003150 12702226520 024153 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_texture_lod {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_fragment_coord_conventions.java 0000644 0001750 0001750 00000003160 12702226520 025706 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_fragment_coord_conventions {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_blend_equation_separate.java 0000644 0001750 0001750 00000003664 12702226520 025212 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface EXT_blend_equation_separate {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_BLEND_EQUATION_RGB_EXT = 0x8009;
int GL_BLEND_EQUATION_ALPHA_EXT = 0x883D;
void glBlendEquationSeparateEXT(@GLenum int modeRGB, @GLenum int modeAlpha);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_pixel_buffer_object.java 0000644 0001750 0001750 00000004155 12702226520 024331 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_pixel_buffer_object extends ARB_buffer_object {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferParameteriv, and GetBufferPointerv:
*/
int GL_PIXEL_PACK_BUFFER_EXT = 0x88EB;
int GL_PIXEL_UNPACK_BUFFER_EXT = 0x88EC;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED;
int GL_PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL30.java 0000644 0001750 0001750 00000121101 12702226520 020245 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface GL30 {
// ----------------------------------------------------------
// ----------------------[ OpenGL 3.0 ]----------------------
// ----------------------------------------------------------
int GL_MAJOR_VERSION = 0x821B;
int GL_MINOR_VERSION = 0x821C;
int GL_NUM_EXTENSIONS = 0x821D;
int GL_CONTEXT_FLAGS = 0x821E;
int GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x0001;
int GL_DEPTH_BUFFER = 0x8223;
int GL_STENCIL_BUFFER = 0x8224;
int GL_COMPRESSED_RED = 0x8225;
int GL_COMPRESSED_RG = 0x8226;
int GL_COMPARE_REF_TO_TEXTURE = ARB_shadow.GL_COMPARE_R_TO_TEXTURE_ARB;
int GL_CLIP_DISTANCE0 = GL11.GL_CLIP_PLANE0;
int GL_CLIP_DISTANCE1 = GL11.GL_CLIP_PLANE1;
int GL_CLIP_DISTANCE2 = GL11.GL_CLIP_PLANE2;
int GL_CLIP_DISTANCE3 = GL11.GL_CLIP_PLANE3;
int GL_CLIP_DISTANCE4 = GL11.GL_CLIP_PLANE4;
int GL_CLIP_DISTANCE5 = GL11.GL_CLIP_PLANE5;
int GL_CLIP_DISTANCE6 = 0x3006;
int GL_CLIP_DISTANCE7 = 0x3007;
int GL_MAX_CLIP_DISTANCES = GL11.GL_MAX_CLIP_PLANES;
int GL_MAX_VARYING_COMPONENTS = GL20.GL_MAX_VARYING_FLOATS;
int GL_BUFFER_ACCESS_FLAGS = 0x911F;
int GL_BUFFER_MAP_LENGTH = 0x9120;
int GL_BUFFER_MAP_OFFSET = 0x9121;
String glGetStringi(@GLenum int name, @GLuint int index);
@StripPostfix("value")
void glClearBufferfv(@GLenum int buffer, int drawbuffer, @Const @Check("4") FloatBuffer value);
@StripPostfix("value")
void glClearBufferiv(@GLenum int buffer, int drawbuffer, @Const @Check("4") IntBuffer value);
@StripPostfix("value")
void glClearBufferuiv(@GLenum int buffer, int drawbuffer, @Const @Check("4") IntBuffer value);
void glClearBufferfi(@GLenum int buffer, int drawbuffer, float depth, int stencil);
// ---------------------------------------------------------------
// ----------------------[ EXT_gpu_shader4 ]----------------------
// ---------------------------------------------------------------
/**
* Accepted by the <pname> parameters of GetVertexAttribdv,
* GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIiv, and
* GetVertexAttribIuiv:
*/
int GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_BUFFER = 0x8DC2;
int GL_SAMPLER_CUBE_SHADOW = 0x8DC5;
int GL_UNSIGNED_INT_VEC2 = 0x8DC6;
int GL_UNSIGNED_INT_VEC3 = 0x8DC7;
int GL_UNSIGNED_INT_VEC4 = 0x8DC8;
int GL_INT_SAMPLER_1D = 0x8DC9;
int GL_INT_SAMPLER_2D = 0x8DCA;
int GL_INT_SAMPLER_3D = 0x8DCB;
int GL_INT_SAMPLER_CUBE = 0x8DCC;
int GL_INT_SAMPLER_2D_RECT = 0x8DCD;
int GL_INT_SAMPLER_1D_ARRAY = 0x8DCE;
int GL_INT_SAMPLER_2D_ARRAY = 0x8DCF;
int GL_INT_SAMPLER_BUFFER = 0x8DD0;
int GL_UNSIGNED_INT_SAMPLER_1D = 0x8DD1;
int GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2;
int GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3;
int GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4;
int GL_UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5;
int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6;
int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7;
int GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904;
int GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905;
@NoErrorCheck
void glVertexAttribI1i(@GLuint int index, int x);
@NoErrorCheck
void glVertexAttribI2i(@GLuint int index, int x, int y);
@NoErrorCheck
void glVertexAttribI3i(@GLuint int index, int x, int y, int z);
@NoErrorCheck
void glVertexAttribI4i(@GLuint int index, int x, int y, int z, int w);
@NoErrorCheck
void glVertexAttribI1ui(@GLuint int index, @GLuint int x);
@NoErrorCheck
void glVertexAttribI2ui(@GLuint int index, @GLuint int x, @GLuint int y);
@NoErrorCheck
void glVertexAttribI3ui(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z);
@NoErrorCheck
void glVertexAttribI4ui(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI1iv(@GLuint int index, @Check("1") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI2iv(@GLuint int index, @Check("2") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI3iv(@GLuint int index, @Check("3") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4iv(@GLuint int index, @Check("4") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI1uiv(@GLuint int index, @Check("1") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI2uiv(@GLuint int index, @Check("2") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI3uiv(@GLuint int index, @Check("3") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4uiv(@GLuint int index, @Check("4") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4bv(@GLuint int index, @Check("4") @Const ByteBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4sv(@GLuint int index, @Check("4") @Const ShortBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4ubv(@GLuint int index, @Check("4") @Const @GLubyte ByteBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4usv(@GLuint int index, @Check("4") @Const @GLushort ShortBuffer v);
void glVertexAttribIPointer(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint Buffer buffer);
@StripPostfix("params")
void glGetVertexAttribIiv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("params")
void glGetVertexAttribIuiv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
void glUniform1ui(int location, @GLuint int v0);
void glUniform2ui(int location, @GLuint int v0, @GLuint int v1);
void glUniform3ui(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
void glUniform4ui(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
@StripPostfix("value")
void glUniform1uiv(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform2uiv(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform3uiv(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform4uiv(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("params")
void glGetUniformuiv(@GLuint int program, int location, @OutParameter @Check @GLuint IntBuffer params);
void glBindFragDataLocation(@GLuint int program, @GLuint int colorNumber, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glBindFragDataLocation")
void glBindFragDataLocation(@GLuint int program, @GLuint int colorNumber, @NullTerminated CharSequence name);
int glGetFragDataLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetFragDataLocation")
int glGetFragDataLocation(@GLuint int program, @NullTerminated CharSequence name);
// ---------------------------------------------------------------------
// ----------------------[ NV_conditional_render ]----------------------
// ---------------------------------------------------------------------
/** Accepted by the <mode> parameter of BeginConditionalRender: */
int GL_QUERY_WAIT = 0x8E13;
int GL_QUERY_NO_WAIT = 0x8E14;
int GL_QUERY_BY_REGION_WAIT = 0x8E15;
int GL_QUERY_BY_REGION_NO_WAIT = 0x8E16;
void glBeginConditionalRender(@GLuint int id, @GLenum int mode);
void glEndConditionalRender();
// --------------------------------------------------------------------
// ----------------------[ ARB_map_buffer_range ]----------------------
// --------------------------------------------------------------------
/** Accepted by the <access> parameter of MapBufferRange: */
int GL_MAP_READ_BIT = 0x0001;
int GL_MAP_WRITE_BIT = 0x0002;
int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004;
int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008;
int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010;
int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020;
/**
* glMapBufferRange maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferRange like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRange(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
void glFlushMappedBufferRange(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length);
// ----------------------------------------------------------------------
// ----------------------[ ARB_color_buffer_float ]----------------------
// ----------------------------------------------------------------------
/**
* Accepted by the <target> parameter of ClampColor and the <pname>
* parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
*/
int GL_CLAMP_VERTEX_COLOR = 0x891A;
int GL_CLAMP_FRAGMENT_COLOR = 0x891B;
int GL_CLAMP_READ_COLOR = 0x891C;
/** Accepted by the <clamp> parameter of ClampColor. */
int GL_FIXED_ONLY = 0x891D;
void glClampColor(@GLenum int target, @GLenum int clamp);
// ----------------------------------------------------------------------
// ----------------------[ ARB_depth_buffer_float ]----------------------
// ----------------------------------------------------------------------
/**
* Accepted by the <internalformat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, CopyTexImage2D, and RenderbufferStorageEXT,
* and returned in the <data> parameter of GetTexLevelParameter and
* GetRenderbufferParameterivEXT:
*/
int GL_DEPTH_COMPONENT32F = 0x8CAC;
int GL_DEPTH32F_STENCIL8 = 0x8CAD;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and
* GetTexImage:
*/
int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD;
// -----------------------------------------------------------------
// ----------------------[ ARB_texture_float ]----------------------
// -----------------------------------------------------------------
/** Accepted by the <value> parameter of GetTexLevelParameter: */
int GL_TEXTURE_RED_TYPE = 0x8C10;
int GL_TEXTURE_GREEN_TYPE = 0x8C11;
int GL_TEXTURE_BLUE_TYPE = 0x8C12;
int GL_TEXTURE_ALPHA_TYPE = 0x8C13;
int GL_TEXTURE_LUMINANCE_TYPE = 0x8C14;
int GL_TEXTURE_INTENSITY_TYPE = 0x8C15;
int GL_TEXTURE_DEPTH_TYPE = 0x8C16;
/** Returned by the <params> parameter of GetTexLevelParameter: */
int GL_UNSIGNED_NORMALIZED = 0x8C17;
/**
* Accepted by the <internalFormat> parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RGBA32F = 0x8814;
int GL_RGB32F = 0x8815;
int GL_ALPHA32F = 0x8816;
int GL_RGBA16F = 0x881A;
int GL_RGB16F = 0x881B;
int GL_ALPHA16F = 0x881C;
// ----------------------------------------------------------------
// ----------------------[ EXT_packed_float ]----------------------
// ----------------------------------------------------------------
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage:
*/
int GL_R11F_G11F_B10F = 0x8C3A;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
* GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter,
* ColorTable, ColorSubTable, and GetColorTable:
*/
int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
// ---------------------------------------------------------------------------
// ----------------------[ EXT_texture_shared_exponent ]----------------------
// ---------------------------------------------------------------------------
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage:
*/
int GL_RGB9_E5 = 0x8C3D;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
* GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter,
* ColorTable, ColorSubTable, and GetColorTable:
*/
int GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E;
/**
* Accepted by the <pname> parameter of GetTexLevelParameterfv and
* GetTexLevelParameteriv:
*/
int GL_TEXTURE_SHARED_SIZE = 0x8C3F;
// ----------------------------------------------------------------------
// ----------------------[ ARB_framebuffer_object ]----------------------
// ----------------------------------------------------------------------
/**
* Accepted by the <target> parameter of BindFramebuffer,
* CheckFramebufferStatus, FramebufferTexture{1D|2D|3D},
* FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv:
*/
int GL_FRAMEBUFFER = 0x8D40;
int GL_READ_FRAMEBUFFER = 0x8CA8;
int GL_DRAW_FRAMEBUFFER = 0x8CA9;
/**
* Accepted by the <target> parameter of BindRenderbuffer,
* RenderbufferStorage, and GetRenderbufferParameteriv, and
* returned by GetFramebufferAttachmentParameteriv:
*/
int GL_RENDERBUFFER = 0x8D41;
/**
* Accepted by the <internalformat> parameter of
* RenderbufferStorage:
*/
int GL_STENCIL_INDEX1 = 0x8D46;
int GL_STENCIL_INDEX4 = 0x8D47;
int GL_STENCIL_INDEX8 = 0x8D48;
int GL_STENCIL_INDEX16 = 0x8D49;
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv: */
int GL_RENDERBUFFER_WIDTH = 0x8D42;
int GL_RENDERBUFFER_HEIGHT = 0x8D43;
int GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
int GL_RENDERBUFFER_RED_SIZE = 0x8D50;
int GL_RENDERBUFFER_GREEN_SIZE = 0x8D51;
int GL_RENDERBUFFER_BLUE_SIZE = 0x8D52;
int GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53;
int GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54;
int GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameteriv:
*/
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210;
int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211;
int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212;
int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213;
int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214;
int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215;
int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216;
int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217;
/** Returned in <params> by GetFramebufferAttachmentParameteriv: */
int GL_FRAMEBUFFER_DEFAULT = 0x8218;
int GL_INDEX = 0x8222;
/**
* Accepted by the <attachment> parameter of
* FramebufferTexture{1D|2D|3D}, FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv
*/
int GL_COLOR_ATTACHMENT0 = 0x8CE0;
int GL_COLOR_ATTACHMENT1 = 0x8CE1;
int GL_COLOR_ATTACHMENT2 = 0x8CE2;
int GL_COLOR_ATTACHMENT3 = 0x8CE3;
int GL_COLOR_ATTACHMENT4 = 0x8CE4;
int GL_COLOR_ATTACHMENT5 = 0x8CE5;
int GL_COLOR_ATTACHMENT6 = 0x8CE6;
int GL_COLOR_ATTACHMENT7 = 0x8CE7;
int GL_COLOR_ATTACHMENT8 = 0x8CE8;
int GL_COLOR_ATTACHMENT9 = 0x8CE9;
int GL_COLOR_ATTACHMENT10 = 0x8CEA;
int GL_COLOR_ATTACHMENT11 = 0x8CEB;
int GL_COLOR_ATTACHMENT12 = 0x8CEC;
int GL_COLOR_ATTACHMENT13 = 0x8CED;
int GL_COLOR_ATTACHMENT14 = 0x8CEE;
int GL_COLOR_ATTACHMENT15 = 0x8CEF;
int GL_DEPTH_ATTACHMENT = 0x8D00;
int GL_STENCIL_ATTACHMENT = 0x8D20;
int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A;
/** Returned by CheckFramebufferStatus(): */
int GL_FRAMEBUFFER_COMPLETE = 0x8CD5;
int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB;
int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC;
int GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
int GL_FRAMEBUFFER_UNDEFINED = 0x8219;
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FRAMEBUFFER_BINDING = 0x8CA6; // alias DRAW_FRAMEBUFFER_BINDING
int GL_RENDERBUFFER_BINDING = 0x8CA7;
int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF;
int GL_MAX_RENDERBUFFER_SIZE = 0x84E8;
/** Returned by GetError(): */
int GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506;
boolean glIsRenderbuffer(@GLuint int renderbuffer);
void glBindRenderbuffer(@GLenum int target, @GLuint int renderbuffer);
void glDeleteRenderbuffers(@AutoSize("renderbuffers") int n, @Const @GLuint IntBuffer renderbuffers);
@Alternate("glDeleteRenderbuffers")
void glDeleteRenderbuffers(@Constant("1") int n, @Constant(value = "APIUtil.getInt(caps, renderbuffer)", keepParam = true) int renderbuffer);
void glGenRenderbuffers(@AutoSize("renderbuffers") int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Alternate("glGenRenderbuffers")
@GLreturn("renderbuffers")
void glGenRenderbuffers2(@Constant("1") int n, @OutParameter @GLuint IntBuffer renderbuffers);
void glRenderbufferStorage(@GLenum int target, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@StripPostfix("params")
void glGetRenderbufferParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteri} instead. */
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL30", method = "glGetRenderbufferParameteri")
@Deprecated
void glGetRenderbufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetRenderbufferParameteriv3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
boolean glIsFramebuffer(@GLuint int framebuffer);
void glBindFramebuffer(@GLenum int target, @GLuint int framebuffer);
void glDeleteFramebuffers(@AutoSize("framebuffers") int n, @Const @GLuint IntBuffer framebuffers);
@Alternate("glDeleteFramebuffers")
void glDeleteFramebuffers(@Constant("1") int n, @Constant(value = "APIUtil.getInt(caps, framebuffer)", keepParam = true) int framebuffer);
void glGenFramebuffers(@AutoSize("framebuffers") int n, @OutParameter @GLuint IntBuffer framebuffers);
@Alternate("glGenFramebuffers")
@GLreturn("framebuffers")
void glGenFramebuffers2(@Constant("1") int n, @OutParameter @GLuint IntBuffer framebuffers);
@GLenum
int glCheckFramebufferStatus(@GLenum int target);
void glFramebufferTexture1D(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
void glFramebufferTexture2D(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level);
void glFramebufferTexture3D(@GLenum int target, @GLenum int attachment, @GLenum int textarget, @GLuint int texture, int level, int zoffset);
void glFramebufferRenderbuffer(@GLenum int target, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
@StripPostfix("params")
void glGetFramebufferAttachmentParameteriv(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteri} instead. */
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL30", method = "glGetFramebufferAttachmentParameteri")
@Deprecated
void glGetFramebufferAttachmentParameteriv2(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferAttachmentParameteriv3(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
void glGenerateMipmap(@GLenum int target);
// --------------------------------------------------------------------------------------------
// ----------------------[ ARB_half_float_vertex & ARB_half_float_pixel ]----------------------
// --------------------------------------------------------------------------------------------
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, GetTexImage, TexSubImage1D,
* TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
* ConvolutionFilter1D, ConvolutionFilter2D, GetConvolutionFilter,
* SeparableFilter2D, GetSeparableFilter, ColorTable, ColorSubTable,
* and GetColorTable:
*
* Accepted by the <type> argument of VertexPointer, NormalPointer,
* ColorPointer, SecondaryColorPointer, FogCoordPointer, TexCoordPointer,
* and VertexAttribPointer:
*/
int GL_HALF_FLOAT = 0x140B;
// ---------------------------------------------------------------------------
// ----------------------[ EXT_framebuffer_multisample ]----------------------
// ---------------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetRenderbufferParameteriv. */
int GL_RENDERBUFFER_SAMPLES = 0x8CAB;
/** Returned by CheckFramebufferStatus. */
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev.
*/
int GL_MAX_SAMPLES = 0x8D57;
/**
* Establishes the data storage, format, dimensions, and number of
* samples of a renderbuffer object's image.
*/
void glRenderbufferStorageMultisample(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
// --------------------------------------------------------------------
// ----------------------[ EXT_framebuffer_blit ]----------------------
// --------------------------------------------------------------------
/** Accepted by the <pname> parameters of GetIntegerv, GetFloatv, and GetDoublev. */
int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6; // alias FRAMEBUFFER_BINDING
int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA;
/**
* Transfers a rectangle of pixel values from one
* region of the read framebuffer to another in the draw framebuffer.
* <mask> is the bitwise OR of a number of values indicating which
* buffers are to be copied. The values are COLOR_BUFFER_BIT,
* DEPTH_BUFFER_BIT, and STENCIL_BUFFER_BIT.
* The pixels corresponding to these buffers are
* copied from the source rectangle, bound by the locations (srcX0,
* srcY0) and (srcX1, srcY1) inclusive, to the destination rectangle,
* bound by the locations (dstX0, dstY0) and (dstX1, dstY1)
* inclusive.
* If the source and destination rectangle dimensions do not match,
* the source image is stretched to fit the destination
* rectangle. <filter> must be LINEAR or NEAREST and specifies the
* method of interpolation to be applied if the image is
* stretched.
*/
void glBlitFramebuffer(
@GLint int srcX0, @GLint int srcY0, @GLint int srcX1, @GLint int srcY1,
@GLint int dstX0, @GLint int dstY0, @GLint int dstX1, @GLint int dstY1,
@GLbitfield int mask, @GLenum int filter);
// -------------------------------------------------------------------
// ----------------------[ EXT_texture_integer ]----------------------
// -------------------------------------------------------------------
/**
* Accepted by the <pname> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_RGBA_INTEGER_MODE = 0x8D9E;
/**
* Accepted by the <internalFormat> parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RGBA32UI = 0x8D70;
int GL_RGB32UI = 0x8D71;
int GL_ALPHA32UI = 0x8D72;
int GL_RGBA16UI = 0x8D76;
int GL_RGB16UI = 0x8D77;
int GL_ALPHA16UI = 0x8D78;
int GL_RGBA8UI = 0x8D7C;
int GL_RGB8UI = 0x8D7D;
int GL_ALPHA8UI = 0x8D7E;
int GL_RGBA32I = 0x8D82;
int GL_RGB32I = 0x8D83;
int GL_ALPHA32I = 0x8D84;
int GL_RGBA16I = 0x8D88;
int GL_RGB16I = 0x8D89;
int GL_ALPHA16I = 0x8D8A;
int GL_RGBA8I = 0x8D8E;
int GL_RGB8I = 0x8D8F;
int GL_ALPHA8I = 0x8D90;
/**
* Accepted by the <format> parameter of TexImage1D, TexImage2D,
* TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D,
* DrawPixels and ReadPixels:
*/
int GL_RED_INTEGER = 0x8D94;
int GL_GREEN_INTEGER = 0x8D95;
int GL_BLUE_INTEGER = 0x8D96;
int GL_ALPHA_INTEGER = 0x8D97;
int GL_RGB_INTEGER = 0x8D98;
int GL_RGBA_INTEGER = 0x8D99;
int GL_BGR_INTEGER = 0x8D9A;
int GL_BGRA_INTEGER = 0x8D9B;
@StripPostfix("params")
void glTexParameterIiv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params);
@Alternate("glTexParameterIiv")
@StripPostfix(value = "param", hasPostfix = false)
void glTexParameterIiv(@GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@StripPostfix("params")
void glTexParameterIuiv(@GLenum int target, @GLenum int pname, @Check("4") @GLuint IntBuffer params);
@Alternate("glTexParameterIuiv")
@StripPostfix(value = "param", hasPostfix = false)
void glTexParameterIuiv(@GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
@StripPostfix("params")
void glGetTexParameterIiv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTexParameterIiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameterIiv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTexParameterIuiv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
@Alternate("glGetTexParameterIuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameterIuiv2(@GLenum int target, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
// -----------------------------------------------------------------
// ----------------------[ EXT_texture_array ]----------------------
// -----------------------------------------------------------------
/**
* Accepted by the <target> parameter of TexParameteri, TexParameteriv,
* TexParameterf, TexParameterfv, and BindTexture:
*/
int GL_TEXTURE_1D_ARRAY = 0x8C18;
int GL_TEXTURE_2D_ARRAY = 0x8C1A;
/**
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CopyTexSubImage3D, CompressedTexImage3D, and CompressedTexSubImage3D:
*/
int GL_PROXY_TEXTURE_2D_ARRAY = 0x8C1B;
/**
* Accepted by the <target> parameter of TexImage2D, TexSubImage2D,
* CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D, and
* CompressedTexSubImage2D:
*/
int GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv
* and GetFloatv:
*/
int GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C;
int GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D;
int GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF;
/**
* Accepted by the <param> parameter of TexParameterf, TexParameteri,
* TexParameterfv, and TexParameteriv when the <pname> parameter is
* TEXTURE_COMPARE_MODE_ARB:
*/
int GL_COMPARE_REF_DEPTH_TO_TEXTURE = 0x884E;
/**
* Accepted by the <pname> parameter of
* GetFramebufferAttachmentParameteriv:
*/
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_1D_ARRAY = 0x8DC0;
int GL_SAMPLER_2D_ARRAY = 0x8DC1;
int GL_SAMPLER_1D_ARRAY_SHADOW = 0x8DC3;
int GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4;
void glFramebufferTextureLayer(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
// ------------------------------------------------------------------------
// ----------------------[ EXT_packed_depth_stencil ]----------------------
// ------------------------------------------------------------------------
/**
* Accepted by the <format> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, and GetTexImage, by the <type> parameter of
* CopyPixels, by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage, and returned in the <data> parameter of
* GetTexLevelParameter and GetRenderbufferParameteriv.
*/
int GL_DEPTH_STENCIL = 0x84F9;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels,
* TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, and GetTexImage.
*/
int GL_UNSIGNED_INT_24_8 = 0x84FA;
/**
* Accepted by the <internalformat> parameter of TexImage1D,
* TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
* RenderbufferStorage, and returned in the <data> parameter of
* GetTexLevelParameter and GetRenderbufferParameteriv.
*/
int GL_DEPTH24_STENCIL8 = 0x88F0;
/** Accepted by the <value> parameter of GetTexLevelParameter. */
int GL_TEXTURE_STENCIL_SIZE = 0x88F1;
// -----------------------------------------------------------------
// ----------------------[ EXT_draw_buffers2 ]----------------------
// -----------------------------------------------------------------
void glColorMaski(@GLuint int buf, boolean r, boolean g, boolean b, boolean a);
@StripPostfix(value = "data")
void glGetBooleani_v(@GLenum int value, @GLuint int index, @OutParameter @Check("4") @GLboolean ByteBuffer data);
@Alternate("glGetBooleani_v")
@GLreturn("data")
@StripPostfix(value = "data")
void glGetBooleani_v2(@GLenum int value, @GLuint int index, @OutParameter @GLboolean ByteBuffer data);
@StripPostfix("data")
void glGetIntegeri_v(@GLenum int value, @GLuint int index, @OutParameter @Check("4") IntBuffer data);
@Alternate("glGetIntegeri_v")
@GLreturn("data")
@StripPostfix("data")
void glGetIntegeri_v2(@GLenum int value, @GLuint int index, @OutParameter IntBuffer data);
void glEnablei(@GLenum int target, @GLuint int index);
void glDisablei(@GLenum int target, @GLuint int index);
boolean glIsEnabledi(@GLenum int target, @GLuint int index);
// ----------------------------------------------------------------------------
// ----------------------[ ARB_texture_compression_rgtc ]----------------------
// ----------------------------------------------------------------------------
/**
* Accepted by the <internalformat> parameter of TexImage2D,
* CopyTexImage2D, and CompressedTexImage2D and the <format> parameter
* of CompressedTexSubImage2D:
*/
int GL_COMPRESSED_RED_RGTC1 = 0x8DBB,
GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC,
GL_COMPRESSED_RG_RGTC2 = 0x8DBD,
GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE;
// --------------------------------------------------------------
// ----------------------[ ARB_texture_rg ]----------------------
// --------------------------------------------------------------
/**
* Accepted by the <internalFormat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, and CopyTexImage2D:
*/
int GL_R8 = 0x8229;
int GL_R16 = 0x822A;
int GL_RG8 = 0x822B;
int GL_RG16 = 0x822C;
int GL_R16F = 0x822D;
int GL_R32F = 0x822E;
int GL_RG16F = 0x822F;
int GL_RG32F = 0x8230;
int GL_R8I = 0x8231;
int GL_R8UI = 0x8232;
int GL_R16I = 0x8233;
int GL_R16UI = 0x8234;
int GL_R32I = 0x8235;
int GL_R32UI = 0x8236;
int GL_RG8I = 0x8237;
int GL_RG8UI = 0x8238;
int GL_RG16I = 0x8239;
int GL_RG16UI = 0x823A;
int GL_RG32I = 0x823B;
int GL_RG32UI = 0x823C;
/**
* Accepted by the <format> parameter of TexImage3D, TexImage2D,
* TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D,
* DrawPixels and ReadPixels:
*/
int GL_RG = 0x8227;
int GL_RG_INTEGER = 0x8228;
// ----------------------------------------------------------------------
// ----------------------[ EXT_transform_feedback ]----------------------
// ----------------------------------------------------------------------
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, BindBufferRange, BindBufferOffset and
* BindBufferBase:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E;
/**
* Accepted by the <param> parameter of GetIntegerIndexedv and
* GetBooleanIndexedv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84;
int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85;
/**
* Accepted by the <param> parameter of GetIntegerIndexedv and
* GetBooleanIndexedv, and by the <pname> parameter of GetBooleanv,
* GetDoublev, GetIntegerv, and GetFloatv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F;
/** Accepted by the <bufferMode> parameter of TransformFeedbackVaryings: */
int GL_INTERLEAVED_ATTRIBS = 0x8C8C;
int GL_SEPARATE_ATTRIBS = 0x8C8D;
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
* GetQueryiv:
*/
int GL_PRIMITIVES_GENERATED = 0x8C87;
int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_RASTERIZER_DISCARD = 0x8C89;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83;
int GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F;
int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76;
void glBindBufferRange(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
void glBindBufferBase(@GLenum int target, @GLuint int index, @GLuint int buffer);
void glBeginTransformFeedback(@GLenum int primitiveMode);
void glEndTransformFeedback();
void glTransformFeedbackVaryings(@GLuint int program, @GLsizei int count,
@Const @NullTerminated("count") @GLchar @PointerArray("count") ByteBuffer varyings,
@GLenum int bufferMode);
@Alternate("glTransformFeedbackVaryings")
void glTransformFeedbackVaryings(@GLuint int program, @Constant("varyings.length") @GLsizei int count,
@Const @NullTerminated @PointerArray("count") CharSequence[] varyings,
@GLenum int bufferMode);
void glGetTransformFeedbackVarying(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
@Alternate("glGetTransformFeedbackVarying")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetTransformFeedbackVarying2(@GLuint int program, @GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
// -----------------------------------------------------------------------
// ----------------------[ ARB_vertex_array_object ]----------------------
// -----------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_VERTEX_ARRAY_BINDING = 0x85B5;
@Code(" StateTracker.bindVAO(caps, array);")
void glBindVertexArray(@GLuint int array);
@Code(" StateTracker.deleteVAO(caps, arrays);")
void glDeleteVertexArrays(@AutoSize("arrays") @GLsizei int n, @Const @GLuint IntBuffer arrays);
@Alternate("glDeleteVertexArrays")
@Code(" StateTracker.deleteVAO(caps, array);")
void glDeleteVertexArrays(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, array)", keepParam = true) int array);
void glGenVertexArrays(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Alternate("glGenVertexArrays")
@GLreturn("arrays")
void glGenVertexArrays2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
boolean glIsVertexArray(@GLuint int array);
// --------------------------------------------------------------------
// ----------------------[ ARB_framebuffer_sRGB ]----------------------
// --------------------------------------------------------------------
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FRAMEBUFFER_SRGB = 0x8DB9;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_FRAMEBUFFER_SRGB_CAPABLE = 0x8DBA;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_blend_color.java 0000644 0001750 0001750 00000004227 12702226520 022613 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLclampf;
public interface EXT_blend_color {
/** Accepted by the <sfactor> and <dfactor> parameters of BlendFunc. */
int GL_CONSTANT_COLOR_EXT = 0x8001;
int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002;
int GL_CONSTANT_ALPHA_EXT = 0x8003;
int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev.
*/
int GL_BLEND_COLOR_EXT = 0x8005;
void glBlendColorEXT(@GLclampf float red, @GLclampf float green, @GLclampf float blue, @GLclampf float alpha);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_sparse_texture.java 0000644 0001750 0001750 00000006646 12702226520 023356 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface AMD_sparse_texture {
/** Accepted by the <flags> parameter to TexStorageSparseAMD and TextureStorageSparseAMD: */
int GL_TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001;
/** Accepted by the <pname> parameter to GetInternalformativ: */
int GL_VIRTUAL_PAGE_SIZE_X_AMD = 0x9195,
GL_VIRTUAL_PAGE_SIZE_Y_AMD = 0x9196,
GL_VIRTUAL_PAGE_SIZE_Z_AMD = 0x9197;
/**
* Accepted by the <pname> parameter to GetIntegerv, GetFloatv, GetDoublev,
* GetInteger64v, and GetBooleanv:
*/
int GL_MAX_SPARSE_TEXTURE_SIZE_AMD = 0x9198,
GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199,
GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919A;
/** Accepted by the <pname> parameter of GetTexParameter{if}v: */
int GL_MIN_SPARSE_LEVEL_AMD = 0x919B;
/**
* Accepted by the <pname> parameter of TexParameter{if}{v} and
* GetTexParameter{if}v:
*/
int GL_MIN_LOD_WARNING_AMD = 0x919C;
void glTexStorageSparseAMD(@GLenum int target,
@GLenum int internalFormat,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
@GLsizei int layers,
@GLbitfield int flags);
void glTextureStorageSparseAMD(@GLuint int texture,
@GLenum int target,
@GLenum int internalFormat,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
@GLsizei int layers,
@GLbitfield int flags);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_derivative_control.java 0000644 0001750 0001750 00000003150 12702226520 024171 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_derivative_control {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_light_max_exponent.java 0000644 0001750 0001750 00000003262 12702226520 024106 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_light_max_exponent {
int GL_MAX_SHININESS_NV = 0x8504;
int GL_MAX_SPOT_EXPONENT_NV = 0x8505;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_vertex_array_object.java 0000644 0001750 0001750 00000005247 12702226520 024576 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface APPLE_vertex_array_object {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_VERTEX_ARRAY_BINDING_APPLE = 0x85B5;
void glBindVertexArrayAPPLE(@GLuint int array);
void glDeleteVertexArraysAPPLE(@AutoSize("arrays") @GLsizei int n, @Const @GLuint IntBuffer arrays);
@Alternate("glDeleteVertexArraysAPPLE")
void glDeleteVertexArraysAPPLE(@Constant("1") @GLsizei int n, @Const @GLuint @Constant(value = "APIUtil.getInt(caps, array)", keepParam = true) int array);
void glGenVertexArraysAPPLE(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Alternate("glGenVertexArraysAPPLE")
@GLreturn("arrays")
void glGenVertexArraysAPPLE2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
boolean glIsVertexArrayAPPLE(@GLuint int array);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_storage_buffer_object.java 0000644 0001750 0001750 00000007024 12702226520 026144 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_shader_storage_buffer_object {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_SHADER_STORAGE_BUFFER = 0x90D2;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetIntegeri_v,
* GetBooleanv, GetInteger64v, GetFloatv, GetDoublev, GetBooleani_v,
* GetIntegeri_v, GetFloati_v, GetDoublei_v, and GetInteger64i_v:
*/
int GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleani_v,
* GetIntegeri_v, GetFloati_v, GetDoublei_v, and GetInteger64i_v:
*/
int GL_SHADER_STORAGE_BUFFER_START = 0x90D4,
GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6,
GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7,
GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8,
GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9,
GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA,
GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB,
GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC,
GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD,
GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE,
GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF;
/** Accepted in the <barriers> bitfield in glMemoryBarrier: */
int GL_SHADER_STORAGE_BARRIER_BIT = 0x2000;
/**
* Alias for the existing token
* MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS:
*/
int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39;
@Reuse("GL43")
void glShaderStorageBlockBinding(@GLuint int program, @GLuint int storageBlockIndex,
@GLuint int storageBlockBinding);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_framebuffer_multisample.java 0000644 0001750 0001750 00000004553 12702226520 025233 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
public interface EXT_framebuffer_multisample {
/** Accepted by the <pname> parameter of GetRenderbufferParameterivEXT. */
int GL_RENDERBUFFER_SAMPLES_EXT = 0x8CAB;
/** Returned by CheckFramebufferStatusEXT. */
int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev.
*/
int GL_MAX_SAMPLES_EXT = 0x8D57;
/**
* Establishes the data storage, format, dimensions, and number of
* samples of a renderbuffer object's image.
*/
void glRenderbufferStorageMultisampleEXT(
@GLenum int target, @GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_depth_texture.java 0000644 0001750 0001750 00000004307 12702226520 023160 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_depth_texture {
/**
* Accepted by the <internalFormat> parameter of TexImage1D, TexImage2D,
* CopyTexImage1D and CopyTexImage2D:
*/
int GL_DEPTH_COMPONENT16_ARB = 0x81A5;
int GL_DEPTH_COMPONENT24_ARB = 0x81A6;
int GL_DEPTH_COMPONENT32_ARB = 0x81A7;
/**
* Accepted by the <pname> parameter of GetTexLevelParameterfv and
* GetTexLevelParameteriv:
*/
int GL_TEXTURE_DEPTH_SIZE_ARB = 0x884A;
/**
* Accepted by the <pname> parameter of TexParameterf, TexParameteri,
* TexParameterfv, TexParameteriv, GetTexParameterfv, and GetTexParameteriv:
*/
int GL_DEPTH_TEXTURE_MODE_ARB = 0x884B;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_arrays_of_arrays.java 0000644 0001750 0001750 00000003146 12702226520 023642 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_arrays_of_arrays {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_stencil_two_side.java 0000644 0001750 0001750 00000003436 12702226520 023670 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface EXT_stencil_two_side {
int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910;
int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911;
void glActiveStencilFaceEXT(@GLenum int face);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_bindless_texture.java 0000644 0001750 0001750 00000006611 12702226520 023657 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.StripPostfix;
import org.lwjgl.util.generator.opengl.*;
import java.nio.LongBuffer;
public interface ARB_bindless_texture {
/** Accepted by the <type> parameter of VertexAttribLPointer: */
int GL_UNSIGNED_INT64_ARB = 0x140F;
@GLuint64
long glGetTextureHandleARB(@GLuint int texture);
@GLuint64
long glGetTextureSamplerHandleARB(@GLuint int texture, @GLuint int sampler);
void glMakeTextureHandleResidentARB(@GLuint64 long handle);
void glMakeTextureHandleNonResidentARB(@GLuint64 long handle);
@GLuint64
long glGetImageHandleARB(@GLuint int texture, int level, boolean layered, int layer, @GLenum int format);
void glMakeImageHandleResidentARB(@GLuint64 long handle, @GLenum int access);
void glMakeImageHandleNonResidentARB(@GLuint64 long handle);
void glUniformHandleui64ARB(int location, @GLuint64 long value);
@StripPostfix("value")
void glUniformHandleui64vARB(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint64 LongBuffer value);
void glProgramUniformHandleui64ARB(@GLuint int program, int location, @GLuint64 long value);
@StripPostfix("values")
void glProgramUniformHandleui64vARB(@GLuint int program, int location, @AutoSize("values") @GLsizei int count, @Const @GLuint64 LongBuffer values);
boolean glIsTextureHandleResidentARB(@GLuint64 long handle);
boolean glIsImageHandleResidentARB(@GLuint64 long handle);
void glVertexAttribL1ui64ARB(@GLuint int index, @GLuint64EXT long x);
@StripPostfix("v")
void glVertexAttribL1ui64vARB(@GLuint int index, @Check("1") @Const @GLuint64EXT LongBuffer v);
@StripPostfix("params")
void glGetVertexAttribLui64vARB(@GLuint int index, @GLenum int pname, @Check("4") @GLuint64EXT LongBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_client_storage.java 0000644 0001750 0001750 00000003326 12702226520 023533 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_client_storage {
/** Accepted by the <pname> parameters of PixelStore: */
int GL_UNPACK_CLIENT_STORAGE_APPLE = 0x85B2;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_geometry_shader4.java 0000644 0001750 0001750 00000007625 12702226520 023547 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_geometry_shader4 {
/**
* Accepted by the <type> parameter of CreateShader and returned by the
* <params> parameter of GetShaderiv:
*/
int GL_GEOMETRY_SHADER_ARB = 0x8DD9;
/**
* Accepted by the <pname> parameter of ProgramParameteriEXT and
* GetProgramiv:
*/
int GL_GEOMETRY_VERTICES_OUT_ARB = 0x8DDA;
int GL_GEOMETRY_INPUT_TYPE_ARB = 0x8DDB;
int GL_GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29;
int GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD;
int GL_MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE;
int GL_MAX_VARYING_COMPONENTS_ARB = 0x8B4B;
int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF;
int GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0;
int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1;
/**
* Accepted by the <mode> parameter of Begin, DrawArrays,
* MultiDrawArrays, DrawElements, MultiDrawElements, and
* DrawRangeElements:
*/
int GL_LINES_ADJACENCY_ARB = 0xA;
int GL_LINE_STRIP_ADJACENCY_ARB = 0xB;
int GL_TRIANGLES_ADJACENCY_ARB = 0xC;
int GL_TRIANGLE_STRIP_ADJACENCY_ARB = 0xD;
/** Returned by CheckFramebufferStatusEXT: */
int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8;
int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9;
/**
* Accepted by the <pname> parameter of GetFramebufferAttachment-
* ParameterivEXT:
*/
int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7;
int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_ARB = 0x8CD4;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetIntegerv, GetFloatv, GetDoublev,
* and GetBooleanv:
*/
int GL_PROGRAM_POINT_SIZE_ARB = 0x8642;
void glProgramParameteriARB(@GLuint int program, @GLenum int pname, int value);
void glFramebufferTextureARB(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level);
void glFramebufferTextureLayerARB(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, int layer);
void glFramebufferTextureFaceARB(@GLenum int target, @GLenum int attachment, @GLuint int texture, int level, @GLenum int face);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_texture_float.java 0000644 0001750 0001750 00000004241 12702226520 023167 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ATI_texture_float {
/**
* Accepted by the <internalFormat> parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RGBA_FLOAT32_ATI = 0x8814;
int GL_RGB_FLOAT32_ATI = 0x8815;
int GL_ALPHA_FLOAT32_ATI = 0x8816;
int GL_INTENSITY_FLOAT32_ATI = 0x8817;
int GL_LUMINANCE_FLOAT32_ATI = 0x8818;
int GL_LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819;
int GL_RGBA_FLOAT16_ATI = 0x881A;
int GL_RGB_FLOAT16_ATI = 0x881B;
int GL_ALPHA_FLOAT16_ATI = 0x881C;
int GL_INTENSITY_FLOAT16_ATI = 0x881D;
int GL_LUMINANCE_FLOAT16_ATI = 0x881E;
int GL_LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_shader_atomic_float.java 0000644 0001750 0001750 00000003151 12702226520 024176 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_shader_atomic_float {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_multisample.java 0000644 0001750 0001750 00000010716 12702226520 024411 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLbitfield;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.FloatBuffer;
@Extension(postfix = "")
public interface ARB_texture_multisample {
/** Accepted by the <pname> parameter of GetMultisamplefv: */
int GL_SAMPLE_POSITION = 0x8E50;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_SAMPLE_MASK = 0x8E51;
/**
* Accepted by the <target> parameter of GetBooleani_v and
* GetIntegeri_v:
*/
int GL_SAMPLE_MASK_VALUE = 0x8E52;
/**
* Accepted by the <target> parameter of BindTexture and
* TexImage2DMultisample:
*/
int GL_TEXTURE_2D_MULTISAMPLE = 0x9100;
/** Accepted by the <target> parameter of TexImage2DMultisample: */
int GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101;
/**
* Accepted by the <target> parameter of BindTexture and
* TexImage3DMultisample:
*/
int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102;
/** Accepted by the <target> parameter of TexImage3DMultisample: */
int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_SAMPLE_MASK_WORDS = 0x8E59;
int GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E;
int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F;
int GL_MAX_INTEGER_SAMPLES = 0x9110;
int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104;
int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105;
/** Accepted by the <pname> parameter of GetTexLevelParameter */
int GL_TEXTURE_SAMPLES = 0x9106;
int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_2D_MULTISAMPLE = 0x9108;
int GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109;
int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A;
int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B;
int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C;
int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D;
@Reuse("GL32")
void glTexImage2DMultisample(@GLenum int target, @GLsizei int samples, int internalformat,
@GLsizei int width, @GLsizei int height,
boolean fixedsamplelocations);
@Reuse("GL32")
void glTexImage3DMultisample(@GLenum int target, @GLsizei int samples, int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
boolean fixedsamplelocations);
@Reuse("GL32")
@StripPostfix("val")
void glGetMultisamplefv(@GLenum int pname, @GLuint int index, @OutParameter @Check("2") FloatBuffer val);
@Reuse("GL32")
void glSampleMaski(@GLuint int index, @GLbitfield int mask);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_interleaved_elements.java 0000644 0001750 0001750 00000004120 12702226520 024460 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface AMD_interleaved_elements {
/**
* Accepted by the <pname> parameter of VertexAttribParameteriAMD and
* GetVertexAttrib{iv|dv|fv|Iiv|Iuiv|Ldv}:
*/
int GL_VERTEX_ELEMENT_SWIZZLE_AMD = 0x91A4;
/** Selected by the <pname> parameter of ProgramParameteri and GetProgramiv: */
int GL_VERTEX_ID_SWIZZLE_AMD = 0x91A5;
void glVertexAttribParameteriAMD(@GLuint int index, @GLenum int pname, int param);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_bgra.java 0000644 0001750 0001750 00000003220 12702226520 021234 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_bgra {
int GL_BGR_EXT = 0x80E0;
int GL_BGRA_EXT = 0x80E1;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_blend.java 0000644 0001750 0001750 00000011040 12702226520 022745 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface ARB_vertex_blend {
int GL_MAX_VERTEX_UNITS_ARB = 0x86A4;
int GL_ACTIVE_VERTEX_UNITS_ARB = 0x86A5;
int GL_WEIGHT_SUM_UNITY_ARB = 0x86A6;
int GL_VERTEX_BLEND_ARB = 0x86A7;
int GL_CURRENT_WEIGHT_ARB = 0x86A8;
int GL_WEIGHT_ARRAY_TYPE_ARB = 0x86A9;
int GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86AA;
int GL_WEIGHT_ARRAY_SIZE_ARB = 0x86AB;
int GL_WEIGHT_ARRAY_POINTER_ARB = 0x86AC;
int GL_WEIGHT_ARRAY_ARB = 0x86AD;
int GL_MODELVIEW0_ARB = 0x1700;
int GL_MODELVIEW1_ARB = 0x850a;
int GL_MODELVIEW2_ARB = 0x8722;
int GL_MODELVIEW3_ARB = 0x8723;
int GL_MODELVIEW4_ARB = 0x8724;
int GL_MODELVIEW5_ARB = 0x8725;
int GL_MODELVIEW6_ARB = 0x8726;
int GL_MODELVIEW7_ARB = 0x8727;
int GL_MODELVIEW8_ARB = 0x8728;
int GL_MODELVIEW9_ARB = 0x8729;
int GL_MODELVIEW10_ARB = 0x872A;
int GL_MODELVIEW11_ARB = 0x872B;
int GL_MODELVIEW12_ARB = 0x872C;
int GL_MODELVIEW13_ARB = 0x872D;
int GL_MODELVIEW14_ARB = 0x872E;
int GL_MODELVIEW15_ARB = 0x872F;
int GL_MODELVIEW16_ARB = 0x8730;
int GL_MODELVIEW17_ARB = 0x8731;
int GL_MODELVIEW18_ARB = 0x8732;
int GL_MODELVIEW19_ARB = 0x8733;
int GL_MODELVIEW20_ARB = 0x8734;
int GL_MODELVIEW21_ARB = 0x8735;
int GL_MODELVIEW22_ARB = 0x8736;
int GL_MODELVIEW23_ARB = 0x8737;
int GL_MODELVIEW24_ARB = 0x8738;
int GL_MODELVIEW25_ARB = 0x8739;
int GL_MODELVIEW26_ARB = 0x873A;
int GL_MODELVIEW27_ARB = 0x873B;
int GL_MODELVIEW28_ARB = 0x873C;
int GL_MODELVIEW29_ARB = 0x873D;
int GL_MODELVIEW30_ARB = 0x873E;
int GL_MODELVIEW31_ARB = 0x873F;
@StripPostfix("pWeights")
void glWeightbvARB(@AutoSize("pWeights") int size, ByteBuffer pWeights);
@StripPostfix("pWeights")
void glWeightsvARB(@AutoSize("pWeights") int size, ShortBuffer pWeights);
@StripPostfix("pWeights")
void glWeightivARB(@AutoSize("pWeights") int size, IntBuffer pWeights);
@StripPostfix("pWeights")
void glWeightfvARB(@AutoSize("pWeights") int size, FloatBuffer pWeights);
@StripPostfix("pWeights")
void glWeightdvARB(@AutoSize("pWeights") int size, DoubleBuffer pWeights);
@StripPostfix("pWeights")
void glWeightubvARB(@AutoSize("pWeights") int size, @GLubyte ByteBuffer pWeights);
@StripPostfix("pWeights")
void glWeightusvARB(@AutoSize("pWeights") int size, @GLushort ShortBuffer pWeights);
@StripPostfix("pWeights")
void glWeightuivARB(@AutoSize("pWeights") int size, @GLuint IntBuffer pWeights);
void glWeightPointerARB(int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer pPointer);
void glVertexBlendARB(int count);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_sample_shading.java 0000644 0001750 0001750 00000004116 12702226520 023250 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLclampf;
public interface ARB_sample_shading {
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_SAMPLE_SHADING_ARB = 0x8C36;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv, and GetFloatv:
*/
int GL_MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37;
void glMinSampleShadingARB(@GLclampf float value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_mirrored_repeat.java 0000644 0001750 0001750 00000003224 12702226520 025234 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_mirrored_repeat {
int GL_MIRRORED_REPEAT_ARB = 0x8370;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_vertex_weighting.java 0000644 0001750 0001750 00000005370 12702226520 023713 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLfloat;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.*;
public interface EXT_vertex_weighting {
int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3;
int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502;
int GL_MODELVIEW0_MATRIX_EXT = 0x0BA6;
int GL_MODELVIEW1_MATRIX_EXT = 0x8506;
int GL_VERTEX_WEIGHTING_EXT = 0x8509;
int GL_MODELVIEW0_EXT = 0x1700;
int GL_MODELVIEW1_EXT = 0x850A;
int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850B;
int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850C;
int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D;
int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E;
int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F;
int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510;
@NoErrorCheck
void glVertexWeightfEXT(float weight);
void glVertexWeightPointerEXT(@GLsizei int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLfloat Buffer pPointer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_bindable_uniform.java 0000644 0001750 0001750 00000004750 12702226520 023631 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLuint;
public interface EXT_bindable_uniform {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2;
int GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3;
int GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4;
int GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED;
int GL_UNIFORM_BUFFER_BINDING_EXT = 0x8DEF;
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_UNIFORM_BUFFER_EXT = 0x8DEE;
void glUniformBufferEXT(@GLuint int program, int location, @GLuint int buffer);
int glGetUniformBufferSizeEXT(@GLuint int program, int location);
@GLintptr
long glGetUniformOffsetEXT(@GLuint int program, int location);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL42.java 0000644 0001750 0001750 00000036474 12702226520 020272 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.IntBuffer;
public interface GL42 {
// ----------------------------------------------------------------------------
// ----------------------[ ARB_texture_compression_bptc ]----------------------
// ----------------------------------------------------------------------------
/**
* Accepted by the <internalformat> parameter of TexImage2D, TexImage3D,
* CopyTexImage2D, CopyTexImage3D, CompressedTexImage2DARB, and
* CompressedTexImage3DARB and the <format> parameter of
* CompressedTexSubImage2DARB and CompressedTexSubImage3DARB:
*/
int GL_COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C;
int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D;
int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E;
int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F;
// ------------------------------------------------------------------------------------
// ----------------------[ ARB_compressed_texture_pixel_storage ]----------------------
// ------------------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of PixelStore[fi], GetBooleanv,
* GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127,
GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128,
GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129,
GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A,
GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B,
GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C,
GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D,
GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E;
// --------------------------------------------------------------------------
// ----------------------[ ARB_shader_atomic_counters ]----------------------
// --------------------------------------------------------------------------
/** Accepted by the <target> parameter of BindBufferBase and BindBufferRange: */
int GL_ATOMIC_COUNTER_BUFFER = 0x92C0;
/**
* Accepted by the <pname> parameter of GetBooleani_v, GetIntegeri_v,
* GetFloati_v, GetDoublei_v, GetInteger64i_v, GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, GetDoublev, and GetActiveAtomicCounterBufferiv:
*/
int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1;
/** Accepted by the <pname> parameter of GetIntegeri_64v: */
int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2,
GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3;
/** Accepted by the <pname> parameter of GetActiveAtomicCounterBufferiv: */
int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4,
GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5,
GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA,
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC,
GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD,
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE,
GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF,
GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0,
GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1,
GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2,
GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3,
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4,
GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5,
GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6,
GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7,
GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8,
GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9;
/** Accepted by the <pname> parameter of GetActiveUniformsiv: */
int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA;
/** Returned in <params> by GetActiveUniform and GetActiveUniformsiv: */
int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB;
@StripPostfix("params")
void glGetActiveAtomicCounterBufferiv(@GLuint int program, @GLuint int bufferIndex, @GLenum int pname, @Check("1") @OutParameter IntBuffer params);
@Alternate("glGetActiveAtomicCounterBufferiv")
@StripPostfix("params")
@GLreturn("params")
void glGetActiveAtomicCounterBufferiv2(@GLuint int program, @GLuint int bufferIndex, @GLenum int pname, @OutParameter IntBuffer params);
// -------------------------------------------------------------------
// ----------------------[ ARB_texture_storage ]----------------------
// -------------------------------------------------------------------
/** Accepted by the <value> parameter of GetTexParameter{if}v: */
int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F;
void glTexStorage1D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width);
void glTexStorage2D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height);
void glTexStorage3D(@GLenum int target, @GLsizei int levels,
@GLenum int internalformat,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
// --------------------------------------------------------------------------------
// ----------------------[ ARB_transform_feedback_instanced ]----------------------
// --------------------------------------------------------------------------------
void glDrawTransformFeedbackInstanced(@GLenum int mode, @GLuint int id, @GLsizei int primcount);
void glDrawTransformFeedbackStreamInstanced(@GLenum int mode, @GLuint int id, @GLuint int stream, @GLsizei int primcount);
// -----------------------------------------------------------------
// ----------------------[ ARB_base_instance ]----------------------
// -----------------------------------------------------------------
void glDrawArraysInstancedBaseInstance(@GLenum int mode,
int first,
@GLsizei int count,
@GLsizei int primcount,
@GLuint int baseinstance);
void glDrawElementsInstancedBaseInstance(@GLenum int mode,
@AutoSize("indices") @GLsizei int count,
@AutoType("indices") @GLenum int type,
@Const
@BufferObject(BufferKind.ElementVBO)
@GLubyte
@GLushort
@GLuint Buffer indices,
@GLsizei int primcount,
@GLuint int baseinstance);
void glDrawElementsInstancedBaseVertexBaseInstance(@GLenum int mode,
@AutoSize("indices") @GLsizei int count,
@AutoType("indices") @GLenum int type,
@Const
@BufferObject(BufferKind.ElementVBO)
@GLubyte
@GLushort
@GLuint Buffer indices,
@GLsizei int primcount,
int basevertex,
@GLuint int baseinstance);
// ---------------------------------------------------------------------------
// ----------------------[ ARB_shader_image_load_store ]----------------------
// ---------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, and GetInteger64v:
*/
int GL_MAX_IMAGE_UNITS = 0x8F38,
GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39,
GL_MAX_IMAGE_SAMPLES = 0x906D,
GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA,
GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB,
GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC,
GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD,
GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE,
GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF;
/** Accepted by the <target> parameter of GetIntegeri_v and GetBooleani_v: */
int GL_IMAGE_BINDING_NAME = 0x8F3A,
GL_IMAGE_BINDING_LEVEL = 0x8F3B,
GL_IMAGE_BINDING_LAYERED = 0x8F3C,
GL_IMAGE_BINDING_LAYER = 0x8F3D,
GL_IMAGE_BINDING_ACCESS = 0x8F3E,
GL_IMAGE_BINDING_FORMAT = 0x906E;
/** Accepted by the <barriers> parameter of MemoryBarrier: */
int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001,
GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002,
GL_UNIFORM_BARRIER_BIT = 0x00000004,
GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008,
GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020,
GL_COMMAND_BARRIER_BIT = 0x00000040,
GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080,
GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100,
GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200,
GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400,
GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800,
GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000,
GL_ALL_BARRIER_BITS = 0xFFFFFFFF;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_IMAGE_1D = 0x904C,
GL_IMAGE_2D = 0x904D,
GL_IMAGE_3D = 0x904E,
GL_IMAGE_2D_RECT = 0x904F,
GL_IMAGE_CUBE = 0x9050,
GL_IMAGE_BUFFER = 0x9051,
GL_IMAGE_1D_ARRAY = 0x9052,
GL_IMAGE_2D_ARRAY = 0x9053,
GL_IMAGE_CUBE_MAP_ARRAY = 0x9054,
GL_IMAGE_2D_MULTISAMPLE = 0x9055,
GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056,
GL_INT_IMAGE_1D = 0x9057,
GL_INT_IMAGE_2D = 0x9058,
GL_INT_IMAGE_3D = 0x9059,
GL_INT_IMAGE_2D_RECT = 0x905A,
GL_INT_IMAGE_CUBE = 0x905B,
GL_INT_IMAGE_BUFFER = 0x905C,
GL_INT_IMAGE_1D_ARRAY = 0x905D,
GL_INT_IMAGE_2D_ARRAY = 0x905E,
GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F,
GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060,
GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061,
GL_UNSIGNED_INT_IMAGE_1D = 0x9062,
GL_UNSIGNED_INT_IMAGE_2D = 0x9063,
GL_UNSIGNED_INT_IMAGE_3D = 0x9064,
GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065,
GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066,
GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067,
GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068,
GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069,
GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A,
GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B,
GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C;
/**
* Accepted by the <value> parameter of GetTexParameteriv, GetTexParameterfv,
* GetTexParameterIiv, and GetTexParameterIuiv:
*/
int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7;
/**
* Returned in the <data> parameter of GetTexParameteriv, GetTexParameterfv,
* GetTexParameterIiv, and GetTexParameterIuiv when <value> is
* IMAGE_FORMAT_COMPATIBILITY_TYPE:
*/
int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8,
IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9;
void glBindImageTexture(@GLuint int unit, @GLuint int texture, int level,
boolean layered, int layer, @GLenum int access,
@GLenum int format);
void glMemoryBarrier(@GLbitfield int barriers);
// -------------------------------------------------------------------------
// ----------------------[ ARB_internal_format_query ]----------------------
// -------------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetInternalformativ: */
int GL_NUM_SAMPLE_COUNTS = 0x9380;
@StripPostfix("params")
void glGetInternalformativ(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @AutoSize("params") @GLsizei int bufSize, @OutParameter IntBuffer params);
@Alternate("glGetInternalformativ")
@StripPostfix("params")
@GLreturn("params")
void glGetInternalformativ2(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter IntBuffer params);
// ------------------------------------------------------------------------
// ----------------------[ ARB_map_buffer_alignment ]----------------------
// ------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_compute_program5.java 0000644 0001750 0001750 00000004645 12702226520 023510 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_compute_program5 {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
* by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev, and by the <target> parameter of ProgramStringARB,
* BindProgramARB, ProgramEnvParameter4[df][v]ARB,
* ProgramLocalParameter4[df][v]ARB, GetProgramEnvParameter[df]vARB,
* GetProgramLocalParameter[df]vARB, GetProgramivARB and
* GetProgramStringARB:
*/
int GL_COMPUTE_PROGRAM_NV = 0x90FB;
/**
* Accepted by the <target> parameter of ProgramBufferParametersfvNV,
* ProgramBufferParametersIivNV, and ProgramBufferParametersIuivNV,
* BindBufferRangeNV, BindBufferOffsetNV, BindBufferBaseNV, and BindBuffer
* and the <value> parameter of GetIntegerIndexedvEXT:
*/
int GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV = 0x90FC;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_get_program_binary.java 0000644 0001750 0001750 00000005640 12702226520 024147 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface ARB_get_program_binary {
/**
* Accepted by the <pname> parameter of ProgramParameteri and
* GetProgramiv:
*/
int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_PROGRAM_BINARY_LENGTH = 0x8741;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv and GetDoublev:
*/
int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE,
GL_PROGRAM_BINARY_FORMATS = 0x87FF;
@Reuse("GL41")
void glGetProgramBinary(@GLuint int program, @AutoSize("binary") @GLsizei int bufSize,
@Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@Check("1") @GLenum IntBuffer binaryFormat,
@OutParameter @GLvoid ByteBuffer binary);
@Reuse("GL41")
void glProgramBinary(@GLuint int program, @GLenum int binaryFormat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
@Reuse("GL41")
void glProgramParameteri(@GLuint int program, @GLenum int pname, int value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_pipeline_statistics_query.java 0000644 0001750 0001750 00000004540 12702226520 025577 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_pipeline_statistics_query {
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, GetQueryiv,
* BeginQueryIndexed, EndQueryIndexed and GetQueryIndexediv:
*/
int GL_VERTICES_SUBMITTED_ARB = 0x82EE,
GL_PRIMITIVES_SUBMITTED_ARB = 0x82EF,
GL_VERTEX_SHADER_INVOCATIONS_ARB = 0x82F0,
GL_TESS_CONTROL_SHADER_PATCHES_ARB = 0x82F1,
GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB = 0x82F2,
GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F,
GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB = 0x82F3,
GL_FRAGMENT_SHADER_INVOCATIONS_ARB = 0x82F4,
GL_COMPUTE_SHADER_INVOCATIONS_ARB = 0x82F5,
GL_CLIPPING_INPUT_PRIMITIVES_ARB = 0x82F6,
GL_CLIPPING_OUTPUT_PRIMITIVES_ARB = 0x82F7;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_copy_depth_to_color.java 0000644 0001750 0001750 00000003277 12702226520 024256 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_copy_depth_to_color {
int GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886E;
int GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_lod_bias.java 0000644 0001750 0001750 00000004415 12702226520 023664 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Extension;
@Extension(postfix = "EXT", className = "EXTTextureLODBias")
public interface EXT_texture_lod_bias {
/**
* Accepted by the <target> parameters of GetTexEnvfv, GetTexEnviv,
* TexEnvi, TexEnvf, Texenviv, and TexEnvfv:
*/
int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500;
/**
* When the <target> parameter of GetTexEnvfv, GetTexEnviv, TexEnvi,
* TexEnvf, TexEnviv, and TexEnvfv is TEXTURE_FILTER_CONTROL_EXT, then
* the value of <pname> may be:
*/
int GL_TEXTURE_LOD_BIAS_EXT = 0x8501;
/**
* Accepted by the <pname> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_seamless_cube_map.java 0000644 0001750 0001750 00000003515 12702226520 023743 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_seamless_cube_map {
/**
* Accepted by the <cap> parameter of Enable, Disable and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
* and GetDoublev:
*/
int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_multisample_filter_hint.java 0000644 0001750 0001750 00000003471 12702226520 025137 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_multisample_filter_hint {
/**
* Accepted by the <target> parameter of Hint and by the <pname>
* parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_MULTISAMPLE_FILTER_HINT_NV = 0x8534;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_depth_buffer_float.java 0000644 0001750 0001750 00000004263 12702226520 024117 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_depth_buffer_float {
/**
* Accepted by the <internalformat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, CopyTexImage2D, and RenderbufferStorageEXT,
* and returned in the <data> parameter of GetTexLevelParameter and
* GetRenderbufferParameterivEXT:
*/
int GL_DEPTH_COMPONENT32F = 0x8CAC;
int GL_DEPTH32F_STENCIL8 = 0x8CAD;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and
* GetTexImage:
*/
int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL31.java 0000644 0001750 0001750 00000034052 12702226520 020256 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface GL31 {
// ----------------------------------------------------------
// ----------------------[ OpenGL 3.1 ]----------------------
// ----------------------------------------------------------
int GL_RED_SNORM = 0x8F90;
int GL_RG_SNORM = 0x8F91;
int GL_RGB_SNORM = 0x8F92;
int GL_RGBA_SNORM = 0x8F93;
int GL_R8_SNORM = 0x8F94;
int GL_RG8_SNORM = 0x8F95;
int GL_RGB8_SNORM = 0x8F96;
int GL_RGBA8_SNORM = 0x8F97;
int GL_R16_SNORM = 0x8F98;
int GL_RG16_SNORM = 0x8F99;
int GL_RGB16_SNORM = 0x8F9A;
int GL_RGBA16_SNORM = 0x8F9B;
int GL_SIGNED_NORMALIZED = 0x8F9C;
// ------------------------------------------------------------------
// ----------------------[ ARB_draw_instanced ]----------------------
// ------------------------------------------------------------------
void glDrawArraysInstanced(@GLenum int mode, int first, @GLsizei int count, @GLsizei int primcount);
void glDrawElementsInstanced(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, @GLsizei int primcount);
// ---------------------------------------------------------------
// ----------------------[ EXT_copy_buffer ]----------------------
// ---------------------------------------------------------------
int GL_COPY_READ_BUFFER_BINDING = 0x8F36;
int GL_COPY_WRITE_BUFFER_BINDING = 0x8F37;
int GL_COPY_READ_BUFFER = GL_COPY_READ_BUFFER_BINDING;
int GL_COPY_WRITE_BUFFER = GL_COPY_WRITE_BUFFER_BINDING;
void glCopyBufferSubData(@GLenum int readtarget, @GLenum int writetarget, @GLintptr long readoffset, @GLintptr long writeoffset, @GLsizeiptr long size);
// --------------------------------------------------------------------
// ----------------------[ NV_primitive_restart ]----------------------
// --------------------------------------------------------------------
/**
* Accepted by the <cap> parameter of IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_PRIMITIVE_RESTART = 0x8F9D;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PRIMITIVE_RESTART_INDEX = 0x8F9E;
void glPrimitiveRestartIndex(@GLuint int index);
// -------------------------------------------------------------------------
// ----------------------[ ARB_texture_buffer_object ]----------------------
// -------------------------------------------------------------------------
/**
* Accepted by the <target> parameter of BindBuffer, BufferData,
* BufferSubData, MapBuffer, MapBufferRange, BindTexture, UnmapBuffer,
* GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBuffer,
* and the parameter of GetBooleanv, GetDoublev, GetFloatv, and
* GetIntegerv:
*/
int GL_TEXTURE_BUFFER = 0x8C2A;
/**
* Accepted by the <pname> parameters of GetBooleanv, GetDoublev,
* GetFloatv, and GetIntegerv:
*/
int GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B;
int GL_TEXTURE_BINDING_BUFFER = 0x8C2C;
int GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D;
int GL_TEXTURE_BUFFER_FORMAT = 0x8C2E;
void glTexBuffer(@GLenum int target, @GLenum int internalformat, @GLuint int buffer);
// ---------------------------------------------------------------------
// ----------------------[ ARB_texture_rectangle ]----------------------
// ---------------------------------------------------------------------
/**
* Accepted by the <cap> parameter of Enable, Disable and IsEnabled;
* by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
* and GetDoublev; and by the <target> parameter of BindTexture,
* GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri,
* TexParameterfv and TexParameteriv:
* Accepted by the <target> parameter of GetTexImage,
* GetTexLevelParameteriv, GetTexLevelParameterfv, TexImage2D,
* CopyTexImage2D, TexSubImage2D and CopySubTexImage2D:
*/
int GL_TEXTURE_RECTANGLE = 0x84F5;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv and GetDoublev:
*/
int GL_TEXTURE_BINDING_RECTANGLE = 0x84F6;
/**
* Accepted by the <target> parameter of GetTexLevelParameteriv,
* GetTexLevelParameterfv, GetTexParameteriv and TexImage2D:
*/
int GL_PROXY_TEXTURE_RECTANGLE = 0x84F7;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv and GetFloatv:
*/
int GL_MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8;
/**
* Returned by <type> parameter of GetActiveUniform when the location
* <index> for program object <program> is of type sampler2DRect:
*/
int GL_SAMPLER_2D_RECT = 0x8B63;
/**
* Returned by <type> parameter of GetActiveUniform when the location
* <index> for program object <program> is of type sampler2DRectShadow:
*/
int GL_SAMPLER_2D_RECT_SHADOW = 0x8B64;
// -------------------------------------------------------------------------
// ----------------------[ ARB_uniform_buffer_object ]----------------------
// -------------------------------------------------------------------------
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_UNIFORM_BUFFER = 0x8A11;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleanv,
* GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_UNIFORM_BUFFER_BINDING = 0x8A28;
/** Accepted by the <pname> parameter of GetIntegeri_v: */
int GL_UNIFORM_BUFFER_START = 0x8A29;
int GL_UNIFORM_BUFFER_SIZE = 0x8A2A;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B;
int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C;
int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D;
int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E;
int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F;
int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30;
int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31;
int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32;
int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33;
int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35;
int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36;
/** Accepted by the <pname> parameter of GetActiveUniformsiv: */
int GL_UNIFORM_TYPE = 0x8A37;
int GL_UNIFORM_SIZE = 0x8A38;
int GL_UNIFORM_NAME_LENGTH = 0x8A39;
int GL_UNIFORM_BLOCK_INDEX = 0x8A3A;
int GL_UNIFORM_OFFSET = 0x8A3B;
int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C;
int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D;
int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E;
/** Accepted by the <pname> parameter of GetActiveUniformBlockiv: */
int GL_UNIFORM_BLOCK_BINDING = 0x8A3F;
int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40;
int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41;
int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42;
int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43;
int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44;
int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45;
int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46;
/** Returned by GetActiveUniformsiv and GetUniformBlockIndex */
int GL_INVALID_INDEX = 0xFFFFFFFF;
void glGetUniformIndices(@GLuint int program, @AutoSize("uniformIndices") @GLsizei int uniformCount,
@Const @NullTerminated("uniformIndices.remaining()") @GLchar @PointerArray("uniformCount") ByteBuffer uniformNames,
@OutParameter @GLuint IntBuffer uniformIndices);
@Alternate("glGetUniformIndices")
void glGetUniformIndices(@GLuint int program, @Constant("uniformNames.length") @GLsizei int uniformCount,
@Const @NullTerminated @PointerArray("uniformCount") CharSequence[] uniformNames,
@OutParameter @Check("uniformNames.length") @GLuint IntBuffer uniformIndices);
@StripPostfix("params")
void glGetActiveUniformsiv(@GLuint int program, @AutoSize("uniformIndices") @GLsizei int uniformCount,
@Const @GLuint IntBuffer uniformIndices,
@GLenum int pname,
@OutParameter @Check("uniformIndices.remaining()") @GLint IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveUniformsi} instead. */
@Alternate("glGetActiveUniformsiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL31", method = "glGetActiveUniformsi")
@Deprecated
void glGetActiveUniformsiv(@GLuint int program, @Constant("1") @GLsizei int uniformCount,
@Constant(value = "MemoryUtil.getAddress(params.put(1, uniformIndex), 1)", keepParam = true) int uniformIndex, // Reuse params buffer
@GLenum int pname,
@OutParameter @GLint IntBuffer params);
@Alternate("glGetActiveUniformsiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetActiveUniformsiv2(@GLuint int program, @Constant("1") @GLsizei int uniformCount,
@Constant(value = "MemoryUtil.getAddress(params.put(1, uniformIndex), 1)", keepParam = true) int uniformIndex, // Reuse params buffer
@GLenum int pname,
@OutParameter @GLint IntBuffer params);
void glGetActiveUniformName(@GLuint int program, @GLuint int uniformIndex, @AutoSize("uniformName") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformName);
@Alternate("glGetActiveUniformName")
@GLreturn(value = "uniformName", maxLength = "bufSize")
void glGetActiveUniformName2(@GLuint int program, @GLuint int uniformIndex, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(uniformName_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformName);
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @Const @NullTerminated @GLchar ByteBuffer uniformBlockName);
@Alternate("glGetUniformBlockIndex")
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @NullTerminated CharSequence uniformBlockName);
@StripPostfix("params")
void glGetActiveUniformBlockiv(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @Check(value = "16") @GLint IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveUniformBlocki} instead. */
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL31", method = "glGetActiveUniformBlocki")
@Deprecated
void glGetActiveUniformBlockiv2(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @GLint IntBuffer params);
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetActiveUniformBlockiv3(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
@OutParameter @GLint IntBuffer params);
void glGetActiveUniformBlockName(@GLuint int program, @GLuint int uniformBlockIndex, @AutoSize("uniformBlockName") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformBlockName);
@Alternate("glGetActiveUniformBlockName")
@GLreturn(value = "uniformBlockName", maxLength = "bufSize")
void glGetActiveUniformBlockName2(@GLuint int program, @GLuint int uniformBlockIndex, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(uniformBlockName_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer uniformBlockName);
void glUniformBlockBinding(@GLuint int program, @GLuint int uniformBlockIndex, @GLuint int uniformBlockBinding);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_objects.java 0000644 0001750 0001750 00000032233 12702226520 023252 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface ARB_shader_objects {
/** Accepted by the <pname> argument of GetHandleARB: */
int GL_PROGRAM_OBJECT_ARB = 0x8B40;
/** Accepted by the <pname> parameter of GetObjectParameter{fi}vARB: */
int GL_OBJECT_TYPE_ARB = 0x8B4E;
int GL_OBJECT_SUBTYPE_ARB = 0x8B4F;
int GL_OBJECT_DELETE_STATUS_ARB = 0x8B80;
int GL_OBJECT_COMPILE_STATUS_ARB = 0x8B81;
int GL_OBJECT_LINK_STATUS_ARB = 0x8B82;
int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8B83;
int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84;
int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85;
int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86;
int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87;
int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88;
/** Returned by the <params> parameter of GetObjectParameter{fi}vARB: */
int GL_SHADER_OBJECT_ARB = 0x8B48;
/** Returned by the <type> parameter of GetActiveUniformARB: */
int GL_FLOAT_VEC2_ARB = 0x8B50;
int GL_FLOAT_VEC3_ARB = 0x8B51;
int GL_FLOAT_VEC4_ARB = 0x8B52;
int GL_INT_VEC2_ARB = 0x8B53;
int GL_INT_VEC3_ARB = 0x8B54;
int GL_INT_VEC4_ARB = 0x8B55;
int GL_BOOL_ARB = 0x8B56;
int GL_BOOL_VEC2_ARB = 0x8B57;
int GL_BOOL_VEC3_ARB = 0x8B58;
int GL_BOOL_VEC4_ARB = 0x8B59;
int GL_FLOAT_MAT2_ARB = 0x8B5A;
int GL_FLOAT_MAT3_ARB = 0x8B5B;
int GL_FLOAT_MAT4_ARB = 0x8B5C;
int GL_SAMPLER_1D_ARB = 0x8B5D;
int GL_SAMPLER_2D_ARB = 0x8B5E;
int GL_SAMPLER_3D_ARB = 0x8B5F;
int GL_SAMPLER_CUBE_ARB = 0x8B60;
int GL_SAMPLER_1D_SHADOW_ARB = 0x8B61;
int GL_SAMPLER_2D_SHADOW_ARB = 0x8B62;
int GL_SAMPLER_2D_RECT_ARB = 0x8B63;
int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64;
void glDeleteObjectARB(@GLhandleARB int obj);
@GLhandleARB
int glGetHandleARB(@GLenum int pname);
void glDetachObjectARB(@GLhandleARB int containerObj, @GLhandleARB int attachedObj);
@GLhandleARB
int glCreateShaderObjectARB(@GLenum int shaderType);
/**
* The ARB_shader_objects extension allows multiple, optionally null-terminated, source strings to define a shader program.
*
* This method uses just a single string, that should NOT be null-terminated.
*/
void glShaderSourceARB(@GLhandleARB int shader, @Constant("1") @GLsizei int count,
@Indirect @Const @GLcharARB @Check ByteBuffer string,
@AutoSize("string") @Indirect @Const @GLint int length);
@Alternate("glShaderSourceARB")
void glShaderSourceARB2(@GLhandleARB int shader, @Constant("1") @GLsizei int count, CharSequence string, @Constant("string.length()") @Indirect @Const int length);
@Alternate(value = "glShaderSourceARB", nativeAlt = true)
void glShaderSourceARB3(@GLhandleARB int shader, @Constant("strings.length") @GLsizei int count,
@Const @PointerArray(value = "count", lengths = "length") CharSequence[] strings,
@Constant("APIUtil.getLengths(caps, strings)") @Const IntBuffer length);
void glCompileShaderARB(@GLhandleARB int shaderObj);
@GLhandleARB
int glCreateProgramObjectARB();
void glAttachObjectARB(@GLhandleARB int containerObj, @GLhandleARB int obj);
void glLinkProgramARB(@GLhandleARB int programObj);
void glUseProgramObjectARB(@GLhandleARB int programObj);
void glValidateProgramARB(@GLhandleARB int programObj);
void glUniform1fARB(int location, float v0);
void glUniform2fARB(int location, float v0, float v1);
void glUniform3fARB(int location, float v0, float v1, float v2);
void glUniform4fARB(int location, float v0, float v1, float v2, float v3);
void glUniform1iARB(int location, int v0);
void glUniform2iARB(int location, int v0, int v1);
void glUniform3iARB(int location, int v0, int v1, int v2);
void glUniform4iARB(int location, int v0, int v1, int v2, int v3);
@StripPostfix("values")
void glUniform1fvARB(int location, @AutoSize("values") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform2fvARB(int location, @AutoSize(value = "values", expression = " >> 1") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform3fvARB(int location, @AutoSize(value = "values", expression = " / 3") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform4fvARB(int location, @AutoSize(value = "values", expression = " >> 2") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform1ivARB(int location, @AutoSize(value = "values") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("values")
void glUniform2ivARB(int location, @AutoSize(value = "values", expression = " >> 1") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("values")
void glUniform3ivARB(int location, @AutoSize(value = "values", expression = " / 3") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("values")
void glUniform4ivARB(int location, @AutoSize(value = "values", expression = " >> 2") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("matrices")
void glUniformMatrix2fvARB(int location, @AutoSize(value = "matrices", expression = " >> 2") @GLsizei int count, boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3fvARB(int location, @AutoSize(value = "matrices", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4fvARB(int location, @AutoSize(value = "matrices", expression = " >> 4") @GLsizei int count, boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("params")
void glGetObjectParameterfvARB(@GLhandleARB int obj, @GLenum int pname, @OutParameter @Check FloatBuffer params);
@Alternate("glGetObjectParameterfvARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetObjectParameterfvARB2(@GLhandleARB int obj, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetObjectParameterivARB(@GLhandleARB int obj, @GLenum int pname, @OutParameter @Check IntBuffer params);
@Alternate("glGetObjectParameterivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetObjectParameterivARB2(@GLhandleARB int obj, @GLenum int pname, @OutParameter IntBuffer params);
void glGetInfoLogARB(@GLhandleARB int obj, @AutoSize("infoLog") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLcharARB ByteBuffer infoLog);
@Alternate("glGetInfoLogARB")
@GLreturn(value = "infoLog", maxLength = "maxLength")
void glGetInfoLogARB2(@GLhandleARB int obj, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLcharARB ByteBuffer infoLog);
void glGetAttachedObjectsARB(@GLhandleARB int containerObj, @AutoSize("obj") @GLsizei int maxCount,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer count,
@OutParameter @GLhandleARB IntBuffer obj);
/**
* Returns the location of the uniform with the specified name. The ByteBuffer should contain the uniform name as a null-terminated string.
*
* @param programObj
* @param name
*/
int glGetUniformLocationARB(@GLhandleARB int programObj, @NullTerminated @Const @GLcharARB ByteBuffer name);
@Alternate("glGetUniformLocationARB")
int glGetUniformLocationARB(@GLhandleARB int programObj, @NullTerminated CharSequence name);
void glGetActiveUniformARB(@GLhandleARB int programObj, @GLuint int index, @AutoSize("name") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLcharARB ByteBuffer name);
/** Overloads glGetActiveUniformARB. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveUniformARB")
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveUniformARB2(@GLhandleARB int programObj, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") IntBuffer type,
@OutParameter @GLcharARB ByteBuffer name);
/** Overloads glGetActiveUniformARB. This version returns only the uniform name. */
@Alternate(value = "glGetActiveUniformARB", javaAlt = true)
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveUniformARB(@GLhandleARB int programObj, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt(caps)), MemoryUtil.getAddress(APIUtil.getBufferInt(caps), 1)") IntBuffer length,
@OutParameter @GLcharARB ByteBuffer name);
/** Overloads glGetActiveUniformARB. This version returns only the uniform size. */
@Alternate(value = "glGetActiveUniformARB", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveUniformSizeARB(@GLhandleARB int programObj, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLcharARB @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
/** Overloads glGetActiveUniformARB. This version returns only the uniform type. */
@Alternate(value = "glGetActiveUniformARB", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveUniformTypeARB(@GLhandleARB int programObj, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLcharARB @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
@StripPostfix("params")
void glGetUniformfvARB(@GLhandleARB int programObj, int location, @OutParameter @Check FloatBuffer params);
@StripPostfix("params")
void glGetUniformivARB(@GLhandleARB int programObj, int location, @OutParameter @Check IntBuffer params);
void glGetShaderSourceARB(@GLhandleARB int obj, @AutoSize("source") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLcharARB ByteBuffer source);
@Alternate("glGetShaderSourceARB")
@GLreturn(value = "source", maxLength = "maxLength")
void glGetShaderSourceARB2(@GLhandleARB int obj, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(source_length)") IntBuffer length,
@OutParameter @GLcharARB ByteBuffer source);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_stencil_wrap.java 0000644 0001750 0001750 00000003243 12702226520 023020 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_stencil_wrap {
int GL_INCR_WRAP_EXT = 0x8507;
int GL_DECR_WRAP_EXT = 0x8508;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_group_vote.java 0000644 0001750 0001750 00000003150 12702226520 024006 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_group_vote {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_attrib_binding.java 0000644 0001750 0001750 00000006343 12702226520 024652 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_vertex_attrib_binding {
/** Accepted by the <pname> parameter of GetVertexAttrib*v: */
int GL_VERTEX_ATTRIB_BINDING = 0x82D4,
GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5;
/**
* Accepted by the <target> parameter of GetBooleani_v, GetIntegeri_v,
* GetFloati_v, GetDoublei_v, and GetInteger64i_v:
*/
int GL_VERTEX_BINDING_DIVISOR = 0x82D6,
GL_VERTEX_BINDING_OFFSET = 0x82D7,
GL_VERTEX_BINDING_STRIDE = 0x82D8;
/** Accepted by the <pname> parameter of GetIntegerv, ... */
int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9,
GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA;
@Reuse("GL43")
void glBindVertexBuffer(@GLuint int bindingindex, @GLuint int buffer, @GLintptr long offset,
@GLsizei int stride);
@Reuse("GL43")
void glVertexAttribFormat(@GLuint int attribindex, int size, @GLenum int type,
boolean normalized, @GLuint int relativeoffset);
@Reuse("GL43")
void glVertexAttribIFormat(@GLuint int attribindex, int size, @GLenum int type,
@GLuint int relativeoffset);
@Reuse("GL43")
void glVertexAttribLFormat(@GLuint int attribindex, int size, @GLenum int type,
@GLuint int relativeoffset);
@Reuse("GL43")
void glVertexAttribBinding(@GLuint int attribindex, @GLuint int bindingindex);
@Reuse("GL43")
void glVertexBindingDivisor(@GLuint int bindingindex, @GLuint int divisor);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_element_array.java 0000644 0001750 0001750 00000006375 12702226520 023367 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.IntBuffer;
public interface APPLE_element_array {
/**
* Accepted by the <array> parameter of EnableClientState and
* DisableClientState and the <value> parameter of IsEnabled:
*/
int GL_ELEMENT_ARRAY_APPLE = 0x8768;
/**
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_ELEMENT_ARRAY_TYPE_APPLE = 0x8769;
/** Accepted by the <pname> parameter of GetPointerv: */
int GL_ELEMENT_ARRAY_POINTER_APPLE = 0x876A;
void glElementPointerAPPLE(@AutoType("pointer") @GLenum int type,
@Check
@Const
@GLubyte
@GLushort
@GLuint Buffer pointer);
void glDrawElementArrayAPPLE(@GLenum int mode, int first, @GLsizei int count);
void glDrawRangeElementArrayAPPLE(@GLenum int mode, @GLuint int start, @GLuint int end, int first, @GLsizei int count);
void glMultiDrawElementArrayAPPLE(@GLenum int mode,
@Const IntBuffer first,
@Const @Check("first.remaining()") @GLsizei IntBuffer count,
@AutoSize("first") @GLsizei int primcount);
void glMultiDrawRangeElementArrayAPPLE(@GLenum int mode, @GLuint int start, @GLuint int end,
@Const IntBuffer first,
@Const @Check("first.remaining()") @GLsizei IntBuffer count,
@AutoSize("first") @GLsizei int primcount);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texture_shader.java 0000644 0001750 0001750 00000014477 12702226520 023252 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texture_shader {
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev, and by the <target> parameter of TexEnvf, TexEnvfv,
* TexEnvi, TexEnviv, GetTexEnvfv, and GetTexEnviv.
*/
int GL_TEXTURE_SHADER_NV = 0x86DE;
/**
* When the <target> parameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv,
* GetTexEnvfv, and GetTexEnviv is TEXTURE_SHADER_NV, then the value
* of <pname> may be:
*/
int GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9;
int GL_SHADER_OPERATION_NV = 0x86DF;
int GL_OFFSET_TEXTURE_SCALE_NV = 0x86E2;
int GL_OFFSET_TEXTURE_BIAS_NV = 0x86E3;
int GL_OFFSET_TEXTURE_2D_SCALE_NV = GL_OFFSET_TEXTURE_SCALE_NV;
int GL_OFFSET_TEXTURE_2D_BIAS_NV = GL_OFFSET_TEXTURE_BIAS_NV;
int GL_PREVIOUS_TEXTURE_INPUT_NV = 0x86E4;
/**
* When the <target> parameter of TexEnvfv, TexEnviv, GetTexEnvfv, and
* GetTexEnviv is TEXTURE_SHADER_NV, then the value of <pname> may be:
*/
int GL_CULL_MODES_NV = 0x86E0;
int GL_OFFSET_TEXTURE_MATRIX_NV = 0x86E1;
int GL_OFFSET_TEXTURE_2D_MATRIX_NV = GL_OFFSET_TEXTURE_MATRIX_NV;
int GL_CONST_EYE_NV = 0x86E5;
/**
* When the <target> parameter GetTexEnvfv and GetTexEnviv is
* TEXTURE_SHADER_NV, then the value of <pname> may be:
*/
int GL_SHADER_CONSISTENT_NV = 0x86DD;
/**
* When the <target> and <pname> parameters of TexEnvf, TexEnvfv,
* TexEnvi, and TexEnviv are TEXTURE_SHADER_NV and SHADER_OPERATION_NV
* respectively, then the value of <param> or the value pointed to by
* <params> may be:
*/
int GL_PASS_THROUGH_NV = 0x86E6;
int GL_CULL_FRAGMENT_NV = 0x86E7;
int GL_OFFSET_TEXTURE_2D_NV = 0x86E8;
int GL_OFFSET_TEXTURE_RECTANGLE_NV = 0x864C;
int GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D;
int GL_DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9;
int GL_DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA;
int GL_DOT_PRODUCT_NV = 0x86EC;
int GL_DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED;
int GL_DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE;
int GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E;
int GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0;
int GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1;
int GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2;
int GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3;
/**
* Accepted by the <format> parameter of GetTexImage, TexImage1D,
* TexImage2D, TexSubImage1D, and TexSubImage2D.
*/
int GL_HILO_NV = 0x86F4;
int GL_DSDT_NV = 0x86F5;
int GL_DSDT_MAG_NV = 0x86F6;
int GL_DSDT_MAG_VIB_NV = 0x86F7;
/**
* Accepted by the <type> parameter of GetTexImage, TexImage1D,
* TexImage2D, TexSubImage1D, and TexSubImage2D.
*/
int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA;
int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB;
/**
* Accepted by the <internalformat> parameter of CopyTexImage1D,
* CopyTexImage2D, TexImage1D, and TexImage2D.
*/
int GL_SIGNED_RGBA_NV = 0x86FB;
int GL_SIGNED_RGBA8_NV = 0x86FC;
int GL_SIGNED_RGB_NV = 0x86FE;
int GL_SIGNED_RGB8_NV = 0x86FF;
int GL_SIGNED_LUMINANCE_NV = 0x8701;
int GL_SIGNED_LUMINANCE8_NV = 0x8702;
int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703;
int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704;
int GL_SIGNED_ALPHA_NV = 0x8705;
int GL_SIGNED_ALPHA8_NV = 0x8706;
int GL_SIGNED_INTENSITY_NV = 0x8707;
int GL_SIGNED_INTENSITY8_NV = 0x8708;
int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C;
int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D;
/**
* Accepted by the <internalformat> parameter of TexImage1D and
* TexImage2D.
*/
int GL_HILO16_NV = 0x86F8;
int GL_SIGNED_HILO_NV = 0x86F9;
int GL_SIGNED_HILO16_NV = 0x86FA;
int GL_DSDT8_NV = 0x8709;
int GL_DSDT8_MAG8_NV = 0x870A;
int GL_DSDT_MAG_INTENSITY_NV = 0x86DC;
int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870B;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, PixelTransferf, and PixelTransferi.
*/
int GL_HI_SCALE_NV = 0x870E;
int GL_LO_SCALE_NV = 0x870F;
int GL_DS_SCALE_NV = 0x8710;
int GL_DT_SCALE_NV = 0x8711;
int GL_MAGNITUDE_SCALE_NV = 0x8712;
int GL_VIBRANCE_SCALE_NV = 0x8713;
int GL_HI_BIAS_NV = 0x8714;
int GL_LO_BIAS_NV = 0x8715;
int GL_DS_BIAS_NV = 0x8716;
int GL_DT_BIAS_NV = 0x8717;
int GL_MAGNITUDE_BIAS_NV = 0x8718;
int GL_VIBRANCE_BIAS_NV = 0x8719;
/**
* Accepted by the <pname> parameter of TexParameteriv, TexParameterfv,
* GetTexParameterfv and GetTexParameteriv.
*/
int GL_TEXTURE_BORDER_VALUES_NV = 0x871A;
/**
* Accepted by the <pname> parameter of GetTexLevelParameterfv and
* GetTexLevelParameteriv.
*/
int GL_TEXTURE_HI_SIZE_NV = 0x871B;
int GL_TEXTURE_LO_SIZE_NV = 0x871C;
int GL_TEXTURE_DS_SIZE_NV = 0x871D;
int GL_TEXTURE_DT_SIZE_NV = 0x871E;
int GL_TEXTURE_MAG_SIZE_NV = 0x871F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_vertex_array_object.java 0000644 0001750 0001750 00000010142 12702226520 024340 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface ATI_vertex_array_object {
int GL_STATIC_ATI = 0x8760;
int GL_DYNAMIC_ATI = 0x8761;
int GL_PRESERVE_ATI = 0x8762;
int GL_DISCARD_ATI = 0x8763;
int GL_OBJECT_BUFFER_SIZE_ATI = 0x8764;
int GL_OBJECT_BUFFER_USAGE_ATI = 0x8765;
int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766;
int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767;
@GenerateAutos
@GLuint
int glNewObjectBufferATI(@AutoSize("pPointer") @GLsizei int size,
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pPointer, @GLenum int usage);
boolean glIsObjectBufferATI(@GLuint int buffer);
void glUpdateObjectBufferATI(@GLuint int buffer, @GLuint int offset, @AutoSize("pPointer") @GLsizei int size,
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pPointer, @GLenum int preserve);
@StripPostfix("params")
void glGetObjectBufferfvATI(@GLuint int buffer, @GLenum int pname, @OutParameter @Check FloatBuffer params);
@StripPostfix("params")
void glGetObjectBufferivATI(@GLuint int buffer, @GLenum int pname, @OutParameter @Check IntBuffer params);
@Alternate("glGetObjectBufferivATI")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetObjectBufferivATI2(@GLuint int buffer, @GLenum int pname, @OutParameter IntBuffer params);
void glFreeObjectBufferATI(@GLuint int buffer);
void glArrayObjectATI(@GLenum int array, int size, @GLenum int type, @GLsizei int stride, @GLuint int buffer, @GLuint int offset);
@StripPostfix("params")
void glGetArrayObjectfvATI(@GLenum int array, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetArrayObjectivATI(@GLenum int array, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
void glVariantArrayObjectATI(@GLuint int id, @GLenum int type, @GLsizei int stride, @GLuint int buffer, @GLuint int offset);
@StripPostfix("params")
void glGetVariantArrayObjectfvATI(@GLuint int id, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetVariantArrayObjectivATI(@GLuint int id, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_draw_instanced.java 0000644 0001750 0001750 00000004317 12702226520 023262 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface ARB_draw_instanced {
void glDrawArraysInstancedARB(@GLenum int mode, int first, @GLsizei int count, @GLsizei int primcount);
void glDrawElementsInstancedARB(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, @GLsizei int primcount);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_shader_buffer_load.java 0000644 0001750 0001750 00000010332 12702226520 024004 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.LongBuffer;
public interface NV_shader_buffer_load {
/**
* Accepted by the <pname> parameter of GetBufferParameterui64vNV,
* GetNamedBufferParameterui64vNV:
*/
int GL_BUFFER_GPU_ADDRESS_NV = 0x8F1D;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_GPU_ADDRESS_NV = 0x8F34;
/** Accepted by the <value> parameter of GetIntegerui64vNV: */
int GL_MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35;
void glMakeBufferResidentNV(@GLenum int target, @GLenum int access);
void glMakeBufferNonResidentNV(@GLenum int target);
boolean glIsBufferResidentNV(@GLenum int target);
void glMakeNamedBufferResidentNV(@GLuint int buffer, @GLenum int access);
void glMakeNamedBufferNonResidentNV(@GLuint int buffer);
boolean glIsNamedBufferResidentNV(@GLuint int buffer);
@StripPostfix("params")
void glGetBufferParameterui64vNV(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
@Alternate("glGetBufferParameterui64vNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetBufferParameterui64vNV2(@GLenum int target, @GLenum int pname, @OutParameter @GLuint64EXT LongBuffer params);
@StripPostfix("params")
void glGetNamedBufferParameterui64vNV(@GLuint int buffer, @GLenum int pname, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
@Alternate("glGetNamedBufferParameterui64vNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetNamedBufferParameterui64vNV2(@GLuint int buffer, @GLenum int pname, @OutParameter @GLuint64EXT LongBuffer params);
@StripPostfix("result")
void glGetIntegerui64vNV(@GLenum int value, @OutParameter @Check("1") @GLuint64EXT LongBuffer result);
@Alternate("glGetIntegerui64vNV")
@GLreturn("result")
@StripPostfix(value = "result", hasPostfix = false)
void glGetIntegerui64vNV2(@GLenum int value, @OutParameter @GLuint64EXT LongBuffer result);
void glUniformui64NV(int location, @GLuint64EXT long value);
@StripPostfix("value")
void glUniformui64vNV(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
@Reuse("NVGpuShader5")
@StripPostfix("params")
void glGetUniformui64vNV(@GLuint int program, int location, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
void glProgramUniformui64NV(@GLuint int program, int location, @GLuint64EXT long value);
@StripPostfix("value")
void glProgramUniformui64vNV(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @Const @GLuint64EXT LongBuffer value);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_object_purgeable.java 0000644 0001750 0001750 00000006126 12702226520 024026 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
public interface APPLE_object_purgeable {
/**
* Accepted by the <option> parameter of ObjectPurgeable, and returned
* by ObjectPurgeable:
*/
int GL_RELEASED_APPLE = 0x8A19;
int GL_VOLATILE_APPLE = 0x8A1A;
/**
* Accepted by the <option> parameters of ObjectUnpurgeable, and
* returned by ObjectUnpurgeable:
*/
int GL_RETAINED_APPLE = 0x8A1B;
int GL_UNDEFINED_APPLE = 0x8A1C;
/** Accepted by the <pname> parameters of GetObjectParameteriv: */
int GL_PURGEABLE_APPLE = 0x8A1D;
/**
* Accepted by the <objectType> parameters of ObjectPurgeableAPPLE,
* ObjectUnpurgeableAPPLE and GetObjectParameteriv:
*/
int GL_BUFFER_OBJECT_APPLE = 0x85B3;
@GLenum
int glObjectPurgeableAPPLE(@GLenum int objectType, @GLuint int name, @GLenum int option);
@GLenum
int glObjectUnpurgeableAPPLE(@GLenum int objectType, @GLuint int name, @GLenum int option);
@StripPostfix("params")
void glGetObjectParameterivAPPLE(@GLenum int objectType, @GLuint int name, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetObjectParameterivAPPLE")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetObjectParameterivAPPLE2(@GLenum int objectType, @GLuint int name, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_env_dot3.java 0000644 0001750 0001750 00000003246 12702226520 023576 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_env_dot3 {
int GL_DOT3_RGB_ARB = 0x86AE;
int GL_DOT3_RGBA_ARB = 0x86AF;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GREMEDY_frame_terminator.java 0000644 0001750 0001750 00000003216 12702226520 024320 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface GREMEDY_frame_terminator {
void glFrameTerminatorGREMEDY();
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_texgen_reflection.java 0000644 0001750 0001750 00000003253 12702226520 023716 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_texgen_reflection {
int GL_NORMAL_MAP_NV = 0x8511;
int GL_REFLECTION_MAP_NV = 0x8512;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_packed_depth_stencil.java 0000644 0001750 0001750 00000003264 12702226520 024350 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_packed_depth_stencil {
int GL_DEPTH_STENCIL_NV = 0x84F9;
int GL_UNSIGNED_INT_24_8_NV = 0x84FA;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_storage_multisample.java 0000644 0001750 0001750 00000007111 12702226520 026130 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Dependent;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
@Dependent
public interface ARB_texture_storage_multisample {
@Reuse("GL43")
void glTexStorage2DMultisample(@GLenum int target,
@GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width,
@GLsizei int height,
boolean fixedsamplelocations);
@Reuse("GL43")
void glTexStorage3DMultisample(@GLenum int target,
@GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
boolean fixedsamplelocations);
@Dependent("GL_EXT_direct_state_access")
void glTextureStorage2DMultisampleEXT(@GLuint int texture,
@GLenum int target,
@GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width,
@GLsizei int height,
boolean fixedsamplelocations);
@Dependent("GL_EXT_direct_state_access")
void glTextureStorage3DMultisampleEXT(@GLuint int texture,
@GLenum int target,
@GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
boolean fixedsamplelocations);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shadow.java 0000644 0001750 0001750 00000003336 12702226520 021562 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shadow {
int GL_TEXTURE_COMPARE_MODE_ARB = 0x884C;
int GL_TEXTURE_COMPARE_FUNC_ARB = 0x884D;
int GL_COMPARE_R_TO_TEXTURE_ARB = 0x884E;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_transform_feedback_overflow_query.java 0000644 0001750 0001750 00000003603 12702226520 027261 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_transform_feedback_overflow_query {
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery,
* BeginQueryIndexed, EndQueryIndexed, GetQueryiv, and GetQueryIndexediv:
*/
int GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB = 0x82EC,
GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB = 0x82ED;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_transform_feedback.java 0000644 0001750 0001750 00000021344 12702226520 024032 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface NV_transform_feedback {
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and
* BindBufferBaseNV:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E;
/**
* Accepted by the <param> parameter of GetIntegerIndexedvEXT and
* GetBooleanIndexedvEXT:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84;
int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85;
int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86;
/**
* Accepted by the <param> parameter of GetIntegerIndexedvEXT and
* GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv,
* GetDoublev, GetIntegerv, and GetFloatv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F;
/**
* Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and
* TransformFeedbackVaryingsNV:
*/
int GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C;
int GL_SEPARATE_ATTRIBS_NV = 0x8C8D;
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
* GetQueryiv:
*/
int GL_PRIMITIVES_GENERATED_NV = 0x8C87;
int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_RASTERIZER_DISCARD_NV = 0x8C89;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B;
int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80;
int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_ACTIVE_VARYINGS_NV = 0x8C81;
int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82;
int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* GetFloatv, and GetProgramiv:
*/
int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F;
/** Accepted by the <attribs> parameter of TransformFeedbackAttribsNV: */
int GL_BACK_PRIMARY_COLOR_NV = 0x8C77;
int GL_BACK_SECONDARY_COLOR_NV = 0x8C78;
int GL_TEXTURE_COORD_NV = 0x8C79;
int GL_CLIP_DISTANCE_NV = 0x8C7A;
int GL_VERTEX_ID_NV = 0x8C7B;
int GL_PRIMITIVE_ID_NV = 0x8C7C;
int GL_GENERIC_ATTRIB_NV = 0x8C7D;
int GL_LAYER_NV = 0x8DAA;
void glBindBufferRangeNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
void glBindBufferOffsetNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset);
void glBindBufferBaseNV(@GLenum int target, @GLuint int index, @GLuint int buffer);
void glTransformFeedbackAttribsNV(@Constant("attribs.remaining() / 3") @GLsizei int count, @Check("3") @Const IntBuffer attribs, @GLenum int bufferMode);
void glTransformFeedbackVaryingsNV(@GLuint int program, @AutoSize("locations") @GLsizei int count, @Const IntBuffer locations, @GLenum int bufferMode);
void glBeginTransformFeedbackNV(@GLenum int primitiveMode);
void glEndTransformFeedbackNV();
int glGetVaryingLocationNV(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetVaryingLocationNV")
int glGetVaryingLocationNV(@GLuint int program, @NullTerminated CharSequence name);
void glGetActiveVaryingNV(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufSize,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveVaryingNV. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveVaryingNV")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetActiveVaryingNV2(@GLuint int program, @GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveVaryingNV. This version returns only the varying name. */
@Alternate(value = "glGetActiveVaryingNV", javaAlt = true)
@GLreturn(value = "name", maxLength = "bufSize")
void glGetActiveVaryingNV(@GLuint int program, @GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt(caps)), MemoryUtil.getAddress(APIUtil.getBufferInt(caps), 1)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveVaryingNV. This version returns only the varying size. */
@Alternate(value = "glGetActiveVaryingNV", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveVaryingSizeNV(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
/** Overloads glGetActiveVaryingNV. This version returns only the varying type. */
@Alternate(value = "glGetActiveVaryingNV", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveVaryingTypeNV(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
void glActiveVaryingNV(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glActiveVaryingNV")
void glActiveVaryingNV(@GLuint int program, @NullTerminated CharSequence name);
void glGetTransformFeedbackVaryingNV(@GLuint int program, @GLuint int index, @OutParameter @Check("1") IntBuffer location);
@Alternate("glGetTransformFeedbackVaryingNV")
@GLreturn("location")
void glGetTransformFeedbackVaryingNV2(@GLuint int program, @GLuint int index, @OutParameter IntBuffer location);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL20.java 0000644 0001750 0001750 00000064531 12702226520 020261 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface GL20 {
// ------------------------------------------------------------------
// -------------------[ ARB_shading_language_100 ]-------------------
// ------------------------------------------------------------------
/** Accepted by the <name> parameter of GetString: */
int GL_SHADING_LANGUAGE_VERSION = 0x8B8C;
// ------------------------------------------------------------------
// ----------------------[ ARB_shader_objects ]----------------------
// ------------------------------------------------------------------
/** Accepted by the <pname> argument of GetInteger: */
int GL_CURRENT_PROGRAM = 0x8B8D;
/** Accepted by the <pname> parameter of GetObjectParameter{fi}vARB: */
int GL_SHADER_TYPE = 0x8B4F;
int GL_DELETE_STATUS = 0x8B80;
int GL_COMPILE_STATUS = 0x8B81;
int GL_LINK_STATUS = 0x8B82;
int GL_VALIDATE_STATUS = 0x8B83;
int GL_INFO_LOG_LENGTH = 0x8B84;
int GL_ATTACHED_SHADERS = 0x8B85;
int GL_ACTIVE_UNIFORMS = 0x8B86;
int GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87;
int GL_ACTIVE_ATTRIBUTES = 0x8B89;
int GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A;
int GL_SHADER_SOURCE_LENGTH = 0x8B88;
/** Returned by the <params> parameter of GetObjectParameter{fi}vARB: */
int GL_SHADER_OBJECT = 0x8B48;
/** Returned by the <type> parameter of GetActiveUniformARB: */
int GL_FLOAT_VEC2 = 0x8B50;
int GL_FLOAT_VEC3 = 0x8B51;
int GL_FLOAT_VEC4 = 0x8B52;
int GL_INT_VEC2 = 0x8B53;
int GL_INT_VEC3 = 0x8B54;
int GL_INT_VEC4 = 0x8B55;
int GL_BOOL = 0x8B56;
int GL_BOOL_VEC2 = 0x8B57;
int GL_BOOL_VEC3 = 0x8B58;
int GL_BOOL_VEC4 = 0x8B59;
int GL_FLOAT_MAT2 = 0x8B5A;
int GL_FLOAT_MAT3 = 0x8B5B;
int GL_FLOAT_MAT4 = 0x8B5C;
int GL_SAMPLER_1D = 0x8B5D;
int GL_SAMPLER_2D = 0x8B5E;
int GL_SAMPLER_3D = 0x8B5F;
int GL_SAMPLER_CUBE = 0x8B60;
int GL_SAMPLER_1D_SHADOW = 0x8B61;
int GL_SAMPLER_2D_SHADOW = 0x8B62;
/**
* The ARB_shader_objects extension allows multiple, optionally null-terminated, source strings to define a shader program.
*
* This method uses just a single string, that should NOT be null-terminated.
*
* @param shader
* @param string
*/
void glShaderSource(@GLuint int shader, @Constant("1") @GLsizei int count,
@Indirect @Const @GLchar @Check ByteBuffer string,
@AutoSize("string") @Indirect @Const @GLint int length);
@Alternate("glShaderSource")
void glShaderSource2(@GLuint int shader, @Constant("1") @GLsizei int count, CharSequence string, @Constant("string.length()") @Indirect @Const int length);
@Alternate(value = "glShaderSource", nativeAlt = true)
void glShaderSource3(@GLuint int shader, @Constant("strings.length") @GLsizei int count,
@Const @PointerArray(value = "count", lengths = "length") CharSequence[] strings,
@Constant("APIUtil.getLengths(caps, strings)") @Const IntBuffer length);
int glCreateShader(@GLuint int type);
boolean glIsShader(@GLuint int shader);
void glCompileShader(@GLuint int shader);
void glDeleteShader(@GLuint int shader);
int glCreateProgram();
boolean glIsProgram(int program);
void glAttachShader(@GLuint int program, @GLuint int shader);
void glDetachShader(@GLuint int program, @GLuint int shader);
void glLinkProgram(@GLuint int program);
void glUseProgram(@GLuint int program);
void glValidateProgram(@GLuint int program);
void glDeleteProgram(@GLuint int program);
void glUniform1f(int location, float v0);
void glUniform2f(int location, float v0, float v1);
void glUniform3f(int location, float v0, float v1, float v2);
void glUniform4f(int location, float v0, float v1, float v2, float v3);
void glUniform1i(int location, int v0);
void glUniform2i(int location, int v0, int v1);
void glUniform3i(int location, int v0, int v1, int v2);
void glUniform4i(int location, int v0, int v1, int v2, int v3);
@StripPostfix("values")
void glUniform1fv(int location, @AutoSize("values") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform2fv(int location, @AutoSize(value = "values", expression = " >> 1") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform3fv(int location, @AutoSize(value = "values", expression = " / 3") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform4fv(int location, @AutoSize(value = "values", expression = " >> 2") @GLsizei int count, @Const FloatBuffer values);
@StripPostfix("values")
void glUniform1iv(int location, @AutoSize("values") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("values")
void glUniform2iv(int location, @AutoSize(value = "values", expression = " >> 1") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("values")
void glUniform3iv(int location, @AutoSize(value = "values", expression = " / 3") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("values")
void glUniform4iv(int location, @AutoSize(value = "values", expression = " >> 2") @GLsizei int count, @Const IntBuffer values);
@StripPostfix("matrices")
void glUniformMatrix2fv(int location, @AutoSize(value = "matrices", expression = " >> 2") @GLsizei int count,
boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3fv(int location, @AutoSize(value = "matrices", expression = " / (3 * 3)") @GLsizei int count,
boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4fv(int location, @AutoSize(value = "matrices", expression = " >> 4") @GLsizei int count,
boolean transpose, @Const FloatBuffer matrices);
@StripPostfix("params")
void glGetShaderiv(@GLuint int shader, @GLenum int pname, @OutParameter @Check IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetShaderi} instead. */
@Alternate("glGetShaderiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL20", method = "glGetShaderi")
@Deprecated
void glGetShaderiv2(@GLuint int shader, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetShaderiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetShaderiv3(@GLuint int shader, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetProgramiv(@GLuint int program, @GLenum int pname, @OutParameter @Check IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgrami} instead. */
@Alternate("glGetProgramiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL20", method = "glGetProgrami")
@Deprecated
void glGetProgramiv2(@GLuint int program, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetProgramiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramiv3(@GLuint int program, @GLenum int pname, @OutParameter IntBuffer params);
void glGetShaderInfoLog(@GLuint int shader, @AutoSize("infoLog") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Alternate("glGetShaderInfoLog")
@GLreturn(value = "infoLog", maxLength = "maxLength")
void glGetShaderInfoLog2(@GLuint int shader, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
void glGetProgramInfoLog(@GLuint int program, @AutoSize("infoLog") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
@Alternate("glGetProgramInfoLog")
@GLreturn(value = "infoLog", maxLength = "maxLength")
void glGetProgramInfoLog2(@GLuint int program, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(infoLog_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer infoLog);
void glGetAttachedShaders(@GLuint int program, @AutoSize("shaders") @GLsizei int maxCount,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer count,
@OutParameter @GLuint IntBuffer shaders);
/**
* Returns the location of the uniform with the specified name. The ByteBuffer should contain the uniform name as a
* null-terminated string.
*
* @param program
* @param name
*/
int glGetUniformLocation(@GLuint int program, @NullTerminated @Check("1") @Const @GLchar ByteBuffer name);
@Alternate("glGetUniformLocation")
int glGetUniformLocation(@GLuint int program, @NullTerminated CharSequence name);
void glGetActiveUniform(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLsizei @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveUniform. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveUniform")
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveUniform2(@GLuint int program, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveUniformARB. This version returns only the uniform name. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveUniform(@GLuint int program, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt(caps)), MemoryUtil.getAddress(APIUtil.getBufferInt(caps), 1)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveUniform. This version returns only the uniform size. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveUniformSize(@GLuint int program, @GLuint int index, @Constant("1") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
/** Overloads glGetActiveUniform. This version returns only the uniform type. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveUniformType(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
@StripPostfix("params")
void glGetUniformfv(@GLuint int program, int location, @OutParameter @Check FloatBuffer params);
@StripPostfix("params")
void glGetUniformiv(@GLuint int program, int location, @OutParameter @Check IntBuffer params);
void glGetShaderSource(@GLuint int shader, @AutoSize("source") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @GLchar ByteBuffer source);
@Alternate("glGetShaderSource")
@GLreturn(value = "source", maxLength = "maxLength")
void glGetShaderSource2(@GLuint int shader, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(source_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer source);
// ------------------------------------------------------------------
// ----------------------[ ARB_vertex_program ]----------------------
// ------------------------------------------------------------------
@NoErrorCheck
void glVertexAttrib1s(@GLuint int index, short x);
@NoErrorCheck
void glVertexAttrib1f(@GLuint int index, float x);
@NoErrorCheck
void glVertexAttrib1d(@GLuint int index, double x);
@NoErrorCheck
void glVertexAttrib2s(@GLuint int index, short x, short y);
@NoErrorCheck
void glVertexAttrib2f(@GLuint int index, float x, float y);
@NoErrorCheck
void glVertexAttrib2d(@GLuint int index, double x, double y);
@NoErrorCheck
void glVertexAttrib3s(@GLuint int index, short x, short y, short z);
@NoErrorCheck
void glVertexAttrib3f(@GLuint int index, float x, float y, float z);
@NoErrorCheck
void glVertexAttrib3d(@GLuint int index, double x, double y, double z);
@NoErrorCheck
void glVertexAttrib4s(@GLuint int index, short x, short y, short z, short w);
@NoErrorCheck
void glVertexAttrib4f(@GLuint int index, float x, float y, float z, float w);
@NoErrorCheck
void glVertexAttrib4d(@GLuint int index, double x, double y, double z, double w);
@NoErrorCheck
void glVertexAttrib4Nub(@GLuint int index, @GLubyte byte x, @GLubyte byte y, @GLubyte byte z, @GLubyte byte w);
void glVertexAttribPointer(@GLuint int index, int size, @AutoType("buffer") @GLenum int type, boolean normalized, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLubyte
@GLbyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer buffer);
@Alternate("glVertexAttribPointer")
void glVertexAttribPointer(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const ByteBuffer buffer);
void glEnableVertexAttribArray(@GLuint int index);
void glDisableVertexAttribArray(@GLuint int index);
@StripPostfix("params")
void glGetVertexAttribfv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetVertexAttribdv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
@StripPostfix("params")
void glGetVertexAttribiv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("pointer")
void glGetVertexAttribPointerv(@GLuint int index, @GLenum int pname, @Result @GLvoid ByteBuffer pointer);
@Alternate(value = "glGetVertexAttribPointerv", nativeAlt = true)
@StripPostfix("pointer")
void glGetVertexAttribPointerv2(@GLuint int index, @GLenum int pname, @OutParameter @Check("PointerBuffer.getPointerSize()") @GLvoid ByteBuffer pointer);
// -----------------------------------------------------------------
// ----------------------[ ARB_vertex_shader ]----------------------
// -----------------------------------------------------------------
/**
* Accepted by the <shaderType> argument of CreateShader and
* returned by the <params> parameter of GetShader{if}v:
*/
int GL_VERTEX_SHADER = 0x8B31;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A;
int GL_MAX_VARYING_FLOATS = 0x8B4B;
int GL_MAX_VERTEX_ATTRIBS = 0x8869;
int GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872;
int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
int GL_MAX_TEXTURE_COORDS = 0x8871;
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and
* by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_VERTEX_PROGRAM_POINT_SIZE = 0x8642;
int GL_VERTEX_PROGRAM_TWO_SIDE = 0x8643;
/** Accepted by the <pname> parameter of GetVertexAttrib{dfi}vARB: */
int GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
int GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
int GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
int GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
int GL_CURRENT_VERTEX_ATTRIB = 0x8626;
/** Accepted by the <pname> parameter of GetVertexAttribPointervARB: */
int GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
void glBindAttribLocation(@GLuint int program, @GLuint int index, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glBindAttribLocation")
void glBindAttribLocation(@GLuint int program, @GLuint int index, @NullTerminated CharSequence name);
void glGetActiveAttrib(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveAttrib")
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveAttrib2(@GLuint int program, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") IntBuffer type,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns only the attrib name. */
@Alternate(value = "glGetActiveAttrib", javaAlt = true)
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveAttrib(@GLuint int program, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt(caps)), MemoryUtil.getAddress(APIUtil.getBufferInt(caps), 1)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
/** Overloads glGetActiveAttribARB. This version returns only the attrib size. */
@Alternate(value = "glGetActiveAttrib", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveAttribSize(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
/** Overloads glGetActiveAttrib. This version returns only the attrib type. */
@Alternate(value = "glGetActiveAttrib", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveAttribType(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
int glGetAttribLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetAttribLocation")
int glGetAttribLocation(@GLuint int program, @NullTerminated CharSequence name);
// -------------------------------------------------------------------
// ----------------------[ ARB_fragment_shader ]----------------------
// -------------------------------------------------------------------
/**
* Accepted by the <shaderType> argument of CreateShader and
* returned by the <params> parameter of GetShader{fi}vARB:
*/
int GL_FRAGMENT_SHADER = 0x8B30;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49;
/**
* Accepted by the <target> parameter of Hint and the <pname> parameter of
* GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B;
// ----------------------------------------------------------------
// ----------------------[ ARB_draw_buffers ]----------------------
// ----------------------------------------------------------------
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_DRAW_BUFFERS = 0x8824;
int GL_DRAW_BUFFER0 = 0x8825;
int GL_DRAW_BUFFER1 = 0x8826;
int GL_DRAW_BUFFER2 = 0x8827;
int GL_DRAW_BUFFER3 = 0x8828;
int GL_DRAW_BUFFER4 = 0x8829;
int GL_DRAW_BUFFER5 = 0x882A;
int GL_DRAW_BUFFER6 = 0x882B;
int GL_DRAW_BUFFER7 = 0x882C;
int GL_DRAW_BUFFER8 = 0x882D;
int GL_DRAW_BUFFER9 = 0x882E;
int GL_DRAW_BUFFER10 = 0x882F;
int GL_DRAW_BUFFER11 = 0x8830;
int GL_DRAW_BUFFER12 = 0x8831;
int GL_DRAW_BUFFER13 = 0x8832;
int GL_DRAW_BUFFER14 = 0x8833;
int GL_DRAW_BUFFER15 = 0x8834;
void glDrawBuffers(@AutoSize("buffers") @GLsizei int size, @Const @GLenum IntBuffer buffers);
@Alternate("glDrawBuffers")
void glDrawBuffers(@Constant("1") @GLsizei int size, @Constant(value = "APIUtil.getInt(caps, buffer)", keepParam = true) int buffer);
// ----------------------------------------------------------------
// ----------------------[ ARB_point_sprite ]----------------------
// ----------------------------------------------------------------
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the <target> parameter of TexEnvi, TexEnviv,
* TexEnvf, TexEnvfv, GetTexEnviv, and GetTexEnvfv:
*/
int GL_POINT_SPRITE = 0x8861;
/**
* When the <target> parameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv,
* GetTexEnvfv, or GetTexEnviv is POINT_SPRITE, then the value of
* <pname> may be:
*/
int GL_COORD_REPLACE = 0x8862;
/**
* Accepted by the <pname> parameter of PointParameter{if}vARB, and the
* <pname> of Get:
*/
int GL_POINT_SPRITE_COORD_ORIGIN = 0x8CA0;
/** Accepted by the <param> parameter of PointParameter{if}vARB: */
int GL_LOWER_LEFT = 0x8CA1;
int GL_UPPER_LEFT = 0x8CA2;
// -----------------------------------------------------------------
// ----------------------[ Two-Sided Stencil ]----------------------
// -----------------------------------------------------------------
int GL_STENCIL_BACK_FUNC = 0x8800;
int GL_STENCIL_BACK_FAIL = 0x8801;
int GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
int GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
int GL_STENCIL_BACK_REF = 0x8CA3;
int GL_STENCIL_BACK_VALUE_MASK = 0x8CA4;
int GL_STENCIL_BACK_WRITEMASK = 0x8CA5;
void glStencilOpSeparate(@GLenum int face, @GLenum int sfail, @GLenum int dpfail, @GLenum int dppass);
void glStencilFuncSeparate(@GLenum int face, @GLenum int func, int ref, @GLuint int mask);
void glStencilMaskSeparate(@GLenum int face, @GLuint int mask);
// -------------------------------------------------------------
// ----------------------[ EXT_blend_equation_separate ]----------------------
// -------------------------------------------------------------
int GL_BLEND_EQUATION_RGB = 0x8009;
int GL_BLEND_EQUATION_ALPHA = 0x883D;
void glBlendEquationSeparate(@GLenum int modeRGB, @GLenum int modeAlpha);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_fragment_program_shadow.java 0000644 0001750 0001750 00000003157 12702226520 025175 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_fragment_program_shadow {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_texture_range.java 0000644 0001750 0001750 00000005370 12702226520 023406 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLvoid;
import java.nio.Buffer;
import java.nio.ByteBuffer;
public interface APPLE_texture_range {
/**
* Accepted by the parameters of TexParameteri, TexParameterf,
* TexParameteriv, TexParameterfv, GetTexParameteriv, and
* GetTexParameterfv:
*/
int GL_TEXTURE_STORAGE_HINT_APPLE = 0x85BC;
/**
* Accepted by the parameters of TexParameteri, TexParameterf,
* TexParameteriv, and TexParameterfv:
*/
int GL_STORAGE_PRIVATE_APPLE = 0x85BD;
int GL_STORAGE_CACHED_APPLE = 0x85BE;
int GL_STORAGE_SHARED_APPLE = 0x85BF;
/**
* Accepted by the parameters of GetTexParameteriv and
* GetTexParameterfv:
*/
int GL_TEXTURE_RANGE_LENGTH_APPLE = 0x85B7;
/** Accepted by the parameters of GetTexParameterPointerv: */
int GL_TEXTURE_RANGE_POINTER_APPLE = 0x85B8;
void glTextureRangeAPPLE(@GLenum int target, @AutoSize("pointer") @GLsizei int length, @GLvoid ByteBuffer pointer);
void glGetTexParameterPointervAPPLE(@GLenum int target, @GLenum int pname, @Result @GLvoid Buffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_blend_square.java 0000644 0001750 0001750 00000003142 12702226520 022653 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_blend_square {
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_fragment_program.java 0000644 0001750 0001750 00000005747 12702226520 023637 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_fragment_program extends ARB_program {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, by the
* <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev,
* and by the <target> parameter of ProgramStringARB, BindProgramARB,
* ProgramEnvParameter4[df][v]ARB, ProgramLocalParameter4[df][v]ARB,
* GetProgramEnvParameter[df]vARB, GetProgramLocalParameter[df]vARB,
* GetProgramivARB and GetProgramStringARB.
*/
int GL_FRAGMENT_PROGRAM_ARB = 0x8804;
/**
* Accepted by the <pname> parameter of GetProgramivARB:
*/
int GL_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805;
int GL_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806;
int GL_PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807;
int GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808;
int GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809;
int GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A;
int GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B;
int GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C;
int GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D;
int GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E;
int GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F;
int GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL40.java 0000644 0001750 0001750 00000052257 12702226520 020265 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import javax.lang.model.type.TypeKind;
public interface GL40 {
// ----------------------------------------------------------------------
// ----------------------[ ARB_draw_buffers_blend ]----------------------
// ----------------------------------------------------------------------
void glBlendEquationi(@GLuint int buf, @GLenum int mode);
void glBlendEquationSeparatei(@GLuint int buf, @GLenum int modeRGB, @GLenum int modeAlpha);
void glBlendFunci(@GLuint int buf, @GLenum int src, @GLenum int dst);
void glBlendFuncSeparatei(@GLuint int buf, @GLenum int srcRGB, @GLenum int dstRGB, @GLenum int srcAlpha, @GLenum int dstAlpha);
// -----------------------------------------------------------------
// ----------------------[ ARB_draw_indirect ]----------------------
// -----------------------------------------------------------------
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferPointerv, MapBufferRange, FlushMappedBufferRange,
* GetBufferParameteriv, BindBufferRange, BindBufferBase, and
* CopyBufferSubData:
*/
int GL_DRAW_INDIRECT_BUFFER = 0x8F3F;
/**
* Accepted by the <value> parameter of GetIntegerv, GetBooleanv, GetFloatv,
* and GetDoublev:
*/
int GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43;
void glDrawArraysIndirect(@GLenum int mode, @BufferObject(BufferKind.IndirectBO) @Check("4 * 4") @Const @GLvoid ByteBuffer indirect);
@Alternate("glDrawArraysIndirect")
void glDrawArraysIndirect(@GLenum int mode, @BufferObject(BufferKind.IndirectBO) @Check("4") @Const @GLvoid(TypeKind.INT) IntBuffer indirect);
void glDrawElementsIndirect(@GLenum int mode, @GLenum int type, @BufferObject(BufferKind.IndirectBO) @Check("5 * 4") @Const @GLvoid ByteBuffer indirect);
@Alternate("glDrawElementsIndirect")
void glDrawElementsIndirect(@GLenum int mode, @GLenum int type, @BufferObject(BufferKind.IndirectBO) @Check("5") @Const @GLvoid(TypeKind.INT) IntBuffer indirect);
// ---------------------------------------------------------------
// ----------------------[ ARB_gpu_shader5 ]----------------------
// ---------------------------------------------------------------
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* GetDoublev, and GetInteger64v:
*/
int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A;
int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B;
int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C;
int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D;
int GL_MAX_VERTEX_STREAMS = 0x8E71;
// -------------------------------------------------------------------
// ----------------------[ ARB_gpu_shader_fp64 ]----------------------
// -------------------------------------------------------------------
/**
* Returned in the <type> parameter of GetActiveUniform, and
* GetTransformFeedbackVarying:
*/
int GL_DOUBLE_VEC2 = 0x8FFC;
int GL_DOUBLE_VEC3 = 0x8FFD;
int GL_DOUBLE_VEC4 = 0x8FFE;
int GL_DOUBLE_MAT2 = 0x8F46;
int GL_DOUBLE_MAT3 = 0x8F47;
int GL_DOUBLE_MAT4 = 0x8F48;
int GL_DOUBLE_MAT2x3 = 0x8F49;
int GL_DOUBLE_MAT2x4 = 0x8F4A;
int GL_DOUBLE_MAT3x2 = 0x8F4B;
int GL_DOUBLE_MAT3x4 = 0x8F4C;
int GL_DOUBLE_MAT4x2 = 0x8F4D;
int GL_DOUBLE_MAT4x3 = 0x8F4E;
void glUniform1d(int location, double x);
void glUniform2d(int location, double x, double y);
void glUniform3d(int location, double x, double y, double z);
void glUniform4d(int location, double x, double y, double z, double w);
@StripPostfix("value")
void glUniform1dv(int location, @AutoSize("value") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniform2dv(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniform3dv(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniform4dv(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix2dv(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix3dv(int location, @AutoSize(value = "value", expression = " / (3 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix4dv(int location, @AutoSize(value = "value", expression = " >> 4") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix2x3dv(int location, @AutoSize(value = "value", expression = " / (2 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix2x4dv(int location, @AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix3x2dv(int location, @AutoSize(value = "value", expression = " / (3 * 2)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix3x4dv(int location, @AutoSize(value = "value", expression = " / (3 * 4)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix4x2dv(int location, @AutoSize(value = "value", expression = " >> 3") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("value")
void glUniformMatrix4x3dv(int location, @AutoSize(value = "value", expression = " / (4 * 3)") @GLsizei int count, boolean transpose, @Const DoubleBuffer value);
@StripPostfix("params")
void glGetUniformdv(@GLuint int program, int location, @OutParameter @Check DoubleBuffer params);
// ------------------------------------------------------------------
// ----------------------[ ARB_sample_shading ]----------------------
// ------------------------------------------------------------------
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_SAMPLE_SHADING = 0x8C36;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv, and GetFloatv:
*/
int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37;
void glMinSampleShading(float value);
// ---------------------------------------------------------------------
// ----------------------[ ARB_shader_subroutine ]----------------------
// ---------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetProgramStageiv: */
int GL_ACTIVE_SUBROUTINES = 0x8DE5;
int GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6;
int GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47;
int GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48;
int GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, and GetInteger64v:
*/
int GL_MAX_SUBROUTINES = 0x8DE7;
int GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8;
/** Accepted by the <pname> parameter of GetActiveSubroutineUniformiv: */
int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A;
int GL_COMPATIBLE_SUBROUTINES = 0x8E4B;
int glGetSubroutineUniformLocation(@GLuint int program, @GLenum int shadertype, @Const @NullTerminated ByteBuffer name);
@Alternate("glGetSubroutineUniformLocation")
int glGetSubroutineUniformLocation(@GLuint int program, @GLenum int shadertype, @NullTerminated CharSequence name);
@GLuint
int glGetSubroutineIndex(@GLuint int program, @GLenum int shadertype, @Const @NullTerminated ByteBuffer name);
@Alternate("glGetSubroutineIndex")
@GLuint
int glGetSubroutineIndex(@GLuint int program, @GLenum int shadertype, @NullTerminated CharSequence name);
@StripPostfix("values")
void glGetActiveSubroutineUniformiv(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLenum int pname,
@OutParameter @Check("1") IntBuffer values);
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveSubroutineUniformi} instead. */
@Alternate("glGetActiveSubroutineUniformiv")
@GLreturn("values")
@StripPostfix("values")
@Reuse(value = "GL40", method = "glGetActiveSubroutineUniformi")
@Deprecated
void glGetActiveSubroutineUniformiv2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLenum int pname,
@OutParameter IntBuffer values);
@Alternate("glGetActiveSubroutineUniformiv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetActiveSubroutineUniformiv3(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLenum int pname,
@OutParameter IntBuffer values);
void glGetActiveSubroutineUniformName(@GLuint int program, @GLenum int shadertype, @GLuint int index, @AutoSize("name") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@Alternate("glGetActiveSubroutineUniformName")
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveSubroutineUniformName2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLsizei int bufsize,
@OutParameter @Constant("MemoryUtil.getAddress0(name_length)") @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
void glGetActiveSubroutineName(@GLuint int program, @GLenum int shadertype, @GLuint int index, @AutoSize("name") @GLsizei int bufsize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@Alternate("glGetActiveSubroutineName")
@GLreturn(value = "name", maxLength = "bufsize")
void glGetActiveSubroutineName2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLsizei int bufsize,
@OutParameter @Constant("MemoryUtil.getAddress0(name_length)") @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@StripPostfix("indices")
void glUniformSubroutinesuiv(@GLenum int shadertype, @AutoSize("indices") @GLsizei int count, @Const @GLuint IntBuffer indices);
@StripPostfix("params")
void glGetUniformSubroutineuiv(@GLenum int shadertype, int location, @Check("1") @OutParameter @GLuint IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetUniformSubroutineui} instead. */
@Alternate("glGetUniformSubroutineuiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL40", method = "glGetUniformSubroutineui")
@Deprecated
void glGetUniformSubroutineuiv2(@GLenum int shadertype, int location, @OutParameter @GLuint IntBuffer params);
@Alternate("glGetUniformSubroutineuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetUniformSubroutineuiv3(@GLenum int shadertype, int location, @OutParameter @GLuint IntBuffer params);
@StripPostfix("values")
void glGetProgramStageiv(@GLuint int program, @GLenum int shadertype, @GLenum int pname, @Check("1") @OutParameter IntBuffer values);
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgramStagei} instead. */
@Alternate("glGetProgramStageiv")
@GLreturn("values")
@StripPostfix("values")
@Reuse(value = "GL40", method = "glGetProgramStagei")
@Deprecated
void glGetProgramStageiv2(@GLuint int program, @GLenum int shadertype, @GLenum int pname, @OutParameter IntBuffer values);
@Alternate("glGetProgramStageiv")
@GLreturn("values")
@StripPostfix(value = "values", hasPostfix = false)
void glGetProgramStageiv3(@GLuint int program, @GLenum int shadertype, @GLenum int pname, @OutParameter IntBuffer values);
// -----------------------------------------------------------------------
// ----------------------[ ARB_tessellation_shader ]----------------------
// -----------------------------------------------------------------------
/**
* Accepted by the <mode> parameter of Begin and all vertex array functions
* that implicitly call Begin:
*/
int GL_PATCHES = 0xE;
/**
* Accepted by the <pname> parameter of PatchParameteri, GetBooleanv,
* GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v:
*/
int GL_PATCH_VERTICES = 0x8E72;
/**
* Accepted by the <pname> parameter of PatchParameterfv, GetBooleanv,
* GetDoublev, GetFloatv, and GetIntegerv, and GetInteger64v:
*/
int GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73;
int GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75;
int GL_TESS_GEN_MODE = 0x8E76;
int GL_TESS_GEN_SPACING = 0x8E77;
int GL_TESS_GEN_VERTEX_ORDER = 0x8E78;
int GL_TESS_GEN_POINT_MODE = 0x8E79;
/** Returned by GetProgramiv when <pname> is TESS_GEN_MODE: */
int GL_ISOLINES = 0x8E7A;
/** Returned by GetProgramiv when <pname> is TESS_GEN_SPACING: */
int GL_FRACTIONAL_ODD = 0x8E7B;
int GL_FRACTIONAL_EVEN = 0x8E7C;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetFloatv,
* GetIntegerv, and GetInteger64v:
*/
int GL_MAX_PATCH_VERTICES = 0x8E7D;
int GL_MAX_TESS_GEN_LEVEL = 0x8E7E;
int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F;
int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80;
int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81;
int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82;
int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83;
int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84;
int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85;
int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86;
int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89;
int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A;
int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C;
int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D;
int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E;
int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F;
/** Accepted by the <pname> parameter of GetActiveUniformBlockiv: */
int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0;
int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1;
/**
* Accepted by the <type> parameter of CreateShader and returned by the
* <params> parameter of GetShaderiv:
*/
int GL_TESS_EVALUATION_SHADER = 0x8E87;
int GL_TESS_CONTROL_SHADER = 0x8E88;
void glPatchParameteri(@GLenum int pname, int value);
@StripPostfix("values")
void glPatchParameterfv(@GLenum int pname, @Check("4") @Const FloatBuffer values);
// --------------------------------------------------------------------------
// ----------------------[ ARB_texture_cube_map_array ]----------------------
// --------------------------------------------------------------------------
/**
* Accepted by the <target> parameter of TexParameteri, TexParameteriv,
* TexParameterf, TexParameterfv, BindTexture, and GenerateMipmap:
*
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CompressedTeximage3D, CompressedTexSubImage3D and CopyTexSubImage3D:
*
* Accepted by the <tex> parameter of GetTexImage:
*/
int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev,
* GetIntegerv and GetFloatv:
*/
int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A;
/**
* Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
* CompressedTeximage3D, CompressedTexSubImage3D and CopyTexSubImage3D:
*/
int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C;
int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D;
int GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E;
int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F;
// ------------------------------------------------------------------
// ----------------------[ ARB_texture_gather ]----------------------
// ------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E;
int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F;
int GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F;
// -----------------------------------------------------------------------
// ----------------------[ ARB_transform_feedback2 ]----------------------
// -----------------------------------------------------------------------
/** Accepted by the <target> parameter of BindTransformFeedback: */
int GL_TRANSFORM_FEEDBACK = 0x8E22;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_TRANSFORM_FEEDBACK_PAUSED = 0x8E23;
int GL_TRANSFORM_FEEDBACK_ACTIVE = 0x8E24;
int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = GL_TRANSFORM_FEEDBACK_PAUSED;
int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = GL_TRANSFORM_FEEDBACK_ACTIVE;
int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25;
void glBindTransformFeedback(@GLenum int target, @GLuint int id);
void glDeleteTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @Const @GLuint IntBuffer ids);
@Alternate("glDeleteTransformFeedbacks")
void glDeleteTransformFeedbacks(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, id)", keepParam = true) int id);
void glGenTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glGenTransformFeedbacks")
@GLreturn("ids")
void glGenTransformFeedbacks2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
boolean glIsTransformFeedback(@GLuint int id);
void glPauseTransformFeedback();
void glResumeTransformFeedback();
void glDrawTransformFeedback(@GLenum int mode, @GLuint int id);
// -----------------------------------------------------------------------
// ----------------------[ ARB_transform_feedback3 ]----------------------
// -----------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70;
void glDrawTransformFeedbackStream(@GLenum int mode, @GLuint int id, @GLuint int stream);
void glBeginQueryIndexed(@GLenum int target, @GLuint int index, @GLuint int id);
void glEndQueryIndexed(@GLenum int target, @GLuint int index);
@StripPostfix("params")
void glGetQueryIndexediv(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryIndexedi} instead. */
@Alternate("glGetQueryIndexediv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL40", method = "glGetQueryIndexedi")
@Deprecated
void glGetQueryIndexediv2(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetQueryIndexediv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryIndexediv3(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_program.java 0000644 0001750 0001750 00000011774 12702226520 021670 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "NV", isFinal = false)
public interface NV_program {
/** Accepted by the <pname> parameter of GetProgramivNV: */
int GL_PROGRAM_TARGET_NV = 0x8646;
int GL_PROGRAM_LENGTH_NV = 0x8627;
int GL_PROGRAM_RESIDENT_NV = 0x8647;
/** Accepted by the <pname> parameter of GetProgramStringNV: */
int GL_PROGRAM_STRING_NV = 0x8628;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_PROGRAM_ERROR_POSITION_NV = 0x864B;
/** Accepted by the <name> parameter of GetString: */
int GL_PROGRAM_ERROR_STRING_NV = 0x8874;
void glLoadProgramNV(@GLenum int target, @GLuint int programID, @AutoSize("string") @GLsizei int length, @Const @GLubyte Buffer string);
@Alternate("glLoadProgramNV")
void glLoadProgramNV(@GLenum int target, @GLuint int programID, @Constant("string.length()") @GLsizei int length, CharSequence string);
void glBindProgramNV(@GLenum int target, @GLuint int programID);
void glDeleteProgramsNV(@AutoSize("programs") @GLsizei int n, @Const @GLuint IntBuffer programs);
@Alternate("glDeleteProgramsNV")
void glDeleteProgramsNV(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, program)", keepParam = true) int program);
void glGenProgramsNV(@AutoSize("programs") @GLsizei int n, @OutParameter @GLuint IntBuffer programs);
@Alternate("glGenProgramsNV")
@GLreturn("programs")
void glGenProgramsNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer programs);
@StripPostfix("params")
void glGetProgramivNV(@GLuint int programID, @GLenum int parameterName, @OutParameter @Check @GLint IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgramiNV} instead. */
@Alternate("glGetProgramivNV")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "NVProgram", method = "glGetProgramiNV")
@Deprecated
void glGetProgramivNV2(@GLuint int programID, @GLenum int parameterName, @OutParameter @GLint IntBuffer params);
@Alternate("glGetProgramivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramivNV3(@GLuint int programID, @GLenum int parameterName, @OutParameter @GLint IntBuffer params);
void glGetProgramStringNV(@GLuint int programID, @GLenum int parameterName, @OutParameter @Check @GLubyte Buffer paramString);
@Alternate("glGetProgramStringNV")
@Code("\t\tint programLength = glGetProgramiNV(programID, GL_PROGRAM_LENGTH_NV);")
@GLreturn(value="paramString", maxLength = "programLength", forceMaxLength = true)
void glGetProgramStringNV2(@GLuint int programID, @GLenum int parameterName, @OutParameter @GLchar ByteBuffer paramString);
boolean glIsProgramNV(@GLuint int programID);
boolean glAreProgramsResidentNV(@AutoSize("programIDs") @GLsizei int n,
@Const @GLuint IntBuffer programIDs,
@OutParameter @GLboolean @Check("programIDs.remaining()") ByteBuffer programResidences);
void glRequestResidentProgramsNV(@AutoSize("programIDs") @GLsizei int n, @GLuint IntBuffer programIDs);
@Alternate("glRequestResidentProgramsNV")
void glRequestResidentProgramsNV(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, programID)", keepParam = true) int programID);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_matrix_palette.java 0000644 0001750 0001750 00000005676 12702226520 023330 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface ARB_matrix_palette {
int GL_MATRIX_PALETTE_ARB = 0x8840;
int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841;
int GL_MAX_PALETTE_MATRICES_ARB = 0x8842;
int GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843;
int GL_MATRIX_INDEX_ARRAY_ARB = 0x8844;
int GL_CURRENT_MATRIX_INDEX_ARB = 0x8845;
int GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846;
int GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847;
int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848;
int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849;
void glCurrentPaletteMatrixARB(int index);
void glMatrixIndexPointerARB(int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLubyte
@GLushort
@GLuint Buffer pPointer);
@StripPostfix("pIndices")
void glMatrixIndexubvARB(@AutoSize("pIndices") int size, @GLubyte ByteBuffer pIndices);
@StripPostfix("pIndices")
void glMatrixIndexusvARB(@AutoSize("pIndices") int size, @GLushort ShortBuffer pIndices);
@StripPostfix("pIndices")
void glMatrixIndexuivARB(@AutoSize("pIndices") int size, @GLuint IntBuffer pIndices);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL11.java 0000644 0001750 0001750 00000141613 12702226520 020256 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
/**
* The core OpenGL1.1 API.
*
* @author cix_foo
* @version $Revision$
* $Id$
*/
@DeprecatedGL
public interface GL11 {
/* AccumOp */
int GL_ACCUM = 0x0100;
int GL_LOAD = 0x0101;
int GL_RETURN = 0x0102;
int GL_MULT = 0x0103;
int GL_ADD = 0x0104;
/* AlphaFunction */
int GL_NEVER = 0x0200;
int GL_LESS = 0x0201;
int GL_EQUAL = 0x0202;
int GL_LEQUAL = 0x0203;
int GL_GREATER = 0x0204;
int GL_NOTEQUAL = 0x0205;
int GL_GEQUAL = 0x0206;
int GL_ALWAYS = 0x0207;
/* AttribMask */
int GL_CURRENT_BIT = 0x00000001;
int GL_POINT_BIT = 0x00000002;
int GL_LINE_BIT = 0x00000004;
int GL_POLYGON_BIT = 0x00000008;
int GL_POLYGON_STIPPLE_BIT = 0x00000010;
int GL_PIXEL_MODE_BIT = 0x00000020;
int GL_LIGHTING_BIT = 0x00000040;
int GL_FOG_BIT = 0x00000080;
int GL_DEPTH_BUFFER_BIT = 0x00000100;
int GL_ACCUM_BUFFER_BIT = 0x00000200;
int GL_STENCIL_BUFFER_BIT = 0x00000400;
int GL_VIEWPORT_BIT = 0x00000800;
int GL_TRANSFORM_BIT = 0x00001000;
int GL_ENABLE_BIT = 0x00002000;
int GL_COLOR_BUFFER_BIT = 0x00004000;
int GL_HINT_BIT = 0x00008000;
int GL_EVAL_BIT = 0x00010000;
int GL_LIST_BIT = 0x00020000;
int GL_TEXTURE_BIT = 0x00040000;
int GL_SCISSOR_BIT = 0x00080000;
int GL_ALL_ATTRIB_BITS = 0x000fffff;
/* BeginMode */
int GL_POINTS = 0x0000;
int GL_LINES = 0x0001;
int GL_LINE_LOOP = 0x0002;
int GL_LINE_STRIP = 0x0003;
int GL_TRIANGLES = 0x0004;
int GL_TRIANGLE_STRIP = 0x0005;
int GL_TRIANGLE_FAN = 0x0006;
int GL_QUADS = 0x0007;
int GL_QUAD_STRIP = 0x0008;
int GL_POLYGON = 0x0009;
/* BlendingFactorDest */
int GL_ZERO = 0;
int GL_ONE = 1;
int GL_SRC_COLOR = 0x0300;
int GL_ONE_MINUS_SRC_COLOR = 0x0301;
int GL_SRC_ALPHA = 0x0302;
int GL_ONE_MINUS_SRC_ALPHA = 0x0303;
int GL_DST_ALPHA = 0x0304;
int GL_ONE_MINUS_DST_ALPHA = 0x0305;
/* BlendingFactorSrc */
/* GL_ZERO */
/* GL_ONE */
int GL_DST_COLOR = 0x0306;
int GL_ONE_MINUS_DST_COLOR = 0x0307;
int GL_SRC_ALPHA_SATURATE = 0x0308;
int GL_CONSTANT_COLOR = 0x8001;
int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002;
int GL_CONSTANT_ALPHA = 0x8003;
int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004;
/* Boolean */
int GL_TRUE = 1;
int GL_FALSE = 0;
/* ClipPlaneName */
int GL_CLIP_PLANE0 = 0x3000;
int GL_CLIP_PLANE1 = 0x3001;
int GL_CLIP_PLANE2 = 0x3002;
int GL_CLIP_PLANE3 = 0x3003;
int GL_CLIP_PLANE4 = 0x3004;
int GL_CLIP_PLANE5 = 0x3005;
/* DataType */
int GL_BYTE = 0x1400;
int GL_UNSIGNED_BYTE = 0x1401;
int GL_SHORT = 0x1402;
int GL_UNSIGNED_SHORT = 0x1403;
int GL_INT = 0x1404;
int GL_UNSIGNED_INT = 0x1405;
int GL_FLOAT = 0x1406;
int GL_2_BYTES = 0x1407;
int GL_3_BYTES = 0x1408;
int GL_4_BYTES = 0x1409;
int GL_DOUBLE = 0x140A;
/* DrawBufferMode */
int GL_NONE = 0;
int GL_FRONT_LEFT = 0x0400;
int GL_FRONT_RIGHT = 0x0401;
int GL_BACK_LEFT = 0x0402;
int GL_BACK_RIGHT = 0x0403;
int GL_FRONT = 0x0404;
int GL_BACK = 0x0405;
int GL_LEFT = 0x0406;
int GL_RIGHT = 0x0407;
int GL_FRONT_AND_BACK = 0x0408;
int GL_AUX0 = 0x0409;
int GL_AUX1 = 0x040A;
int GL_AUX2 = 0x040B;
int GL_AUX3 = 0x040C;
/* ErrorCode */
int GL_NO_ERROR = 0;
int GL_INVALID_ENUM = 0x0500;
int GL_INVALID_VALUE = 0x0501;
int GL_INVALID_OPERATION = 0x0502;
int GL_STACK_OVERFLOW = 0x0503;
int GL_STACK_UNDERFLOW = 0x0504;
int GL_OUT_OF_MEMORY = 0x0505;
/* FeedBackMode */
int GL_2D = 0x0600;
int GL_3D = 0x0601;
int GL_3D_COLOR = 0x0602;
int GL_3D_COLOR_TEXTURE = 0x0603;
int GL_4D_COLOR_TEXTURE = 0x0604;
/* FeedBackToken */
int GL_PASS_THROUGH_TOKEN = 0x0700;
int GL_POINT_TOKEN = 0x0701;
int GL_LINE_TOKEN = 0x0702;
int GL_POLYGON_TOKEN = 0x0703;
int GL_BITMAP_TOKEN = 0x0704;
int GL_DRAW_PIXEL_TOKEN = 0x0705;
int GL_COPY_PIXEL_TOKEN = 0x0706;
int GL_LINE_RESET_TOKEN = 0x0707;
/* FogMode */
/* GL_LINEAR */
int GL_EXP = 0x0800;
int GL_EXP2 = 0x0801;
/* FrontFaceDirection */
int GL_CW = 0x0900;
int GL_CCW = 0x0901;
/* GetMapTarget */
int GL_COEFF = 0x0A00;
int GL_ORDER = 0x0A01;
int GL_DOMAIN = 0x0A02;
/* GetTarget */
int GL_CURRENT_COLOR = 0x0B00;
int GL_CURRENT_INDEX = 0x0B01;
int GL_CURRENT_NORMAL = 0x0B02;
int GL_CURRENT_TEXTURE_COORDS = 0x0B03;
int GL_CURRENT_RASTER_COLOR = 0x0B04;
int GL_CURRENT_RASTER_INDEX = 0x0B05;
int GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06;
int GL_CURRENT_RASTER_POSITION = 0x0B07;
int GL_CURRENT_RASTER_POSITION_VALID = 0x0B08;
int GL_CURRENT_RASTER_DISTANCE = 0x0B09;
int GL_POINT_SMOOTH = 0x0B10;
int GL_POINT_SIZE = 0x0B11;
int GL_POINT_SIZE_RANGE = 0x0B12;
int GL_POINT_SIZE_GRANULARITY = 0x0B13;
int GL_LINE_SMOOTH = 0x0B20;
int GL_LINE_WIDTH = 0x0B21;
int GL_LINE_WIDTH_RANGE = 0x0B22;
int GL_LINE_WIDTH_GRANULARITY = 0x0B23;
int GL_LINE_STIPPLE = 0x0B24;
int GL_LINE_STIPPLE_PATTERN = 0x0B25;
int GL_LINE_STIPPLE_REPEAT = 0x0B26;
int GL_LIST_MODE = 0x0B30;
int GL_MAX_LIST_NESTING = 0x0B31;
int GL_LIST_BASE = 0x0B32;
int GL_LIST_INDEX = 0x0B33;
int GL_POLYGON_MODE = 0x0B40;
int GL_POLYGON_SMOOTH = 0x0B41;
int GL_POLYGON_STIPPLE = 0x0B42;
int GL_EDGE_FLAG = 0x0B43;
int GL_CULL_FACE = 0x0B44;
int GL_CULL_FACE_MODE = 0x0B45;
int GL_FRONT_FACE = 0x0B46;
int GL_LIGHTING = 0x0B50;
int GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51;
int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52;
int GL_LIGHT_MODEL_AMBIENT = 0x0B53;
int GL_SHADE_MODEL = 0x0B54;
int GL_COLOR_MATERIAL_FACE = 0x0B55;
int GL_COLOR_MATERIAL_PARAMETER = 0x0B56;
int GL_COLOR_MATERIAL = 0x0B57;
int GL_FOG = 0x0B60;
int GL_FOG_INDEX = 0x0B61;
int GL_FOG_DENSITY = 0x0B62;
int GL_FOG_START = 0x0B63;
int GL_FOG_END = 0x0B64;
int GL_FOG_MODE = 0x0B65;
int GL_FOG_COLOR = 0x0B66;
int GL_DEPTH_RANGE = 0x0B70;
int GL_DEPTH_TEST = 0x0B71;
int GL_DEPTH_WRITEMASK = 0x0B72;
int GL_DEPTH_CLEAR_VALUE = 0x0B73;
int GL_DEPTH_FUNC = 0x0B74;
int GL_ACCUM_CLEAR_VALUE = 0x0B80;
int GL_STENCIL_TEST = 0x0B90;
int GL_STENCIL_CLEAR_VALUE = 0x0B91;
int GL_STENCIL_FUNC = 0x0B92;
int GL_STENCIL_VALUE_MASK = 0x0B93;
int GL_STENCIL_FAIL = 0x0B94;
int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95;
int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96;
int GL_STENCIL_REF = 0x0B97;
int GL_STENCIL_WRITEMASK = 0x0B98;
int GL_MATRIX_MODE = 0x0BA0;
int GL_NORMALIZE = 0x0BA1;
int GL_VIEWPORT = 0x0BA2;
int GL_MODELVIEW_STACK_DEPTH = 0x0BA3;
int GL_PROJECTION_STACK_DEPTH = 0x0BA4;
int GL_TEXTURE_STACK_DEPTH = 0x0BA5;
int GL_MODELVIEW_MATRIX = 0x0BA6;
int GL_PROJECTION_MATRIX = 0x0BA7;
int GL_TEXTURE_MATRIX = 0x0BA8;
int GL_ATTRIB_STACK_DEPTH = 0x0BB0;
int GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1;
int GL_ALPHA_TEST = 0x0BC0;
int GL_ALPHA_TEST_FUNC = 0x0BC1;
int GL_ALPHA_TEST_REF = 0x0BC2;
int GL_DITHER = 0x0BD0;
int GL_BLEND_DST = 0x0BE0;
int GL_BLEND_SRC = 0x0BE1;
int GL_BLEND = 0x0BE2;
int GL_LOGIC_OP_MODE = 0x0BF0;
int GL_INDEX_LOGIC_OP = 0x0BF1;
int GL_COLOR_LOGIC_OP = 0x0BF2;
int GL_AUX_BUFFERS = 0x0C00;
int GL_DRAW_BUFFER = 0x0C01;
int GL_READ_BUFFER = 0x0C02;
int GL_SCISSOR_BOX = 0x0C10;
int GL_SCISSOR_TEST = 0x0C11;
int GL_INDEX_CLEAR_VALUE = 0x0C20;
int GL_INDEX_WRITEMASK = 0x0C21;
int GL_COLOR_CLEAR_VALUE = 0x0C22;
int GL_COLOR_WRITEMASK = 0x0C23;
int GL_INDEX_MODE = 0x0C30;
int GL_RGBA_MODE = 0x0C31;
int GL_DOUBLEBUFFER = 0x0C32;
int GL_STEREO = 0x0C33;
int GL_RENDER_MODE = 0x0C40;
int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50;
int GL_POINT_SMOOTH_HINT = 0x0C51;
int GL_LINE_SMOOTH_HINT = 0x0C52;
int GL_POLYGON_SMOOTH_HINT = 0x0C53;
int GL_FOG_HINT = 0x0C54;
int GL_TEXTURE_GEN_S = 0x0C60;
int GL_TEXTURE_GEN_T = 0x0C61;
int GL_TEXTURE_GEN_R = 0x0C62;
int GL_TEXTURE_GEN_Q = 0x0C63;
int GL_PIXEL_MAP_I_TO_I = 0x0C70;
int GL_PIXEL_MAP_S_TO_S = 0x0C71;
int GL_PIXEL_MAP_I_TO_R = 0x0C72;
int GL_PIXEL_MAP_I_TO_G = 0x0C73;
int GL_PIXEL_MAP_I_TO_B = 0x0C74;
int GL_PIXEL_MAP_I_TO_A = 0x0C75;
int GL_PIXEL_MAP_R_TO_R = 0x0C76;
int GL_PIXEL_MAP_G_TO_G = 0x0C77;
int GL_PIXEL_MAP_B_TO_B = 0x0C78;
int GL_PIXEL_MAP_A_TO_A = 0x0C79;
int GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0;
int GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1;
int GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2;
int GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3;
int GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4;
int GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5;
int GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6;
int GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7;
int GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8;
int GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9;
int GL_UNPACK_SWAP_BYTES = 0x0CF0;
int GL_UNPACK_LSB_FIRST = 0x0CF1;
int GL_UNPACK_ROW_LENGTH = 0x0CF2;
int GL_UNPACK_SKIP_ROWS = 0x0CF3;
int GL_UNPACK_SKIP_PIXELS = 0x0CF4;
int GL_UNPACK_ALIGNMENT = 0x0CF5;
int GL_PACK_SWAP_BYTES = 0x0D00;
int GL_PACK_LSB_FIRST = 0x0D01;
int GL_PACK_ROW_LENGTH = 0x0D02;
int GL_PACK_SKIP_ROWS = 0x0D03;
int GL_PACK_SKIP_PIXELS = 0x0D04;
int GL_PACK_ALIGNMENT = 0x0D05;
int GL_MAP_COLOR = 0x0D10;
int GL_MAP_STENCIL = 0x0D11;
int GL_INDEX_SHIFT = 0x0D12;
int GL_INDEX_OFFSET = 0x0D13;
int GL_RED_SCALE = 0x0D14;
int GL_RED_BIAS = 0x0D15;
int GL_ZOOM_X = 0x0D16;
int GL_ZOOM_Y = 0x0D17;
int GL_GREEN_SCALE = 0x0D18;
int GL_GREEN_BIAS = 0x0D19;
int GL_BLUE_SCALE = 0x0D1A;
int GL_BLUE_BIAS = 0x0D1B;
int GL_ALPHA_SCALE = 0x0D1C;
int GL_ALPHA_BIAS = 0x0D1D;
int GL_DEPTH_SCALE = 0x0D1E;
int GL_DEPTH_BIAS = 0x0D1F;
int GL_MAX_EVAL_ORDER = 0x0D30;
int GL_MAX_LIGHTS = 0x0D31;
int GL_MAX_CLIP_PLANES = 0x0D32;
int GL_MAX_TEXTURE_SIZE = 0x0D33;
int GL_MAX_PIXEL_MAP_TABLE = 0x0D34;
int GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35;
int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36;
int GL_MAX_NAME_STACK_DEPTH = 0x0D37;
int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38;
int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39;
int GL_MAX_VIEWPORT_DIMS = 0x0D3A;
int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B;
int GL_SUBPIXEL_BITS = 0x0D50;
int GL_INDEX_BITS = 0x0D51;
int GL_RED_BITS = 0x0D52;
int GL_GREEN_BITS = 0x0D53;
int GL_BLUE_BITS = 0x0D54;
int GL_ALPHA_BITS = 0x0D55;
int GL_DEPTH_BITS = 0x0D56;
int GL_STENCIL_BITS = 0x0D57;
int GL_ACCUM_RED_BITS = 0x0D58;
int GL_ACCUM_GREEN_BITS = 0x0D59;
int GL_ACCUM_BLUE_BITS = 0x0D5A;
int GL_ACCUM_ALPHA_BITS = 0x0D5B;
int GL_NAME_STACK_DEPTH = 0x0D70;
int GL_AUTO_NORMAL = 0x0D80;
int GL_MAP1_COLOR_4 = 0x0D90;
int GL_MAP1_INDEX = 0x0D91;
int GL_MAP1_NORMAL = 0x0D92;
int GL_MAP1_TEXTURE_COORD_1 = 0x0D93;
int GL_MAP1_TEXTURE_COORD_2 = 0x0D94;
int GL_MAP1_TEXTURE_COORD_3 = 0x0D95;
int GL_MAP1_TEXTURE_COORD_4 = 0x0D96;
int GL_MAP1_VERTEX_3 = 0x0D97;
int GL_MAP1_VERTEX_4 = 0x0D98;
int GL_MAP2_COLOR_4 = 0x0DB0;
int GL_MAP2_INDEX = 0x0DB1;
int GL_MAP2_NORMAL = 0x0DB2;
int GL_MAP2_TEXTURE_COORD_1 = 0x0DB3;
int GL_MAP2_TEXTURE_COORD_2 = 0x0DB4;
int GL_MAP2_TEXTURE_COORD_3 = 0x0DB5;
int GL_MAP2_TEXTURE_COORD_4 = 0x0DB6;
int GL_MAP2_VERTEX_3 = 0x0DB7;
int GL_MAP2_VERTEX_4 = 0x0DB8;
int GL_MAP1_GRID_DOMAIN = 0x0DD0;
int GL_MAP1_GRID_SEGMENTS = 0x0DD1;
int GL_MAP2_GRID_DOMAIN = 0x0DD2;
int GL_MAP2_GRID_SEGMENTS = 0x0DD3;
int GL_TEXTURE_1D = 0x0DE0;
int GL_TEXTURE_2D = 0x0DE1;
int GL_FEEDBACK_BUFFER_POINTER = 0x0DF0;
int GL_FEEDBACK_BUFFER_SIZE = 0x0DF1;
int GL_FEEDBACK_BUFFER_TYPE = 0x0DF2;
int GL_SELECTION_BUFFER_POINTER = 0x0DF3;
int GL_SELECTION_BUFFER_SIZE = 0x0DF4;
/* GetTextureParameter */
/* GL_TEXTURE_MAG_FILTER */
/* GL_TEXTURE_MIN_FILTER */
/* GL_TEXTURE_WRAP_S */
/* GL_TEXTURE_WRAP_T */
int GL_TEXTURE_WIDTH = 0x1000;
int GL_TEXTURE_HEIGHT = 0x1001;
int GL_TEXTURE_INTERNAL_FORMAT = 0x1003;
int GL_TEXTURE_BORDER_COLOR = 0x1004;
int GL_TEXTURE_BORDER = 0x1005;
/* GL_TEXTURE_RED_SIZE */
/* GL_TEXTURE_GREEN_SIZE */
/* GL_TEXTURE_BLUE_SIZE */
/* GL_TEXTURE_ALPHA_SIZE */
/* GL_TEXTURE_LUMINANCE_SIZE */
/* GL_TEXTURE_INTENSITY_SIZE */
/* GL_TEXTURE_PRIORITY */
/* GL_TEXTURE_RESIDENT */
/* HintMode */
int GL_DONT_CARE = 0x1100;
int GL_FASTEST = 0x1101;
int GL_NICEST = 0x1102;
/* LightName */
int GL_LIGHT0 = 0x4000;
int GL_LIGHT1 = 0x4001;
int GL_LIGHT2 = 0x4002;
int GL_LIGHT3 = 0x4003;
int GL_LIGHT4 = 0x4004;
int GL_LIGHT5 = 0x4005;
int GL_LIGHT6 = 0x4006;
int GL_LIGHT7 = 0x4007;
/* LightParameter */
int GL_AMBIENT = 0x1200;
int GL_DIFFUSE = 0x1201;
int GL_SPECULAR = 0x1202;
int GL_POSITION = 0x1203;
int GL_SPOT_DIRECTION = 0x1204;
int GL_SPOT_EXPONENT = 0x1205;
int GL_SPOT_CUTOFF = 0x1206;
int GL_CONSTANT_ATTENUATION = 0x1207;
int GL_LINEAR_ATTENUATION = 0x1208;
int GL_QUADRATIC_ATTENUATION = 0x1209;
/* ListMode */
int GL_COMPILE = 0x1300;
int GL_COMPILE_AND_EXECUTE = 0x1301;
/* LogicOp */
int GL_CLEAR = 0x1500;
int GL_AND = 0x1501;
int GL_AND_REVERSE = 0x1502;
int GL_COPY = 0x1503;
int GL_AND_INVERTED = 0x1504;
int GL_NOOP = 0x1505;
int GL_XOR = 0x1506;
int GL_OR = 0x1507;
int GL_NOR = 0x1508;
int GL_EQUIV = 0x1509;
int GL_INVERT = 0x150A;
int GL_OR_REVERSE = 0x150B;
int GL_COPY_INVERTED = 0x150C;
int GL_OR_INVERTED = 0x150D;
int GL_NAND = 0x150E;
int GL_SET = 0x150F;
/* MaterialParameter */
int GL_EMISSION = 0x1600;
int GL_SHININESS = 0x1601;
int GL_AMBIENT_AND_DIFFUSE = 0x1602;
int GL_COLOR_INDEXES = 0x1603;
/* GL_AMBIENT */
/* GL_DIFFUSE */
/* GL_SPECULAR */
/* MatrixMode */
int GL_MODELVIEW = 0x1700;
int GL_PROJECTION = 0x1701;
int GL_TEXTURE = 0x1702;
/* PixelCopyType */
int GL_COLOR = 0x1800;
int GL_DEPTH = 0x1801;
int GL_STENCIL = 0x1802;
/* PixelFormat */
int GL_COLOR_INDEX = 0x1900;
int GL_STENCIL_INDEX = 0x1901;
int GL_DEPTH_COMPONENT = 0x1902;
int GL_RED = 0x1903;
int GL_GREEN = 0x1904;
int GL_BLUE = 0x1905;
int GL_ALPHA = 0x1906;
int GL_RGB = 0x1907;
int GL_RGBA = 0x1908;
int GL_LUMINANCE = 0x1909;
int GL_LUMINANCE_ALPHA = 0x190A;
/* PixelType */
int GL_BITMAP = 0x1A00;
/* GL_BYTE */
/* GL_UNSIGNED_BYTE */
/* GL_SHORT */
/* GL_UNSIGNED_SHORT */
/* GL_INT */
/* GL_UNSIGNED_INT */
/* GL_FLOAT */
/* PolygonMode */
int GL_POINT = 0x1B00;
int GL_LINE = 0x1B01;
int GL_FILL = 0x1B02;
/* RenderingMode */
int GL_RENDER = 0x1C00;
int GL_FEEDBACK = 0x1C01;
int GL_SELECT = 0x1C02;
/* ShadingModel */
int GL_FLAT = 0x1D00;
int GL_SMOOTH = 0x1D01;
/* StencilOp */
/* GL_ZERO */
int GL_KEEP = 0x1E00;
int GL_REPLACE = 0x1E01;
int GL_INCR = 0x1E02;
int GL_DECR = 0x1E03;
/* GL_INVERT */
/* StringName */
int GL_VENDOR = 0x1F00;
int GL_RENDERER = 0x1F01;
int GL_VERSION = 0x1F02;
int GL_EXTENSIONS = 0x1F03;
/* TextureCoordName */
int GL_S = 0x2000;
int GL_T = 0x2001;
int GL_R = 0x2002;
int GL_Q = 0x2003;
/* TexCoordPointerType */
/* GL_SHORT */
/* GL_INT */
/* GL_FLOAT */
/* GL_DOUBLE */
/* TextureEnvMode */
int GL_MODULATE = 0x2100;
int GL_DECAL = 0x2101;
/* GL_BLEND */
/* GL_REPLACE */
/* TextureEnvParameter */
int GL_TEXTURE_ENV_MODE = 0x2200;
int GL_TEXTURE_ENV_COLOR = 0x2201;
/* TextureEnvTarget */
int GL_TEXTURE_ENV = 0x2300;
/* TextureGenMode */
int GL_EYE_LINEAR = 0x2400;
int GL_OBJECT_LINEAR = 0x2401;
int GL_SPHERE_MAP = 0x2402;
/* TextureGenParameter */
int GL_TEXTURE_GEN_MODE = 0x2500;
int GL_OBJECT_PLANE = 0x2501;
int GL_EYE_PLANE = 0x2502;
/* TextureMagFilter */
int GL_NEAREST = 0x2600;
int GL_LINEAR = 0x2601;
/* TextureMinFilter */
/* GL_NEAREST */
/* GL_LINEAR */
int GL_NEAREST_MIPMAP_NEAREST = 0x2700;
int GL_LINEAR_MIPMAP_NEAREST = 0x2701;
int GL_NEAREST_MIPMAP_LINEAR = 0x2702;
int GL_LINEAR_MIPMAP_LINEAR = 0x2703;
/* TextureParameterName */
int GL_TEXTURE_MAG_FILTER = 0x2800;
int GL_TEXTURE_MIN_FILTER = 0x2801;
int GL_TEXTURE_WRAP_S = 0x2802;
int GL_TEXTURE_WRAP_T = 0x2803;
/* GL_TEXTURE_BORDER_COLOR */
/* GL_TEXTURE_PRIORITY */
/* TextureWrapMode */
int GL_CLAMP = 0x2900;
int GL_REPEAT = 0x2901;
/* ClientAttribMask */
int GL_CLIENT_PIXEL_STORE_BIT = 0x00000001;
int GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002;
int GL_ALL_CLIENT_ATTRIB_BITS = 0xffffffff;
/* polygon_offset */
int GL_POLYGON_OFFSET_FACTOR = 0x8038;
int GL_POLYGON_OFFSET_UNITS = 0x2A00;
int GL_POLYGON_OFFSET_POINT = 0x2A01;
int GL_POLYGON_OFFSET_LINE = 0x2A02;
int GL_POLYGON_OFFSET_FILL = 0x8037;
/* texture */
int GL_ALPHA4 = 0x803B;
int GL_ALPHA8 = 0x803C;
int GL_ALPHA12 = 0x803D;
int GL_ALPHA16 = 0x803E;
int GL_LUMINANCE4 = 0x803F;
int GL_LUMINANCE8 = 0x8040;
int GL_LUMINANCE12 = 0x8041;
int GL_LUMINANCE16 = 0x8042;
int GL_LUMINANCE4_ALPHA4 = 0x8043;
int GL_LUMINANCE6_ALPHA2 = 0x8044;
int GL_LUMINANCE8_ALPHA8 = 0x8045;
int GL_LUMINANCE12_ALPHA4 = 0x8046;
int GL_LUMINANCE12_ALPHA12 = 0x8047;
int GL_LUMINANCE16_ALPHA16 = 0x8048;
int GL_INTENSITY = 0x8049;
int GL_INTENSITY4 = 0x804A;
int GL_INTENSITY8 = 0x804B;
int GL_INTENSITY12 = 0x804C;
int GL_INTENSITY16 = 0x804D;
int GL_R3_G3_B2 = 0x2A10;
int GL_RGB4 = 0x804F;
int GL_RGB5 = 0x8050;
int GL_RGB8 = 0x8051;
int GL_RGB10 = 0x8052;
int GL_RGB12 = 0x8053;
int GL_RGB16 = 0x8054;
int GL_RGBA2 = 0x8055;
int GL_RGBA4 = 0x8056;
int GL_RGB5_A1 = 0x8057;
int GL_RGBA8 = 0x8058;
int GL_RGB10_A2 = 0x8059;
int GL_RGBA12 = 0x805A;
int GL_RGBA16 = 0x805B;
int GL_TEXTURE_RED_SIZE = 0x805C;
int GL_TEXTURE_GREEN_SIZE = 0x805D;
int GL_TEXTURE_BLUE_SIZE = 0x805E;
int GL_TEXTURE_ALPHA_SIZE = 0x805F;
int GL_TEXTURE_LUMINANCE_SIZE = 0x8060;
int GL_TEXTURE_INTENSITY_SIZE = 0x8061;
int GL_PROXY_TEXTURE_1D = 0x8063;
int GL_PROXY_TEXTURE_2D = 0x8064;
/* texture_object */
int GL_TEXTURE_PRIORITY = 0x8066;
int GL_TEXTURE_RESIDENT = 0x8067;
int GL_TEXTURE_BINDING_1D = 0x8068;
int GL_TEXTURE_BINDING_2D = 0x8069;
/* vertex_array */
int GL_VERTEX_ARRAY = 0x8074;
int GL_NORMAL_ARRAY = 0x8075;
int GL_COLOR_ARRAY = 0x8076;
int GL_INDEX_ARRAY = 0x8077;
int GL_TEXTURE_COORD_ARRAY = 0x8078;
int GL_EDGE_FLAG_ARRAY = 0x8079;
int GL_VERTEX_ARRAY_SIZE = 0x807A;
int GL_VERTEX_ARRAY_TYPE = 0x807B;
int GL_VERTEX_ARRAY_STRIDE = 0x807C;
int GL_NORMAL_ARRAY_TYPE = 0x807E;
int GL_NORMAL_ARRAY_STRIDE = 0x807F;
int GL_COLOR_ARRAY_SIZE = 0x8081;
int GL_COLOR_ARRAY_TYPE = 0x8082;
int GL_COLOR_ARRAY_STRIDE = 0x8083;
int GL_INDEX_ARRAY_TYPE = 0x8085;
int GL_INDEX_ARRAY_STRIDE = 0x8086;
int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088;
int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089;
int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A;
int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C;
int GL_VERTEX_ARRAY_POINTER = 0x808E;
int GL_NORMAL_ARRAY_POINTER = 0x808F;
int GL_COLOR_ARRAY_POINTER = 0x8090;
int GL_INDEX_ARRAY_POINTER = 0x8091;
int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092;
int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093;
int GL_V2F = 0x2A20;
int GL_V3F = 0x2A21;
int GL_C4UB_V2F = 0x2A22;
int GL_C4UB_V3F = 0x2A23;
int GL_C3F_V3F = 0x2A24;
int GL_N3F_V3F = 0x2A25;
int GL_C4F_N3F_V3F = 0x2A26;
int GL_T2F_V3F = 0x2A27;
int GL_T4F_V4F = 0x2A28;
int GL_T2F_C4UB_V3F = 0x2A29;
int GL_T2F_C3F_V3F = 0x2A2A;
int GL_T2F_N3F_V3F = 0x2A2B;
int GL_T2F_C4F_N3F_V3F = 0x2A2C;
int GL_T4F_C4F_N3F_V4F = 0x2A2D;
/* For compatibility with OpenGL v1.0 */
int GL_LOGIC_OP = GL_INDEX_LOGIC_OP;
int GL_TEXTURE_COMPONENTS = GL_TEXTURE_INTERNAL_FORMAT;
@DeprecatedGL
void glAccum(@GLenum int op, float value);
@DeprecatedGL
void glAlphaFunc(@GLenum int func, float ref);
void glClearColor(float red, float green, float blue, float alpha);
@DeprecatedGL
void glClearAccum(float red, float green, float blue, float alpha);
void glClear(@GLbitfield int mask);
@DeprecatedGL
void glCallLists(@AutoSize("lists") @GLsizei int n, @AutoType("lists") @GLenum int type,
@Const
@GLubyte
@GLushort
@GLuint Buffer lists);
@DeprecatedGL
void glCallList(@GLuint int list);
void glBlendFunc(@GLenum int sfactor, @GLenum int dfactor);
@DeprecatedGL
void glBitmap(@GLsizei int width, @GLsizei int height, float xorig, float yorig, float xmove, float ymove,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "(((width + 7)/8)*height)", canBeNull = true)
@Const
@GLubyte ByteBuffer bitmap);
void glBindTexture(@GLenum int target, @GLuint int texture);
@DeprecatedGL
void glPrioritizeTextures(@AutoSize("textures") @GLsizei int n,
@Const
@GLuint IntBuffer textures,
@Const
@Check("textures.remaining()")
FloatBuffer priorities);
@DeprecatedGL
boolean glAreTexturesResident(@AutoSize("textures") @GLsizei int n,
@Const
@GLuint IntBuffer textures,
@Check("textures.remaining()")
@GLboolean ByteBuffer residences);
@NoErrorCheck
@DeprecatedGL
@Code("\t\tif ( ContextCapabilities.DEBUG ) StateTracker.setBeginEnd(caps, true);")
void glBegin(@GLenum int mode);
@DeprecatedGL
@Code("\t\tif ( ContextCapabilities.DEBUG ) StateTracker.setBeginEnd(caps, false);")
void glEnd();
@NoErrorCheck
void glArrayElement(int i);
void glClearDepth(double depth);
@DeprecatedGL
void glDeleteLists(@GLuint int list, @GLsizei int range);
void glDeleteTextures(@AutoSize("textures") @GLsizei int n, @Const @GLuint IntBuffer textures);
@Alternate("glDeleteTextures")
void glDeleteTextures(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, texture)", keepParam = true) int texture);
void glCullFace(@GLenum int mode);
void glCopyTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, int x, int y, @GLsizei int width, @GLsizei int height);
void glCopyTexSubImage1D(@GLenum int target, int level, int xoffset, int x, int y, @GLsizei int width);
void glCopyTexImage2D(@GLenum int target, int level, int internalFormat, int x, int y, @GLsizei int width, @GLsizei int height, int border);
void glCopyTexImage1D(@GLenum int target, int level, int internalFormat, int x, int y, @GLsizei int width, int border);
void glCopyPixels(int x, int y, int width, int height, int type);
@DeprecatedGL
void glColorPointer(int size, @AutoType("pointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@Check
@BufferObject(BufferKind.ArrayVBO)
@Const
@GLfloat
@GLdouble
@GLubyte
@GLbyte Buffer pointer);
@DeprecatedGL
@Alternate("glColorPointer")
void glColorPointer(int size, @GLenum int type, @GLsizei int stride,
@CachedReference
@Check
@BufferObject(BufferKind.ArrayVBO)
@Const ByteBuffer pointer);
@DeprecatedGL
void glColorMaterial(@GLenum int face, @GLenum int mode);
void glColorMask(boolean red, boolean green, boolean blue, boolean alpha);
@NoErrorCheck
@DeprecatedGL
void glColor3b(byte red, byte green, byte blue);
@NoErrorCheck
@DeprecatedGL
void glColor3f(float red, float green, float blue);
@NoErrorCheck
@DeprecatedGL
void glColor3d(double red, double green, double blue);
@NoErrorCheck
@DeprecatedGL
void glColor3ub(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue);
@NoErrorCheck
@DeprecatedGL
void glColor4b(byte red, byte green, byte blue, byte alpha);
@NoErrorCheck
@DeprecatedGL
void glColor4f(float red, float green, float blue, float alpha);
@NoErrorCheck
@DeprecatedGL
void glColor4d(double red, double green, double blue, double alpha);
@NoErrorCheck
@DeprecatedGL
void glColor4ub(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue, @GLubyte byte alpha);
void glClipPlane(@GLenum int plane, @Check("4") @Const DoubleBuffer equation);
void glClearStencil(int s);
// This function is only used in indexed color mode
// void glClearIndex(float c);
@DeprecatedGL
void glEvalPoint1(int i);
@DeprecatedGL
void glEvalPoint2(int i, int j);
@DeprecatedGL
void glEvalMesh1(@GLenum int mode, int i1, int i2);
@DeprecatedGL
void glEvalMesh2(@GLenum int mode, int i1, int i2, int j1, int j2);
@DeprecatedGL
void glEvalCoord1f(float u);
@DeprecatedGL
void glEvalCoord1d(double u);
@DeprecatedGL
void glEvalCoord2f(float u, float v);
@DeprecatedGL
void glEvalCoord2d(double u, double v);
@DeprecatedGL
void glEnableClientState(@GLenum int cap);
@DeprecatedGL
void glDisableClientState(@GLenum int cap);
void glEnable(@GLenum int cap);
void glDisable(@GLenum int cap);
@DeprecatedGL
void glEdgeFlagPointer(int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte Buffer pointer);
@DeprecatedGL
void glEdgeFlag(boolean flag);
@DeprecatedGL
void glDrawPixels(@GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@BufferObject(BufferKind.UnpackPBO)
@Const
@GLbyte
@GLshort
@GLint Buffer pixels);
void glDrawElements(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices);
@Alternate("glDrawElements")
void glDrawElements(@GLenum int mode, @GLsizei int count, @GLenum int type, @BufferObject(BufferKind.ElementVBO) @Const @Check("count") ByteBuffer indices);
void glDrawBuffer(@GLenum int mode);
void glDrawArrays(@GLenum int mode, int first, @GLsizei int count);
void glDepthRange(double zNear, double zFar);
void glDepthMask(boolean flag);
void glDepthFunc(@GLenum int func);
@DeprecatedGL
void glFeedbackBuffer(@AutoSize("buffer") @GLsizei int size, @GLenum int type, FloatBuffer buffer);
@StripPostfix("values")
@DeprecatedGL
void glGetPixelMapfv(@GLenum int map, @OutParameter @Check("256") @BufferObject(BufferKind.PackPBO) FloatBuffer values);
@StripPostfix("values")
@DeprecatedGL
void glGetPixelMapuiv(@GLenum int map, @OutParameter @Check("256") @BufferObject(BufferKind.PackPBO) @GLuint IntBuffer values);
@StripPostfix("values")
@DeprecatedGL
void glGetPixelMapusv(@GLenum int map, @OutParameter @Check("256") @BufferObject(BufferKind.PackPBO) @GLushort ShortBuffer values);
@StripPostfix("params")
@DeprecatedGL
void glGetMaterialfv(@GLenum int face, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetMaterialiv(@GLenum int face, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("v")
@DeprecatedGL
void glGetMapfv(@GLenum int target, @GLenum int query, @OutParameter @Check("256") FloatBuffer v);
@StripPostfix("v")
@DeprecatedGL
void glGetMapdv(@GLenum int target, @GLenum int query, @OutParameter @Check("256") DoubleBuffer v);
@StripPostfix("v")
@DeprecatedGL
void glGetMapiv(@GLenum int target, @GLenum int query, @OutParameter @Check("256") IntBuffer v);
@StripPostfix("params")
@DeprecatedGL
void glGetLightfv(@GLenum int light, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetLightiv(@GLenum int light, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@NoErrorCheck
int glGetError();
void glGetClipPlane(@GLenum int plane, @OutParameter @Check("4") DoubleBuffer equation);
@StripPostfix("params")
void glGetBooleanv(@GLenum int pname, @OutParameter @Check("16") @GLboolean ByteBuffer params);
@Alternate("glGetBooleanv")
@GLreturn("params")
@StripPostfix("params")
void glGetBooleanv2(@GLenum int pname, @OutParameter @GLboolean ByteBuffer params);
@StripPostfix("params")
void glGetDoublev(@GLenum int pname, @OutParameter @Check("16") DoubleBuffer params);
@Alternate("glGetDoublev")
@GLreturn("params")
@StripPostfix("params")
void glGetDoublev2(@GLenum int pname, @OutParameter DoubleBuffer params);
@StripPostfix("params")
void glGetFloatv(@GLenum int pname, @OutParameter @Check("16") FloatBuffer params);
@Alternate("glGetFloatv")
@GLreturn("params")
@StripPostfix("params")
void glGetFloatv2(@GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetIntegerv(@GLenum int pname, @OutParameter @Check("16") IntBuffer params);
@Alternate("glGetIntegerv")
@GLreturn("params")
@StripPostfix("params")
void glGetIntegerv2(@GLenum int pname, @OutParameter IntBuffer params);
void glGenTextures(@AutoSize("textures") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
@Alternate("glGenTextures")
@GLreturn("textures")
void glGenTextures2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
@GLuint
@DeprecatedGL
int glGenLists(@GLsizei int range);
@DeprecatedGL
void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar);
void glFrontFace(@GLenum int mode);
@DeprecatedGL
void glFogf(@GLenum int pname, float param);
@DeprecatedGL
void glFogi(@GLenum int pname, int param);
@StripPostfix("params")
@DeprecatedGL
void glFogfv(@GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glFogiv(@GLenum int pname, @Check("4") @Const IntBuffer params);
void glFlush();
void glFinish();
@StripPostfix("result")
void glGetPointerv(@GLenum int pname, @Result @GLvoid ByteBuffer result);
boolean glIsEnabled(@GLenum int cap);
void glInterleavedArrays(@GLenum int format, @GLsizei int stride,
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pointer);
@DeprecatedGL
void glInitNames();
void glHint(@GLenum int target, @GLenum int mode);
@StripPostfix("params")
void glGetTexParameterfv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetTexParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameterfv2(@GLenum int target, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTexParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTexParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTexLevelParameterfv(@GLenum int target, int level, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetTexLevelParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexLevelParameterfv2(@GLenum int target, int level, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetTexLevelParameteriv(@GLenum int target, int level, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTexLevelParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexLevelParameteriv2(@GLenum int target, int level, @GLenum int pname, @OutParameter IntBuffer params);
void glGetTexImage(@GLenum int target, int level, @GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)")
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@StripPostfix("params")
@DeprecatedGL
void glGetTexGeniv(@GLenum int coord, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTexGeniv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@DeprecatedGL
void glGetTexGeniv2(@GLenum int coord, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetTexGenfv(@GLenum int coord, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetTexGenfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@DeprecatedGL
void glGetTexGenfv2(@GLenum int coord, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glGetTexGendv(@GLenum int coord, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
@Alternate("glGetTexGendv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@DeprecatedGL
void glGetTexGendv2(@GLenum int coord, @GLenum int pname, @OutParameter DoubleBuffer params);
@StripPostfix("params")
void glGetTexEnviv(@GLenum int coord, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetTexEnviv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexEnviv2(@GLenum int coord, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetTexEnvfv(@GLenum int coord, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetTexEnvfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetTexEnvfv2(@GLenum int coord, @GLenum int pname, @OutParameter FloatBuffer params);
@Const
String glGetString(int name);
@DeprecatedGL
void glGetPolygonStipple(@OutParameter @BufferObject(BufferKind.PackPBO) @Check("128") @GLubyte ByteBuffer mask);
@DeprecatedGL
boolean glIsList(@GLuint int list);
@DeprecatedGL
void glMaterialf(@GLenum int face, @GLenum int pname, float param);
@DeprecatedGL
void glMateriali(@GLenum int face, @GLenum int pname, int param);
@StripPostfix("params")
@DeprecatedGL
void glMaterialfv(@GLenum int face, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glMaterialiv(@GLenum int face, @GLenum int pname, @Check("4") @Const IntBuffer params);
@DeprecatedGL
void glMapGrid1f(int un, float u1, float u2);
@DeprecatedGL
void glMapGrid1d(int un, double u1, double u2);
@DeprecatedGL
void glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2);
@DeprecatedGL
void glMapGrid2d(int un, double u1, double u2, int vn, double v1, double v2);
// TODO: check buffer size valid
@DeprecatedGL
void glMap2f(@GLenum int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, @Check @Const FloatBuffer points);
@DeprecatedGL
void glMap2d(@GLenum int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, @Check @Const DoubleBuffer points);
// TODO: check buffer size valid
@DeprecatedGL
void glMap1f(@GLenum int target, float u1, float u2, int stride, int order, @Check @Const FloatBuffer points);
@DeprecatedGL
void glMap1d(@GLenum int target, double u1, double u2, int stride, int order, @Check @Const DoubleBuffer points);
void glLogicOp(@GLenum int opcode);
@DeprecatedGL
void glLoadName(@GLuint int name);
@StripPostfix("m")
@DeprecatedGL
void glLoadMatrixf(@Check("16") @Const FloatBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glLoadMatrixd(@Check("16") @Const DoubleBuffer m);
@DeprecatedGL
void glLoadIdentity();
@DeprecatedGL
void glListBase(@GLuint int base);
void glLineWidth(float width);
@DeprecatedGL
void glLineStipple(int factor, @GLushort short pattern);
@DeprecatedGL
void glLightModelf(@GLenum int pname, float param);
@DeprecatedGL
void glLightModeli(@GLenum int pname, int param);
@StripPostfix("params")
@DeprecatedGL
void glLightModelfv(@GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glLightModeliv(@GLenum int pname, @Check("4") @Const IntBuffer params);
@DeprecatedGL
void glLightf(@GLenum int light, @GLenum int pname, float param);
@DeprecatedGL
void glLighti(@GLenum int light, @GLenum int pname, int param);
@StripPostfix("params")
@DeprecatedGL
void glLightfv(@GLenum int light, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glLightiv(@GLenum int light, @GLenum int pname, @Check("4") @Const IntBuffer params);
boolean glIsTexture(@GLuint int texture);
@DeprecatedGL
void glMatrixMode(@GLenum int mode);
@DeprecatedGL
void glPolygonStipple(@BufferObject(BufferKind.UnpackPBO) @Check("128") @Const @GLubyte ByteBuffer mask);
void glPolygonOffset(float factor, float units);
void glPolygonMode(@GLenum int face, @GLenum int mode);
void glPointSize(float size);
@DeprecatedGL
void glPixelZoom(float xfactor, float yfactor);
@DeprecatedGL
void glPixelTransferf(@GLenum int pname, float param);
@DeprecatedGL
void glPixelTransferi(@GLenum int pname, int param);
void glPixelStoref(@GLenum int pname, float param);
void glPixelStorei(@GLenum int pname, int param);
@StripPostfix("values")
@DeprecatedGL
void glPixelMapfv(@GLenum int map, @AutoSize("values") @GLsizei int mapsize, @BufferObject(BufferKind.UnpackPBO) @Const FloatBuffer values);
@StripPostfix("values")
@DeprecatedGL
void glPixelMapuiv(@GLenum int map, @AutoSize("values") @GLsizei int mapsize, @BufferObject(BufferKind.UnpackPBO) @Const @GLuint IntBuffer values);
@StripPostfix("values")
@DeprecatedGL
void glPixelMapusv(@GLenum int map, @AutoSize("values") @GLsizei int mapsize, @BufferObject(BufferKind.UnpackPBO) @Const @GLushort ShortBuffer values);
@DeprecatedGL
void glPassThrough(float token);
@DeprecatedGL
void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar);
@DeprecatedGL
void glNormalPointer(@AutoType("pointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLint
@GLbyte
@GLfloat
@GLdouble Buffer pointer);
@DeprecatedGL
@Alternate("glNormalPointer")
void glNormalPointer(@GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const ByteBuffer pointer);
@NoErrorCheck
@DeprecatedGL
void glNormal3b(byte nx, byte ny, byte nz);
@NoErrorCheck
@DeprecatedGL
void glNormal3f(float nx, float ny, float nz);
@NoErrorCheck
@DeprecatedGL
void glNormal3d(double nx, double ny, double nz);
@NoErrorCheck
@DeprecatedGL
void glNormal3i(int nx, int ny, int nz);
@DeprecatedGL
void glNewList(@GLuint int list, @GLenum int mode);
@DeprecatedGL
void glEndList();
@StripPostfix("m")
@DeprecatedGL
void glMultMatrixf(@Check("16") @Const FloatBuffer m);
@StripPostfix("m")
@DeprecatedGL
void glMultMatrixd(@Check("16") @Const DoubleBuffer m);
void glShadeModel(@GLenum int mode);
@DeprecatedGL
void glSelectBuffer(@AutoSize("buffer") @GLsizei int size, @GLuint IntBuffer buffer);
void glScissor(int x, int y, @GLsizei int width, @GLsizei int height);
@DeprecatedGL
void glScalef(float x, float y, float z);
@DeprecatedGL
void glScaled(double x, double y, double z);
@DeprecatedGL
void glRotatef(float angle, float x, float y, float z);
@DeprecatedGL
void glRotated(double angle, double x, double y, double z);
@DeprecatedGL
int glRenderMode(@GLenum int mode);
@DeprecatedGL
void glRectf(float x1, float y1, float x2, float y2);
@DeprecatedGL
void glRectd(double x1, double y1, double x2, double y2);
@DeprecatedGL
void glRecti(int x1, int y1, int x2, int y2);
void glReadPixels(int x, int y, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glReadBuffer(@GLenum int mode);
@DeprecatedGL
void glRasterPos2f(float x, float y);
@DeprecatedGL
void glRasterPos2d(double x, double y);
@DeprecatedGL
void glRasterPos2i(int x, int y);
@DeprecatedGL
void glRasterPos3f(float x, float y, float z);
@DeprecatedGL
void glRasterPos3d(double x, double y, double z);
@DeprecatedGL
void glRasterPos3i(int x, int y, int z);
@DeprecatedGL
void glRasterPos4f(float x, float y, float z, float w);
@DeprecatedGL
void glRasterPos4d(double x, double y, double z, double w);
@DeprecatedGL
void glRasterPos4i(int x, int y, int z, int w);
@DeprecatedGL
void glPushName(@GLuint int name);
@DeprecatedGL
void glPopName();
@DeprecatedGL
void glPushMatrix();
@DeprecatedGL
void glPopMatrix();
@Code(" StateTracker.pushAttrib(caps, mask);")
@DeprecatedGL
void glPushClientAttrib(@GLbitfield int mask);
@Code(" StateTracker.popAttrib(caps);")
@DeprecatedGL
void glPopClientAttrib();
@DeprecatedGL
void glPushAttrib(@GLbitfield int mask);
@DeprecatedGL
void glPopAttrib();
void glStencilFunc(@GLenum int func, int ref, @GLuint int mask);
@DeprecatedGL
void glVertexPointer(int size, @AutoType("pointer") @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pointer);
@DeprecatedGL
@Alternate("glVertexPointer")
void glVertexPointer(int size, @GLenum int type, @GLsizei int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const ByteBuffer pointer);
@NoErrorCheck
@DeprecatedGL
void glVertex2f(float x, float y);
@NoErrorCheck
@DeprecatedGL
void glVertex2d(double x, double y);
@NoErrorCheck
@DeprecatedGL
void glVertex2i(int x, int y);
@NoErrorCheck
@DeprecatedGL
void glVertex3f(float x, float y, float z);
@NoErrorCheck
@DeprecatedGL
void glVertex3d(double x, double y, double z);
@NoErrorCheck
@DeprecatedGL
void glVertex3i(int x, int y, int z);
@NoErrorCheck
@DeprecatedGL
void glVertex4f(float x, float y, float z, float w);
@NoErrorCheck
@DeprecatedGL
void glVertex4d(double x, double y, double z, double w);
@NoErrorCheck
@DeprecatedGL
void glVertex4i(int x, int y, int z, int w);
@DeprecatedGL
void glTranslatef(float x, float y, float z);
@DeprecatedGL
void glTranslated(double x, double y, double z);
void glTexImage1D(@GLenum int target, int level, int internalformat, @GLsizei int width, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage1DStorage(pixels, format, type, width)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTexImage2D(@GLenum int target, int level, int internalformat, int width, int height, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTexSubImage1D(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTexParameterf(@GLenum int target, @GLenum int pname, float param);
void glTexParameteri(@GLenum int target, @GLenum int pname, int param);
@StripPostfix("param")
void glTexParameterfv(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer param);
@StripPostfix("param")
void glTexParameteriv(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer param);
@DeprecatedGL
void glTexGenf(@GLenum int coord, @GLenum int pname, float param);
@DeprecatedGL
void glTexGend(@GLenum int coord, @GLenum int pname, double param);
@StripPostfix("params")
@DeprecatedGL
void glTexGenfv(@GLenum int coord, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
@DeprecatedGL
void glTexGendv(@GLenum int coord, @GLenum int pname, @Check("4") @Const DoubleBuffer params);
@DeprecatedGL
void glTexGeni(@GLenum int coord, @GLenum int pname, int param);
@StripPostfix("params")
@DeprecatedGL
void glTexGeniv(@GLenum int coord, @GLenum int pname, @Check("4") @Const IntBuffer params);
void glTexEnvf(@GLenum int target, @GLenum int pname, float param);
void glTexEnvi(@GLenum int target, @GLenum int pname, int param);
@StripPostfix("params")
void glTexEnvfv(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glTexEnviv(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params);
@DeprecatedGL
void glTexCoordPointer(int size, @AutoType("pointer") @GLenum int type, @GLsizei int stride,
@CachedReference(index = "StateTracker.getReferences(caps).glClientActiveTexture", name = "glTexCoordPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLint
@GLshort
@GLfloat
@GLdouble Buffer pointer);
@DeprecatedGL
@Alternate("glTexCoordPointer")
void glTexCoordPointer(int size, @GLenum int type, @GLsizei int stride,
@CachedReference(index = "StateTracker.getReferences(caps).glClientActiveTexture", name = "glTexCoordPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const ByteBuffer pointer);
@NoErrorCheck
@DeprecatedGL
void glTexCoord1f(float s);
@NoErrorCheck
@DeprecatedGL
void glTexCoord1d(double s);
@NoErrorCheck
@DeprecatedGL
void glTexCoord2f(float s, float t);
@NoErrorCheck
@DeprecatedGL
void glTexCoord2d(double s, double t);
@NoErrorCheck
@DeprecatedGL
void glTexCoord3f(float s, float t, float r);
@NoErrorCheck
@DeprecatedGL
void glTexCoord3d(double s, double t, double r);
@NoErrorCheck
@DeprecatedGL
void glTexCoord4f(float s, float t, float r, float q);
@NoErrorCheck
@DeprecatedGL
void glTexCoord4d(double s, double t, double r, double q);
void glStencilOp(@GLenum int fail, @GLenum int zfail, @GLenum int zpass);
void glStencilMask(@GLuint int mask);
void glViewport(int x, int y, @GLsizei int width, @GLsizei int height);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_explicit_uniform_location.java 0000644 0001750 0001750 00000003432 12702226520 025542 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_explicit_uniform_location {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, and GetInteger64v:
*/
int GL_MAX_UNIFORM_LOCATIONS = 0x826E;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_mirror_clamp_to_edge.java 0000644 0001750 0001750 00000003753 12702226520 026234 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_mirror_clamp_to_edge {
/**
* Accepted by the <param> parameter of TexParameter{if}, SamplerParameter{if}
* and SamplerParameter{if}v, and by the <params> parameter of
* TexParameter{if}v, TexParameterI{i ui}v and SamplerParameterI{i ui}v when
* their <pname> parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or
* TEXTURE_WRAP_R:
*/
int GL_MIRROR_CLAMP_TO_EDGE = 0x8743;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_env_combine.java 0000644 0001750 0001750 00000004543 12702226520 024342 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_env_combine {
int GL_COMBINE_ARB = 0x8570;
int GL_COMBINE_RGB_ARB = 0x8571;
int GL_COMBINE_ALPHA_ARB = 0x8572;
int GL_SOURCE0_RGB_ARB = 0x8580;
int GL_SOURCE1_RGB_ARB = 0x8581;
int GL_SOURCE2_RGB_ARB = 0x8582;
int GL_SOURCE0_ALPHA_ARB = 0x8588;
int GL_SOURCE1_ALPHA_ARB = 0x8589;
int GL_SOURCE2_ALPHA_ARB = 0x858A;
int GL_OPERAND0_RGB_ARB = 0x8590;
int GL_OPERAND1_RGB_ARB = 0x8591;
int GL_OPERAND2_RGB_ARB = 0x8592;
int GL_OPERAND0_ALPHA_ARB = 0x8598;
int GL_OPERAND1_ALPHA_ARB = 0x8599;
int GL_OPERAND2_ALPHA_ARB = 0x859A;
int GL_RGB_SCALE_ARB = 0x8573;
int GL_ADD_SIGNED_ARB = 0x8574;
int GL_INTERPOLATE_ARB = 0x8575;
int GL_SUBTRACT_ARB = 0x84E7;
int GL_CONSTANT_ARB = 0x8576;
int GL_PRIMARY_COLOR_ARB = 0x8577;
int GL_PREVIOUS_ARB = 0x8578;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_precision.java 0000644 0001750 0001750 00000003146 12702226520 023615 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_precision {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_fence.java 0000644 0001750 0001750 00000005443 12702226520 021275 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.*;
public interface NV_fence {
int GL_ALL_COMPLETED_NV = 0x84F2;
int GL_FENCE_STATUS_NV = 0x84F3;
int GL_FENCE_CONDITION_NV = 0x84F4;
void glGenFencesNV(@AutoSize("piFences") @GLsizei int n, @OutParameter @GLuint IntBuffer piFences);
@Alternate("glGenFencesNV")
@GLreturn("piFences")
void glGenFencesNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer piFences);
void glDeleteFencesNV(@AutoSize("piFences") @GLsizei int n, @Const @GLuint IntBuffer piFences);
@Alternate("glDeleteFencesNV")
void glDeleteFencesNV(@Constant("1") @GLsizei int n, @Const @GLuint @Constant(value = "APIUtil.getInt(caps, fence)", keepParam = true) int fence);
void glSetFenceNV(@GLuint int fence, @GLenum int condition);
boolean glTestFenceNV(@GLuint int fence);
void glFinishFenceNV(@GLuint int fence);
boolean glIsFenceNV(@GLuint int fence);
void glGetFenceivNV(@GLuint int fence, @GLenum int pname, @OutParameter @Check("4") IntBuffer piParams);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GREMEDY_string_marker.java 0000644 0001750 0001750 00000003751 12702226520 023635 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.ByteBuffer;
public interface GREMEDY_string_marker {
void glStringMarkerGREMEDY(@AutoSize("string") @GLsizei int len, @Const ByteBuffer string);
@Alternate("glStringMarkerGREMEDY")
void glStringMarkerGREMEDY(@Constant("string.length()") @GLsizei int len, CharSequence string);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_explicit_multisample.java 0000644 0001750 0001750 00000007777 12702226520 024466 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public interface NV_explicit_multisample {
/** Accepted by the <pname> parameter of GetMultisamplefvNV: */
int GL_SAMPLE_POSITION_NV = 0x8E50;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
* the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_SAMPLE_MASK_NV = 0x8E51;
/**
* Accepted by the <pname> parameter of GetBooleanIndexedvEXT and
* GetIntegerIndexedvEXT:
*/
int GL_SAMPLE_MASK_VALUE_NV = 0x8E52;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53;
int GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54;
int GL_MAX_SAMPLE_MASK_WORDS_NV = 0x8E59;
/** Accepted by the <target> parameter of BindTexture, and TexRenderbufferNV: */
int GL_TEXTURE_RENDERBUFFER_NV = 0x8E55;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_RENDERBUFFER_NV = 0x8E56;
int GL_INT_SAMPLER_RENDERBUFFER_NV = 0x8E57;
int GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58;
@Reuse("EXTDrawBuffers2")
@StripPostfix(value = "data", extension = "EXT")
void glGetBooleanIndexedvEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("4") @GLboolean ByteBuffer data);
@Reuse("EXTDrawBuffers2")
@Alternate("glGetBooleanIndexedvEXT")
@GLreturn("data")
@StripPostfix(value = "data", extension = "EXT")
void glGetBooleanIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter @GLboolean ByteBuffer data);
@Reuse("EXTDrawBuffers2")
@StripPostfix(value = "data", extension = "EXT")
void glGetIntegerIndexedvEXT(@GLenum int pname, @GLuint int index, @OutParameter @Check("16") IntBuffer data);
@Reuse("EXTDrawBuffers2")
@Alternate("glGetIntegerIndexedvEXT")
@GLreturn("data")
@StripPostfix(value = "data", extension = "EXT")
void glGetIntegerIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter IntBuffer data);
@StripPostfix("val")
void glGetMultisamplefvNV(@GLenum int pname, @GLuint int index, @OutParameter @Check("2") FloatBuffer val);
void glSampleMaskIndexedNV(@GLuint int index, @GLbitfield int mask);
void glTexRenderbufferNV(@GLenum int target, @GLuint int renderbuffer);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_cull_distance.java 0000644 0001750 0001750 00000003507 12702226520 023106 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_cull_distance {
/** Accepted by the <pname> parameter of GetBooeleanv, GetDoublev, GetFloatv GetIntegerv, and GetInteger64v: */
int GL_MAX_CULL_DISTANCES = 0x82F9,
GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_blend_func_separate.java 0000644 0001750 0001750 00000003661 12702226520 024315 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface EXT_blend_func_separate {
int GL_BLEND_DST_RGB_EXT = 0x80C8;
int GL_BLEND_SRC_RGB_EXT = 0x80C9;
int GL_BLEND_DST_ALPHA_EXT = 0x80CA;
int GL_BLEND_SRC_ALPHA_EXT = 0x80CB;
void glBlendFuncSeparateEXT(@GLenum int sfactorRGB, @GLenum int dfactorRGB, @GLenum int sfactorAlpha, @GLenum int dfactorAlpha);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_shader.java 0000644 0001750 0001750 00000024221 12702226520 023134 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface ARB_vertex_shader {
/**
* Accepted by the <shaderType> argument of CreateShaderObjectARB and
* returned by the <params> parameter of GetObjectParameter{if}vARB:
*/
int GL_VERTEX_SHADER_ARB = 0x8B31;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A;
int GL_MAX_VARYING_FLOATS_ARB = 0x8B4B;
int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869;
int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C;
int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D;
int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and
* by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev:
*/
int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642;
int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643;
/** Accepted by the <pname> parameter GetObjectParameter{if}vARB: */
int GL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89;
int GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A;
/** Accepted by the <pname> parameter of GetVertexAttrib{dfi}vARB: */
int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622;
int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623;
int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624;
int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625;
int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A;
int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
/** Accepted by the <pname> parameter of GetVertexAttribPointervARB: */
int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
/** Returned by the <type> parameter of GetActiveAttribARB: */
int GL_FLOAT_VEC2_ARB = 0x8B50;
int GL_FLOAT_VEC3_ARB = 0x8B51;
int GL_FLOAT_VEC4_ARB = 0x8B52;
int GL_FLOAT_MAT2_ARB = 0x8B5A;
int GL_FLOAT_MAT3_ARB = 0x8B5B;
int GL_FLOAT_MAT4_ARB = 0x8B5C;
@NoErrorCheck
void glVertexAttrib1sARB(@GLuint int index, short v0);
@NoErrorCheck
void glVertexAttrib1fARB(@GLuint int index, float v0);
@NoErrorCheck
void glVertexAttrib1dARB(@GLuint int index, double v0);
@NoErrorCheck
void glVertexAttrib2sARB(@GLuint int index, short v0, short v1);
@NoErrorCheck
void glVertexAttrib2fARB(@GLuint int index, float v0, float v1);
@NoErrorCheck
void glVertexAttrib2dARB(@GLuint int index, double v0, double v1);
@NoErrorCheck
void glVertexAttrib3sARB(@GLuint int index, short v0, short v1, short v2);
@NoErrorCheck
void glVertexAttrib3fARB(@GLuint int index, float v0, float v1, float v2);
@NoErrorCheck
void glVertexAttrib3dARB(@GLuint int index, double v0, double v1, double v2);
@NoErrorCheck
void glVertexAttrib4sARB(@GLuint int index, short v0, short v1, short v2, short v3);
@NoErrorCheck
void glVertexAttrib4fARB(@GLuint int index, float v0, float v1, float v2, float v3);
@NoErrorCheck
void glVertexAttrib4dARB(@GLuint int index, double v0, double v1, double v2, double v3);
@NoErrorCheck
void glVertexAttrib4NubARB(@GLuint int index, @GLubyte byte x, @GLubyte byte y, @GLubyte byte z, @GLubyte byte w);
void glVertexAttribPointerARB(@GLuint int index, int size, @AutoType("buffer") @GLenum int type, boolean normalized, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer buffer);
@Alternate("glVertexAttribPointerARB")
void glVertexAttribPointerARB(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const ByteBuffer buffer);
void glEnableVertexAttribArrayARB(@GLuint int index);
void glDisableVertexAttribArrayARB(@GLuint int index);
void glBindAttribLocationARB(@GLhandleARB int programObj, @GLuint int index, @NullTerminated @Const @GLcharARB ByteBuffer name);
@Alternate("glBindAttribLocationARB")
void glBindAttribLocationARB(@GLhandleARB int programObj, @GLuint int index, @NullTerminated CharSequence name);
void glGetActiveAttribARB(@GLhandleARB int programObj, @GLuint int index, @AutoSize("name") @GLsizei int maxLength,
@OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length,
@OutParameter @Check("1") IntBuffer size,
@OutParameter @GLenum @Check("1") IntBuffer type,
@OutParameter @GLcharARB ByteBuffer name);
/** Overloads glGetActiveAttribARB. This version returns both size and type in the sizeType buffer (at .position() and .position() + 1). */
@Alternate("glGetActiveAttribARB")
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveAttribARB2(@GLhandleARB int programObj, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @Check("2") IntBuffer sizeType,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(sizeType, sizeType.position() + 1)") IntBuffer type,
@OutParameter @GLcharARB ByteBuffer name);
/** Overloads glGetActiveAttribARB. This version returns only the attrib name. */
@Alternate(value = "glGetActiveAttribARB", javaAlt = true)
@GLreturn(value = "name", maxLength = "maxLength")
void glGetActiveAttribARB(@GLhandleARB int programObj, @GLuint int index, @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt(caps)), MemoryUtil.getAddress(APIUtil.getBufferInt(caps), 1)") IntBuffer length,
@OutParameter @GLcharARB ByteBuffer name);
/** Overloads glGetActiveAttribARB. This version returns only the attrib size. */
@Alternate(value = "glGetActiveAttribARB", javaAlt = true)
@GLreturn(value = "size")
void glGetActiveAttribSizeARB(@GLhandleARB int programObj, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter IntBuffer size,
@OutParameter @GLenum @Constant("MemoryUtil.getAddress(size, 1)") IntBuffer type, // Reuse size buffer and ignore
@OutParameter @GLcharARB @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
/** Overloads glGetActiveAttribARB. This version returns only the attrib type. */
@Alternate(value = "glGetActiveAttribARB", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveAttribTypeARB(@GLhandleARB int programObj, @GLuint int index, @Constant("0") @GLsizei int maxLength,
@OutParameter @GLsizei @Constant("0L") IntBuffer length,
@OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
@OutParameter @GLenum IntBuffer type,
@OutParameter @GLcharARB @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
int glGetAttribLocationARB(@GLhandleARB int programObj, @NullTerminated @Const @GLcharARB ByteBuffer name);
@Alternate("glGetAttribLocationARB")
int glGetAttribLocationARB(@GLhandleARB int programObj, @NullTerminated CharSequence name);
@StripPostfix("params")
void glGetVertexAttribfvARB(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetVertexAttribdvARB(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
@StripPostfix("params")
void glGetVertexAttribivARB(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("result")
void glGetVertexAttribPointervARB(@GLuint int index, @GLenum int pname, @Result @GLvoid ByteBuffer result);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_gpu_shader4.java 0000644 0001750 0001750 00000017363 12702226520 022543 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.ShortBuffer;
public interface EXT_gpu_shader4 {
/**
* Accepted by the <pname> parameters of GetVertexAttribdv,
* GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIivEXT, and
* GetVertexAttribIuivEXT:
*/
int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD;
/** Returned by the <type> parameter of GetActiveUniform: */
int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0;
int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1;
int GL_SAMPLER_BUFFER_EXT = 0x8DC2;
int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3;
int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4;
int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5;
int GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6;
int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7;
int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8;
int GL_INT_SAMPLER_1D_EXT = 0x8DC9;
int GL_INT_SAMPLER_2D_EXT = 0x8DCA;
int GL_INT_SAMPLER_3D_EXT = 0x8DCB;
int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC;
int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD;
int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE;
int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF;
int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0;
int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1;
int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2;
int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3;
int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4;
int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5;
int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6;
int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7;
int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904;
int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905;
@NoErrorCheck
void glVertexAttribI1iEXT(@GLuint int index, int x);
@NoErrorCheck
void glVertexAttribI2iEXT(@GLuint int index, int x, int y);
@NoErrorCheck
void glVertexAttribI3iEXT(@GLuint int index, int x, int y, int z);
@NoErrorCheck
void glVertexAttribI4iEXT(@GLuint int index, int x, int y, int z, int w);
@NoErrorCheck
void glVertexAttribI1uiEXT(@GLuint int index, @GLuint int x);
@NoErrorCheck
void glVertexAttribI2uiEXT(@GLuint int index, @GLuint int x, @GLuint int y);
@NoErrorCheck
void glVertexAttribI3uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z);
@NoErrorCheck
void glVertexAttribI4uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI1ivEXT(@GLuint int index, @Check("1") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI2ivEXT(@GLuint int index, @Check("2") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI3ivEXT(@GLuint int index, @Check("3") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4ivEXT(@GLuint int index, @Check("4") @Const IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI1uivEXT(@GLuint int index, @Check("1") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI2uivEXT(@GLuint int index, @Check("2") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI3uivEXT(@GLuint int index, @Check("3") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4uivEXT(@GLuint int index, @Check("4") @Const @GLuint IntBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4bvEXT(@GLuint int index, @Check("4") @Const ByteBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4svEXT(@GLuint int index, @Check("4") @Const ShortBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4ubvEXT(@GLuint int index, @Check("4") @Const @GLubyte ByteBuffer v);
@NoErrorCheck
@StripPostfix("v")
void glVertexAttribI4usvEXT(@GLuint int index, @Check("4") @Const @GLushort ShortBuffer v);
void glVertexAttribIPointerEXT(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint Buffer buffer);
@StripPostfix("params")
void glGetVertexAttribIivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@StripPostfix("params")
void glGetVertexAttribIuivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
void glUniform1uiEXT(int location, @GLuint int v0);
void glUniform2uiEXT(int location, @GLuint int v0, @GLuint int v1);
void glUniform3uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
void glUniform4uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
@StripPostfix("value")
void glUniform1uivEXT(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform2uivEXT(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform3uivEXT(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("value")
void glUniform4uivEXT(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
@StripPostfix("params")
void glGetUniformuivEXT(@GLuint int program, int location, @OutParameter @Check @GLuint IntBuffer params);
void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glBindFragDataLocationEXT")
void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated CharSequence name);
int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetFragDataLocationEXT")
int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated CharSequence name);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_compute_shader.java 0000644 0001750 0001750 00000007555 12702226520 023306 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLintptr;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_compute_shader {
/**
* Accepted by the <type> parameter of CreateShader and returned in the
* <params> parameter by GetShaderiv:
*/
int GL_COMPUTE_SHADER = 0x91B9;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv, GetFloatv,
* GetDoublev and GetInteger64v:
*/
int GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB,
GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC,
GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD,
GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262,
GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263,
GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264,
GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265,
GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266,
GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleani_v,
* GetFloati_v, GetDoublei_v and GetInteger64i_v:
*/
int GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE,
GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_COMPUTE_WORK_GROUP_SIZE = 0x8267;
/** Accepted by the <pname> parameter of GetActiveUniformBlockiv: */
int GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC;
/** Accepted by the <pname> parameter of GetActiveAtomicCounterBufferiv: */
int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED;
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_DISPATCH_INDIRECT_BUFFER = 0x90EE;
/**
* Accepted by the <value> parameter of GetIntegerv, GetBooleanv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF;
/** Accepted by the <stages> parameter of UseProgramStages: */
int GL_COMPUTE_SHADER_BIT = 0x00000020;
@Reuse("GL43")
void glDispatchCompute(@GLuint int num_groups_x,
@GLuint int num_groups_y,
@GLuint int num_groups_z);
@Reuse("GL43")
void glDispatchComputeIndirect(@GLintptr long indirect);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_compiled_vertex_array.java 0000644 0001750 0001750 00000003516 12702226520 024720 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLsizei;
public interface EXT_compiled_vertex_array {
int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8;
int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9;
void glLockArraysEXT(int first, @GLsizei int count);
void glUnlockArraysEXT();
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_compression_s3tc.java 0000644 0001750 0001750 00000003627 12702226520 025411 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
@Extension(postfix = "EXT", className = "EXTTextureCompressionS3TC")
public interface EXT_texture_compression_s3tc {
int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_texture_image_samples.java 0000644 0001750 0001750 00000003162 12702226520 026206 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_texture_image_samples {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL33.java 0000644 0001750 0001750 00000037000 12702226520 020254 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
@DeprecatedGL
public interface GL33 {
// -----------------------------------------------------------------------
// ----------------------[ ARB_blend_func_extended ]----------------------
// -----------------------------------------------------------------------
/**
* Accepted by the <src> and <dst> parameters of BlendFunc and
* BlendFunci, and by the <srcRGB>, <dstRGB>, <srcAlpha> and <dstAlpha>
* parameters of BlendFuncSeparate and BlendFuncSeparatei:
*/
int GL_SRC1_COLOR = 0x88F9;
int GL_ONE_MINUS_SRC1_COLOR = 0x88FA;
int GL_ONE_MINUS_SRC1_ALPHA = 0x88FB;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
* and GetDoublev:
*/
int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC;
void glBindFragDataLocationIndexed(@GLuint int program, @GLuint int colorNumber, @GLuint int index, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glBindFragDataLocationIndexed")
void glBindFragDataLocationIndexed(@GLuint int program, @GLuint int colorNumber, @GLuint int index, @NullTerminated CharSequence name);
int glGetFragDataIndex(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetFragDataIndex")
int glGetFragDataIndex(@GLuint int program, @NullTerminated CharSequence name);
// --------------------------------------------------------------------
// ----------------------[ ARB_occlusion_query2 ]----------------------
// --------------------------------------------------------------------
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery,
* and GetQueryiv:
*/
int GL_ANY_SAMPLES_PASSED = 0x8C2F;
// -------------------------------------------------------------------
// ----------------------[ ARB_sampler_objects ]----------------------
// -------------------------------------------------------------------
/**
* Accepted by the <value> parameter of the GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv and GetDoublev functions:
*/
int GL_SAMPLER_BINDING = 0x8919;
void glGenSamplers(@AutoSize("samplers") @GLsizei int count, @OutParameter @GLuint IntBuffer samplers);
@Alternate("glGenSamplers")
@GLreturn("samplers")
void glGenSamplers2(@Constant("1") @GLsizei int count, @OutParameter @GLuint IntBuffer samplers);
void glDeleteSamplers(@AutoSize("samplers") @GLsizei int count, @Const @GLuint IntBuffer samplers);
@Alternate("glDeleteSamplers")
void glDeleteSamplers(@Constant("1") @GLsizei int count, @Constant(value = "APIUtil.getInt(caps, sampler)", keepParam = true) int sampler);
boolean glIsSampler(@GLuint int sampler);
void glBindSampler(@GLenum int unit, @GLuint int sampler);
void glSamplerParameteri(@GLuint int sampler, @GLenum int pname, int param);
void glSamplerParameterf(@GLuint int sampler, @GLenum int pname, float param);
@StripPostfix("params")
void glSamplerParameteriv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glSamplerParameterfv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@StripPostfix("params")
void glSamplerParameterIiv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const IntBuffer params);
@StripPostfix("params")
void glSamplerParameterIuiv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const @GLuint IntBuffer params);
@StripPostfix("params")
void glGetSamplerParameteriv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetSamplerParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameteriv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetSamplerParameterfv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Alternate("glGetSamplerParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterfv2(@GLuint int sampler, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetSamplerParameterIiv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetSamplerParameterIiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterIiv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetSamplerParameterIuiv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Alternate("glGetSamplerParameterIuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterIuiv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
// -------------------------------------------------------------------
// ----------------------[ ARB_texture_rgb10_a2ui ]----------------------
// -------------------------------------------------------------------
/**
* Accepted by the <internalFormat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, CopyTexImage2D, RenderbufferStorage and
* RenderbufferStorageMultisample:
*/
int GL_RGB10_A2UI = 0x906F;
// -------------------------------------------------------------------
// ----------------------[ ARB_texture_swizzle ]----------------------
// -------------------------------------------------------------------
/**
* Accepted by the <pname> parameters of TexParameteri,
* TexParameterf, TexParameteriv, TexParameterfv,
* GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_SWIZZLE_R = 0x8E42;
int GL_TEXTURE_SWIZZLE_G = 0x8E43;
int GL_TEXTURE_SWIZZLE_B = 0x8E44;
int GL_TEXTURE_SWIZZLE_A = 0x8E45;
/**
* Accepted by the <pname> parameters of TexParameteriv,
* TexParameterfv, GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_SWIZZLE_RGBA = 0x8E46;
// ---------------------------------------------------------------
// ----------------------[ ARB_timer_query ]----------------------
// ---------------------------------------------------------------
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
* GetQueryiv:
*/
int GL_TIME_ELAPSED = 0x88BF;
/**
* Accepted by the <target> parameter of GetQueryiv and QueryCounter.
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_TIMESTAMP = 0x8E28;
void glQueryCounter(@GLuint int id, @GLenum int target);
@StripPostfix("params")
void glGetQueryObjecti64v(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryObjecti64} instead. */
@Alternate("glGetQueryObjecti64v")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL33", method = "glGetQueryObjecti64")
@Deprecated
void glGetQueryObjecti64v2(@GLuint int id, @GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@Alternate("glGetQueryObjecti64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjecti64v3(@GLuint int id, @GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@StripPostfix("params")
void glGetQueryObjectui64v(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLuint64 LongBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryObjectui64} instead. */
@Alternate("glGetQueryObjectui64v")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL33", method = "glGetQueryObjectui64")
@Deprecated
void glGetQueryObjectui64v2(@GLuint int id, @GLenum int pname, @OutParameter @GLuint64 LongBuffer params);
@Alternate("glGetQueryObjectui64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectui64v3(@GLuint int id, @GLenum int pname, @OutParameter @GLuint64 LongBuffer params);
// --------------------------------------------------------------------
// ----------------------[ ARB_instanced_arrays ]----------------------
// --------------------------------------------------------------------
/**
* Accepted by the <pname> parameters of GetVertexAttribdv,
* GetVertexAttribfv, and GetVertexAttribiv:
*/
int GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE;
void glVertexAttribDivisor(@GLuint int index, @GLuint int divisor);
// ------------------------------------------------------------------------------
// ----------------------[ ARB_vertex_type_2_10_10_10_rev ]----------------------
// ------------------------------------------------------------------------------
/**
* Accepted by the <type> parameter of VertexAttribPointer, VertexPointer,
* NormalPointer, ColorPointer, SecondaryColorPointer, TexCoordPointer,
* VertexAttribP{1234}ui, VertexP*, TexCoordP*, MultiTexCoordP*, NormalP3ui,
* ColorP*, SecondaryColorP* and VertexAttribP*
*/
int GL_INT_2_10_10_10_REV = 0x8D9F;
@NoErrorCheck
@DeprecatedGL
void glVertexP2ui(@GLenum int type, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
void glVertexP3ui(@GLenum int type, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
void glVertexP4ui(@GLenum int type, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexP2uiv(@GLenum int type, @Check("2") @Const @GLuint IntBuffer value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexP4uiv(@GLenum int type, @Check("4") @Const @GLuint IntBuffer value);
@NoErrorCheck
@DeprecatedGL
void glTexCoordP1ui(@GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
void glTexCoordP2ui(@GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
void glTexCoordP3ui(@GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
void glTexCoordP4ui(@GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glTexCoordP1uiv(@GLenum int type, @Check("1") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glTexCoordP2uiv(@GLenum int type, @Check("2") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glTexCoordP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glTexCoordP4uiv(@GLenum int type, @Check("4") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoordP1ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoordP2ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoordP3ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
void glMultiTexCoordP4ui(@GLenum int texture, @GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glMultiTexCoordP1uiv(@GLenum int texture, @GLenum int type, @Check("1") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glMultiTexCoordP2uiv(@GLenum int texture, @GLenum int type, @Check("2") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glMultiTexCoordP3uiv(@GLenum int texture, @GLenum int type, @Check("3") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glMultiTexCoordP4uiv(@GLenum int texture, @GLenum int type, @Check("4") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
void glNormalP3ui(@GLenum int type, @GLuint int coords);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("coords")
void glNormalP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer coords);
@NoErrorCheck
@DeprecatedGL
void glColorP3ui(@GLenum int type, @GLuint int color);
@NoErrorCheck
@DeprecatedGL
void glColorP4ui(@GLenum int type, @GLuint int color);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("color")
void glColorP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer color);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("color")
void glColorP4uiv(@GLenum int type, @Check("4") @Const @GLuint IntBuffer color);
@NoErrorCheck
@DeprecatedGL
void glSecondaryColorP3ui(@GLenum int type, @GLuint int color);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("color")
void glSecondaryColorP3uiv(@GLenum int type, @Check("3") @Const @GLuint IntBuffer color);
@NoErrorCheck
@DeprecatedGL
void glVertexAttribP1ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
void glVertexAttribP2ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
void glVertexAttribP3ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
void glVertexAttribP4ui(@GLuint int index, @GLenum int type, boolean normalized, @GLuint int value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexAttribP1uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("1") @Const @GLuint IntBuffer value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexAttribP2uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("2") @Const @GLuint IntBuffer value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexAttribP3uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("3") @Const @GLuint IntBuffer value);
@NoErrorCheck
@DeprecatedGL
@StripPostfix("value")
void glVertexAttribP4uiv(@GLuint int index, @GLenum int type, boolean normalized, @Check("4") @Const @GLuint IntBuffer value);
}lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_framebuffer_multisample_blit_scaled.java 0000644 0001750 0001750 00000003430 12702226520 027551 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_framebuffer_multisample_blit_scaled {
/** Accepted by the <filter> parameter of BlitFramebuffer: */
int GL_SCALED_RESOLVE_FASTEST_EXT = 0x90BA,
GL_SCALED_RESOLVE_NICEST_EXT = 0x90BB;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_tessellation_program5.java 0000644 0001750 0001750 00000005223 12702226520 024533 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_tessellation_program5 {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
* by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev, and by the <target> parameter of ProgramStringARB,
* BindProgramARB, ProgramEnvParameter4[df][v]ARB,
* ProgramLocalParameter4[df][v]ARB, GetProgramEnvParameter[df]vARB,
* GetProgramLocalParameter[df]vARB, GetProgramivARB and
* GetProgramStringARB:
*/
int GL_TESS_CONTROL_PROGRAM_NV = 0x891E;
int GL_TESS_EVALUATION_PROGRAM_NV = 0x891F;
/**
* Accepted by the <target> parameter of ProgramBufferParametersfvNV,
* ProgramBufferParametersIivNV, and ProgramBufferParametersIuivNV,
* BindBufferRangeNV, BindBufferOffsetNV, BindBufferBaseNV, and BindBuffer
* and the <value> parameter of GetIntegerIndexedvEXT:
*/
int GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74;
int GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75;
/** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_debug_output.java 0000644 0001750 0001750 00000014256 12702226520 023006 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLchar;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public interface ARB_debug_output {
/**
* Tokens accepted by the <target> parameters of Enable, Disable,
* and IsEnabled:
*/
int GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242;
/**
* Tokens accepted by the <value> parameters of GetBooleanv,
* GetIntegerv, GetFloatv, and GetDoublev:
*/
int GL_MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143,
GL_MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144,
GL_DEBUG_LOGGED_MESSAGES_ARB = 0x9145,
GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243;
/** Tokens accepted by the <pname> parameter of GetPointerv: */
int GL_DEBUG_CALLBACK_FUNCTION_ARB = 0x8244,
GL_DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245;
/**
* Tokens accepted or provided by the <source> parameters of
* DebugMessageControlARB, DebugMessageInsertARB and DEBUGPROCARB,
* and the <sources> parameter of GetDebugMessageLogARB:
*/
int GL_DEBUG_SOURCE_API_ARB = 0x8246,
GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247,
GL_DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248,
GL_DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249,
GL_DEBUG_SOURCE_APPLICATION_ARB = 0x824A,
GL_DEBUG_SOURCE_OTHER_ARB = 0x824B;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControlARB, DebugMessageInsertARB and DEBUGPROCARB,
* and the <types> parameter of GetDebugMessageLogARB:
*/
int GL_DEBUG_TYPE_ERROR_ARB = 0x824C,
GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D,
GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E,
GL_DEBUG_TYPE_PORTABILITY_ARB = 0x824F,
GL_DEBUG_TYPE_PERFORMANCE_ARB = 0x8250,
GL_DEBUG_TYPE_OTHER_ARB = 0x8251;
/**
* Tokens accepted or provided by the <severity> parameters of
* DebugMessageControlARB, DebugMessageInsertARB and DEBUGPROCARB
* callback functions, and the <severities> parameter of
* GetDebugMessageLogARB:
*/
int GL_DEBUG_SEVERITY_HIGH_ARB = 0x9146,
GL_DEBUG_SEVERITY_MEDIUM_ARB = 0x9147,
GL_DEBUG_SEVERITY_LOW_ARB = 0x9148;
void glDebugMessageControlARB(@GLenum int source,
@GLenum int type,
@GLenum int severity,
@AutoSize(value = "ids", canBeNull = true) @GLsizei int count,
@Check(canBeNull = true) @Const @GLuint IntBuffer ids,
boolean enabled);
void glDebugMessageInsertARB(@GLenum int source, @GLenum int type, @GLuint int id, @GLenum int severity, @AutoSize("buf") @GLsizei int length, @Const @GLchar ByteBuffer buf);
@Alternate("glDebugMessageInsertARB")
void glDebugMessageInsertARB(@GLenum int source, @GLenum int type, @GLuint int id, @GLenum int severity, @Constant("buf.length()") @GLsizei int length, CharSequence buf);
/**
* The {@code ARBDebugOutputCallback.Handler} implementation passed to this method will be used for
* ARB_debug_output messages. If callback is null, any previously registered handler for the current
* thread will be unregistered and stop receiving messages.
*
* @param callback the callback function to use
*/
@Code(
// Create a GlobalRef to the callback object and register it with the current context.
javaBeforeNative = "\t\tlong userParam = callback == null ? 0 : CallbackUtil.createGlobalRef(callback.getHandler());\n" +
"\t\tCallbackUtil.registerContextCallbackARB(userParam);"
)
void glDebugMessageCallbackARB(@PointerWrapper(value = "GLDEBUGPROCARB", canBeNull = true) ARBDebugOutputCallback callback,
@Constant("userParam") @PointerWrapper("GLvoid *") long userParam);
@GLuint
int glGetDebugMessageLogARB(@GLuint int count,
@AutoSize(value = "messageLog", canBeNull = true) @GLsizei int logSize,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer sources,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer types,
@Check(value = "count", canBeNull = true) @GLuint IntBuffer ids,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer severities,
@Check(value = "count", canBeNull = true) @GLsizei IntBuffer lengths,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer messageLog);
// Not really useful and a pain to implement in Java
//void glGetPointerv(@GLenum int pname, void**params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_sampler_objects.java 0000644 0001750 0001750 00000012230 12702226520 023442 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_sampler_objects {
/**
* Accepted by the <value> parameter of the GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv and GetDoublev functions:
*/
int GL_SAMPLER_BINDING = 0x8919;
@Reuse("GL33")
void glGenSamplers(@AutoSize("samplers") @GLsizei int count, @OutParameter @GLuint IntBuffer samplers);
@Reuse("GL33")
@Alternate("glGenSamplers")
@GLreturn("samplers")
void glGenSamplers2(@Constant("1") @GLsizei int count, @OutParameter @GLuint IntBuffer samplers);
@Reuse("GL33")
void glDeleteSamplers(@AutoSize("samplers") @GLsizei int count, @Const @GLuint IntBuffer samplers);
@Reuse("GL33")
@Alternate("glDeleteSamplers")
void glDeleteSamplers(@Constant("1") @GLsizei int count, @Constant(value = "APIUtil.getInt(caps, sampler)", keepParam = true) int sampler);
@Reuse("GL33")
boolean glIsSampler(@GLuint int sampler);
@Reuse("GL33")
void glBindSampler(@GLenum int unit, @GLuint int sampler);
@Reuse("GL33")
void glSamplerParameteri(@GLuint int sampler, @GLenum int pname, int param);
@Reuse("GL33")
void glSamplerParameterf(@GLuint int sampler, @GLenum int pname, float param);
@Reuse("GL33")
@StripPostfix("params")
void glSamplerParameteriv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const IntBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glSamplerParameterfv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const FloatBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glSamplerParameterIiv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const IntBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glSamplerParameterIuiv(@GLuint int sampler, @GLenum int pname, @Check("4") @Const @GLuint IntBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glGetSamplerParameteriv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Reuse("GL33")
@Alternate("glGetSamplerParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameteriv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glGetSamplerParameterfv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter FloatBuffer params);
@Reuse("GL33")
@Alternate("glGetSamplerParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterfv2(@GLuint int sampler, @GLenum int pname, @OutParameter FloatBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glGetSamplerParameterIiv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Reuse("GL33")
@Alternate("glGetSamplerParameterIiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterIiv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glGetSamplerParameterIuiv(@GLuint int sampler, @GLenum int pname, @Check("4") @OutParameter IntBuffer params);
@Reuse("GL33")
@Alternate("glGetSamplerParameterIuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetSamplerParameterIuiv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_draw_elements_base_vertex.java 0000644 0001750 0001750 00000006270 12702226520 025515 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface ARB_draw_elements_base_vertex {
@Reuse("GL32")
void glDrawElementsBaseVertex(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, int basevertex);
@Reuse("GL32")
void glDrawRangeElementsBaseVertex(@GLenum int mode, @GLuint int start, @GLuint int end, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, int basevertex);
@Reuse("GL32")
void glDrawElementsInstancedBaseVertex(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, @GLsizei int primcount, int basevertex);
//void glMultiDrawElementsBaseVertex(@GLenum int mode, @GLsizei*count, @GLenum int type, void**indices, @GLsizei int primcount, int*basevertex)
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_texture_compression_3dc.java 0000644 0001750 0001750 00000003413 12702226520 025154 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
@Extension(postfix = "ATI", className = "ATITextureCompression3DC")
public interface ATI_texture_compression_3dc {
int GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI = 0x8837;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_attrib_64bit.java 0000644 0001750 0001750 00000007355 12702226520 024174 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.DoubleBuffer;
@Dependent
@Extension(postfix = "")
public interface ARB_vertex_attrib_64bit {
/** Returned in the <type> parameter of GetActiveAttrib: */
int GL_DOUBLE_VEC2 = 0x8FFC;
int GL_DOUBLE_VEC3 = 0x8FFD;
int GL_DOUBLE_VEC4 = 0x8FFE;
int GL_DOUBLE_MAT2 = 0x8F46;
int GL_DOUBLE_MAT3 = 0x8F47;
int GL_DOUBLE_MAT4 = 0x8F48;
int GL_DOUBLE_MAT2x3 = 0x8F49;
int GL_DOUBLE_MAT2x4 = 0x8F4A;
int GL_DOUBLE_MAT3x2 = 0x8F4B;
int GL_DOUBLE_MAT3x4 = 0x8F4C;
int GL_DOUBLE_MAT4x2 = 0x8F4D;
int GL_DOUBLE_MAT4x3 = 0x8F4E;
@Reuse("GL41")
void glVertexAttribL1d(@GLuint int index, double x);
@Reuse("GL41")
void glVertexAttribL2d(@GLuint int index, double x, double y);
@Reuse("GL41")
void glVertexAttribL3d(@GLuint int index, double x, double y, double z);
@Reuse("GL41")
void glVertexAttribL4d(@GLuint int index, double x, double y, double z, double w);
@Reuse("GL41")
@StripPostfix("v")
void glVertexAttribL1dv(@GLuint int index, @Const @Check("1") DoubleBuffer v);
@Reuse("GL41")
@StripPostfix("v")
void glVertexAttribL2dv(@GLuint int index, @Const @Check("2") DoubleBuffer v);
@Reuse("GL41")
@StripPostfix("v")
void glVertexAttribL3dv(@GLuint int index, @Const @Check("3") DoubleBuffer v);
@Reuse("GL41")
@StripPostfix("v")
void glVertexAttribL4dv(@GLuint int index, @Const @Check("4") DoubleBuffer v);
@Reuse("GL41")
void glVertexAttribLPointer(@GLuint int index, int size, @Constant("GL11.GL_DOUBLE") @GLenum int type, @GLsizei int stride,
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
@BufferObject(BufferKind.ArrayVBO)
@Check @Const @GLdouble Buffer pointer);
@Reuse("GL41")
@StripPostfix("params")
void glGetVertexAttribLdv(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") DoubleBuffer params);
@Dependent("GL_EXT_direct_state_access")
void glVertexArrayVertexAttribLOffsetEXT(@GLuint int vaobj, @GLuint int buffer, @GLuint int index, int size, @GLenum int type, @GLsizei int stride, @GLintptr long offset);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL43.java 0000644 0001750 0001750 00000113631 12702226520 020262 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import javax.lang.model.type.TypeKind;
public interface GL43 {
/** No. of supported Shading Language Versions. Accepted by the <pname> parameter of GetIntegerv. */
int GL_NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9;
/** Vertex attrib array has unconverted doubles. Accepted by the <pname> parameter of GetVertexAttribiv. */
int GL_VERTEX_ATTRIB_ARRAY_LONG = 0x874E;
// ---------------------------------------------------------------------
// ----------------------[ ARB_ES3_compatibility ]----------------------
// ---------------------------------------------------------------------
/** Accepted by the <internalformat> parameter of CompressedTexImage2D */
int GL_COMPRESSED_RGB8_ETC2 = 0x9274,
GL_COMPRESSED_SRGB8_ETC2 = 0x9275,
GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276,
GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277,
GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278,
GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279,
GL_COMPRESSED_R11_EAC = 0x9270,
GL_COMPRESSED_SIGNED_R11_EAC = 0x9271,
GL_COMPRESSED_RG11_EAC = 0x9272,
GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273;
/** Accepted by the <target> parameter of Enable and Disable: */
int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69;
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery,
* GetQueryIndexediv and GetQueryiv:
*/
int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A;
/** Accepted by the <value> parameter of the GetInteger* functions: */
int GL_MAX_ELEMENT_INDEX = 0x8D6B;
// -----------------------------------------------------------------------
// ----------------------[ ARB_clear_buffer_object ]----------------------
// -----------------------------------------------------------------------
void glClearBufferData(@GLenum int target,
@GLenum int internalformat,
@GLenum int format,
@GLenum int type,
@Check("1") @Const @GLvoid ByteBuffer data);
void glClearBufferSubData(@GLenum int target,
@GLenum int internalformat,
@GLintptr long offset,
@GLsizeiptr long size,
@GLenum int format,
@GLenum int type,
@Check("1") @Const @GLvoid ByteBuffer data);
// ------------------------------------------------------------------
// ----------------------[ ARB_compute_shader ]----------------------
// ------------------------------------------------------------------
/**
* Accepted by the <type> parameter of CreateShader and returned in the
* <params> parameter by GetShaderiv:
*/
int GL_COMPUTE_SHADER = 0x91B9;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv, GetFloatv,
* GetDoublev and GetInteger64v:
*/
int GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB,
GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC,
GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD,
GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262,
GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263,
GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264,
GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265,
GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266,
GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleani_v,
* GetFloati_v, GetDoublei_v and GetInteger64i_v:
*/
int GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE,
GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF;
/** Accepted by the <pname> parameter of GetProgramiv: */
int GL_COMPUTE_WORK_GROUP_SIZE = 0x8267;
/** Accepted by the <pname> parameter of GetActiveUniformBlockiv: */
int GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC;
/** Accepted by the <pname> parameter of GetActiveAtomicCounterBufferiv: */
int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED;
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_DISPATCH_INDIRECT_BUFFER = 0x90EE;
/**
* Accepted by the <value> parameter of GetIntegerv, GetBooleanv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF;
/** Accepted by the <stages> parameter of UseProgramStages: */
int GL_COMPUTE_SHADER_BIT = 0x00000020;
void glDispatchCompute(@GLuint int num_groups_x,
@GLuint int num_groups_y,
@GLuint int num_groups_z);
void glDispatchComputeIndirect(@GLintptr long indirect);
// --------------------------------------------------------------
// ----------------------[ ARB_copy_image ]----------------------
// --------------------------------------------------------------
void glCopyImageSubData(
@GLuint int srcName, @GLenum int srcTarget, int srcLevel,
int srcX, int srcY, int srcZ,
@GLuint int dstName, @GLenum int dstTarget, int dstLevel,
int dstX, int dstY, int dstZ,
@GLsizei int srcWidth, @GLsizei int srcHeight, @GLsizei int srcDepth);
// ----------------------------------------------------------------
// ----------------------[ KHR_debug_output ]----------------------
// ----------------------[ ARB_debug_output2 ]---------------------
// ----------------------[ ARB_debug_group ]-----------------------
// ----------------------[ ARB_debug_label ]-----------------------
// ----------------------------------------------------------------
/**
* Tokens accepted by the <target> parameters of Enable, Disable, and
* IsEnabled:
*/
int GL_DEBUG_OUTPUT = 0x92E0,
GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242;
/** Returned by GetIntegerv when <pname> is CONTEXT_FLAGS: */
int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002;
/**
* Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev and GetInteger64v:
*/
int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143,
GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144,
GL_DEBUG_LOGGED_MESSAGES = 0x9145,
GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243,
GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C,
GL_DEBUG_GROUP_STACK_DEPTH = 0x826D,
GL_MAX_LABEL_LENGTH = 0x82E8;
/** Tokens accepted by the <pname> parameter of GetPointerv: */
int GL_DEBUG_CALLBACK_FUNCTION = 0x8244,
GL_DEBUG_CALLBACK_USER_PARAM = 0x8245;
/**
* Tokens accepted or provided by the <source> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources>
* parameter of GetDebugMessageLog:
*/
int GL_DEBUG_SOURCE_API = 0x8246,
GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247,
GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248,
GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249,
GL_DEBUG_SOURCE_APPLICATION = 0x824A,
GL_DEBUG_SOURCE_OTHER = 0x824B;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types>
* parameter of GetDebugMessageLog:
*/
int GL_DEBUG_TYPE_ERROR = 0x824C,
GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D,
GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E,
GL_DEBUG_TYPE_PORTABILITY = 0x824F,
GL_DEBUG_TYPE_PERFORMANCE = 0x8250,
GL_DEBUG_TYPE_OTHER = 0x8251,
GL_DEBUG_TYPE_MARKER = 0x8268;
/**
* Tokens accepted or provided by the <type> parameters of
* DebugMessageControl and DEBUGPROC, and the <types> parameter of
* GetDebugMessageLog:
*/
int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269,
GL_DEBUG_TYPE_POP_GROUP = 0x826A;
/**
* Tokens accepted or provided by the <severity> parameters of
* DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions,
* and the <severities> parameter of GetDebugMessageLog:
*/
int GL_DEBUG_SEVERITY_HIGH = 0x9146,
GL_DEBUG_SEVERITY_MEDIUM = 0x9147,
GL_DEBUG_SEVERITY_LOW = 0x9148,
GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B;
/**
* Tokens accepted or provided by the <identifier> parameters of
* ObjectLabel and GetObjectLabel:
*/
int GL_BUFFER = 0x82E0,
GL_SHADER = 0x82E1,
GL_PROGRAM = 0x82E2,
GL_QUERY = 0x82E3,
GL_PROGRAM_PIPELINE = 0x82E4,
GL_SAMPLER = 0x82E6,
GL_DISPLAY_LIST = 0x82E7;
// -----------------------------
void glDebugMessageControl(@GLenum int source,
@GLenum int type,
@GLenum int severity,
@AutoSize(value = "ids", canBeNull = true) @GLsizei int count,
@Check(canBeNull = true) @Const @GLuint IntBuffer ids,
boolean enabled);
void glDebugMessageInsert(@GLenum int source,
@GLenum int type,
@GLuint int id,
@GLenum int severity,
@AutoSize("buf") @GLsizei int length,
@Const @GLchar ByteBuffer buf);
@Alternate("glDebugMessageInsert")
void glDebugMessageInsert(@GLenum int source,
@GLenum int type,
@GLuint int id,
@GLenum int severity,
@Constant("buf.length()") @GLsizei int length,
CharSequence buf);
/**
* The {@code KHRDebugCallback.Handler} implementation passed to this method will be used for
* KHR_debug messages. If callback is null, any previously registered handler for the current
* thread will be unregistered and stop receiving messages.
*
* @param callback the callback function to use
*/
@Code(
// Create a GlobalRef to the callback object and register it with the current context.
javaBeforeNative = "\t\tlong userParam = callback == null ? 0 : CallbackUtil.createGlobalRef(callback.getHandler());\n" +
"\t\tCallbackUtil.registerContextCallbackKHR(userParam);"
)
void glDebugMessageCallback(@PointerWrapper(value = "GLDEBUGPROC", canBeNull = true) KHRDebugCallback callback,
@Constant("userParam") @PointerWrapper("GLvoid *") long userParam);
@GLuint
int glGetDebugMessageLog(@GLuint int count,
@AutoSize(value = "messageLog", canBeNull = true) @GLsizei int bufsize,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer sources,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer types,
@Check(value = "count", canBeNull = true) @GLuint IntBuffer ids,
@Check(value = "count", canBeNull = true) @GLenum IntBuffer severities,
@Check(value = "count", canBeNull = true) @GLsizei IntBuffer lengths,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer messageLog);
void glPushDebugGroup(@GLenum int source, @GLuint int id, @AutoSize("message") @GLsizei int length,
@Const @GLchar ByteBuffer message);
@Alternate("glPushDebugGroup")
void glPushDebugGroup(@GLenum int source, @GLuint int id, @Constant("message.length()") @GLsizei int length,
CharSequence message);
void glPopDebugGroup();
void glObjectLabel(@GLenum int identifier, @GLuint int name, @AutoSize(value = "label", canBeNull = true) @GLsizei int length,
@Check(canBeNull = true) @Const @GLchar ByteBuffer label);
@Alternate("glObjectLabel")
void glObjectLabel(@GLenum int identifier, @GLuint int name, @Constant("label.length()") @GLsizei int length,
CharSequence label);
void glGetObjectLabel(@GLenum int identifier, @GLuint int name, @AutoSize("label") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Alternate("glGetObjectLabel")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectLabel2(@GLenum int identifier, @GLuint int name, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(label_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
void glObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @AutoSize(value = "label", canBeNull = true) @GLsizei int length,
@Check(canBeNull = true) @Const @GLchar ByteBuffer label);
@Alternate("glObjectPtrLabel")
void glObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @Constant("label.length()") @GLsizei int length,
CharSequence label);
void glGetObjectPtrLabel(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @AutoSize("label") @GLsizei int bufSize,
@OutParameter @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
@Alternate("glGetObjectPtrLabel")
@GLreturn(value = "label", maxLength = "bufSize")
void glGetObjectPtrLabel2(@PointerWrapper("GLvoid *") org.lwjgl.PointerWrapper ptr, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(label_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer label);
// -----------------------------------------------------------------------------
// ----------------------[ ARB_explicit_uniform_location ]----------------------
// -----------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, GetDoublev, and GetInteger64v:
*/
int GL_MAX_UNIFORM_LOCATIONS = 0x826E;
// -----------------------------------------------------------------------------
// ----------------------[ ARB_framebuffer_no_attachment ]----------------------
// -----------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of FramebufferParameteri,
* GetFramebufferParameteriv, NamedFramebufferParameteriEXT, and
* GetNamedFramebufferParameterivEXT:
*/
int GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310,
GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311,
GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312,
GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313,
GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MAX_FRAMEBUFFER_WIDTH = 0x9315,
GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316,
GL_MAX_FRAMEBUFFER_LAYERS = 0x9317,
GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318;
void glFramebufferParameteri(@GLenum int target, @GLenum int pname, int param);
@StripPostfix("params")
void glGetFramebufferParameteriv(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetFramebufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFramebufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
// -----------------------------------------------------------------------------
// ----------------------[ ARB_internalformat_query2 ]----------------------
// -----------------------------------------------------------------------------
/**
* Accepted by the <pname> parameter of GetInternalformativ
* and GetInternalformati64v:
*/
int GL_INTERNALFORMAT_SUPPORTED = 0x826F,
GL_INTERNALFORMAT_PREFERRED = 0x8270,
GL_INTERNALFORMAT_RED_SIZE = 0x8271,
GL_INTERNALFORMAT_GREEN_SIZE = 0x8272,
GL_INTERNALFORMAT_BLUE_SIZE = 0x8273,
GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274,
GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275,
GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276,
GL_INTERNALFORMAT_SHARED_SIZE = 0x8277,
GL_INTERNALFORMAT_RED_TYPE = 0x8278,
GL_INTERNALFORMAT_GREEN_TYPE = 0x8279,
GL_INTERNALFORMAT_BLUE_TYPE = 0x827A,
GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B,
GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C,
GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D,
GL_MAX_WIDTH = 0x827E,
GL_MAX_HEIGHT = 0x827F,
GL_MAX_DEPTH = 0x8280,
GL_MAX_LAYERS = 0x8281,
GL_MAX_COMBINED_DIMENSIONS = 0x8282,
GL_COLOR_COMPONENTS = 0x8283,
GL_DEPTH_COMPONENTS = 0x8284,
GL_STENCIL_COMPONENTS = 0x8285,
GL_COLOR_RENDERABLE = 0x8286,
GL_DEPTH_RENDERABLE = 0x8287,
GL_STENCIL_RENDERABLE = 0x8288,
GL_FRAMEBUFFER_RENDERABLE = 0x8289,
GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A,
GL_FRAMEBUFFER_BLEND = 0x828B,
GL_READ_PIXELS = 0x828C,
GL_READ_PIXELS_FORMAT = 0x828D,
GL_READ_PIXELS_TYPE = 0x828E,
GL_TEXTURE_IMAGE_FORMAT = 0x828F,
GL_TEXTURE_IMAGE_TYPE = 0x8290,
GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291,
GL_GET_TEXTURE_IMAGE_TYPE = 0x8292,
GL_MIPMAP = 0x8293,
GL_MANUAL_GENERATE_MIPMAP = 0x8294,
GL_AUTO_GENERATE_MIPMAP = 0x8295,
GL_COLOR_ENCODING = 0x8296,
GL_SRGB_READ = 0x8297,
GL_SRGB_WRITE = 0x8298,
GL_SRGB_DECODE_ARB = 0x8299,
GL_FILTER = 0x829A,
GL_VERTEX_TEXTURE = 0x829B,
GL_TESS_CONTROL_TEXTURE = 0x829C,
GL_TESS_EVALUATION_TEXTURE = 0x829D,
GL_GEOMETRY_TEXTURE = 0x829E,
GL_FRAGMENT_TEXTURE = 0x829F,
GL_COMPUTE_TEXTURE = 0x82A0,
GL_TEXTURE_SHADOW = 0x82A1,
GL_TEXTURE_GATHER = 0x82A2,
GL_TEXTURE_GATHER_SHADOW = 0x82A3,
GL_SHADER_IMAGE_LOAD = 0x82A4,
GL_SHADER_IMAGE_STORE = 0x82A5,
GL_SHADER_IMAGE_ATOMIC = 0x82A6,
GL_IMAGE_TEXEL_SIZE = 0x82A7,
GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8,
GL_IMAGE_PIXEL_FORMAT = 0x82A9,
GL_IMAGE_PIXEL_TYPE = 0x82AA,
GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC,
GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD,
GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE,
GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF,
GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1,
GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2,
GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3,
GL_CLEAR_BUFFER = 0x82B4,
GL_TEXTURE_VIEW = 0x82B5,
GL_VIEW_COMPATIBILITY_CLASS = 0x82B6;
/**
* Returned as possible responses for various <pname> queries
* to GetInternalformativ and GetInternalformati64v
*/
int GL_FULL_SUPPORT = 0x82B7,
GL_CAVEAT_SUPPORT = 0x82B8,
GL_IMAGE_CLASS_4_X_32 = 0x82B9,
GL_IMAGE_CLASS_2_X_32 = 0x82BA,
GL_IMAGE_CLASS_1_X_32 = 0x82BB,
GL_IMAGE_CLASS_4_X_16 = 0x82BC,
GL_IMAGE_CLASS_2_X_16 = 0x82BD,
GL_IMAGE_CLASS_1_X_16 = 0x82BE,
GL_IMAGE_CLASS_4_X_8 = 0x82BF,
GL_IMAGE_CLASS_2_X_8 = 0x82C0,
GL_IMAGE_CLASS_1_X_8 = 0x82C1,
GL_IMAGE_CLASS_11_11_10 = 0x82C2,
GL_IMAGE_CLASS_10_10_10_2 = 0x82C3,
GL_VIEW_CLASS_128_BITS = 0x82C4,
GL_VIEW_CLASS_96_BITS = 0x82C5,
GL_VIEW_CLASS_64_BITS = 0x82C6,
GL_VIEW_CLASS_48_BITS = 0x82C7,
GL_VIEW_CLASS_32_BITS = 0x82C8,
GL_VIEW_CLASS_24_BITS = 0x82C9,
GL_VIEW_CLASS_16_BITS = 0x82CA,
GL_VIEW_CLASS_8_BITS = 0x82CB,
GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC,
GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD,
GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE,
GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF,
GL_VIEW_CLASS_RGTC1_RED = 0x82D0,
GL_VIEW_CLASS_RGTC2_RG = 0x82D1,
GL_VIEW_CLASS_BPTC_UNORM = 0x82D2,
GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3;
@StripPostfix("params")
void glGetInternalformati64v(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @AutoSize("params") @GLsizei int bufSize, @OutParameter @GLint64 LongBuffer params);
@Alternate("glGetInternalformati64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetInternalformati64v2(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter @GLint64 LongBuffer params);
// ----------------------------------------------------------------------
// ----------------------[ ARB_invalidate_subdata ]----------------------
// ----------------------------------------------------------------------
void glInvalidateTexSubImage(@GLuint int texture, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth);
void glInvalidateTexImage(@GLuint int texture, int level);
void glInvalidateBufferSubData(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length);
void glInvalidateBufferData(@GLuint int buffer);
void glInvalidateFramebuffer(@GLenum int target,
@AutoSize("attachments") @GLsizei int numAttachments,
@Const @GLenum IntBuffer attachments);
void glInvalidateSubFramebuffer(@GLenum int target,
@AutoSize("attachments") @GLsizei int numAttachments,
@Const @GLenum IntBuffer attachments,
int x, int y, @GLsizei int width, @GLsizei int height);
// -----------------------------------------------------------------------
// ----------------------[ ARB_multi_draw_indirect ]----------------------
// -----------------------------------------------------------------------
void glMultiDrawArraysIndirect(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 * 4 : stride) * primcount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Alternate("glMultiDrawArraysIndirect")
void glMultiDrawArraysIndirect(@GLenum int mode,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 4 : stride >> 2) * primcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
void glMultiDrawElementsIndirect(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 * 4 : stride) * primcount") @Const @GLvoid ByteBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
@Alternate("glMultiDrawElementsIndirect")
void glMultiDrawElementsIndirect(@GLenum int mode,
@GLenum int type,
@BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 : stride >> 2) * primcount") @Const @GLvoid(TypeKind.INT) IntBuffer indirect,
@GLsizei int primcount,
@GLsizei int stride);
// ---------------------------------------------------------------------------
// ----------------------[ ARB_program_interface_query ]----------------------
// ---------------------------------------------------------------------------
/**
* Accepted by the <programInterface> parameter of GetProgramInterfaceiv,
* GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
* GetProgramResourceLocation, and GetProgramResourceLocationIndex:
*/
int GL_UNIFORM = 0x92E1,
GL_UNIFORM_BLOCK = 0x92E2,
GL_PROGRAM_INPUT = 0x92E3,
GL_PROGRAM_OUTPUT = 0x92E4,
GL_BUFFER_VARIABLE = 0x92E5,
GL_SHADER_STORAGE_BLOCK = 0x92E6,
GL_VERTEX_SUBROUTINE = 0x92E8,
GL_TESS_CONTROL_SUBROUTINE = 0x92E9,
GL_TESS_EVALUATION_SUBROUTINE = 0x92EA,
GL_GEOMETRY_SUBROUTINE = 0x92EB,
GL_FRAGMENT_SUBROUTINE = 0x92EC,
GL_COMPUTE_SUBROUTINE = 0x92ED,
GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE,
GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF,
GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0,
GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1,
GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2,
GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3,
GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4;
/** Accepted by the <pname> parameter of GetProgramInterfaceiv: */
int GL_ACTIVE_RESOURCES = 0x92F5,
GL_MAX_NAME_LENGTH = 0x92F6,
GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7,
GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8;
/** Accepted in the <props> array of GetProgramResourceiv: */
int GL_NAME_LENGTH = 0x92F9,
GL_TYPE = 0x92FA,
GL_ARRAY_SIZE = 0x92FB,
GL_OFFSET = 0x92FC,
GL_BLOCK_INDEX = 0x92FD,
GL_ARRAY_STRIDE = 0x92FE,
GL_MATRIX_STRIDE = 0x92FF,
GL_IS_ROW_MAJOR = 0x9300,
GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301,
GL_BUFFER_BINDING = 0x9302,
GL_BUFFER_DATA_SIZE = 0x9303,
GL_NUM_ACTIVE_VARIABLES = 0x9304,
GL_ACTIVE_VARIABLES = 0x9305,
GL_REFERENCED_BY_VERTEX_SHADER = 0x9306,
GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307,
GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308,
GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309,
GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A,
GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B,
GL_TOP_LEVEL_ARRAY_SIZE = 0x930C,
GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D,
GL_LOCATION = 0x930E,
GL_LOCATION_INDEX = 0x930F,
GL_IS_PER_PATCH = 0x92E7;
@StripPostfix("params")
void glGetProgramInterfaceiv(@GLuint int program, @GLenum int programInterface,
@GLenum int pname, @Check("1") @OutParameter IntBuffer params);
@Alternate("glGetProgramInterfaceiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetProgramInterfaceiv2(@GLuint int program, @GLenum int programInterface,
@GLenum int pname, @OutParameter IntBuffer params);
@GLuint
int glGetProgramResourceIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetProgramResourceIndex")
@GLuint
int glGetProgramResourceIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated CharSequence name);
void glGetProgramResourceName(@GLuint int program, @GLenum int programInterface,
@GLuint int index, @AutoSize(value = "name", canBeNull = true) @GLsizei int bufSize, @Check(value = "1", canBeNull = true) @OutParameter @GLsizei IntBuffer length,
@Check(canBeNull = true) @OutParameter @GLchar ByteBuffer name);
@Alternate("glGetProgramResourceName")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetProgramResourceName2(@GLuint int program, @GLenum int programInterface,
@GLuint int index, @GLsizei int bufSize,
@OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
@OutParameter @GLchar ByteBuffer name);
@StripPostfix("params")
void glGetProgramResourceiv(@GLuint int program, @GLenum int programInterface,
@GLuint int index, @AutoSize("props") @GLsizei int propCount,
@Const @GLenum IntBuffer props, @AutoSize("params") @GLsizei int bufSize,
@Check(value = "1", canBeNull = true) @OutParameter @GLsizei IntBuffer length, @OutParameter IntBuffer params);
int glGetProgramResourceLocation(@GLuint int program, @GLenum int programInterface,
@NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetProgramResourceLocation")
int glGetProgramResourceLocation(@GLuint int program, @GLenum int programInterface,
@NullTerminated CharSequence name);
int glGetProgramResourceLocationIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated @Const @GLchar ByteBuffer name);
@Alternate("glGetProgramResourceLocationIndex")
int glGetProgramResourceLocationIndex(@GLuint int program, @GLenum int programInterface,
@NullTerminated CharSequence name);
// --------------------------------------------------------------------------------
// ----------------------[ ARB_shader_storage_buffer_object ]----------------------
// --------------------------------------------------------------------------------
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and
* GetBufferPointerv:
*/
int GL_SHADER_STORAGE_BUFFER = 0x90D2;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetIntegeri_v,
* GetBooleanv, GetInteger64v, GetFloatv, GetDoublev, GetBooleani_v,
* GetIntegeri_v, GetFloati_v, GetDoublei_v, and GetInteger64i_v:
*/
int GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleani_v,
* GetIntegeri_v, GetFloati_v, GetDoublei_v, and GetInteger64i_v:
*/
int GL_SHADER_STORAGE_BUFFER_START = 0x90D4,
GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5;
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6,
GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7,
GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8,
GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9,
GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA,
GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB,
GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC,
GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD,
GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE,
GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF;
/** Accepted in the <barriers> bitfield in glMemoryBarrier: */
int GL_SHADER_STORAGE_BARRIER_BIT = 0x2000;
/**
* Alias for the existing token
* MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS:
*/
int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39;
void glShaderStorageBlockBinding(@GLuint int program, @GLuint int storageBlockIndex,
@GLuint int storageBlockBinding);
// ---------------------------------------------------------------------
// ----------------------[ ARB_stencil_texturing ]----------------------
// ---------------------------------------------------------------------
/** Accepted by the <pname> parameter of TexParameter* and GetTexParameter*: */
int GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA;
// ------------------------------------------------------------------------
// ----------------------[ ARB_texture_buffer_range ]----------------------
// ------------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetTexLevelParameter: */
int GL_TEXTURE_BUFFER_OFFSET = 0x919D,
GL_TEXTURE_BUFFER_SIZE = 0x919E;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F;
void glTexBufferRange(@GLenum int target,
@GLenum int internalformat,
@GLuint int buffer,
@GLintptr long offset,
@GLsizeiptr long size);
// -------------------------------------------------------------------------------
// ----------------------[ ARB_texture_storage_multisample ]----------------------
// -------------------------------------------------------------------------------
void glTexStorage2DMultisample(@GLenum int target,
@GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width,
@GLsizei int height,
boolean fixedsamplelocations);
void glTexStorage3DMultisample(@GLenum int target,
@GLsizei int samples,
@GLenum int internalformat,
@GLsizei int width,
@GLsizei int height,
@GLsizei int depth,
boolean fixedsamplelocations);
// ----------------------------------------------------------------
// ----------------------[ ARB_texture_view ]----------------------
// ----------------------------------------------------------------
/**
* Accepted by the <pname> parameters of GetTexParameterfv and
* GetTexParameteriv:
*/
int GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB,
GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC,
GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD,
GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE,
GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF;
void glTextureView(@GLuint int texture, @GLenum int target, @GLuint int origtexture,
@GLenum int internalformat,
@GLuint int minlevel, @GLuint int numlevels,
@GLuint int minlayer, @GLuint int numlayers);
// -------------------------------------------------------------------------
// ----------------------[ ARB_vertex_attrib_binding ]----------------------
// -------------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetVertexAttrib*v: */
int GL_VERTEX_ATTRIB_BINDING = 0x82D4,
GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5;
/**
* Accepted by the <target> parameter of GetBooleani_v, GetIntegeri_v,
* GetFloati_v, GetDoublei_v, and GetInteger64i_v:
*/
int GL_VERTEX_BINDING_DIVISOR = 0x82D6,
GL_VERTEX_BINDING_OFFSET = 0x82D7,
GL_VERTEX_BINDING_STRIDE = 0x82D8;
/** Accepted by the <pname> parameter of GetIntegerv, ... */
int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9,
GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA;
void glBindVertexBuffer(@GLuint int bindingindex, @GLuint int buffer, @GLintptr long offset,
@GLsizei int stride);
void glVertexAttribFormat(@GLuint int attribindex, int size, @GLenum int type,
boolean normalized, @GLuint int relativeoffset);
void glVertexAttribIFormat(@GLuint int attribindex, int size, @GLenum int type,
@GLuint int relativeoffset);
void glVertexAttribLFormat(@GLuint int attribindex, int size, @GLenum int type,
@GLuint int relativeoffset);
void glVertexAttribBinding(@GLuint int attribindex, @GLuint int bindingindex);
void glVertexBindingDivisor(@GLuint int bindingindex, @GLuint int divisor);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL12.java 0000644 0001750 0001750 00000012036 12702226520 020253 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
/**
*
* The core OpenGL1.2.1 API, with the imaging subset.
*
* @author cix_foo
* @version $Revision$
* $Id$
*/
public interface GL12 {
int GL_TEXTURE_BINDING_3D = 0x806A;
int GL_PACK_SKIP_IMAGES = 0x806B;
int GL_PACK_IMAGE_HEIGHT = 0x806C;
int GL_UNPACK_SKIP_IMAGES = 0x806D;
int GL_UNPACK_IMAGE_HEIGHT = 0x806E;
int GL_TEXTURE_3D = 0x806F;
int GL_PROXY_TEXTURE_3D = 0x8070;
int GL_TEXTURE_DEPTH = 0x8071;
int GL_TEXTURE_WRAP_R = 0x8072;
int GL_MAX_3D_TEXTURE_SIZE = 0x8073;
int GL_BGR = 0x80E0;
int GL_BGRA = 0x80E1;
int GL_UNSIGNED_BYTE_3_3_2 = 0x8032;
int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362;
int GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364;
int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033;
int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365;
int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034;
int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366;
int GL_UNSIGNED_INT_8_8_8_8 = 0x8035;
int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367;
int GL_UNSIGNED_INT_10_10_10_2 = 0x8036;
int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
int GL_RESCALE_NORMAL = 0x803A;
int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8;
int GL_SINGLE_COLOR = 0x81F9;
int GL_SEPARATE_SPECULAR_COLOR = 0x81FA;
int GL_CLAMP_TO_EDGE = 0x812F;
int GL_TEXTURE_MIN_LOD = 0x813A;
int GL_TEXTURE_MAX_LOD = 0x813B;
int GL_TEXTURE_BASE_LEVEL = 0x813C;
int GL_TEXTURE_MAX_LEVEL = 0x813D;
int GL_MAX_ELEMENTS_VERTICES = 0x80E8;
int GL_MAX_ELEMENTS_INDICES = 0x80E9;
int GL_ALIASED_POINT_SIZE_RANGE = 0x846D;
int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E;
int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12;
int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13;
int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22;
int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23;
void glDrawRangeElements(@GLenum int mode, @GLuint int start, @GLuint int end, @AutoSize("indices") @GLsizei int count,
@AutoType("indices")
@GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices);
void glTexImage3D(@GLenum int target, int level, int internalFormat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check(value = "GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth)", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
void glCopyTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/AMD_seamless_cubemap_per_texture.java 0000644 0001750 0001750 00000003561 12702226520 026230 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface AMD_seamless_cubemap_per_texture {
/**
* Accepted by the <pname> parameter of TexParameterf, TexParameteri,
* TexParameterfv, TexParameteriv, GetTexParameterfv, and GetTexParameteriv:
*/
int GL_TEXTURE_CUBE_MAP_SEAMLESS = ARB_seamless_cube_map.GL_TEXTURE_CUBE_MAP_SEAMLESS;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_direct_state_access.java 0000644 0001750 0001750 00000060573 12702226520 024276 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.PointerBuffer;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
@Extension(postfix = "")
public interface ARB_direct_state_access {
/**
* Accepted by the <pname> parameter of GetTextureParameter{if}v and
* GetTextureParameterI{i ui}v:
*/
int GL_TEXTURE_TARGET = 0x1006;
/** Accepted by the <pname> parameter of GetQueryObjectiv: */
int GL_QUERY_TARGET = 0x82EA;
/** Accepted by the <pname> parameter of GetIntegeri_v: */
int GL_TEXTURE_BINDING = 0x82EB;
// Transform Feedback object functions
@Reuse("GL45")
void glCreateTransformFeedbacks(@AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glCreateTransformFeedbacks")
@GLreturn("ids")
@Reuse("GL45")
void glCreateTransformFeedbacks2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Reuse("GL45")
void glTransformFeedbackBufferBase(@GLuint int xfb, @GLuint int index, @GLuint int buffer);
@Reuse("GL45")
void glTransformFeedbackBufferRange(@GLuint int xfb, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
@StripPostfix("param")
@Reuse("GL45")
void glGetTransformFeedbackiv(@GLuint int xfb, @GLenum int pname, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetTransformFeedbackiv")
@GLreturn("param")
@StripPostfix(value = "param", hasPostfix = false)
@Reuse("GL45")
void glGetTransformFeedbackiv2(@GLuint int xfb, @GLenum int pname, @OutParameter IntBuffer param);
@StripPostfix("param")
@Reuse("GL45")
void glGetTransformFeedbacki_v(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetTransformFeedbacki_v")
@GLreturn("param")
@StripPostfix(value = "param", postfix = "_v")
@Reuse("GL45")
void glGetTransformFeedbacki_v2(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter IntBuffer param);
@StripPostfix("param")
@Reuse("GL45")
void glGetTransformFeedbacki64_v(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter @Check("1") @GLint64 LongBuffer param);
@Alternate("glGetTransformFeedbacki64_v")
@GLreturn("param")
@StripPostfix(value = "param", postfix = "_v")
@Reuse("GL45")
void glGetTransformFeedbacki64_v2(@GLuint int xfb, @GLenum int pname, @GLuint int index, @OutParameter @GLint64 LongBuffer param);
// Buffer object functions
@Reuse("GL45")
void glCreateBuffers(@AutoSize("buffers") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
@Alternate("glCreateBuffers")
@GLreturn("buffers")
@Reuse("GL45")
void glCreateBuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
@Reuse("GL45")
void glNamedBufferStorage(@GLuint int buffer, @AutoSize("data") @GLsizeiptr long size,
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data,
@GLbitfield int flags);
@Alternate("glNamedBufferStorage")
@Reuse("GL45")
void glNamedBufferStorage2(@GLuint int buffer, @GLsizeiptr long size, @Constant("0L") @Const Buffer data, @GLbitfield int flags);
@GenerateAutos
@Reuse("GL45")
void glNamedBufferData(@GLuint int buffer, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data,
@GLenum int usage);
@Reuse("GL45")
void glNamedBufferSubData(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
@Reuse("GL45")
void glCopyNamedBufferSubData(@GLuint int readBuffer, @GLuint int writeBuffer, @GLintptr long readOffset, @GLintptr long writeOffset, @GLsizeiptr long size);
@Reuse("GL45")
void glClearNamedBufferData(@GLuint int buffer, @GLenum int internalformat, @GLenum int format, @GLenum int type, @Check("1") @Const @GLvoid ByteBuffer data);
@Reuse("GL45")
void glClearNamedBufferSubData(@GLuint int buffer, @GLenum int internalformat, @GLintptr long offset, @GLsizeiptr long size, @GLenum int format, @GLenum int type, @Check("1") @Const @GLvoid ByteBuffer data);
/**
* Maps a buffer object's data store.
*
* LWJGL note: This method comes in 2 flavors:
*
*
{@link #glMapNamedBuffer(int, int, ByteBuffer)} - Calls {@link #glGetNamedBufferParameteri} to retrieve the buffer size and the {@code old_buffer} parameter is reused if the returned size and pointer match the buffer capacity and address, respectively.
*
{@link #glMapNamedBuffer(int, int, int, ByteBuffer)} - The buffer size is explicitly specified and the {@code old_buffer} parameter is reused if {@code size} and the returned pointer match the buffer capacity and address, respectively. This is the most efficient method.
*
*
* @param buffer the buffer object being mapped
* @param access the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store
*/
@CachedResult
@GLvoid
@AutoSize("glGetNamedBufferParameteri(buffer, GL15.GL_BUFFER_SIZE)")
@Reuse("GL45")
ByteBuffer glMapNamedBuffer(@GLuint int buffer, @GLenum int access);
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
@Reuse("GL45")
ByteBuffer glMapNamedBufferRange(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
@Reuse("GL45")
boolean glUnmapNamedBuffer(@GLuint int buffer);
@Reuse("GL45")
void glFlushMappedNamedBufferRange(@GLuint int buffer, @GLintptr long offset, @GLsizeiptr long length);
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedBufferParameteriv(@GLuint int buffer, @GLenum int pname, @OutParameter @Check IntBuffer params);
@Alternate("glGetNamedBufferParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetNamedBufferParameteriv2(@GLuint int buffer, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedBufferParameteri64v(@GLuint int buffer, @GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer params);
@Alternate("glGetNamedBufferParameteri64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetNamedBufferParameteri64v2(@GLuint int buffer, @GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@StripPostfix("params")
@AutoSize("glGetNamedBufferParameteri(buffer, GL15.GL_BUFFER_SIZE)")
@Reuse("GL45")
void glGetNamedBufferPointerv(@GLuint int buffer, @GLenum int pname, @Result @GLvoid ByteBuffer params);
@Reuse("GL45")
void glGetNamedBufferSubData(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@OutParameter
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
// Framebuffer object functions
@Reuse("GL45")
void glCreateFramebuffers(@AutoSize("framebuffers") @GLsizei int n, @OutParameter @GLuint IntBuffer framebuffers);
@Alternate("glCreateFramebuffers")
@GLreturn("framebuffers")
@Reuse("GL45")
void glCreateFramebuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer framebuffers);
@Reuse("GL45")
void glNamedFramebufferRenderbuffer(@GLuint int framebuffer, @GLenum int attachment, @GLenum int renderbuffertarget, @GLuint int renderbuffer);
@Reuse("GL45")
void glNamedFramebufferParameteri(@GLuint int framebuffer, @GLenum int pname, int param);
@Reuse("GL45")
void glNamedFramebufferTexture(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level);
@Reuse("GL45")
void glNamedFramebufferTextureLayer(@GLuint int framebuffer, @GLenum int attachment, @GLuint int texture, int level, int layer);
@Reuse("GL45")
void glNamedFramebufferDrawBuffer(@GLuint int framebuffer, @GLenum int mode);
@Reuse("GL45")
void glNamedFramebufferDrawBuffers(@GLuint int framebuffer, @AutoSize("bufs") @GLsizei int n, @Const @GLenum IntBuffer bufs);
@Reuse("GL45")
void glNamedFramebufferReadBuffer(@GLuint int framebuffer, @GLenum int mode);
@Reuse("GL45")
void glInvalidateNamedFramebufferData(@GLuint int framebuffer, @AutoSize("attachments") @GLsizei int numAttachments, @Const @GLenum IntBuffer attachments);
@Reuse("GL45")
void glInvalidateNamedFramebufferSubData(@GLuint int framebuffer, @AutoSize("attachments") @GLsizei int numAttachments, @Const @GLenum IntBuffer attachments, int x, int y, @GLsizei int width, @GLsizei int height);
@StripPostfix("value")
@Reuse("GL45")
void glClearNamedFramebufferiv(@GLuint int framebuffer, @GLenum int buffer, int drawbuffer, @Const @Check("1") IntBuffer value);
@StripPostfix("value")
@Reuse("GL45")
void glClearNamedFramebufferuiv(@GLuint int framebuffer, @GLenum int buffer, int drawbuffer, @Const @Check("4") @GLuint IntBuffer value);
@StripPostfix("value")
@Reuse("GL45")
void glClearNamedFramebufferfv(@GLuint int framebuffer, @GLenum int buffer, int drawbuffer, @Const @Check("1") FloatBuffer value);
@Reuse("GL45")
void glClearNamedFramebufferfi(@GLuint int framebuffer, @GLenum int buffer, float depth, int stencil);
@Reuse("GL45")
void glBlitNamedFramebuffer(
@GLuint int readFramebuffer, @GLuint int drawFramebuffer,
int srcX0, int srcY0, int srcX1, int srcY1,
int dstX0, int dstY0, int dstX1, int dstY1,
@GLbitfield int mask, @GLenum int filter);
@GLenum
@Reuse("GL45")
int glCheckNamedFramebufferStatus(@GLuint int framebuffer, @GLenum int target);
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedFramebufferParameteriv(@GLuint int framebuffer, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedFramebufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedFramebufferParameteriv2(@GLuint int framebuffer, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedFramebufferAttachmentParameteriv(@GLuint int framebuffer, @GLenum int attachment, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedFramebufferAttachmentParameteriv2(@GLuint int framebuffer, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
// Renderbuffer object functions
@Reuse("GL45")
void glCreateRenderbuffers(@AutoSize("renderbuffers") @GLsizei int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Alternate("glCreateRenderbuffers")
@GLreturn("renderbuffers")
@Reuse("GL45")
void glCreateRenderbuffers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer renderbuffers);
@Reuse("GL45")
void glNamedRenderbufferStorage(@GLuint int renderbuffer, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@Reuse("GL45")
void glNamedRenderbufferStorageMultisample(@GLuint int renderbuffer, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedRenderbufferParameteriv(@GLuint int renderbuffer, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetNamedRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse("GL45")
void glGetNamedRenderbufferParameteriv2(@GLuint int renderbuffer, @GLenum int pname, @OutParameter IntBuffer params);
// Texture object functions
@Reuse("GL45")
void glCreateTextures(@GLenum int target, @AutoSize("textures") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
@Alternate("glCreateTextures")
@GLreturn("textures")
@Reuse("GL45")
void glCreateTextures2(@GLenum int target, @Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer textures);
@Reuse("GL45")
void glTextureBuffer(@GLuint int texture, @GLenum int internalformat, @GLuint int buffer);
@Reuse("GL45")
void glTextureBufferRange(@GLuint int texture, @GLenum int internalformat, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
@Reuse("GL45")
void glTextureStorage1D(@GLuint int texture, @GLsizei int levels, @GLenum int internalformat, @GLsizei int width);
@Reuse("GL45")
void glTextureStorage2D(@GLuint int texture, @GLsizei int levels, @GLenum int internalformat, @GLsizei int width, @GLsizei int height);
@Reuse("GL45")
void glTextureStorage3D(@GLuint int texture, @GLsizei int levels, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth);
@Reuse("GL45")
void glTextureStorage2DMultisample(@GLuint int texture, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, boolean fixedsamplelocations);
@Reuse("GL45")
void glTextureStorage3DMultisample(@GLuint int texture, @GLsizei int samples, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, boolean fixedsamplelocations);
@Reuse("GL45")
void glTextureSubImage1D(@GLuint int texture, int level, int xoffset, @GLsizei int width, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Reuse("GL45")
void glTextureSubImage2D(@GLuint int texture, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Reuse("GL45")
void glTextureSubImage3D(@GLuint int texture, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLenum int type,
@BufferObject(BufferKind.UnpackPBO)
@Check("GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)")
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Reuse("GL45")
void glCompressedTextureSubImage1D(@GLuint int texture, int level, int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Reuse("GL45")
void glCompressedTextureSubImage2D(@GLuint int texture, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("data") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Reuse("GL45")
void glCompressedTextureSubImage3D(@GLuint int texture, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer data);
@Reuse("GL45")
void glCopyTextureSubImage1D(@GLuint int texture, int level, int xoffset, int x, int y, @GLsizei int width);
@Reuse("GL45")
void glCopyTextureSubImage2D(@GLuint int texture, int level, int xoffset, int yoffset, int x, int y, @GLsizei int width, @GLsizei int height);
@Reuse("GL45")
void glCopyTextureSubImage3D(@GLuint int texture, int level, int xoffset, int yoffset, int zoffset, int x, int y, @GLsizei int width, @GLsizei int height);
@Reuse("GL45")
void glTextureParameterf(@GLuint int texture, @GLenum int pname, float param);
@StripPostfix("params")
@Reuse("GL45")
void glTextureParameterfv(@GLuint int texture, @GLenum int pname, @Const @Check("4") FloatBuffer params);
@Reuse("GL45")
void glTextureParameteri(@GLuint int texture, @GLenum int pname, int param);
@StripPostfix("params")
@Reuse("GL45")
void glTextureParameterIiv(@GLuint int texture, @GLenum int pname, @Const @Check("1") IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glTextureParameterIuiv(@GLuint int texture, @GLenum int pname, @Const @Check("1") @GLuint IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glTextureParameteriv(@GLuint int texture, @GLenum int pname, @Const @Check("4") IntBuffer params);
@Reuse("GL45")
void glGenerateTextureMipmap(@GLuint int texture);
@Reuse("GL45")
void glBindTextureUnit(@GLuint int unit, @GLuint int texture);
@Reuse("GL45")
void glGetTextureImage(@GLuint int texture, int level, @GLenum int format, @GLenum int type, @AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pixels);
@Reuse("GL45")
void glGetCompressedTextureImage(@GLuint int texture, int level, @AutoSize("pixels") @GLsizei int bufSize,
@OutParameter
@BufferObject(BufferKind.PackPBO)
@Check
@GLbyte
@GLshort
@GLint Buffer pixels);
@StripPostfix("params")
@Reuse("GL45")
void glGetTextureLevelParameterfv(@GLuint int texture, int level, @GLenum int pname, @OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetTextureLevelParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetTextureLevelParameterfv2(@GLuint int texture, int level, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetTextureLevelParameteriv(@GLuint int texture, int level, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTextureLevelParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetTextureLevelParameteriv2(@GLuint int texture, int level, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetTextureParameterfv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") FloatBuffer params);
@Alternate("glGetTextureParameterfv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetTextureParameterfv2(@GLuint int texture, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetTextureParameterIiv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTextureParameterIiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetTextureParameterIiv2(@GLuint int texture, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetTextureParameterIuiv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params);
@Alternate("glGetTextureParameterIuiv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetTextureParameterIuiv2(@GLuint int texture, @GLenum int pname, @OutParameter @GLuint IntBuffer params);
@StripPostfix("params")
@Reuse("GL45")
void glGetTextureParameteriv(@GLuint int texture, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Alternate("glGetTextureParameteriv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
@Reuse("GL45")
void glGetTextureParameteriv2(@GLuint int texture, @GLenum int pname, @OutParameter IntBuffer params);
// Vertex Array object functions
@Reuse("GL45")
void glCreateVertexArrays(@AutoSize("arrays") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Alternate("glCreateVertexArrays")
@GLreturn("arrays")
@Reuse("GL45")
void glCreateVertexArrays2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
@Reuse("GL45")
void glDisableVertexArrayAttrib(@GLuint int vaobj, @GLuint int index);
@Reuse("GL45")
void glEnableVertexArrayAttrib(@GLuint int vaobj, @GLuint int index);
@Reuse("GL45")
void glVertexArrayElementBuffer(@GLuint int vaobj, @GLuint int buffer);
@Reuse("GL45")
void glVertexArrayVertexBuffer(@GLuint int vaobj, @GLuint int bindingindex, @GLuint int buffer, @GLintptr long offset, @GLsizei int stride);
@Reuse("GL45")
void glVertexArrayVertexBuffers(@GLuint int vaobj, @GLuint int first, @GLsizei int count,
@Check(value = "count", canBeNull = true) @Const @GLuint IntBuffer buffers,
@Check(value = "count", canBeNull = true) @Const @GLintptr PointerBuffer offsets,
@Check(value = "count", canBeNull = true) @Const @GLsizei IntBuffer strides);
@Reuse("GL45")
void glVertexArrayAttribFormat(@GLuint int vaobj, @GLuint int attribindex, int size, @GLenum int type, boolean normalized, @GLuint int relativeoffset);
@Reuse("GL45")
void glVertexArrayAttribIFormat(@GLuint int vaobj, @GLuint int attribindex, int size, @GLenum int type, @GLuint int relativeoffset);
@Reuse("GL45")
void glVertexArrayAttribLFormat(@GLuint int vaobj, @GLuint int attribindex, int size, @GLenum int type, @GLuint int relativeoffset);
@Reuse("GL45")
void glVertexArrayAttribBinding(@GLuint int vaobj, @GLuint int attribindex, @GLuint int bindingindex);
@Reuse("GL45")
void glVertexArrayBindingDivisor(@GLuint int vaobj, @GLuint int bindingindex, @GLuint int divisor);
@StripPostfix("param")
@Reuse("GL45")
void glGetVertexArrayiv(@GLuint int vaobj, @GLenum int pname, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetVertexArrayiv")
@GLreturn("param")
@StripPostfix("param")
@Reuse("GL45")
void glGetVertexArrayiv2(@GLuint int vaobj, @GLenum int pname, @OutParameter IntBuffer param);
@StripPostfix("param")
@Reuse("GL45")
void glGetVertexArrayIndexediv(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @Check("1") IntBuffer param);
@Alternate("glGetVertexArrayIndexediv")
@GLreturn("param")
@StripPostfix("param")
@Reuse("GL45")
void glGetVertexArrayIndexediv2(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer param);
@StripPostfix("param")
@Reuse("GL45")
void glGetVertexArrayIndexed64iv(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer param);
@Alternate("glGetVertexArrayIndexed64iv")
@GLreturn("param")
@StripPostfix("param")
@Reuse("GL45")
void glGetVertexArrayIndexed64iv2(@GLuint int vaobj, @GLuint int index, @GLenum int pname, @OutParameter @GLint64 LongBuffer param);
// Sampler object functions
@Reuse("GL45")
void glCreateSamplers(@AutoSize("samplers") @GLsizei int n, @OutParameter @GLuint IntBuffer samplers);
@Alternate("glCreateSamplers")
@GLreturn("samplers")
@Reuse("GL45")
void glCreateSamplers2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer samplers);
// Program Pipeline object functions
@Reuse("GL45")
void glCreateProgramPipelines(@AutoSize("pipelines") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
@Alternate("glCreateProgramPipelines")
@GLreturn("pipelines")
@Reuse("GL45")
void glCreateProgramPipelines2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer pipelines);
// Query object functions
@Reuse("GL45")
void glCreateQueries(@GLenum int target, @AutoSize("ids") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
@Alternate("glCreateQueries")
@GLreturn("ids")
@Reuse("GL45")
void glCreateQueries2(@GLenum int target, @Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer ids);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_ES3_1_compatibility.java 0000644 0001750 0001750 00000003417 12702226520 024040 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.GLbitfield;
public interface ARB_ES3_1_compatibility {
@Reuse("GL45")
void glMemoryBarrierByRegion(@GLbitfield int barriers);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_draw_buffers_blend.java 0000644 0001750 0001750 00000004070 12702226520 024106 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_draw_buffers_blend {
void glBlendEquationiARB(@GLuint int buf, @GLenum int mode);
void glBlendEquationSeparateiARB(@GLuint int buf, @GLenum int modeRGB, @GLenum int modeAlpha);
void glBlendFunciARB(@GLuint int buf, @GLenum int src, @GLenum int dst);
void glBlendFuncSeparateiARB(@GLuint int buf, @GLenum int srcRGB, @GLenum int dstRGB, @GLenum int srcAlpha, @GLenum int dstAlpha);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_float.java 0000644 0001750 0001750 00000005124 12702226520 023157 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_float {
/**
* Accepted by the <value> parameter of GetTexLevelParameter:
*/
int GL_TEXTURE_RED_TYPE_ARB = 0x8C10;
int GL_TEXTURE_GREEN_TYPE_ARB = 0x8C11;
int GL_TEXTURE_BLUE_TYPE_ARB = 0x8C12;
int GL_TEXTURE_ALPHA_TYPE_ARB = 0x8C13;
int GL_TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14;
int GL_TEXTURE_INTENSITY_TYPE_ARB = 0x8C15;
int GL_TEXTURE_DEPTH_TYPE_ARB = 0x8C16;
/**
* Returned by the <params> parameter of GetTexLevelParameter:
*/
int GL_UNSIGNED_NORMALIZED_ARB = 0x8C17;
/**
* Accepted by the <internalFormat> parameter of TexImage1D,
* TexImage2D, and TexImage3D:
*/
int GL_RGBA32F_ARB = 0x8814;
int GL_RGB32F_ARB = 0x8815;
int GL_ALPHA32F_ARB = 0x8816;
int GL_INTENSITY32F_ARB = 0x8817;
int GL_LUMINANCE32F_ARB = 0x8818;
int GL_LUMINANCE_ALPHA32F_ARB = 0x8819;
int GL_RGBA16F_ARB = 0x881A;
int GL_RGB16F_ARB = 0x881B;
int GL_ALPHA16F_ARB = 0x881C;
int GL_INTENSITY16F_ARB = 0x881D;
int GL_LUMINANCE16F_ARB = 0x881E;
int GL_LUMINANCE_ALPHA16F_ARB = 0x881F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_separate_stencil.java 0000644 0001750 0001750 00000004121 12702226520 023624 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ATI_separate_stencil {
int GL_STENCIL_BACK_FUNC_ATI = 0x8800;
int GL_STENCIL_BACK_FAIL_ATI = 0x8801;
int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802;
int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803;
void glStencilOpSeparateATI(@GLenum int face, @GLenum int sfail, @GLenum int dpfail, @GLenum int dppass);
void glStencilFuncSeparateATI(@GLenum int frontfunc, @GLenum int backfunc, int ref, @GLuint int mask);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_shader_storage_buffer_object.java 0000644 0001750 0001750 00000003161 12702226520 026061 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_shader_storage_buffer_object {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_rgb_422.java 0000644 0001750 0001750 00000004620 12702226520 021670 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_rgb_422 {
/**
* Accepted by the <format> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D,
* ConvolutionFilter2D, GetConvolutionFilter, SeparableFilter2D,
* GetSeparableFilter, ColorTable, GetColorTable:
*/
int GL_RGB_422_APPLE = 0x8A1F;
/**
* Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
* TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, TexSubImage2D,
* TexSubImage3D, GetHistogram, GetMinmax, ConvolutionFilter1D,
* ConvolutionFilter2D, GetConvolutionFilter, SeparableFilter2D,
* GetSeparableFilter, ColorTable, GetColorTable:
*/
int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA;
int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_cube_map.java 0000644 0001750 0001750 00000004214 12702226520 023624 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_cube_map {
int GL_NORMAL_MAP_ARB = 0x8511;
int GL_REFLECTION_MAP_ARB = 0x8512;
int GL_TEXTURE_CUBE_MAP_ARB = 0x8513;
int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514;
int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515;
int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516;
int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517;
int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518;
int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519;
int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A;
int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B;
int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_vertex_buffer_object.java 0000644 0001750 0001750 00000005346 12702226520 024474 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_vertex_buffer_object extends ARB_buffer_object {
/**
* Accepted by the <target> parameters of BindBufferARB, BufferDataARB,
* BufferSubDataARB, MapBufferARB, UnmapBufferARB,
* GetBufferSubDataARB, GetBufferParameterivARB, and
* GetBufferPointervARB:
*/
int GL_ARRAY_BUFFER_ARB = 0x8892;
int GL_ELEMENT_ARRAY_BUFFER_ARB = 0x8893;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_ARRAY_BUFFER_BINDING_ARB = 0x8894;
int GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895;
int GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896;
int GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897;
int GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898;
int GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899;
int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A;
int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B;
int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C;
int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D;
int GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E;
/**
* Accepted by the <pname> parameter of GetVertexAttribivARB:
*/
int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_multitexture.java 0000644 0001750 0001750 00000010352 12702226520 023044 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ARB_multitexture {
int GL_TEXTURE0_ARB = 0x84C0;
int GL_TEXTURE1_ARB = 0x84C1;
int GL_TEXTURE2_ARB = 0x84C2;
int GL_TEXTURE3_ARB = 0x84C3;
int GL_TEXTURE4_ARB = 0x84C4;
int GL_TEXTURE5_ARB = 0x84C5;
int GL_TEXTURE6_ARB = 0x84C6;
int GL_TEXTURE7_ARB = 0x84C7;
int GL_TEXTURE8_ARB = 0x84C8;
int GL_TEXTURE9_ARB = 0x84C9;
int GL_TEXTURE10_ARB = 0x84CA;
int GL_TEXTURE11_ARB = 0x84CB;
int GL_TEXTURE12_ARB = 0x84CC;
int GL_TEXTURE13_ARB = 0x84CD;
int GL_TEXTURE14_ARB = 0x84CE;
int GL_TEXTURE15_ARB = 0x84CF;
int GL_TEXTURE16_ARB = 0x84D0;
int GL_TEXTURE17_ARB = 0x84D1;
int GL_TEXTURE18_ARB = 0x84D2;
int GL_TEXTURE19_ARB = 0x84D3;
int GL_TEXTURE20_ARB = 0x84D4;
int GL_TEXTURE21_ARB = 0x84D5;
int GL_TEXTURE22_ARB = 0x84D6;
int GL_TEXTURE23_ARB = 0x84D7;
int GL_TEXTURE24_ARB = 0x84D8;
int GL_TEXTURE25_ARB = 0x84D9;
int GL_TEXTURE26_ARB = 0x84DA;
int GL_TEXTURE27_ARB = 0x84DB;
int GL_TEXTURE28_ARB = 0x84DC;
int GL_TEXTURE29_ARB = 0x84DD;
int GL_TEXTURE30_ARB = 0x84DE;
int GL_TEXTURE31_ARB = 0x84DF;
int GL_ACTIVE_TEXTURE_ARB = 0x84E0;
int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1;
int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2;
void glClientActiveTextureARB(@GLenum int texture);
void glActiveTextureARB(@GLenum int texture);
@NoErrorCheck
void glMultiTexCoord1fARB(@GLenum int target, float s);
@NoErrorCheck
void glMultiTexCoord1dARB(@GLenum int target, double s);
@NoErrorCheck
void glMultiTexCoord1iARB(@GLenum int target, int s);
@NoErrorCheck
void glMultiTexCoord1sARB(@GLenum int target, short s);
@NoErrorCheck
void glMultiTexCoord2fARB(@GLenum int target, float s, float t);
@NoErrorCheck
void glMultiTexCoord2dARB(@GLenum int target, double s, double t);
@NoErrorCheck
void glMultiTexCoord2iARB(@GLenum int target, int s, int t);
@NoErrorCheck
void glMultiTexCoord2sARB(@GLenum int target, short s, short t);
@NoErrorCheck
void glMultiTexCoord3fARB(@GLenum int target, float s, float t, float r);
@NoErrorCheck
void glMultiTexCoord3dARB(@GLenum int target, double s, double t, double r);
@NoErrorCheck
void glMultiTexCoord3iARB(@GLenum int target, int s, int t, int r);
@NoErrorCheck
void glMultiTexCoord3sARB(@GLenum int target, short s, short t, short r);
@NoErrorCheck
void glMultiTexCoord4fARB(@GLenum int target, float s, float t, float r, float q);
@NoErrorCheck
void glMultiTexCoord4dARB(@GLenum int target, double s, double t, double r, double q);
@NoErrorCheck
void glMultiTexCoord4iARB(@GLenum int target, int s, int t, int r, int q);
@NoErrorCheck
void glMultiTexCoord4sARB(@GLenum int target, short s, short t, short r, short q);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_buffer_object.java 0000644 0001750 0001750 00000016340 12702226520 023073 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@Extension(postfix = "ARB", isFinal = false)
public interface ARB_buffer_object {
/** Accepted by the <usage> parameter of BufferDataARB: */
int GL_STREAM_DRAW_ARB = 0x88E0;
int GL_STREAM_READ_ARB = 0x88E1;
int GL_STREAM_COPY_ARB = 0x88E2;
int GL_STATIC_DRAW_ARB = 0x88E4;
int GL_STATIC_READ_ARB = 0x88E5;
int GL_STATIC_COPY_ARB = 0x88E6;
int GL_DYNAMIC_DRAW_ARB = 0x88E8;
int GL_DYNAMIC_READ_ARB = 0x88E9;
int GL_DYNAMIC_COPY_ARB = 0x88EA;
/** Accepted by the <access> parameter of MapBufferARB: */
int GL_READ_ONLY_ARB = 0x88B8;
int GL_WRITE_ONLY_ARB = 0x88B9;
int GL_READ_WRITE_ARB = 0x88BA;
/** Accepted by the <pname> parameter of GetBufferParameterivARB: */
int GL_BUFFER_SIZE_ARB = 0x8764;
int GL_BUFFER_USAGE_ARB = 0x8765;
int GL_BUFFER_ACCESS_ARB = 0x88BB;
int GL_BUFFER_MAPPED_ARB = 0x88BC;
int GL_BUFFER_MAP_POINTER_ARB = 0x88BD;
@Code(" StateTracker.bindBuffer(caps, target, buffer);")
void glBindBufferARB(@GLenum int target, @GLuint int buffer);
void glDeleteBuffersARB(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers);
@Alternate("glDeleteBuffersARB")
void glDeleteBuffersARB(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, buffer)", keepParam = true) int buffer);
void glGenBuffersARB(@AutoSize("buffers") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
@Alternate("glGenBuffersARB")
@GLreturn("buffers")
void glGenBuffersARB2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer buffers);
boolean glIsBufferARB(@GLuint int buffer);
@GenerateAutos
void glBufferDataARB(@GLenum int target, @AutoSize("data") @GLsizeiptrARB long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data, @GLenum int usage);
void glBufferSubDataARB(@GLenum int target, @GLintptrARB long offset, @AutoSize("data") @GLsizeiptrARB long size,
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
void glGetBufferSubDataARB(@GLenum int target, @GLintptrARB long offset, @AutoSize("data") @GLsizeiptrARB long size,
@OutParameter
@Check
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer data);
/**
* glMapBufferARB maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null,
* in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
* it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
* otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferARB like this:
*
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferARB(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferARB(..., ..., mapped_buffer);
*
* Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
*
* The version of this method without an explicit length argument calls glGetBufferParameterARB internally to
* retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.
*
* The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
* is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
* Security warning: The length argument should match the buffer object size. Reading from or writing to outside
* the memory region that corresponds to the mapped buffer object will cause native crashes.
*
* @param length the length of the mapped memory in bytes.
* @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
*
* @return A ByteBuffer representing the mapped buffer memory.
*/
@CachedResult
@GLvoid
@AutoSize("glGetBufferParameteriARB(target, GL_BUFFER_SIZE_ARB)")
ByteBuffer glMapBufferARB(@GLenum int target, @GLenum int access);
boolean glUnmapBufferARB(@GLenum int target);
@StripPostfix("params")
void glGetBufferParameterivARB(@GLenum int target, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
/** @deprecated Will be removed in 3.0. Use {@link #glGetBufferParameteriARB} instead. */
@Alternate("glGetBufferParameterivARB")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "ARBBufferObject", method = "glGetBufferParameteriARB")
@Deprecated
void glGetBufferParameterivARB2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@Alternate("glGetBufferParameterivARB")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetBufferParameterivARB3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("pointer")
@AutoSize("glGetBufferParameteriARB(target, GL_BUFFER_SIZE_ARB)")
void glGetBufferPointervARB(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_array_range.java 0000644 0001750 0001750 00000005036 12702226520 024102 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface NV_vertex_array_range {
int GL_VERTEX_ARRAY_RANGE_NV = 0x851D;
int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E;
int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851F;
int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520;
int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521;
void glVertexArrayRangeNV(@AutoSize("pPointer") @GLsizei int size,
@Const
@GLbyte
@GLshort
@GLint
@GLfloat
@GLdouble Buffer pPointer);
void glFlushVertexArrayRangeNV();
@PlatformDependent({Platform.WGL, Platform.GLX})
@GLvoid
@AutoSize("size")
ByteBuffer glAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority);
@PlatformDependent({Platform.WGL, Platform.GLX})
void glFreeMemoryNV(@Check @GLbyte Buffer pointer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_vertex_program2_option.java 0000644 0001750 0001750 00000003426 12702226520 024732 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_vertex_program2_option {
/**
* Accepted by the <pname> parameter of GetProgramivARB:
*/
int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4;
int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_ES3_compatibility.java 0000644 0001750 0001750 00000005214 12702226520 023615 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_ES3_compatibility {
/** Accepted by the <internalformat> parameter of CompressedTexImage2D */
int GL_COMPRESSED_RGB8_ETC2 = 0x9274,
GL_COMPRESSED_SRGB8_ETC2 = 0x9275,
GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276,
GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277,
GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278,
GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279,
GL_COMPRESSED_R11_EAC = 0x9270,
GL_COMPRESSED_SIGNED_R11_EAC = 0x9271,
GL_COMPRESSED_RG11_EAC = 0x9272,
GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273;
/** Accepted by the <target> parameter of Enable and Disable: */
int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69;
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery,
* GetQueryIndexediv and GetQueryiv:
*/
int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A;
/** Accepted by the <value> parameter of the GetInteger* functions: */
int GL_MAX_ELEMENT_INDEX = 0x8D6B;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_pn_triangles.java 0000644 0001750 0001750 00000004313 12702226520 022767 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ATI_pn_triangles {
int GL_PN_TRIANGLES_ATI = 0x87F0;
int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1;
int GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87F2;
int GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3;
int GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4;
int GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5;
int GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6;
int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7;
int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8;
void glPNTrianglesfATI(@GLenum int pname, float param);
void glPNTrianglesiATI(@GLenum int pname, int param);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_internalformat_query2.java 0000644 0001750 0001750 00000020165 12702226520 024630 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLint64;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.LongBuffer;
@Extension(postfix = "")
public interface ARB_internalformat_query2 {
/**
* Accepted by the <target> parameter of GetInternalformativ
* and GetInternalformati64v:
*/
int GL_TEXTURE_1D_ARRAY = 0x8C18,
GL_TEXTURE_2D_ARRAY = 0x8C1A,
GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009,
GL_TEXTURE_RECTANGLE = 0x84F5,
GL_TEXTURE_BUFFER = 0x8C2A,
GL_RENDERBUFFER = 0x8D41,
GL_TEXTURE_2D_MULTISAMPLE = 0x9100,
GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102;
/**
* Accepted by the <pname> parameter of GetInternalformativ
* and GetInternalformati64v:
*/
int GL_NUM_SAMPLE_COUNTS = 0x9380,
GL_INTERNALFORMAT_SUPPORTED = 0x826F,
GL_INTERNALFORMAT_PREFERRED = 0x8270,
GL_INTERNALFORMAT_RED_SIZE = 0x8271,
GL_INTERNALFORMAT_GREEN_SIZE = 0x8272,
GL_INTERNALFORMAT_BLUE_SIZE = 0x8273,
GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274,
GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275,
GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276,
GL_INTERNALFORMAT_SHARED_SIZE = 0x8277,
GL_INTERNALFORMAT_RED_TYPE = 0x8278,
GL_INTERNALFORMAT_GREEN_TYPE = 0x8279,
GL_INTERNALFORMAT_BLUE_TYPE = 0x827A,
GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B,
GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C,
GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D,
GL_MAX_WIDTH = 0x827E,
GL_MAX_HEIGHT = 0x827F,
GL_MAX_DEPTH = 0x8280,
GL_MAX_LAYERS = 0x8281,
GL_MAX_COMBINED_DIMENSIONS = 0x8282,
GL_COLOR_COMPONENTS = 0x8283,
GL_DEPTH_COMPONENTS = 0x8284,
GL_STENCIL_COMPONENTS = 0x8285,
GL_COLOR_RENDERABLE = 0x8286,
GL_DEPTH_RENDERABLE = 0x8287,
GL_STENCIL_RENDERABLE = 0x8288,
GL_FRAMEBUFFER_RENDERABLE = 0x8289,
GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A,
GL_FRAMEBUFFER_BLEND = 0x828B,
GL_READ_PIXELS = 0x828C,
GL_READ_PIXELS_FORMAT = 0x828D,
GL_READ_PIXELS_TYPE = 0x828E,
GL_TEXTURE_IMAGE_FORMAT = 0x828F,
GL_TEXTURE_IMAGE_TYPE = 0x8290,
GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291,
GL_GET_TEXTURE_IMAGE_TYPE = 0x8292,
GL_MIPMAP = 0x8293,
GL_MANUAL_GENERATE_MIPMAP = 0x8294,
GL_AUTO_GENERATE_MIPMAP = 0x8295,
GL_COLOR_ENCODING = 0x8296,
GL_SRGB_READ = 0x8297,
GL_SRGB_WRITE = 0x8298,
GL_SRGB_DECODE_ARB = 0x8299,
GL_FILTER = 0x829A,
GL_VERTEX_TEXTURE = 0x829B,
GL_TESS_CONTROL_TEXTURE = 0x829C,
GL_TESS_EVALUATION_TEXTURE = 0x829D,
GL_GEOMETRY_TEXTURE = 0x829E,
GL_FRAGMENT_TEXTURE = 0x829F,
GL_COMPUTE_TEXTURE = 0x82A0,
GL_TEXTURE_SHADOW = 0x82A1,
GL_TEXTURE_GATHER = 0x82A2,
GL_TEXTURE_GATHER_SHADOW = 0x82A3,
GL_SHADER_IMAGE_LOAD = 0x82A4,
GL_SHADER_IMAGE_STORE = 0x82A5,
GL_SHADER_IMAGE_ATOMIC = 0x82A6,
GL_IMAGE_TEXEL_SIZE = 0x82A7,
GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8,
GL_IMAGE_PIXEL_FORMAT = 0x82A9,
GL_IMAGE_PIXEL_TYPE = 0x82AA,
GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7,
GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC,
GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD,
GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE,
GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF,
GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1,
GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2,
GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3,
GL_CLEAR_BUFFER = 0x82B4,
GL_TEXTURE_VIEW = 0x82B5,
GL_VIEW_COMPATIBILITY_CLASS = 0x82B6;
/**
* Returned as possible responses for various <pname> queries
* to GetInternalformativ and GetInternalformati64v
*/
int GL_FULL_SUPPORT = 0x82B7,
GL_CAVEAT_SUPPORT = 0x82B8,
GL_IMAGE_CLASS_4_X_32 = 0x82B9,
GL_IMAGE_CLASS_2_X_32 = 0x82BA,
GL_IMAGE_CLASS_1_X_32 = 0x82BB,
GL_IMAGE_CLASS_4_X_16 = 0x82BC,
GL_IMAGE_CLASS_2_X_16 = 0x82BD,
GL_IMAGE_CLASS_1_X_16 = 0x82BE,
GL_IMAGE_CLASS_4_X_8 = 0x82BF,
GL_IMAGE_CLASS_2_X_8 = 0x82C0,
GL_IMAGE_CLASS_1_X_8 = 0x82C1,
GL_IMAGE_CLASS_11_11_10 = 0x82C2,
GL_IMAGE_CLASS_10_10_10_2 = 0x82C3,
GL_VIEW_CLASS_128_BITS = 0x82C4,
GL_VIEW_CLASS_96_BITS = 0x82C5,
GL_VIEW_CLASS_64_BITS = 0x82C6,
GL_VIEW_CLASS_48_BITS = 0x82C7,
GL_VIEW_CLASS_32_BITS = 0x82C8,
GL_VIEW_CLASS_24_BITS = 0x82C9,
GL_VIEW_CLASS_16_BITS = 0x82CA,
GL_VIEW_CLASS_8_BITS = 0x82CB,
GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC,
GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD,
GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE,
GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF,
GL_VIEW_CLASS_RGTC1_RED = 0x82D0,
GL_VIEW_CLASS_RGTC2_RG = 0x82D1,
GL_VIEW_CLASS_BPTC_UNORM = 0x82D2,
GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3;
@Reuse("GL43")
@StripPostfix("params")
void glGetInternalformati64v(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @AutoSize("params") @GLsizei int bufSize, @OutParameter @GLint64 LongBuffer params);
@Reuse("GL43")
@Alternate("glGetInternalformati64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetInternalformati64v2(@GLenum int target, @GLenum int internalformat,
@GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter @GLint64 LongBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_rectangle.java 0000644 0001750 0001750 00000003437 12702226520 024057 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_rectangle {
int GL_TEXTURE_RECTANGLE_EXT = 0x84F5;
int GL_TEXTURE_BINDING_RECTANGLE_EXT = 0x84F6;
int GL_PROXY_TEXTURE_RECTANGLE_EXT = 0x84F7;
int GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT = 0x84F8;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_texture_mirror_once.java 0000644 0001750 0001750 00000003270 12702226520 024401 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ATI_texture_mirror_once {
int GL_MIRROR_CLAMP_ATI = 0x8742;
int GL_MIRROR_CLAMP_TO_EDGE_ATI = 0x8743;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_clear_texture.java 0000644 0001750 0001750 00000005645 12702226520 023150 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.Check;
import org.lwjgl.util.generator.Const;
import org.lwjgl.util.generator.Reuse;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface ARB_clear_texture {
/**
* Accepted by the <pname> parameter for GetInternalformativ and
* GetInternalformati64v:
*/
int GL_CLEAR_TEXTURE = 0x9365;
@Reuse("GL44")
void glClearTexImage(@GLuint int texture, int level,
@GLenum int format, @GLenum int type,
@Check(value = "1", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data);
@Reuse("GL44")
void glClearTexSubImage(@GLuint int texture, int level,
int xoffset, int yoffset, int zoffset,
@GLsizei int width, @GLsizei int height, @GLsizei int depth,
@GLenum int format, @GLenum int type,
@Check(value = "1", canBeNull = true)
@Const
@GLbyte
@GLshort
@GLint
@GLuint64
@GLfloat
@GLdouble Buffer data);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_compute_variable_group_size.java 0000644 0001750 0001750 00000004627 12702226520 026070 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLuint;
public interface ARB_compute_variable_group_size {
/**
* Accepted by the <pname> parameter of GetIntegerv, GetBooleanv, GetFloatv,
* GetDoublev and GetInteger64v:
*/
int GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344,
GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB;
/**
* Accepted by the <pname> parameter of GetIntegeri_v, GetBooleani_v,
* GetFloati_v, GetDoublei_v and GetInteger64i_v:
*/
int GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345,
GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF;
void glDispatchComputeGroupSizeARB(@GLuint int num_groups_x, @GLuint int num_groups_y,
@GLuint int num_groups_z, @GLuint int group_size_x,
@GLuint int group_size_y, @GLuint int group_size_z);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/KHR_context_flush_control.java 0000644 0001750 0001750 00000003757 12702226520 024751 0 ustar apo apo /*
* Copyright (c) 2002-2014 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface KHR_context_flush_control {
/**
* Accepted by the <pname> parameter of GetIntegerv, GetFloatv, GetBooleanv
* GetDoublev and GetInteger64v:
*/
int GL_CONTEXT_RELEASE_BEHAVIOR = 0x82FB;
/**
* Returned in <data> by GetIntegerv, GetFloatv, GetBooleanv
* GetDoublev and GetInteger64v when <pname> is
* GL_CONTEXT_RELEASE_BEHAVIOR:
*/
int GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_transform_feedback3.java 0000644 0001750 0001750 00000005405 12702226520 024176 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import org.lwjgl.util.generator.opengl.GLuint;
import java.nio.IntBuffer;
@Extension(postfix = "")
public interface ARB_transform_feedback3 {
/**
* Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
* and GetFloatv:
*/
int GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70;
int GL_MAX_VERTEX_STREAMS = 0x8E71;
@Reuse("GL40")
void glDrawTransformFeedbackStream(@GLenum int mode, @GLuint int id, @GLuint int stream);
@Reuse("GL40")
void glBeginQueryIndexed(@GLenum int target, @GLuint int index, @GLuint int id);
@Reuse("GL40")
void glEndQueryIndexed(@GLenum int target, @GLuint int index);
@Reuse("GL40")
@StripPostfix("params")
void glGetQueryIndexediv(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter @Check("1") IntBuffer params);
@Reuse("GL40")
@Alternate("glGetQueryIndexediv")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryIndexediv2(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_framebuffer_sRGB.java 0000644 0001750 0001750 00000004655 12702226520 023477 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_framebuffer_sRGB {
/**
* Accepted by the <attribList> parameter of glXChooseVisual, and by
* the <attrib> parameter of glXGetConfig:
*/
int GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20B2;
/**
* Accepted by the <piAttributes> parameter of
* wglGetPixelFormatAttribivEXT, wglGetPixelFormatAttribfvEXT, and
* the <piAttribIList> and <pfAttribIList> of wglChoosePixelFormatEXT:
*/
int WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20A9;
/**
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled,
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FRAMEBUFFER_SRGB_EXT = 0x8DB9;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_multisample.java 0000644 0001750 0001750 00000004077 12702226520 022634 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLclampf;
public interface ARB_multisample {
int GL_MULTISAMPLE_ARB = 0x809D;
int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E;
int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F;
int GL_SAMPLE_COVERAGE_ARB = 0x80A0;
int GL_SAMPLE_BUFFERS_ARB = 0x80A8;
int GL_SAMPLES_ARB = 0x80A9;
int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA;
int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB;
int GL_MULTISAMPLE_BIT_ARB = 0x20000000;
void glSampleCoverageARB(@GLclampf float value, boolean invert);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_parameter_buffer_object2.java 0000644 0001750 0001750 00000003156 12702226520 025135 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_parameter_buffer_object2 {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_blend_minmax.java 0000644 0001750 0001750 00000003766 12702226520 022775 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface EXT_blend_minmax {
/** Accepted by the <mode> parameter of BlendEquationEXT. */
int GL_FUNC_ADD_EXT = 0x8006;
int GL_MIN_EXT = 0x8007;
int GL_MAX_EXT = 0x8008;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev.
*/
int GL_BLEND_EQUATION_EXT = 0x8009;
void glBlendEquationEXT(@GLenum int mode);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_texture_env_dot3.java 0000644 0001750 0001750 00000003246 12702226520 023632 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface EXT_texture_env_dot3 {
int GL_DOT3_RGB_EXT = 0x8740;
int GL_DOT3_RGBA_EXT = 0x8741;
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_shader_atomic_counters.java 0000644 0001750 0001750 00000003153 12702226520 024735 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_shader_atomic_counters {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_register_combiners.java 0000644 0001750 0001750 00000015720 12702226520 024101 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLreturn;
import java.nio.*;
public interface NV_register_combiners {
int GL_REGISTER_COMBINERS_NV = 0x8522;
int GL_COMBINER0_NV = 0x8550;
int GL_COMBINER1_NV = 0x8551;
int GL_COMBINER2_NV = 0x8552;
int GL_COMBINER3_NV = 0x8553;
int GL_COMBINER4_NV = 0x8554;
int GL_COMBINER5_NV = 0x8555;
int GL_COMBINER6_NV = 0x8556;
int GL_COMBINER7_NV = 0x8557;
int GL_VARIABLE_A_NV = 0x8523;
int GL_VARIABLE_B_NV = 0x8524;
int GL_VARIABLE_C_NV = 0x8525;
int GL_VARIABLE_D_NV = 0x8526;
int GL_VARIABLE_E_NV = 0x8527;
int GL_VARIABLE_F_NV = 0x8528;
int GL_VARIABLE_G_NV = 0x8529;
int GL_CONSTANT_COLOR0_NV = 0x852A;
int GL_CONSTANT_COLOR1_NV = 0x852B;
int GL_PRIMARY_COLOR_NV = 0x852C;
int GL_SECONDARY_COLOR_NV = 0x852D;
int GL_SPARE0_NV = 0x852E;
int GL_SPARE1_NV = 0x852F;
int GL_UNSIGNED_IDENTITY_NV = 0x8536;
int GL_UNSIGNED_INVERT_NV = 0x8537;
int GL_EXPAND_NORMAL_NV = 0x8538;
int GL_EXPAND_NEGATE_NV = 0x8539;
int GL_HALF_BIAS_NORMAL_NV = 0x853A;
int GL_HALF_BIAS_NEGATE_NV = 0x853B;
int GL_SIGNED_IDENTITY_NV = 0x853C;
int GL_SIGNED_NEGATE_NV = 0x853D;
int GL_E_TIMES_F_NV = 0x8531;
int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532;
int GL_SCALE_BY_TWO_NV = 0x853E;
int GL_SCALE_BY_FOUR_NV = 0x853F;
int GL_SCALE_BY_ONE_HALF_NV = 0x8540;
int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541;
int GL_DISCARD_NV = 0x8530;
int GL_COMBINER_INPUT_NV = 0x8542;
int GL_COMBINER_MAPPING_NV = 0x8543;
int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544;
int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545;
int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546;
int GL_COMBINER_MUX_SUM_NV = 0x8547;
int GL_COMBINER_SCALE_NV = 0x8548;
int GL_COMBINER_BIAS_NV = 0x8549;
int GL_COMBINER_AB_OUTPUT_NV = 0x854A;
int GL_COMBINER_CD_OUTPUT_NV = 0x854B;
int GL_COMBINER_SUM_OUTPUT_NV = 0x854C;
int GL_NUM_GENERAL_COMBINERS_NV = 0x854E;
int GL_COLOR_SUM_CLAMP_NV = 0x854F;
int GL_MAX_GENERAL_COMBINERS_NV = 0x854D;
void glCombinerParameterfNV(@GLenum int pname, float param);
@StripPostfix("params")
void glCombinerParameterfvNV(@GLenum int pname, @Check("4") @Const FloatBuffer params);
void glCombinerParameteriNV(@GLenum int pname, int param);
@StripPostfix("params")
void glCombinerParameterivNV(@GLenum int pname, @Check("4") @Const IntBuffer params);
void glCombinerInputNV(@GLenum int stage, @GLenum int portion, @GLenum int variable, @GLenum int input, @GLenum int mapping, @GLenum int componentUsage);
void glCombinerOutputNV(@GLenum int stage, @GLenum int portion, @GLenum int abOutput, @GLenum int cdOutput, @GLenum int sumOutput, @GLenum int scale, @GLenum int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum);
void glFinalCombinerInputNV(@GLenum int variable, @GLenum int input, @GLenum int mapping, @GLenum int componentUsage);
@StripPostfix("params")
void glGetCombinerInputParameterfvNV(@GLenum int stage, @GLenum int portion, @GLenum int variable, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetCombinerInputParameterfvNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetCombinerInputParameterfvNV2(@GLenum int stage, @GLenum int portion, @GLenum int variable, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetCombinerInputParameterivNV(@GLenum int stage, @GLenum int portion, @GLenum int variable, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetCombinerInputParameterivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetCombinerInputParameterivNV2(@GLenum int stage, @GLenum int portion, @GLenum int variable, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetCombinerOutputParameterfvNV(@GLenum int stage, @GLenum int portion, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetCombinerOutputParameterfvNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetCombinerOutputParameterfvNV2(@GLenum int stage, @GLenum int portion, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetCombinerOutputParameterivNV(@GLenum int stage, @GLenum int portion, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetCombinerOutputParameterivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetCombinerOutputParameterivNV2(@GLenum int stage, @GLenum int portion, @GLenum int pname, @OutParameter IntBuffer params);
@StripPostfix("params")
void glGetFinalCombinerInputParameterfvNV(@GLenum int variable, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
@Alternate("glGetFinalCombinerInputParameterfvNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFinalCombinerInputParameterfvNV2(@GLenum int variable, @GLenum int pname, @OutParameter FloatBuffer params);
@StripPostfix("params")
void glGetFinalCombinerInputParameterivNV(@GLenum int variable, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
@Alternate("glGetFinalCombinerInputParameterivNV")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetFinalCombinerInputParameterivNV2(@GLenum int variable, @GLenum int pname, @OutParameter IntBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_shader_bit_encoding.java 0000644 0001750 0001750 00000003151 12702226520 024242 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_shader_bit_encoding {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_color_buffer_float.java 0000644 0001750 0001750 00000005535 12702226520 024134 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface ARB_color_buffer_float {
/**
* Accepted by the <pname> parameters of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev:
*/
int GL_RGBA_FLOAT_MODE_ARB = 0x8820;
/**
* Accepted by the <target> parameter of ClampColorARB and the <pname>
* parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
*/
int GL_CLAMP_VERTEX_COLOR_ARB = 0x891A;
int GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891B;
int GL_CLAMP_READ_COLOR_ARB = 0x891C;
/** Accepted by the <clamp> parameter of ClampColorARB. */
int GL_FIXED_ONLY_ARB = 0x891D;
/**
* Accepted as a value in the <piAttribIList> and <pfAttribFList>
* parameter arrays of wglChoosePixelFormatARB, and returned in the
* <piValues> parameter array of wglGetPixelFormatAttribivARB, and the
* <pfValues> parameter array of wglGetPixelFormatAttribfvARB:
*/
int WGL_TYPE_RGBA_FLOAT_ARB = 0x21A0;
/**
* Accepted as values of the <render_type> arguments in the
* glXCreateNewContext and glXCreateContext functions
*/
int GLX_RGBA_FLOAT_TYPE = 0x20B9;
/** Accepted as a bit set in the GLX_RENDER_TYPE variable */
int GLX_RGBA_FLOAT_BIT = 0x00000004;
void glClampColorARB(@GLenum int target, @GLenum int clamp);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_robust_buffer_access_behavior.java 0000644 0001750 0001750 00000003163 12702226520 026342 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_robust_buffer_access_behavior {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/APPLE_aux_depth_stencil.java 0000644 0001750 0001750 00000003325 12702226520 024232 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface APPLE_aux_depth_stencil {
/** Accepted by the <pname> parameter of GetIntegerv. */
int GL_AUX_DEPTH_STENCIL_APPLE = 0x8A14;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_blend_equation_advanced.java 0000644 0001750 0001750 00000007714 12702226520 025036 0 ustar apo apo /*
* Copyright (c) 2002-2013 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
public interface NV_blend_equation_advanced {
/**
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and by
* the <pname> parameter of GetIntegerv, GetBooleanv, GetFloatv, GetDoublev
* and GetInteger64v:
*/
int GL_BLEND_ADVANCED_COHERENT_NV = 0x9285;
/**
* Accepted by the <pname> parameter of BlendParameteriNV, GetBooleanv,
* GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_BLEND_PREMULTIPLIED_SRC_NV = 0x9280,
GL_BLEND_OVERLAP_NV = 0x9281;
/**
* Accepted by the <value> parameter of BlendParameteriNV when <pname> is
* BLEND_OVERLAP_NV:
*/
int GL_UNCORRELATED_NV = 0x9282,
GL_DISJOINT_NV = 0x9283,
GL_CONJOINT_NV = 0x9284;
/** Accepted by the <mode> parameter of BlendEquation and BlendEquationi: */
int GL_SRC_NV = 0x9286,
GL_DST_NV = 0x9287,
GL_SRC_OVER_NV = 0x9288,
GL_DST_OVER_NV = 0x9289,
GL_SRC_IN_NV = 0x928A,
GL_DST_IN_NV = 0x928B,
GL_SRC_OUT_NV = 0x928C,
GL_DST_OUT_NV = 0x928D,
GL_SRC_ATOP_NV = 0x928E,
GL_DST_ATOP_NV = 0x928F,
GL_MULTIPLY_NV = 0x9294,
GL_SCREEN_NV = 0x9295,
GL_OVERLAY_NV = 0x9296,
GL_DARKEN_NV = 0x9297,
GL_LIGHTEN_NV = 0x9298,
GL_COLORDODGE_NV = 0x9299,
GL_COLORBURN_NV = 0x929A,
GL_HARDLIGHT_NV = 0x929B,
GL_SOFTLIGHT_NV = 0x929C,
GL_DIFFERENCE_NV = 0x929E,
GL_EXCLUSION_NV = 0x92A0,
GL_INVERT_RGB_NV = 0x92A3,
GL_LINEARDODGE_NV = 0x92A4,
GL_LINEARBURN_NV = 0x92A5,
GL_VIVIDLIGHT_NV = 0x92A6,
GL_LINEARLIGHT_NV = 0x92A7,
GL_PINLIGHT_NV = 0x92A8,
GL_HARDMIX_NV = 0x92A9,
GL_HSL_HUE_NV = 0x92AD,
GL_HSL_SATURATION_NV = 0x92AE,
GL_HSL_COLOR_NV = 0x92AF,
GL_HSL_LUMINOSITY_NV = 0x92B0,
GL_PLUS_NV = 0x9291,
GL_PLUS_CLAMPED_NV = 0x92B1,
GL_PLUS_CLAMPED_ALPHA_NV = 0x92B2,
GL_PLUS_DARKER_NV = 0x9292,
GL_MINUS_NV = 0x929F,
GL_MINUS_CLAMPED_NV = 0x92B3,
GL_CONTRAST_NV = 0x92A1,
GL_INVERT_OVG_NV = 0x92B4;
void glBlendParameteriNV(@GLenum int pname, int value);
void glBlendBarrierNV();
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_draw_instanced.java 0000644 0001750 0001750 00000004110 12702226520 023305 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.Buffer;
public interface EXT_draw_instanced {
void glDrawArraysInstancedEXT(@GLenum int mode, int first, @GLsizei int count, @GLsizei int primcount);
void glDrawElementsInstancedEXT(@GLenum int mode, @AutoSize("indices") @GLsizei int count, @AutoType("indices") @GLenum int type,
@BufferObject(BufferKind.ElementVBO)
@Const
@GLubyte
@GLushort
@GLuint Buffer indices, @GLsizei int primcount);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_timer_query.java 0000644 0001750 0001750 00000005740 12702226520 022643 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.LongBuffer;
@Extension(postfix = "")
public interface ARB_timer_query {
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
* GetQueryiv:
*/
int GL_TIME_ELAPSED = 0x88BF;
/**
* Accepted by the <target> parameter of GetQueryiv and QueryCounter.
* Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
* GetInteger64v, GetFloatv, and GetDoublev:
*/
int GL_TIMESTAMP = 0x8E28;
@Reuse("GL33")
void glQueryCounter(@GLuint int id, @GLenum int target);
@Reuse("GL33")
@StripPostfix("params")
void glGetQueryObjecti64v(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLint64 LongBuffer params);
@Reuse("GL33")
@Alternate("glGetQueryObjecti64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjecti64v2(@GLuint int id, @GLenum int pname, @OutParameter @GLint64 LongBuffer params);
@Reuse("GL33")
@StripPostfix("params")
void glGetQueryObjectui64v(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLuint64 LongBuffer params);
@Reuse("GL33")
@Alternate("glGetQueryObjectui64v")
@GLreturn("params")
@StripPostfix(value = "params", hasPostfix = false)
void glGetQueryObjectui64v2(@GLuint int id, @GLenum int pname, @OutParameter @GLuint64 LongBuffer params);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_draw_buffers.java 0000644 0001750 0001750 00000005367 12702226520 022754 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
import java.nio.*;
public interface ARB_draw_buffers {
/**
* Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_MAX_DRAW_BUFFERS_ARB = 0x8824;
int GL_DRAW_BUFFER0_ARB = 0x8825;
int GL_DRAW_BUFFER1_ARB = 0x8826;
int GL_DRAW_BUFFER2_ARB = 0x8827;
int GL_DRAW_BUFFER3_ARB = 0x8828;
int GL_DRAW_BUFFER4_ARB = 0x8829;
int GL_DRAW_BUFFER5_ARB = 0x882A;
int GL_DRAW_BUFFER6_ARB = 0x882B;
int GL_DRAW_BUFFER7_ARB = 0x882C;
int GL_DRAW_BUFFER8_ARB = 0x882D;
int GL_DRAW_BUFFER9_ARB = 0x882E;
int GL_DRAW_BUFFER10_ARB = 0x882F;
int GL_DRAW_BUFFER11_ARB = 0x8830;
int GL_DRAW_BUFFER12_ARB = 0x8831;
int GL_DRAW_BUFFER13_ARB = 0x8832;
int GL_DRAW_BUFFER14_ARB = 0x8833;
int GL_DRAW_BUFFER15_ARB = 0x8834;
void glDrawBuffersARB(@AutoSize("buffers") @GLsizei int size, @Const @GLenum IntBuffer buffers);
@Alternate("glDrawBuffersARB")
void glDrawBuffersARB(@Constant("1") @GLsizei int size, @Constant(value = "APIUtil.getInt(caps, buffer)", keepParam = true) int buffer);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_float_buffer.java 0000644 0001750 0001750 00000006441 12702226520 022652 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface NV_float_buffer {
/**
* Accepted by the <internalformat> parameter of TexImage2D and
* CopyTexImage2D:
*/
int GL_FLOAT_R_NV = 0x8880;
int GL_FLOAT_RG_NV = 0x8881;
int GL_FLOAT_RGB_NV = 0x8882;
int GL_FLOAT_RGBA_NV = 0x8883;
int GL_FLOAT_R16_NV = 0x8884;
int GL_FLOAT_R32_NV = 0x8885;
int GL_FLOAT_RG16_NV = 0x8886;
int GL_FLOAT_RG32_NV = 0x8887;
int GL_FLOAT_RGB16_NV = 0x8888;
int GL_FLOAT_RGB32_NV = 0x8889;
int GL_FLOAT_RGBA16_NV = 0x888A;
int GL_FLOAT_RGBA32_NV = 0x888B;
/**
* Accepted by the <pname> parameter of GetTexLevelParameterfv and
* GetTexLevelParameteriv:
*/
int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888C;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev:
*/
int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D;
int GL_FLOAT_RGBA_MODE_NV = 0x888E;
/**
* Accepted in the <piAttributes> array of wglGetPixelFormatAttribivARB and
* wglGetPixelFormatAttribfvARB and in the <piAttribIList> and
* <pfAttribFList> arrays of wglChoosePixelFormatARB:
*/
/*
int WGL_FLOAT_COMPONENTS_NV = 0x20B0;
int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV = 0x20B1;
int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV = 0x20B2;
int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV = 0x20B3;
int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV = 0x20B4;
*/
/**
* Accepted in the <piAttribIList> array of wglCreatePbufferARB and returned
* in the <value> parameter of wglQueryPbufferARB when <iAttribute> is
* WGL_TEXTURE_FORMAT_ARB:
*/
/*
int WGL_TEXTURE_FLOAT_R_NV = 0x20B5;
int WGL_TEXTURE_FLOAT_RG_NV = 0x20B6;
int WGL_TEXTURE_FLOAT_RGB_NV = 0x20B7;
int WGL_TEXTURE_FLOAT_RGBA_NV = 0x20B8;
*/
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_framebuffer_multisample_coverage.java 0000644 0001750 0001750 00000004447 12702226520 026773 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLsizei;
public interface NV_framebuffer_multisample_coverage {
/** Accepted by the <pname> parameter of GetRenderbufferParameterivEXT. */
int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB;
int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10;
/** Accepted by the <pname> parameter of GetIntegerv. */
int GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11;
int GL_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12;
void glRenderbufferStorageMultisampleCoverageNV(@GLenum int target, @GLsizei int coverageSamples, @GLsizei int colorSamples,
@GLenum int internalformat, @GLsizei int width, @GLsizei int height);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_draw_texture.java 0000644 0001750 0001750 00000004034 12702226520 022725 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.opengl.GLfloat;
import org.lwjgl.util.generator.opengl.GLuint;
public interface NV_draw_texture {
void glDrawTextureNV(@GLuint int texture, @GLuint int sampler,
@GLfloat float x0, @GLfloat float y0,
@GLfloat float x1, @GLfloat float y1,
@GLfloat float z,
@GLfloat float s0, @GLfloat float t0,
@GLfloat float s1, @GLfloat float t1);
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_timer_query.java 0000644 0001750 0001750 00000005063 12702226520 022675 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.Alternate;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface EXT_timer_query {
/**
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
* GetQueryiv:
*/
int GL_TIME_ELAPSED_EXT = 0x88BF;
@StripPostfix("params")
void glGetQueryObjecti64vEXT(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLint64EXT LongBuffer params);
@Alternate("glGetQueryObjecti64vEXT")
@GLreturn("params")
@StripPostfix("params")
void glGetQueryObjecti64vEXT2(@GLuint int id, @GLenum int pname, @OutParameter @GLint64EXT LongBuffer params);
@StripPostfix("params")
void glGetQueryObjectui64vEXT(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
@Alternate("glGetQueryObjectui64vEXT")
@GLreturn("params")
@StripPostfix("params")
void glGetQueryObjectui64vEXT2(@GLuint int id, @GLenum int pname, @OutParameter @GLuint64EXT LongBuffer params);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/GL21.java 0000644 0001750 0001750 00000012311 12702226520 020247 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.AutoSize;
import org.lwjgl.util.generator.opengl.GLsizei;
import org.lwjgl.util.generator.StripPostfix;
import java.nio.FloatBuffer;
public interface GL21 {
// ------------------------------------------------------------------
// --------------------------[ GLSL 1.20 ]---------------------------
// ------------------------------------------------------------------
/** Returned by the <type> parameter of GetActiveAttribARB. */
int GL_FLOAT_MAT2x3 = 0x8B65;
int GL_FLOAT_MAT2x4 = 0x8B66;
int GL_FLOAT_MAT3x2 = 0x8B67;
int GL_FLOAT_MAT3x4 = 0x8B68;
int GL_FLOAT_MAT4x2 = 0x8B69;
int GL_FLOAT_MAT4x3 = 0x8B6A;
@StripPostfix("matrices")
void glUniformMatrix2x3fv(int location, @AutoSize(value = "matrices", expression = " / (2 * 3)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3x2fv(int location, @AutoSize(value = "matrices", expression = " / (3 * 2)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix2x4fv(int location, @AutoSize(value = "matrices", expression = " >> 3") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4x2fv(int location, @AutoSize(value = "matrices", expression = " >> 3") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix3x4fv(int location, @AutoSize(value = "matrices", expression = " / (3 * 4)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
@StripPostfix("matrices")
void glUniformMatrix4x3fv(int location, @AutoSize(value = "matrices", expression = " / (4 * 3)") @GLsizei int count,
boolean transpose, FloatBuffer matrices);
// ------------------------------------------------------------------
// -------------------[ ARB_pixel_buffer_object ]--------------------
// ------------------------------------------------------------------
/**
* Accepted by the <target> parameters of BindBuffer, BufferData,
* BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
* GetBufferParameteriv, and GetBufferPointerv.
*/
int GL_PIXEL_PACK_BUFFER = 0x88EB;
int GL_PIXEL_UNPACK_BUFFER = 0x88EC;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev.
*/
int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED;
int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF;
// ------------------------------------------------------------------
// ----------------------[ EXT_texture_sRGB ]------------------------
// ------------------------------------------------------------------
/**
* Accepted by the <internalformat> parameter of TexImage1D, TexImage2D,
* TexImage3D, CopyTexImage1D, CopyTexImage2D.
*/
int GL_SRGB = 0x8C40;
int GL_SRGB8 = 0x8C41;
int GL_SRGB_ALPHA = 0x8C42;
int GL_SRGB8_ALPHA8 = 0x8C43;
int GL_SLUMINANCE_ALPHA = 0x8C44;
int GL_SLUMINANCE8_ALPHA8 = 0x8C45;
int GL_SLUMINANCE = 0x8C46;
int GL_SLUMINANCE8 = 0x8C47;
int GL_COMPRESSED_SRGB = 0x8C48;
int GL_COMPRESSED_SRGB_ALPHA = 0x8C49;
int GL_COMPRESSED_SLUMINANCE = 0x8C4A;
int GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B;
// ------------------------------------------------------------------
// -----------------------[ Misc additions ]-------------------------
// ------------------------------------------------------------------
/** Accepted by the <pname> parameter of GetIntegerv and GetFloatv. */
int GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845F;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ATI_meminfo.java 0000644 0001750 0001750 00000003436 12702226520 021741 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ATI_meminfo {
/** Accepted by the <value> parameter of GetIntegerv: */
int GL_VBO_FREE_MEMORY_ATI = 0x87FB;
int GL_TEXTURE_FREE_MEMORY_ATI = 0x87FC;
int GL_RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/EXT_vertex_shader.java 0000644 0001750 0001750 00000026117 12702226520 023176 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.*;
import java.nio.*;
public interface EXT_vertex_shader {
int GL_VERTEX_SHADER_EXT = 0x8780;
int GL_VERTEX_SHADER_BINDING_EXT = 0x8781;
int GL_OP_INDEX_EXT = 0x8782;
int GL_OP_NEGATE_EXT = 0x8783;
int GL_OP_DOT3_EXT = 0x8784;
int GL_OP_DOT4_EXT = 0x8785;
int GL_OP_MUL_EXT = 0x8786;
int GL_OP_ADD_EXT = 0x8787;
int GL_OP_MADD_EXT = 0x8788;
int GL_OP_FRAC_EXT = 0x8789;
int GL_OP_MAX_EXT = 0x878A;
int GL_OP_MIN_EXT = 0x878B;
int GL_OP_SET_GE_EXT = 0x878C;
int GL_OP_SET_LT_EXT = 0x878D;
int GL_OP_CLAMP_EXT = 0x878E;
int GL_OP_FLOOR_EXT = 0x878F;
int GL_OP_ROUND_EXT = 0x8790;
int GL_OP_EXP_BASE_2_EXT = 0x8791;
int GL_OP_LOG_BASE_2_EXT = 0x8792;
int GL_OP_POWER_EXT = 0x8793;
int GL_OP_RECIP_EXT = 0x8794;
int GL_OP_RECIP_SQRT_EXT = 0x8795;
int GL_OP_SUB_EXT = 0x8796;
int GL_OP_CROSS_PRODUCT_EXT = 0x8797;
int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798;
int GL_OP_MOV_EXT = 0x8799;
int GL_OUTPUT_VERTEX_EXT = 0x879A;
int GL_OUTPUT_COLOR0_EXT = 0x879B;
int GL_OUTPUT_COLOR1_EXT = 0x879C;
int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879D;
int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879E;
int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879F;
int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87A0;
int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87A1;
int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87A2;
int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87A3;
int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87A4;
int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87A5;
int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87A6;
int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87A7;
int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87A8;
int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87A9;
int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87AA;
int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87AB;
int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87AC;
int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87AD;
int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87AE;
int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87AF;
int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87B0;
int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87B1;
int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87B2;
int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87B3;
int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87B4;
int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87B5;
int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87B6;
int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87B7;
int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87B8;
int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87B9;
int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87BA;
int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87BB;
int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87BC;
int GL_OUTPUT_FOG_EXT = 0x87BD;
int GL_SCALAR_EXT = 0x87BE;
int GL_VECTOR_EXT = 0x87BF;
int GL_MATRIX_EXT = 0x87C0;
int GL_VARIANT_EXT = 0x87C1;
int GL_INVARIANT_EXT = 0x87C2;
int GL_LOCAL_CONSTANT_EXT = 0x87C3;
int GL_LOCAL_EXT = 0x87C4;
int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5;
int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6;
int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7;
int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8;
int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9;
int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA;
int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB;
int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CC;
int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CD;
int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE;
int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF;
int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87D0;
int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87D1;
int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2;
int GL_VERTEX_SHADER_LOCALS_EXT = 0x87D3;
int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4;
int GL_X_EXT = 0x87D5;
int GL_Y_EXT = 0x87D6;
int GL_Z_EXT = 0x87D7;
int GL_W_EXT = 0x87D8;
int GL_NEGATIVE_X_EXT = 0x87D9;
int GL_NEGATIVE_Y_EXT = 0x87DA;
int GL_NEGATIVE_Z_EXT = 0x87DB;
int GL_NEGATIVE_W_EXT = 0x87DC;
int GL_ZERO_EXT = 0x87DD;
int GL_ONE_EXT = 0x87DE;
int GL_NEGATIVE_ONE_EXT = 0x87DF;
int GL_NORMALIZED_RANGE_EXT = 0x87E0;
int GL_FULL_RANGE_EXT = 0x87E1;
int GL_CURRENT_VERTEX_EXT = 0x87E2;
int GL_MVP_MATRIX_EXT = 0x87E3;
int GL_VARIANT_VALUE_EXT = 0x87E4;
int GL_VARIANT_DATATYPE_EXT = 0x87E5;
int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87E6;
int GL_VARIANT_ARRAY_TYPE_EXT = 0x87E7;
int GL_VARIANT_ARRAY_EXT = 0x87E8;
int GL_VARIANT_ARRAY_POINTER_EXT = 0x87E9;
int GL_INVARIANT_VALUE_EXT = 0x87EA;
int GL_INVARIANT_DATATYPE_EXT = 0x87EB;
int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC;
int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED;
void glBeginVertexShaderEXT();
void glEndVertexShaderEXT();
void glBindVertexShaderEXT(@GLuint int id);
@GLuint
int glGenVertexShadersEXT(@GLuint int range);
void glDeleteVertexShaderEXT(@GLuint int id);
void glShaderOp1EXT(@GLenum int op, @GLuint int res, @GLuint int arg1);
void glShaderOp2EXT(@GLenum int op, @GLuint int res, @GLuint int arg1, @GLuint int arg2);
void glShaderOp3EXT(@GLenum int op, @GLuint int res, @GLuint int arg1, @GLuint int arg2, @GLuint int arg3);
void glSwizzleEXT(@GLuint int res, @GLuint int in, @GLenum int outX, @GLenum int outY, @GLenum int outZ, @GLenum int outW);
void glWriteMaskEXT(@GLuint int res, @GLuint int in, @GLenum int outX, @GLenum int outY, @GLenum int outZ, @GLenum int outW);
void glInsertComponentEXT(@GLuint int res, @GLuint int src, @GLuint int num);
void glExtractComponentEXT(@GLuint int res, @GLuint int src, @GLuint int num);
@GLuint
int glGenSymbolsEXT(@GLenum int dataType, @GLenum int storageType, @GLenum int range, @GLuint int components);
void glSetInvariantEXT(@GLuint int id, @AutoType("pAddr") @GLenum int type,
@Check("4")
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer pAddr);
void glSetLocalConstantEXT(@GLuint int id, @AutoType("pAddr") @GLenum int type,
@Check("4")
@Const
@GLbyte
@GLubyte
@GLshort
@GLushort
@GLint
@GLuint
@GLfloat
@GLdouble Buffer pAddr);
@StripPostfix("pAddr")
void glVariantbvEXT(@GLuint int id, @Check("4") @Const ByteBuffer pAddr);
@StripPostfix("pAddr")
void glVariantsvEXT(@GLuint int id, @Check("4") @Const ShortBuffer pAddr);
@StripPostfix("pAddr")
void glVariantivEXT(@GLuint int id, @Check("4") @Const IntBuffer pAddr);
@StripPostfix("pAddr")
void glVariantfvEXT(@GLuint int id, @Check("4") @Const FloatBuffer pAddr);
@StripPostfix("pAddr")
void glVariantdvEXT(@GLuint int id, @Check("4") @Const DoubleBuffer pAddr);
@StripPostfix("pAddr")
void glVariantubvEXT(@GLuint int id, @Check("4") @Const @GLubyte ByteBuffer pAddr);
@StripPostfix("pAddr")
void glVariantusvEXT(@GLuint int id, @Check("4") @Const @GLushort ShortBuffer pAddr);
@StripPostfix("pAddr")
void glVariantuivEXT(@GLuint int id, @Check("4") @Const @GLuint IntBuffer pAddr);
void glVariantPointerEXT(@GLuint int id, @AutoType("pAddr") @GLenum int type, @GLuint int stride,
@CachedReference
@BufferObject(BufferKind.ArrayVBO)
@Check
@Const
@GLbyte
@GLshort
@GLint
@GLubyte
@GLushort
@GLuint
@GLfloat
@GLdouble Buffer pAddr);
void glEnableVariantClientStateEXT(@GLuint int id);
void glDisableVariantClientStateEXT(@GLuint int id);
@GLuint
int glBindLightParameterEXT(@GLenum int light, @GLenum int value);
@GLuint
int glBindMaterialParameterEXT(@GLenum int face, @GLenum int value);
@GLuint
int glBindTexGenParameterEXT(@GLenum int unit, @GLenum int coord, @GLenum int value);
@GLuint
int glBindTextureUnitParameterEXT(@GLenum int unit, @GLenum int value);
@GLuint
int glBindParameterEXT(@GLenum int value);
boolean glIsVariantEnabledEXT(@GLuint int id, @GLenum int cap);
@StripPostfix("pbData")
void glGetVariantBooleanvEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") ByteBuffer pbData);
@StripPostfix("pbData")
void glGetVariantIntegervEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") IntBuffer pbData);
@StripPostfix("pbData")
void glGetVariantFloatvEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") FloatBuffer pbData);
@StripPostfix("pbData")
void glGetVariantPointervEXT(@GLuint int id, @GLenum int value, @OutParameter @Result @GLvoid ByteBuffer pbData);
@StripPostfix("pbData")
void glGetInvariantBooleanvEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") ByteBuffer pbData);
@StripPostfix("pbData")
void glGetInvariantIntegervEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") IntBuffer pbData);
@StripPostfix("pbData")
void glGetInvariantFloatvEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") FloatBuffer pbData);
@StripPostfix("pbData")
void glGetLocalConstantBooleanvEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") ByteBuffer pbData);
@StripPostfix("pbData")
void glGetLocalConstantIntegervEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") IntBuffer pbData);
@StripPostfix("pbData")
void glGetLocalConstantFloatvEXT(@GLuint int id, @GLenum int value, @OutParameter @Check("4") FloatBuffer pbData);
}
lwjgl-2.9.3/src/templates/org/lwjgl/opengl/SGIS_texture_lod.java 0000644 0001750 0001750 00000004013 12702226520 022765 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
@Extension(postfix = "SGIS", className = "SGISTextureLOD")
public interface SGIS_texture_lod {
/**
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.
*/
int GL_TEXTURE_MIN_LOD_SGIS = 0x813A;
int GL_TEXTURE_MAX_LOD_SGIS = 0x813B;
int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C;
int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D;
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/ARB_texture_query_levels.java 0000644 0001750 0001750 00000003152 12702226520 024570 0 ustar apo apo /*
* Copyright (c) 2002-2012 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
public interface ARB_texture_query_levels {
} lwjgl-2.9.3/src/templates/org/lwjgl/opengl/NV_register_combiners2.java 0000644 0001750 0001750 00000004031 12702226520 024154 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl.opengl;
import org.lwjgl.util.generator.*;
import org.lwjgl.util.generator.opengl.GLenum;
import java.nio.*;
public interface NV_register_combiners2 {
int GL_PER_STAGE_CONSTANTS_NV = 0x8535;
@StripPostfix("params")
void glCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Const @Check("4") FloatBuffer params);
@StripPostfix("params")
void glGetCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @OutParameter @Check("4") FloatBuffer params);
}
lwjgl-2.9.3/src/java/ 0000755 0001750 0001750 00000000000 12055155064 012477 5 ustar apo apo lwjgl-2.9.3/src/java/org/ 0000755 0001750 0001750 00000000000 12052003020 013243 5 ustar apo apo lwjgl-2.9.3/src/java/org/lwjgl/ 0000755 0001750 0001750 00000000000 12702226520 014400 5 ustar apo apo lwjgl-2.9.3/src/java/org/lwjgl/PointerBuffer.java 0000644 0001750 0001750 00000071430 12702226520 020022 0 ustar apo apo /*
* Copyright (c) 2002-2010 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl;
import java.lang.reflect.Method;
import java.nio.*;
/**
* This class is a container for architecture independent pointer data.
* The interface mirrors the NIO LongBuffer API for convenience.
*
* @author Spasi
*/
public class PointerBuffer implements Comparable {
private static final boolean is64Bit;
static {
// Use reflection so that we can compile this class for the Generator.
boolean is64 = false;
try {
Method m = Class.forName("org.lwjgl.Sys").getDeclaredMethod("is64Bit", (Class[])null);
is64 = (Boolean)m.invoke(null, (Object[])null);
} catch (Throwable t) {
// ignore
} finally {
is64Bit = is64;
}
}
protected final ByteBuffer pointers;
protected final Buffer view;
protected final IntBuffer view32;
protected final LongBuffer view64;
/**
* Creates a new PointerBuffer with the specified capacity.
*
* @param capacity the PointerBuffer size, in number of pointers
*/
public PointerBuffer(final int capacity) {
this(BufferUtils.createByteBuffer(capacity * getPointerSize()));
}
/**
* Creates a new PointerBuffer using the specified ByteBuffer as its pointer
* data source. This is useful for users that do their own memory management
* over a big ByteBuffer, instead of allocating many small ones.
*
* @param source the source buffer
*/
public PointerBuffer(final ByteBuffer source) {
if ( LWJGLUtil.CHECKS )
checkSource(source);
pointers = source.slice().order(source.order());
if ( is64Bit ) {
view32 = null;
view = view64 = pointers.asLongBuffer();
} else {
view = view32 = pointers.asIntBuffer();
view64 = null;
}
}
private static void checkSource(final ByteBuffer source) {
if ( !source.isDirect() )
throw new IllegalArgumentException("The source buffer is not direct.");
final int alignment = is64Bit ? 8 : 4;
if ( (MemoryUtil.getAddress0(source) + source.position()) % alignment != 0 || source.remaining() % alignment != 0 )
throw new IllegalArgumentException("The source buffer is not aligned to " + alignment + " bytes.");
}
/**
* Returns the ByteBuffer that backs this PointerBuffer.
*
* @return the pointer ByteBuffer
*/
public ByteBuffer getBuffer() {
return pointers;
}
/** Returns true if the underlying architecture is 64bit. */
public static boolean is64Bit() {
return is64Bit;
}
/**
* Returns the pointer size in bytes, based on the underlying architecture.
*
* @return The pointer size in bytes
*/
public static int getPointerSize() {
return is64Bit ? 8 : 4;
}
/**
* Returns this buffer's capacity.
*
* @return The capacity of this buffer
*/
public final int capacity() {
return view.capacity();
}
/**
* Returns this buffer's position.
*
* @return The position of this buffer
*/
public final int position() {
return view.position();
}
/**
* Returns this buffer's position, in bytes.
*
* @return The position of this buffer in bytes.
*/
public final int positionByte() {
return position() * getPointerSize();
}
/**
* Sets this buffer's position. If the mark is defined and larger than the
* new position then it is discarded.
*
* @param newPosition The new position value; must be non-negative
* and no larger than the current limit
*
* @return This buffer
*
* @throws IllegalArgumentException If the preconditions on newPosition do not hold
*/
public final PointerBuffer position(int newPosition) {
view.position(newPosition);
return this;
}
/**
* Returns this buffer's limit.
*
* @return The limit of this buffer
*/
public final int limit() {
return view.limit();
}
/**
* Sets this buffer's limit. If the position is larger than the new limit
* then it is set to the new limit. If the mark is defined and larger than
* the new limit then it is discarded.
*
* @param newLimit The new limit value; must be non-negative
* and no larger than this buffer's capacity
*
* @return This buffer
*
* @throws IllegalArgumentException If the preconditions on newLimit do not hold
*/
public final PointerBuffer limit(int newLimit) {
view.limit(newLimit);
return this;
}
/**
* Sets this buffer's mark at its position.
*
* @return This buffer
*/
public final PointerBuffer mark() {
view.mark();
return this;
}
/**
* Resets this buffer's position to the previously-marked position.
*
*
Invoking this method neither changes nor discards the mark's
* value.
*
* @return This buffer
*
* @throws java.nio.InvalidMarkException If the mark has not been set
*/
public final PointerBuffer reset() {
view.reset();
return this;
}
/**
* Clears this buffer. The position is set to zero, the limit is set to
* the capacity, and the mark is discarded.
*
*
Invoke this method before using a sequence of channel-read or
* put operations to fill this buffer. For example:
*
*
* buf.clear(); // Prepare buffer for reading
* in.read(buf); // Read data
*
*
This method does not actually erase the data in the buffer, but it
* is named as if it did because it will most often be used in situations
* in which that might as well be the case.
*
* @return This buffer
*/
public final PointerBuffer clear() {
view.clear();
return this;
}
/**
* Flips this buffer. The limit is set to the current position and then
* the position is set to zero. If the mark is defined then it is
* discarded.
*
*
After a sequence of channel-read or put operations, invoke
* this method to prepare for a sequence of channel-write or relative
* get operations. For example:
*
*
* buf.put(magic); // Prepend header
* in.read(buf); // Read data into rest of buffer
* buf.flip(); // Flip buffer
* out.write(buf); // Write header + data to channel
*
*
This method is often used in conjunction with the {@link
* java.nio.ByteBuffer#compact compact} method when transferring data from
* one place to another.
*
* @return This buffer
*/
public final PointerBuffer flip() {
view.flip();
return this;
}
/**
* Rewinds this buffer. The position is set to zero and the mark is
* discarded.
*
*
Invoke this method before a sequence of channel-write or get
* operations, assuming that the limit has already been set
* appropriately. For example:
*
*
* out.write(buf); // Write remaining data
* buf.rewind(); // Rewind buffer
* buf.get(array); // Copy data into array
*
* @return This buffer
*/
public final PointerBuffer rewind() {
view.rewind();
return this;
}
/**
* Returns the number of elements between the current position and the
* limit.
*
* @return The number of elements remaining in this buffer
*/
public final int remaining() {
return view.remaining();
}
/**
* Returns the number of bytes between the current position and the
* limit.
*
* @return The number of bytes remaining in this buffer
*/
public final int remainingByte() {
return remaining() * getPointerSize();
}
/**
* Tells whether there are any elements between the current position and
* the limit.
*
* @return true if, and only if, there is at least one element
* remaining in this buffer
*/
public final boolean hasRemaining() {
return view.hasRemaining();
}
/**
* Allocates a new pointer buffer.
*
*
The new buffer's position will be zero, its limit will be its
* capacity, and its mark will be undefined.
*
* @param capacity The new buffer's capacity, in pointers
*
* @return The new pointer buffer
*
* @throws IllegalArgumentException If the capacity is a negative integer
*/
public static PointerBuffer allocateDirect(int capacity) {
return new PointerBuffer(capacity);
}
/**
* This method is used in slice and duplicate instead of normal object construction,
* so that subclasses can return themselves.
*
* @param source
*
* @return A new PointerBuffer instance
*/
protected PointerBuffer newInstance(final ByteBuffer source) {
return new PointerBuffer(source);
}
/**
* Creates a new pointer buffer whose content is a shared subsequence of
* this buffer's content.
*
*
The content of the new buffer will start at this buffer's current
* position. Changes to this buffer's content will be visible in the new
* buffer, and vice versa; the two buffers' position, limit, and mark
* values will be independent.
*
*
The new buffer's position will be zero, its capacity and its limit
* will be the number of longs remaining in this buffer, and its mark
* will be undefined. The new buffer will be direct if, and only if, this
* buffer is direct, and it will be read-only if, and only if, this buffer
* is read-only.
*
* @return The new pointer buffer
*/
public PointerBuffer slice() {
final int pointerSize = getPointerSize();
pointers.position(view.position() * pointerSize);
pointers.limit(view.limit() * pointerSize);
try {
// We're slicing in the constructor.
return newInstance(pointers);
} finally {
pointers.clear();
}
}
/**
* Creates a new pointer buffer that shares this buffer's content.
*
*
The content of the new buffer will be that of this buffer. Changes
* to this buffer's content will be visible in the new buffer, and vice
* versa; the two buffers' position, limit, and mark values will be
* independent.
*
*
The new buffer's capacity, limit and position will be
* identical to those of this buffer. The new buffer will be direct if,
* and only if, this buffer is direct, and it will be read-only if, and
* only if, this buffer is read-only.
*
* @return The new pointer buffer
*/
public PointerBuffer duplicate() {
final PointerBuffer buffer = newInstance(pointers);
buffer.position(view.position());
buffer.limit(view.limit());
return buffer;
}
/**
* Creates a new, read-only pointer buffer that shares this buffer's
* content.
*
*
The content of the new buffer will be that of this buffer. Changes
* to this buffer's content will be visible in the new buffer; the new
* buffer itself, however, will be read-only and will not allow the shared
* content to be modified. The two buffers' position, limit, and mark
* values will be independent.
*
*
The new buffer's capacity, limit and position will be
* identical to those of this buffer.
*
*
If this buffer is itself read-only then this method behaves in
* exactly the same way as the {@link #duplicate duplicate} method.
*
* @return The new, read-only pointer buffer
*/
public PointerBuffer asReadOnlyBuffer() {
final PointerBuffer buffer = new PointerBufferR(pointers);
buffer.position(view.position());
buffer.limit(view.limit());
return buffer;
}
public boolean isReadOnly() {
return false;
}
/**
* Relative get method. Reads the long at this buffer's
* current position, and then increments the position.
*
* @return The long at the buffer's current position
*
* @throws BufferUnderflowException If the buffer's current position is not smaller than its limit
*/
public long get() {
if ( is64Bit )
return view64.get();
else
return view32.get() & 0x00000000FFFFFFFFL;
}
/**
* Relative put method (optional operation).
*
*
Writes the given long into this buffer at the current
* position, and then increments the position.
*
* @param l The long to be written
*
* @return This buffer
*
* @throws BufferOverflowException If this buffer's current position is not smaller than its limit
* @throws ReadOnlyBufferException If this buffer is read-only
*/
public PointerBuffer put(long l) {
if ( is64Bit )
view64.put(l);
else
view32.put((int)l);
return this;
}
/**
* Convenience put that accepts PointerWrapper objects.
*
* @see #put(long)
*/
public PointerBuffer put(final PointerWrapper pointer) {
return put(pointer.getPointer());
}
/**
* Convenience put on a target ByteBuffer.
*
* @param target the target ByteBuffer
* @param l the long value to be written
*/
public static void put(final ByteBuffer target, long l) {
if ( is64Bit )
target.putLong(l);
else
target.putInt((int)l);
}
/**
* Absolute get method. Reads the long at the given
* index.
*
* @param index The index from which the long will be read
*
* @return The long at the given index
*
* @throws IndexOutOfBoundsException If index is negative
* or not smaller than the buffer's limit
*/
public long get(int index) {
if ( is64Bit )
return view64.get(index);
else
return view32.get(index) & 0x00000000FFFFFFFFL;
}
/**
* Absolute put method (optional operation).
*
*
Writes the given long into this buffer at the given
* index.
*
* @param index The index at which the long will be written
* @param l The long value to be written
*
* @return This buffer
*
* @throws IndexOutOfBoundsException If index is negative
* or not smaller than the buffer's limit
* @throws ReadOnlyBufferException If this buffer is read-only
*/
public PointerBuffer put(int index, long l) {
if ( is64Bit )
view64.put(index, l);
else
view32.put(index, (int)l);
return this;
}
/**
* Convenience put that accepts PointerWrapper objects.
*
* @see #put(int, long)
*/
public PointerBuffer put(int index, PointerWrapper pointer) {
return put(index, pointer.getPointer());
}
/**
* Convenience put on a target ByteBuffer.
*
* @param target the target ByteBuffer
* @param index the index at which the long will be written
* @param l the long value to be written
*/
public static void put(final ByteBuffer target, int index, long l) {
if ( is64Bit )
target.putLong(index, l);
else
target.putInt(index, (int)l);
}
// -- Bulk get operations --
/**
* Relative bulk get method.
*
*
This method transfers longs from this buffer into the given
* destination array. If there are fewer longs remaining in the
* buffer than are required to satisfy the request, that is, if
* length>remaining(), then no
* longs are transferred and a {@link BufferUnderflowException} is
* thrown.
*
*
Otherwise, this method copies length longs from this
* buffer into the given array, starting at the current position of this
* buffer and at the given offset in the array. The position of this
* buffer is then incremented by length.
*
*
In other words, an invocation of this method of the form
* src.get(dst, off, len) has exactly the same effect as
* the loop
*
*
* for (int i = off; i < off + len; i++)
* dst[i] = src.get();
*
* except that it first checks that there are sufficient longs in
* this buffer and it is potentially much more efficient.
*
* @param dst The array into which longs are to be written
* @param offset The offset within the array of the first long to be
* written; must be non-negative and no larger than
* dst.length
* @param length The maximum number of longs to be written to the given
* array; must be non-negative and no larger than
* dst.length - offset
*
* @return This buffer
*
* @throws BufferUnderflowException If there are fewer than length longs
* remaining in this buffer
* @throws IndexOutOfBoundsException If the preconditions on the offset and length
* parameters do not hold
*/
public PointerBuffer get(long[] dst, int offset, int length) {
if ( is64Bit )
view64.get(dst, offset, length);
else {
checkBounds(offset, length, dst.length);
if ( length > view32.remaining() )
throw new BufferUnderflowException();
int end = offset + length;
for ( int i = offset; i < end; i++ )
dst[i] = view32.get() & 0x00000000FFFFFFFFL;
}
return this;
}
/**
* Relative bulk get method.
*
*
This method transfers longs from this buffer into the given
* destination array. An invocation of this method of the form
* src.get(a) behaves in exactly the same way as the invocation
*
*
* src.get(a, 0, a.length)
*
* @return This buffer
*
* @throws BufferUnderflowException If there are fewer than length longs
* remaining in this buffer
*/
public PointerBuffer get(long[] dst) {
return get(dst, 0, dst.length);
}
/**
* Relative bulk put method (optional operation).
*
*
This method transfers the longs remaining in the given source
* buffer into this buffer. If there are more longs remaining in the
* source buffer than in this buffer, that is, if
* src.remaining()>remaining(),
* then no longs are transferred and a {@link
* BufferOverflowException} is thrown.
*
*
Otherwise, this method copies
* n = src.remaining() longs from the given
* buffer into this buffer, starting at each buffer's current position.
* The positions of both buffers are then incremented by n.
*
*
In other words, an invocation of this method of the form
* dst.put(src) has exactly the same effect as the loop
*
*
* while (src.hasRemaining())
* dst.put(src.get());
*
* except that it first checks that there is sufficient space in this
* buffer and it is potentially much more efficient.
*
* @param src The source buffer from which longs are to be read;
* must not be this buffer
*
* @return This buffer
*
* @throws BufferOverflowException If there is insufficient space in this buffer
* for the remaining longs in the source buffer
* @throws IllegalArgumentException If the source buffer is this buffer
* @throws ReadOnlyBufferException If this buffer is read-only
*/
public PointerBuffer put(PointerBuffer src) {
if ( is64Bit )
view64.put(src.view64);
else
view32.put(src.view32);
return this;
}
/**
* Relative bulk put method (optional operation).
*
*
This method transfers longs into this buffer from the given
* source array. If there are more longs to be copied from the array
* than remain in this buffer, that is, if
* length>remaining(), then no
* longs are transferred and a {@link BufferOverflowException} is
* thrown.
*
*
Otherwise, this method copies length longs from the
* given array into this buffer, starting at the given offset in the array
* and at the current position of this buffer. The position of this buffer
* is then incremented by length.
*
*
In other words, an invocation of this method of the form
* dst.put(src, off, len) has exactly the same effect as
* the loop
*
*
* for (int i = off; i < off + len; i++)
* dst.put(a[i]);
*
* except that it first checks that there is sufficient space in this
* buffer and it is potentially much more efficient.
*
* @param src The array from which longs are to be read
* @param offset The offset within the array of the first long to be read;
* must be non-negative and no larger than array.length
* @param length The number of longs to be read from the given array;
* must be non-negative and no larger than
* array.length - offset
*
* @return This buffer
*
* @throws BufferOverflowException If there is insufficient space in this buffer
* @throws IndexOutOfBoundsException If the preconditions on the offset and length
* parameters do not hold
* @throws ReadOnlyBufferException If this buffer is read-only
*/
public PointerBuffer put(long[] src, int offset, int length) {
if ( is64Bit )
view64.put(src, offset, length);
else {
checkBounds(offset, length, src.length);
if ( length > view32.remaining() )
throw new BufferOverflowException();
int end = offset + length;
for ( int i = offset; i < end; i++ )
view32.put((int)src[i]);
}
return this;
}
/**
* Relative bulk put method (optional operation).
*
*
This method transfers the entire content of the given source
* long array into this buffer. An invocation of this method of the
* form dst.put(a) behaves in exactly the same way as the
* invocation
*
*
* dst.put(a, 0, a.length)
*
* @return This buffer
*
* @throws BufferOverflowException If there is insufficient space in this buffer
* @throws ReadOnlyBufferException If this buffer is read-only
*/
public final PointerBuffer put(long[] src) {
return put(src, 0, src.length);
}
/**
* Compacts this buffer (optional operation).
*
*
The longs between the buffer's current position and its limit,
* if any, are copied to the beginning of the buffer. That is, the
* long at index p = position() is copied
* to index zero, the long at index p + 1 is copied
* to index one, and so forth until the long at index
* limit() - 1 is copied to index
* n = limit() - 1 - p.
* The buffer's position is then set to n+1 and its limit is set to
* its capacity. The mark, if defined, is discarded.
*
*
The buffer's position is set to the number of longs copied,
* rather than to zero, so that an invocation of this method can be
* followed immediately by an invocation of another relative put
* method.
*
* @return This buffer
*
* @throws ReadOnlyBufferException If this buffer is read-only
*/
public PointerBuffer compact() {
if ( is64Bit )
view64.compact();
else
view32.compact();
return this;
}
/**
* Retrieves this buffer's byte order.
*
*
The byte order of a pointer buffer created by allocation or by
* wrapping an existing long array is the {@link
* ByteOrder#nativeOrder native order} of the underlying
* hardware. The byte order of a pointer buffer created as a view of a byte buffer is that of the
* byte buffer at the moment that the view is created.
*
* @return This buffer's byte order
*/
public ByteOrder order() {
if ( is64Bit )
return view64.order();
else
return view32.order();
}
/**
* Returns a string summarizing the state of this buffer.
*
* @return A summary string
*/
public String toString() {
StringBuilder sb = new StringBuilder(48);
sb.append(getClass().getName());
sb.append("[pos=");
sb.append(position());
sb.append(" lim=");
sb.append(limit());
sb.append(" cap=");
sb.append(capacity());
sb.append("]");
return sb.toString();
}
/**
* Returns the current hash code of this buffer.
*
*
The hash code of a pointer buffer depends only upon its remaining
* elements; that is, upon the elements from position() up to, and
* including, the element at limit() - 1.
*
*
Because buffer hash codes are content-dependent, it is inadvisable
* to use buffers as keys in hash maps or similar data structures unless it
* is known that their contents will not change.
*
* @return The current hash code of this buffer
*/
public int hashCode() {
int h = 1;
int p = position();
for ( int i = limit() - 1; i >= p; i-- )
h = 31 * h + (int)get(i);
return h;
}
/**
* Tells whether or not this buffer is equal to another object.
*
*
Two pointer buffers are equal if, and only if,
*
*
*
*
They have the same element type,
*
*
They have the same number of remaining elements, and
*
*
*
The two sequences of remaining elements, considered
* independently of their starting positions, are pointwise equal.
*
*
*
*
*
A pointer buffer is not equal to any other type of object.
*
* @param ob The object to which this buffer is to be compared
*
* @return true if, and only if, this buffer is equal to the
* given object
*/
public boolean equals(Object ob) {
if ( !(ob instanceof PointerBuffer) )
return false;
PointerBuffer that = (PointerBuffer)ob;
if ( this.remaining() != that.remaining() )
return false;
int p = this.position();
for ( int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j-- ) {
long v1 = this.get(i);
long v2 = that.get(j);
if ( v1 != v2 ) {
return false;
}
}
return true;
}
/**
* Compares this buffer to another.
*
*
Two pointer buffers are compared by comparing their sequences of
* remaining elements lexicographically, without regard to the starting
* position of each sequence within its corresponding buffer.
*
*
A pointer buffer is not comparable to any other type of object.
*
* @return A negative integer, zero, or a positive integer as this buffer
* is less than, equal to, or greater than the given buffer
*/
public int compareTo(Object o) {
final PointerBuffer that = (PointerBuffer)o;
int n = this.position() + Math.min(this.remaining(), that.remaining());
for ( int i = this.position(), j = that.position(); i < n; i++, j++ ) {
long v1 = this.get(i);
long v2 = that.get(j);
if ( v1 == v2 )
continue;
if ( v1 < v2 )
return -1;
return +1;
}
return this.remaining() - that.remaining();
}
private static void checkBounds(int off, int len, int size) {
if ( (off | len | (off + len) | (size - (off + len))) < 0 )
throw new IndexOutOfBoundsException();
}
/**
* Read-only version of PointerBuffer.
*
* @author Spasi
*/
private static final class PointerBufferR extends PointerBuffer {
PointerBufferR(final ByteBuffer source) {
super(source);
}
public boolean isReadOnly() {
return true;
}
protected PointerBuffer newInstance(final ByteBuffer source) {
return new PointerBufferR(source);
}
public PointerBuffer asReadOnlyBuffer() {
return duplicate();
}
public PointerBuffer put(final long l) {
throw new ReadOnlyBufferException();
}
public PointerBuffer put(final int index, final long l) {
throw new ReadOnlyBufferException();
}
public PointerBuffer put(final PointerBuffer src) {
throw new ReadOnlyBufferException();
}
public PointerBuffer put(final long[] src, final int offset, final int length) {
throw new ReadOnlyBufferException();
}
public PointerBuffer compact() {
throw new ReadOnlyBufferException();
}
}
} lwjgl-2.9.3/src/java/org/lwjgl/MemoryUtil.java 0000644 0001750 0001750 00000033063 12702226520 017356 0 ustar apo apo /*
* Copyright (c) 2002-2011 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl;
import java.lang.reflect.Field;
import java.nio.*;
import java.nio.charset.*;
/**
* [INTERNAL USE ONLY]
*
* This class provides utility methods for passing buffers to JNI API calls.
*
* @author Spasi
*/
public final class MemoryUtil {
private static final Charset ascii;
private static final Charset utf8;
private static final Charset utf16;
static {
ascii = Charset.forName("ISO-8859-1");
utf8 = Charset.forName("UTF-8");
utf16 = Charset.forName("UTF-16LE");
}
private static final Accessor memUtil;
static {
Accessor util;
try {
// Depends on java.nio.Buffer#address and sun.misc.Unsafe
util = loadAccessor("org.lwjgl.MemoryUtilSun$AccessorUnsafe");
} catch (Exception e0) {
try {
// Depends on java.nio.Buffer#address and sun.reflect.FieldAccessor
util = loadAccessor("org.lwjgl.MemoryUtilSun$AccessorReflectFast");
} catch (Exception e1) {
try {
// Depends on java.nio.Buffer#address
util = new AccessorReflect();
} catch (Exception e2) {
LWJGLUtil.log("Unsupported JVM detected, this will likely result in low performance. Please inform LWJGL developers.");
util = new AccessorJNI();
}
}
}
LWJGLUtil.log("MemoryUtil Accessor: " + util.getClass().getSimpleName());
memUtil = util;
/*
BENCHMARK RESULTS - Oracle Server VM:
Unsafe: 4ns
ReflectFast: 8ns
Reflect: 10ns
JNI: 82ns
BENCHMARK RESULTS - Oracle Client VM:
Unsafe: 5ns
ReflectFast: 81ns
Reflect: 85ns
JNI: 87ns
On non-Oracle VMs, Unsafe should be the fastest implementation as well. In the absence
of Unsafe, performance will depend on how reflection and JNI are implemented. For now
we'll go with what we see on the Oracle VM (that is, we'll prefer reflection over JNI).
*/
}
private MemoryUtil() {
}
/**
* Returns the memory address of the specified buffer. [INTERNAL USE ONLY]
*
* @param buffer the buffer
*
* @return the memory address
*/
public static long getAddress0(Buffer buffer) { return memUtil.getAddress(buffer); }
public static long getAddress0Safe(Buffer buffer) { return buffer == null ? 0L : memUtil.getAddress(buffer); }
public static long getAddress0(PointerBuffer buffer) { return memUtil.getAddress(buffer.getBuffer()); }
public static long getAddress0Safe(PointerBuffer buffer) { return buffer == null ? 0L : memUtil.getAddress(buffer.getBuffer()); }
// --- [ API utilities ] ---
public static long getAddress(ByteBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(ByteBuffer buffer, int position) { return getAddress0(buffer) + position; }
public static long getAddress(ShortBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(ShortBuffer buffer, int position) { return getAddress0(buffer) + (position << 1); }
public static long getAddress(CharBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(CharBuffer buffer, int position) { return getAddress0(buffer) + (position << 1); }
public static long getAddress(IntBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(IntBuffer buffer, int position) { return getAddress0(buffer) + (position << 2); }
public static long getAddress(FloatBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(FloatBuffer buffer, int position) { return getAddress0(buffer) + (position << 2); }
public static long getAddress(LongBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(LongBuffer buffer, int position) { return getAddress0(buffer) + (position << 3); }
public static long getAddress(DoubleBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(DoubleBuffer buffer, int position) { return getAddress0(buffer) + (position << 3); }
public static long getAddress(PointerBuffer buffer) { return getAddress(buffer, buffer.position()); }
public static long getAddress(PointerBuffer buffer, int position) { return getAddress0(buffer) + (position * PointerBuffer.getPointerSize()); }
// --- [ API utilities - Safe ] ---
public static long getAddressSafe(ByteBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(ByteBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(ShortBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(ShortBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(CharBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(CharBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(IntBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(IntBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(FloatBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(FloatBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(LongBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(LongBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(DoubleBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(DoubleBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
public static long getAddressSafe(PointerBuffer buffer) { return buffer == null ? 0L : getAddress(buffer); }
public static long getAddressSafe(PointerBuffer buffer, int position) { return buffer == null ? 0L : getAddress(buffer, position); }
// --- [ String utilities ] ---
/**
* Returns a ByteBuffer containing the specified text ASCII encoded and null-terminated.
* If text is null, null is returned.
*
* @param text the text to encode
*
* @return the encoded text or null
*
* @see String#getBytes()
*/
public static ByteBuffer encodeASCII(final CharSequence text) {
return encode(text, ascii);
}
/**
* Returns a ByteBuffer containing the specified text UTF-8 encoded and null-terminated.
* If text is null, null is returned.
*
* @param text the text to encode
*
* @return the encoded text or null
*
* @see String#getBytes()
*/
public static ByteBuffer encodeUTF8(final CharSequence text) {
return encode(text, utf8);
}
/**
* Returns a ByteBuffer containing the specified text UTF-16LE encoded and null-terminated.
* If text is null, null is returned.
*
* @param text the text to encode
*
* @return the encoded text
*/
public static ByteBuffer encodeUTF16(final CharSequence text) {
return encode(text, utf16);
}
/**
* Wraps the specified text in a null-terminated CharBuffer and encodes it using the specified Charset.
*
* @param text the text to encode
* @param charset the charset to use for encoding
*
* @return the encoded text
*/
private static ByteBuffer encode(final CharSequence text, final Charset charset) {
if ( text == null )
return null;
return encode(CharBuffer.wrap(new CharSequenceNT(text)), charset);
}
/**
* A {@link CharsetEncoder#encode(java.nio.CharBuffer)} implementation that uses {@link BufferUtils#createByteBuffer(int)}
* instead of {@link ByteBuffer#allocate(int)}.
*
* @see CharsetEncoder#encode(java.nio.CharBuffer)
*/
private static ByteBuffer encode(final CharBuffer in, final Charset charset) {
final CharsetEncoder encoder = charset.newEncoder(); // encoders are not thread-safe, create a new one on every call
int n = (int)(in.remaining() * encoder.averageBytesPerChar());
ByteBuffer out = BufferUtils.createByteBuffer(n);
if ( n == 0 && in.remaining() == 0 )
return out;
encoder.reset();
while ( true ) {
CoderResult cr = in.hasRemaining() ? encoder.encode(in, out, true) : CoderResult.UNDERFLOW;
if ( cr.isUnderflow() )
cr = encoder.flush(out);
if ( cr.isUnderflow() )
break;
if ( cr.isOverflow() ) {
n = 2 * n + 1; // Ensure progress; n might be 0!
ByteBuffer o = BufferUtils.createByteBuffer(n);
out.flip();
o.put(out);
out = o;
continue;
}
try {
cr.throwException();
} catch (CharacterCodingException e) {
throw new RuntimeException(e);
}
}
out.flip();
return out;
}
public static String decodeASCII(final ByteBuffer buffer) {
return decode(buffer, ascii);
}
public static String decodeUTF8(final ByteBuffer buffer) {
return decode(buffer, utf8);
}
public static String decodeUTF16(final ByteBuffer buffer) {
return decode(buffer, utf16);
}
private static String decode(final ByteBuffer buffer, final Charset charset) {
if ( buffer == null )
return null;
return decodeImpl(buffer, charset);
}
private static String decodeImpl(final ByteBuffer in, final Charset charset) {
final CharsetDecoder decoder = charset.newDecoder(); // decoders are not thread-safe, create a new one on every call
int n = (int)(in.remaining() * decoder.averageCharsPerByte());
CharBuffer out = BufferUtils.createCharBuffer(n);
if ( (n == 0) && (in.remaining() == 0) )
return "";
decoder.reset();
for (; ; ) {
CoderResult cr = in.hasRemaining() ? decoder.decode(in, out, true) : CoderResult.UNDERFLOW;
if ( cr.isUnderflow() )
cr = decoder.flush(out);
if ( cr.isUnderflow() )
break;
if ( cr.isOverflow() ) {
n = 2 * n + 1; // Ensure progress; n might be 0!
CharBuffer o = BufferUtils.createCharBuffer(n);
out.flip();
o.put(out);
out = o;
continue;
}
try {
cr.throwException();
} catch (CharacterCodingException e) {
throw new RuntimeException(e);
}
}
out.flip();
return out.toString();
}
/** A null-terminated CharSequence. */
private static class CharSequenceNT implements CharSequence {
final CharSequence source;
CharSequenceNT(CharSequence source) {
this.source = source;
}
public int length() {
return source.length() + 1;
}
public char charAt(final int index) {
return index == source.length() ? '\0' : source.charAt(index);
}
public CharSequence subSequence(final int start, final int end) {
return new CharSequenceNT(source.subSequence(start, Math.min(end, source.length())));
}
}
interface Accessor {
long getAddress(Buffer buffer);
}
private static Accessor loadAccessor(final String className) throws Exception {
return (Accessor)Class.forName(className).newInstance();
}
/** Default implementation. */
private static class AccessorJNI implements Accessor {
public long getAddress(final Buffer buffer) {
return BufferUtils.getBufferAddress(buffer);
}
}
/** Implementation using reflection on ByteBuffer. */
private static class AccessorReflect implements Accessor {
private final Field address;
AccessorReflect() {
try {
address = getAddressField();
} catch (NoSuchFieldException e) {
throw new UnsupportedOperationException(e);
}
address.setAccessible(true);
}
public long getAddress(final Buffer buffer) {
try {
return address.getLong(buffer);
} catch (IllegalAccessException e) {
// cannot happen
return 0L;
}
}
}
static Field getAddressField() throws NoSuchFieldException {
return getDeclaredFieldRecursive(ByteBuffer.class, "address");
}
private static Field getDeclaredFieldRecursive(final Class> root, final String fieldName) throws NoSuchFieldException {
Class> type = root;
do {
try {
return type.getDeclaredField(fieldName);
} catch (NoSuchFieldException e) {
type = type.getSuperclass();
}
} while ( type != null );
throw new NoSuchFieldException(fieldName + " does not exist in " + root.getSimpleName() + " or any of its superclasses.");
}
}
lwjgl-2.9.3/src/java/org/lwjgl/DefaultSysImplementation.java 0000644 0001750 0001750 00000004106 12702226520 022235 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl;
/**
*
* @author elias_naur
* @version $Revision$
* $Id$
*/
abstract class DefaultSysImplementation implements SysImplementation {
public native int getJNIVersion();
public native int getPointerSize();
public native void setDebug(boolean debug);
public long getTimerResolution() {
return 1000;
}
public boolean has64Bit() {
return false;
}
public abstract long getTime();
public abstract void alert(String title, String message);
public abstract String getClipboard();
}
lwjgl-2.9.3/src/java/org/lwjgl/LinuxSysImplementation.java 0000644 0001750 0001750 00000006156 12702226520 021757 0 ustar apo apo /*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'LWJGL' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.lwjgl;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.PrivilegedExceptionAction;
import java.lang.UnsatisfiedLinkError;
/**
*
* @author elias_naur
* @version $Revision$
* $Id$
*/
final class LinuxSysImplementation extends J2SESysImplementation {
private static final int JNI_VERSION = 19;
static {
// Load libawt.so and libmawt.so, needed for libjawt.so
java.awt.Toolkit.getDefaultToolkit();
// manually load libjawt.so into vm, needed since Java 7
AccessController.doPrivileged(new PrivilegedAction