org.lwjgl.opengles.GLES32 Maven / Gradle / Ivy
Show all versions of org.lwjgl.opengles Show documentation
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;
/** The core OpenGL ES 3.2 functionality. */
public class GLES32 extends GLES31 {
static { GLES.initialize(); }
/** Accepted by the {@code pname} parameter of GetBooleanv, GetFloatv, GetIntegerv, and GetInteger64v. */
public static final int
GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB = 0x9381,
GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB = 0x9382;
/** Accepted by the {@code mode} parameter of BlendEquation and BlendEquationi. */
public static final int
GL_MULTIPLY = 0x9294,
GL_SCREEN = 0x9295,
GL_OVERLAY = 0x9296,
GL_DARKEN = 0x9297,
GL_LIGHTEN = 0x9298,
GL_COLORDODGE = 0x9299,
GL_COLORBURN = 0x929A,
GL_HARDLIGHT = 0x929B,
GL_SOFTLIGHT = 0x929C,
GL_DIFFERENCE = 0x929E,
GL_EXCLUSION = 0x92A0,
GL_HSL_HUE = 0x92AD,
GL_HSL_SATURATION = 0x92AE,
GL_HSL_COLOR = 0x92AF,
GL_HSL_LUMINOSITY = 0x92B0;
/** Tokens accepted by the {@code target} parameters of Enable, Disable, and IsEnabled. */
public static final int
GL_DEBUG_OUTPUT = 0x92E0,
GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242;
/** Returned by GetIntegerv when {@code pname} is CONTEXT_FLAGS. */
public static final int GL_CONTEXT_FLAG_DEBUG_BIT = 0x2;
/** Tokens accepted by the {@code value} parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v. */
public static final 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 {@code pname} parameter of GetPointerv. */
public static final int
GL_DEBUG_CALLBACK_FUNCTION = 0x8244,
GL_DEBUG_CALLBACK_USER_PARAM = 0x8245;
/**
* Tokens accepted or provided by the {@code source} parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the {@code sources} parameter
* of GetDebugMessageLog.
*/
public static final 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 {@code type} parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the {@code types} parameter of
* GetDebugMessageLog.
*/
public static final 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 {@code type} parameters of DebugMessageControl and DEBUGPROC, and the {@code types} parameter of GetDebugMessageLog. */
public static final int
GL_DEBUG_TYPE_PUSH_GROUP = 0x8269,
GL_DEBUG_TYPE_POP_GROUP = 0x826A;
/**
* Tokens accepted or provided by the {@code severity} parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the
* {@code severities} parameter of GetDebugMessageLog.
*/
public static final int
GL_DEBUG_SEVERITY_HIGH = 0x9146,
GL_DEBUG_SEVERITY_MEDIUM = 0x9147,
GL_DEBUG_SEVERITY_LOW = 0x9148,
GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B;
/** Returned by GetError. */
public static final int
GL_STACK_UNDERFLOW = 0x504,
GL_STACK_OVERFLOW = 0x503;
/** Tokens accepted or provided by the {@code identifier} parameters of ObjectLabel and GetObjectLabel. */
public static final int
GL_BUFFER = 0x82E0,
GL_SHADER = 0x82E1,
GL_PROGRAM = 0x82E2,
GL_QUERY = 0x82E3,
GL_PROGRAM_PIPELINE = 0x82E4,
GL_SAMPLER = 0x82E6;
/**
* Accepted by the {@code type} parameter of CreateShader and CreateShaderProgramv, by the {@code pname} parameter of GetProgramPipelineiv and returned in
* the {@code params} parameter of GetShaderiv when {@code pname} is SHADER_TYPE.
*/
public static final int GL_GEOMETRY_SHADER = 0x8DD9;
/** Accepted by the {@code stages} parameter of UseProgramStages. */
public static final int GL_GEOMETRY_SHADER_BIT = 0x4;
/** Accepted by the {@code pname} parameter of GetProgramiv. */
public static final int
GL_GEOMETRY_LINKED_VERTICES_OUT = 0x8916,
GL_GEOMETRY_LINKED_INPUT_TYPE = 0x8917,
GL_GEOMETRY_LINKED_OUTPUT_TYPE = 0x8918,
GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v. */
public static final int
GL_LAYER_PROVOKING_VERTEX = 0x825E,
GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF,
GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C,
GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32,
GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123,
GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124,
GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0,
GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1,
GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A,
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29,
GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF,
GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5,
GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD,
GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7;
/** Returned in the {@code data} parameter from a Get query with a {@code pname} of LAYER_PROVOKING_VERTEX. */
public static final int
GL_FIRST_VERTEX_CONVENTION = 0x8E4D,
GL_LAST_VERTEX_CONVENTION = 0x8E4E,
GL_UNDEFINED_VERTEX = 0x8260;
/** Accepted by the {@code target} parameter of BeginQuery, EndQuery, GetQueryiv, and GetQueryObjectuiv. */
public static final int GL_PRIMITIVES_GENERATED = 0x8C87;
/** Accepted by the {@code mode} parameter of DrawArrays, DrawElements, and other commands which draw primitives. */
public static final int
GL_LINES_ADJACENCY = 0xA,
GL_LINE_STRIP_ADJACENCY = 0xB,
GL_TRIANGLES_ADJACENCY = 0xC,
GL_TRIANGLE_STRIP_ADJACENCY = 0xD;
/** Accepted by the {@code pname} parameter of FramebufferParameteri, and GetFramebufferParameteriv. */
public static final int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312;
/** Accepted by the {@code pname} parameter of GetIntegerv, GetBooleanv, GetInteger64v, and GetFloatv. */
public static final int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317;
/** Returned by CheckFramebufferStatus. */
public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8;
/** Accepted by the {@code pname} parameter of GetFramebufferAttachmentParameteriv. */
public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7;
/** Accepted by the {@code props} parameter of GetProgramResourceiv. */
public static final int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetFloatv, GetIntegerv, and GetInteger64v. */
public static final int GL_PRIMITIVE_BOUNDING_BOX_ARB = 0x92BE;
/** Returned by {@link #glGetGraphicsResetStatus GetGraphicsResetStatus}. */
public static final int
GL_GUILTY_CONTEXT_RESET = 0x8253,
GL_INNOCENT_CONTEXT_RESET = 0x8254,
GL_UNKNOWN_CONTEXT_RESET = 0x8255;
/** Accepted by the {@code value} parameter of GetBooleanv, GetIntegerv, and GetFloatv. */
public static final int
GL_CONTEXT_ROBUST_ACCESS = 0x90F3,
GL_RESET_NOTIFICATION_STRATEGY = 0x8256;
/** Returned by GetIntegerv and related simple queries when {@code value} is {@link #GL_RESET_NOTIFICATION_STRATEGY RESET_NOTIFICATION_STRATEGY}. */
public static final int
GL_LOSE_CONTEXT_ON_RESET = 0x8252,
GL_NO_RESET_NOTIFICATION = 0x8261;
/** Returned by {@link GLES20#glGetError GetError}. */
public static final int GL_CONTEXT_LOST = 0x507;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetInteger64v.
*/
public static final int GL_SAMPLE_SHADING = 0x8C36;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetInteger64v, and GetFloatv. */
public static final int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v. */
public static final int
GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B,
GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C,
GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D;
/** Accepted by the {@code mode} parameter of DrawArrays, DrawElements, and other commands which draw primitives. */
public static final int GL_PATCHES = 0xE;
/** Accepted by the {@code pname} parameter of PatchParameteri, GetBooleanv, GetFloatv, GetIntegerv, and GetInteger64v. */
public static final int GL_PATCH_VERTICES = 0x8E72;
/** Accepted by the {@code pname} parameter of GetProgramiv. */
public static final int
GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75,
GL_TESS_GEN_MODE = 0x8E76,
GL_TESS_GEN_SPACING = 0x8E77,
GL_TESS_GEN_VERTEX_ORDER = 0x8E78,
GL_TESS_GEN_POINT_MODE = 0x8E79;
/** Returned by GetProgramiv when {@code pname} is TESS_GEN_MODE. */
public static final int
GL_ISOLINES = 0x8E7A,
GL_QUADS = 0x7;
/** Returned by GetProgramiv when {@code pname} is TESS_GEN_SPACING. */
public static final int
GL_FRACTIONAL_ODD = 0x8E7B,
GL_FRACTIONAL_EVEN = 0x8E7C;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetFloatv, GetIntegerv, and GetInteger64v. */
public static final int
GL_MAX_PATCH_VERTICES = 0x8E7D,
GL_MAX_TESS_GEN_LEVEL = 0x8E7E,
GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F,
GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80,
GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81,
GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82,
GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83,
GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84,
GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85,
GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86,
GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89,
GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A,
GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C,
GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D,
GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E,
GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F,
GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD,
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE,
GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3,
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4,
GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB,
GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC,
GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8,
GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9,
GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221;
/** Accepted by the {@code props} parameter of GetProgramResourceiv. */
public static final int
GL_IS_PER_PATCH = 0x92E7,
GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307,
GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308;
/**
* Accepted by the {@code type} parameter of CreateShader, by the {@code pname} parameter of GetProgramPipelineiv, and returned by the {@code params}
* parameter of GetShaderiv.
*/
public static final int
GL_TESS_EVALUATION_SHADER = 0x8E87,
GL_TESS_CONTROL_SHADER = 0x8E88;
/** Accepted by the {@code stages} parameter of UseProgramStages. */
public static final int
GL_TESS_CONTROL_SHADER_BIT = 0x8,
GL_TESS_EVALUATION_SHADER_BIT = 0x10;
/**
* Accepted by the {@code pname} parameter of TexParameteriv, TexParameterfv, SamplerParameteriv, SamplerParameterfv, TexParameterIiv,
* TexParameterIuiv, SamplerParameterIiv, SamplerParameterIuiv, GetTexParameteriv, GetTexParameterfv, GetTexParameterIiv,
* GetTexParameterIuiv, GetSamplerParameteriv, GetSamplerParameterfv, GetSamplerParameterIiv, and GetSamplerParameterIuiv.
*/
public static final int GL_TEXTURE_BORDER_COLOR = 0x1004;
/**
* Accepted by the {@code param} parameter of TexParameteri, TexParameterf, SamplerParameteri and SamplerParameterf, and by the {@code params} parameter of
* TexParameteriv, TexParameterfv, TexParameterIiv, TexParameterIuiv, SamplerParameterIiv, SamplerParameterIuiv and returned by the
* {@code params} parameter of GetTexParameteriv, GetTexParameterfv, GetTexParameterIiv, GetTexParameterIuiv, GetSamplerParameteriv,
* GetSamplerParameterfv, GetSamplerParameterIiv, and GetSamplerParameterIuiv when their {@code pname} parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T,
* or TEXTURE_WRAP_R.
*/
public static final int GL_CLAMP_TO_BORDER = 0x812D;
/**
* Accepted by the {@code target} parameter of BindBuffer, BufferData, BufferSubData, MapBufferRange, BindTexture, UnmapBuffer, GetBufferParameteriv,
* GetBufferPointerv, TexBuffer, and TexBufferRange.
*/
public static final int GL_TEXTURE_BUFFER = 0x8C2A;
/** Accepted by the {@code pname} parameters of GetBooleanv, GetFloatv, and GetIntegerv. */
public static final int GL_TEXTURE_BUFFER_BINDING = 0x8C2A;
/**
* (note that this token name is an alias for TEXTURE_BUFFER, and is used for naming consistency with queries for the buffers bound to other buffer
* binding points). MAX_TEXTURE_BUFFER_SIZE 0x8C2B TEXTURE_BINDING_BUFFER 0x8C2C TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F Returned in the
* {@code type} parameter of GetActiveUniform, the {@code params} parameter of GetActiveUniformsiv, and the {@code params} parameter of
* GetProgramResourceiv when the TYPE property is queried on the UNIFORM interface.
*/
public static final int
GL_SAMPLER_BUFFER = 0x8DC2,
GL_INT_SAMPLER_BUFFER = 0x8DD0,
GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8,
GL_IMAGE_BUFFER = 0x9051,
GL_INT_IMAGE_BUFFER = 0x905C,
GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067;
/** Accepted by the {@code pname} parameter of GetTexLevelParameter. */
public static final int
GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D,
GL_TEXTURE_BUFFER_OFFSET = 0x919D,
GL_TEXTURE_BUFFER_SIZE = 0x919E;
/**
* Accepted by the {@code internalformat} parameter of CompressedTexImage2D, CompressedTexSubImage2D, TexStorage2D, TextureStorage2D, TexStorage3D, and
* TextureStorage3D.
*/
public static final int
GL_COMPRESSED_RGBA_ASTC_4x4 = 0x93B0,
GL_COMPRESSED_RGBA_ASTC_5x4 = 0x93B1,
GL_COMPRESSED_RGBA_ASTC_5x5 = 0x93B2,
GL_COMPRESSED_RGBA_ASTC_6x5 = 0x93B3,
GL_COMPRESSED_RGBA_ASTC_6x6 = 0x93B4,
GL_COMPRESSED_RGBA_ASTC_8x5 = 0x93B5,
GL_COMPRESSED_RGBA_ASTC_8x6 = 0x93B6,
GL_COMPRESSED_RGBA_ASTC_8x8 = 0x93B7,
GL_COMPRESSED_RGBA_ASTC_10x5 = 0x93B8,
GL_COMPRESSED_RGBA_ASTC_10x6 = 0x93B9,
GL_COMPRESSED_RGBA_ASTC_10x8 = 0x93BA,
GL_COMPRESSED_RGBA_ASTC_10x10 = 0x93BB,
GL_COMPRESSED_RGBA_ASTC_12x10 = 0x93BC,
GL_COMPRESSED_RGBA_ASTC_12x12 = 0x93BD,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 = 0x93D0,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 = 0x93D1,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 = 0x93D2,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 = 0x93D3,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 = 0x93D4,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 = 0x93D5,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 = 0x93D6,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 = 0x93D7,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 = 0x93D8,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 = 0x93D9,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 = 0x93DA,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 = 0x93DB,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 = 0x93DC,
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 = 0x93DD;
/**
* Accepted by the {@code target} parameter of TexParameter{if}, TexParameter{if}v, TexParameterI{i ui}v, BindTexture, GenerateMipmap, TexImage3D,
* TexSubImage3D, TexStorage3D, GetTexParameter{if}v, GetTexParameter{i ui}v, GetTexLevelParameter{if}v, CompressedTexImage3D, CompressedTexSubImage3D
* and CopyTexSubImage3D.
*/
public static final int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv and GetFloatv. */
public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A;
/** Returned by the {@code type} parameter of GetActiveUniform, and by the {@code params} parameter of GetProgramResourceiv when {@code props} is TYPE. */
public static final int
GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C,
GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D,
GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E,
GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F,
GL_IMAGE_CUBE_MAP_ARRAY = 0x9054,
GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F,
GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A;
/**
* Accepted by the {@code target} parameter of BindTexture, TexStorage3DMultisample, GetInternalformativ, TexParameter{if}*, GetTexParameter{if}v and
* GetTexLevelParameter{if}v. Also, the texture object indicated by the {@code texture} argument to FramebufferTextureLayer can be
* TEXTURE_2D_MULTISAMPLE_ARRAY.
*/
public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, and GetFloatv. */
public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105;
/** Returned by the {@code type} parameter of GetActiveUniform. */
public static final int
GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B,
GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C,
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D;
protected GLES32() {
throw new UnsupportedOperationException();
}
// --- [ glBlendBarrier ] ---
/**
* Specifies a boundary between passes when using advanced blend equations.
*
* When using advanced blending equations, applications should split their rendering into a collection of blending passes, none of which touch an
* individual sample in the framebuffer more than once. The results of blending are undefined if the sample being blended has been touched previously in
* the same pass. Any command that causes the value of a sample to be modified using the framebuffer is considered to touch the sample, including clears,
* blended or unblended primitives, and {@link GLES30#glBlitFramebuffer BlitFramebuffer} copies.
*
* @see Reference Page
*/
public static native void glBlendBarrier();
// --- [ glCopyImageSubData ] ---
/** Reference Page */
public static native void glCopyImageSubData(@NativeType("GLuint") int srcName, @NativeType("GLenum") int srcTarget, @NativeType("GLint") int srcLevel, @NativeType("GLint") int srcX, @NativeType("GLint") int srcY, @NativeType("GLint") int srcZ, @NativeType("GLuint") int dstName, @NativeType("GLenum") int dstTarget, @NativeType("GLint") int dstLevel, @NativeType("GLint") int dstX, @NativeType("GLint") int dstY, @NativeType("GLint") int dstZ, @NativeType("GLsizei") int srcWidth, @NativeType("GLsizei") int srcHeight, @NativeType("GLsizei") int srcDepth);
// --- [ glDebugMessageControl ] ---
/**
* Unsafe version of: {@link #glDebugMessageControl DebugMessageControl}
*
* @param count the length of the array {@code ids}
*/
public static native void nglDebugMessageControl(int source, int type, int severity, int count, long ids, boolean enabled);
/**
* Controls the volume of debug output in the active debug group, by disabling specific or groups of messages.
*
* If {@code enabled} is {@link GLES20#GL_TRUE TRUE}, the referenced subset of messages will be enabled. If {@link GLES20#GL_FALSE FALSE}, then those messages will be disabled.
*
* This command can reference different subsets of messages by first considering the set of all messages, and filtering out messages based on the following
* ways:
*
*
* - If {@code source}, {@code type}, or {@code severity} is {@link GLES20#GL_DONT_CARE DONT_CARE}, the messages from all sources, of all types, or of all severities are
* referenced respectively.
* - When values other than {@link GLES20#GL_DONT_CARE DONT_CARE} are specified, all messages whose source, type, or severity match the specified {@code source}, {@code type},
* or {@code severity} respectively will be referenced.
* - If {@code count} is greater than zero, then {@code ids} is an array of {@code count} message IDs for the specified combination of {@code source} and
* {@code type}. In this case, if {@code source} or {@code type} is {@link GLES20#GL_DONT_CARE DONT_CARE}, or {@code severity} is not {@link GLES20#GL_DONT_CARE DONT_CARE}, the error
* {@link GLES20#GL_INVALID_OPERATION INVALID_OPERATION} is generated.
*
*
* Unrecognized message IDs in {@code ids} are ignored. If {@code count} is zero, the value if {@code ids} is ignored.
*
* Although messages are grouped into an implicit hierarchy by their sources and types, there is no explicit per-source, per-type or per-severity enabled
* state. Instead, the enabled state is stored individually for each message. There is no difference between disabling all messages from one source in a
* single call, and individually disabling all messages from that source using their types and IDs.
*
* If the {@link #GL_DEBUG_OUTPUT DEBUG_OUTPUT} state is disabled the GL operates the same as if messages of every {@code source}, {@code type} or {@code severity} are
* disabled.
*
* @param source the source of debug messages to enable or disable. One of:
{@link #GL_DEBUG_SOURCE_API DEBUG_SOURCE_API} {@link #GL_DEBUG_SOURCE_WINDOW_SYSTEM DEBUG_SOURCE_WINDOW_SYSTEM} {@link #GL_DEBUG_SOURCE_SHADER_COMPILER DEBUG_SOURCE_SHADER_COMPILER} {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY} {@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} {@link #GL_DEBUG_SOURCE_OTHER DEBUG_SOURCE_OTHER}
* @param type the type of debug messages to enable or disable. One of:
{@link #GL_DEBUG_TYPE_ERROR DEBUG_TYPE_ERROR} {@link #GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR DEBUG_TYPE_DEPRECATED_BEHAVIOR} {@link #GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR DEBUG_TYPE_UNDEFINED_BEHAVIOR} {@link #GL_DEBUG_TYPE_PORTABILITY DEBUG_TYPE_PORTABILITY} {@link #GL_DEBUG_TYPE_PERFORMANCE DEBUG_TYPE_PERFORMANCE} {@link #GL_DEBUG_TYPE_OTHER DEBUG_TYPE_OTHER} {@link #GL_DEBUG_TYPE_MARKER DEBUG_TYPE_MARKER}
* @param severity the severity of debug messages to enable or disable. One of:
{@link #GL_DEBUG_SEVERITY_HIGH DEBUG_SEVERITY_HIGH} {@link #GL_DEBUG_SEVERITY_MEDIUM DEBUG_SEVERITY_MEDIUM} {@link #GL_DEBUG_SEVERITY_LOW DEBUG_SEVERITY_LOW} {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}
* @param ids an array of unsigned integers containing the ids of the messages to enable or disable
* @param enabled whether the selected messages should be enabled or disabled
*
* @see Reference Page
*/
public static void glDebugMessageControl(@NativeType("GLenum") int source, @NativeType("GLenum") int type, @NativeType("GLenum") int severity, @NativeType("GLuint const *") IntBuffer ids, @NativeType("GLboolean") boolean enabled) {
nglDebugMessageControl(source, type, severity, ids.remaining(), memAddress(ids), enabled);
}
/**
* Controls the volume of debug output in the active debug group, by disabling specific or groups of messages.
*
* If {@code enabled} is {@link GLES20#GL_TRUE TRUE}, the referenced subset of messages will be enabled. If {@link GLES20#GL_FALSE FALSE}, then those messages will be disabled.
*
* This command can reference different subsets of messages by first considering the set of all messages, and filtering out messages based on the following
* ways:
*
*
* - If {@code source}, {@code type}, or {@code severity} is {@link GLES20#GL_DONT_CARE DONT_CARE}, the messages from all sources, of all types, or of all severities are
* referenced respectively.
* - When values other than {@link GLES20#GL_DONT_CARE DONT_CARE} are specified, all messages whose source, type, or severity match the specified {@code source}, {@code type},
* or {@code severity} respectively will be referenced.
* - If {@code count} is greater than zero, then {@code ids} is an array of {@code count} message IDs for the specified combination of {@code source} and
* {@code type}. In this case, if {@code source} or {@code type} is {@link GLES20#GL_DONT_CARE DONT_CARE}, or {@code severity} is not {@link GLES20#GL_DONT_CARE DONT_CARE}, the error
* {@link GLES20#GL_INVALID_OPERATION INVALID_OPERATION} is generated.
*
*
* Unrecognized message IDs in {@code ids} are ignored. If {@code count} is zero, the value if {@code ids} is ignored.
*
* Although messages are grouped into an implicit hierarchy by their sources and types, there is no explicit per-source, per-type or per-severity enabled
* state. Instead, the enabled state is stored individually for each message. There is no difference between disabling all messages from one source in a
* single call, and individually disabling all messages from that source using their types and IDs.
*
* If the {@link #GL_DEBUG_OUTPUT DEBUG_OUTPUT} state is disabled the GL operates the same as if messages of every {@code source}, {@code type} or {@code severity} are
* disabled.
*
* @param source the source of debug messages to enable or disable. One of:
{@link #GL_DEBUG_SOURCE_API DEBUG_SOURCE_API} {@link #GL_DEBUG_SOURCE_WINDOW_SYSTEM DEBUG_SOURCE_WINDOW_SYSTEM} {@link #GL_DEBUG_SOURCE_SHADER_COMPILER DEBUG_SOURCE_SHADER_COMPILER} {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY} {@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} {@link #GL_DEBUG_SOURCE_OTHER DEBUG_SOURCE_OTHER}
* @param type the type of debug messages to enable or disable. One of:
{@link #GL_DEBUG_TYPE_ERROR DEBUG_TYPE_ERROR} {@link #GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR DEBUG_TYPE_DEPRECATED_BEHAVIOR} {@link #GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR DEBUG_TYPE_UNDEFINED_BEHAVIOR} {@link #GL_DEBUG_TYPE_PORTABILITY DEBUG_TYPE_PORTABILITY} {@link #GL_DEBUG_TYPE_PERFORMANCE DEBUG_TYPE_PERFORMANCE} {@link #GL_DEBUG_TYPE_OTHER DEBUG_TYPE_OTHER} {@link #GL_DEBUG_TYPE_MARKER DEBUG_TYPE_MARKER}
* @param severity the severity of debug messages to enable or disable. One of:
{@link #GL_DEBUG_SEVERITY_HIGH DEBUG_SEVERITY_HIGH} {@link #GL_DEBUG_SEVERITY_MEDIUM DEBUG_SEVERITY_MEDIUM} {@link #GL_DEBUG_SEVERITY_LOW DEBUG_SEVERITY_LOW} {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}
* @param enabled whether the selected messages should be enabled or disabled
*
* @see Reference Page
*/
public static void glDebugMessageControl(@NativeType("GLenum") int source, @NativeType("GLenum") int type, @NativeType("GLenum") int severity, @NativeType("GLuint const *") int id, @NativeType("GLboolean") boolean enabled) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer ids = stack.ints(id);
nglDebugMessageControl(source, type, severity, 1, memAddress(ids), enabled);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glDebugMessageInsert ] ---
/**
* Unsafe version of: {@link #glDebugMessageInsert DebugMessageInsert}
*
* @param length the length of the string contained in the character array whose address is given by {@code message}
*/
public static native void nglDebugMessageInsert(int source, int type, int id, int severity, int length, long message);
/**
* This function can be called by applications and third-party libraries to generate their own messages, such as ones containing timestamp information or
* signals about specific render system events.
*
* The value of {@code id} specifies the ID for the message and {@code severity} indicates its severity level as defined by the caller. The string
* {@code buf} contains the string representation of the message. The parameter {@code length} contains the number of characters in {@code buf}. If
* {@code length} is negative, it is implied that {@code buf} contains a null terminated string. The error {@link GLES20#GL_INVALID_VALUE INVALID_VALUE} will be generated if the
* number of characters in {@code buf}, excluding the null terminator when {@code length} is negative, is not less than the value of
* {@link #GL_MAX_DEBUG_MESSAGE_LENGTH MAX_DEBUG_MESSAGE_LENGTH}.
*
* If the {@link #GL_DEBUG_OUTPUT DEBUG_OUTPUT} state is disabled calls to DebugMessageInsert are discarded and do not generate an error.
*
* @param source the source of the debug message to insert. One of:
{@link #GL_DEBUG_SOURCE_API DEBUG_SOURCE_API} {@link #GL_DEBUG_SOURCE_WINDOW_SYSTEM DEBUG_SOURCE_WINDOW_SYSTEM} {@link #GL_DEBUG_SOURCE_SHADER_COMPILER DEBUG_SOURCE_SHADER_COMPILER} {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY} {@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} {@link #GL_DEBUG_SOURCE_OTHER DEBUG_SOURCE_OTHER}
* @param type the type of the debug message insert. One of:
{@link #GL_DEBUG_TYPE_ERROR DEBUG_TYPE_ERROR} {@link #GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR DEBUG_TYPE_DEPRECATED_BEHAVIOR} {@link #GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR DEBUG_TYPE_UNDEFINED_BEHAVIOR} {@link #GL_DEBUG_TYPE_PORTABILITY DEBUG_TYPE_PORTABILITY} {@link #GL_DEBUG_TYPE_PERFORMANCE DEBUG_TYPE_PERFORMANCE} {@link #GL_DEBUG_TYPE_OTHER DEBUG_TYPE_OTHER} {@link #GL_DEBUG_TYPE_MARKER DEBUG_TYPE_MARKER}
* @param id the user-supplied identifier of the message to insert. One of:
{@link #GL_DEBUG_SEVERITY_HIGH DEBUG_SEVERITY_HIGH} {@link #GL_DEBUG_SEVERITY_MEDIUM DEBUG_SEVERITY_MEDIUM} {@link #GL_DEBUG_SEVERITY_LOW DEBUG_SEVERITY_LOW} {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}
* @param severity the severity of the debug messages to insert
* @param message a character array containing the message to insert
*
* @see Reference Page
*/
public static void glDebugMessageInsert(@NativeType("GLenum") int source, @NativeType("GLenum") int type, @NativeType("GLuint") int id, @NativeType("GLenum") int severity, @NativeType("GLchar const *") ByteBuffer message) {
nglDebugMessageInsert(source, type, id, severity, message.remaining(), memAddress(message));
}
/**
* This function can be called by applications and third-party libraries to generate their own messages, such as ones containing timestamp information or
* signals about specific render system events.
*
* The value of {@code id} specifies the ID for the message and {@code severity} indicates its severity level as defined by the caller. The string
* {@code buf} contains the string representation of the message. The parameter {@code length} contains the number of characters in {@code buf}. If
* {@code length} is negative, it is implied that {@code buf} contains a null terminated string. The error {@link GLES20#GL_INVALID_VALUE INVALID_VALUE} will be generated if the
* number of characters in {@code buf}, excluding the null terminator when {@code length} is negative, is not less than the value of
* {@link #GL_MAX_DEBUG_MESSAGE_LENGTH MAX_DEBUG_MESSAGE_LENGTH}.
*
* If the {@link #GL_DEBUG_OUTPUT DEBUG_OUTPUT} state is disabled calls to DebugMessageInsert are discarded and do not generate an error.
*
* @param source the source of the debug message to insert. One of:
{@link #GL_DEBUG_SOURCE_API DEBUG_SOURCE_API} {@link #GL_DEBUG_SOURCE_WINDOW_SYSTEM DEBUG_SOURCE_WINDOW_SYSTEM} {@link #GL_DEBUG_SOURCE_SHADER_COMPILER DEBUG_SOURCE_SHADER_COMPILER} {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY} {@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} {@link #GL_DEBUG_SOURCE_OTHER DEBUG_SOURCE_OTHER}
* @param type the type of the debug message insert. One of:
{@link #GL_DEBUG_TYPE_ERROR DEBUG_TYPE_ERROR} {@link #GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR DEBUG_TYPE_DEPRECATED_BEHAVIOR} {@link #GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR DEBUG_TYPE_UNDEFINED_BEHAVIOR} {@link #GL_DEBUG_TYPE_PORTABILITY DEBUG_TYPE_PORTABILITY} {@link #GL_DEBUG_TYPE_PERFORMANCE DEBUG_TYPE_PERFORMANCE} {@link #GL_DEBUG_TYPE_OTHER DEBUG_TYPE_OTHER} {@link #GL_DEBUG_TYPE_MARKER DEBUG_TYPE_MARKER}
* @param id the user-supplied identifier of the message to insert. One of:
{@link #GL_DEBUG_SEVERITY_HIGH DEBUG_SEVERITY_HIGH} {@link #GL_DEBUG_SEVERITY_MEDIUM DEBUG_SEVERITY_MEDIUM} {@link #GL_DEBUG_SEVERITY_LOW DEBUG_SEVERITY_LOW} {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}
* @param severity the severity of the debug messages to insert
* @param message a character array containing the message to insert
*
* @see Reference Page
*/
public static void glDebugMessageInsert(@NativeType("GLenum") int source, @NativeType("GLenum") int type, @NativeType("GLuint") int id, @NativeType("GLenum") int severity, @NativeType("GLchar const *") CharSequence message) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
int messageEncodedLength = stack.nUTF8(message, false);
long messageEncoded = stack.getPointerAddress();
nglDebugMessageInsert(source, type, id, severity, messageEncodedLength, messageEncoded);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glDebugMessageCallback ] ---
/** Unsafe version of: {@link #glDebugMessageCallback DebugMessageCallback} */
public static native void nglDebugMessageCallback(long callback, long userParam);
/**
* Specifies a callback to receive debugging messages from the GL.
*
* The function's prototype must follow the type definition of DEBUGPROC including its platform-dependent calling convention. Anything else will result in
* undefined behavior. Only one debug callback can be specified for the current context, and further calls overwrite the previous callback. Specifying
* {@code NULL} as the value of {@code callback} clears the current callback and disables message output through callbacks. Applications can provide
* user-specified data through the pointer {@code userParam}. The context will store this pointer and will include it as one of the parameters in each call
* to the callback function.
*
* If the application has specified a callback function for receiving debug output, the implementation will call that function whenever any enabled message
* is generated. The source, type, ID, and severity of the message are specified by the DEBUGPROC parameters {@code source}, {@code type}, {@code id}, and
* {@code severity}, respectively. The string representation of the message is stored in {@code message} and its length (excluding the null-terminator) is
* stored in {@code length}. The parameter {@code userParam} is the user-specified parameter that was given when calling DebugMessageCallback.
*
* Applications can query the current callback function and the current user-specified parameter by obtaining the values of {@link #GL_DEBUG_CALLBACK_FUNCTION DEBUG_CALLBACK_FUNCTION}
* and {@link #GL_DEBUG_CALLBACK_USER_PARAM DEBUG_CALLBACK_USER_PARAM}, respectively.
*
* Applications that specify a callback function must be aware of certain special conditions when executing code inside a callback when it is called by the
* GL, regardless of the debug source.
*
* The memory for {@code message} is owned and managed by the GL, and should only be considered valid for the duration of the function call.
*
* The behavior of calling any GL or window system function from within the callback function is undefined and may lead to program termination.
*
* Care must also be taken in securing debug callbacks for use with asynchronous debug output by multi-threaded GL implementations.
*
* If the {@link #GL_DEBUG_OUTPUT DEBUG_OUTPUT} state is disabled then the GL will not call the callback function.
*
* @param callback a callback function that will be called when a debug message is generated
* @param userParam a user supplied pointer that will be passed on each invocation of {@code callback}
*
* @see Reference Page
*/
public static void glDebugMessageCallback(@Nullable @NativeType("GLDEBUGPROC") GLDebugMessageCallbackI callback, @NativeType("void const *") long userParam) {
nglDebugMessageCallback(memAddressSafe(callback), userParam);
}
// --- [ glGetDebugMessageLog ] ---
/**
* Unsafe version of: {@link #glGetDebugMessageLog GetDebugMessageLog}
*
* @param bufsize the size of the buffer whose address is given by {@code messageLog}
*/
public static native int nglGetDebugMessageLog(int count, int bufsize, long sources, long types, long ids, long severities, long lengths, long messageLog);
/**
* Retrieves messages from the debug message log.
*
* This function fetches a maximum of {@code count} messages from the message log, and will return the number of messages successfully fetched.
*
* Messages will be fetched from the log in order of oldest to newest. Those messages that were fetched will be removed from the log.
*
* The sources, types, severities, IDs, and string lengths of fetched messages will be stored in the application-provided arrays {@code sources},
* {@code types}, {@code severities}, {@code ids}, and {@code lengths}, respectively. The application is responsible for allocating enough space for each
* array to hold up to {@code count} elements. The string representations of all fetched messages are stored in the {@code messageLog} array. If multiple
* messages are fetched, their strings are concatenated into the same {@code messageLog} array and will be separated by single null terminators. The last
* string in the array will also be null-terminated. The maximum size of {@code messageLog}, including the space used by all null terminators, is given by
* {@code bufSize}. If {@code bufSize} is less than zero and {@code messageLog} is not {@code NULL}, an {@link GLES20#GL_INVALID_VALUE INVALID_VALUE} error will be generated. If a message's
* string, including its null terminator, can not fully fit within the {@code messageLog} array's remaining space, then that message and any subsequent
* messages will not be fetched and will remain in the log. The string lengths stored in the array {@code lengths} include the space for the null terminator of each string.
*
* Any or all of the arrays {@code sources}, {@code types}, {@code ids}, {@code severities}, {@code lengths} and {@code messageLog} can also be null
* pointers, which causes the attributes for such arrays to be discarded when messages are fetched, however those messages will still be removed from the
* log. Thus to simply delete up to {@code count} messages from the message log while ignoring their attributes, the application can call the function with
* null pointers for all attribute arrays.
*
* If the context was created without the {@link #GL_CONTEXT_FLAG_DEBUG_BIT CONTEXT_FLAG_DEBUG_BIT}, then the GL can opt to never add messages to the message log so GetDebugMessageLog will
* always return zero.
*
* @param count the number of debug messages to retrieve from the log
* @param sources an array of variables to receive the sources of the retrieved messages
* @param types an array of variables to receive the types of the retrieved messages
* @param ids an array of unsigned integers to receive the ids of the retrieved messages
* @param severities an array of variables to receive the severites of the retrieved messages
* @param lengths an array of variables to receive the lengths of the received messages
* @param messageLog an array of characters that will receive the messages
*
* @see Reference Page
*/
@NativeType("GLuint")
public static int glGetDebugMessageLog(@NativeType("GLuint") int count, @Nullable @NativeType("GLenum *") IntBuffer sources, @Nullable @NativeType("GLenum *") IntBuffer types, @Nullable @NativeType("GLuint *") IntBuffer ids, @Nullable @NativeType("GLenum *") IntBuffer severities, @Nullable @NativeType("GLsizei *") IntBuffer lengths, @Nullable @NativeType("GLchar *") ByteBuffer messageLog) {
if (CHECKS) {
checkSafe(sources, count);
checkSafe(types, count);
checkSafe(ids, count);
checkSafe(severities, count);
checkSafe(lengths, count);
}
return nglGetDebugMessageLog(count, remainingSafe(messageLog), memAddressSafe(sources), memAddressSafe(types), memAddressSafe(ids), memAddressSafe(severities), memAddressSafe(lengths), memAddressSafe(messageLog));
}
// --- [ glGetPointerv ] ---
public static native void nglGetPointerv(int pname, long params);
/** Reference Page */
public static void glGetPointerv(@NativeType("GLenum") int pname, @NativeType("void **") PointerBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetPointerv(pname, memAddress(params));
}
/** Reference Page */
@NativeType("void")
public static long glGetPointer(@NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
PointerBuffer params = stack.callocPointer(1);
nglGetPointerv(pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glPushDebugGroup ] ---
/**
* Unsafe version of: {@link #glPushDebugGroup PushDebugGroup}
*
* @param length the length of the message to be sent to the debug output stream
*/
public static native void nglPushDebugGroup(int source, int id, int length, long message);
/**
* Pushes a debug group described by the string {@code message} into the command stream. The value of {@code id} specifies the ID of messages generated.
* The parameter {@code length} contains the number of characters in {@code message}. If {@code length} is negative, it is implied that {@code message}
* contains a null terminated string. The message has the specified {@code source} and {@code id}, {@code type} {@link #GL_DEBUG_TYPE_PUSH_GROUP DEBUG_TYPE_PUSH_GROUP}, and
* {@code severity} {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}. The GL will put a new debug group on top of the debug group stack which inherits the control of the
* volume of debug output of the debug group previously residing on the top of the debug group stack. Because debug groups are strictly hierarchical, any
* additional control of the debug output volume will only apply within the active debug group and the debug groups pushed on top of the active debug
* group.
*
* An {@link GLES20#GL_INVALID_ENUM INVALID_ENUM} error is generated if the value of {@code source} is neither {@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} nor {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY}. An
* {@link GLES20#GL_INVALID_VALUE INVALID_VALUE} error is generated if {@code length} is negative and the number of characters in {@code message}, excluding the null-terminator,
* is not less than the value of {@link #GL_MAX_DEBUG_MESSAGE_LENGTH MAX_DEBUG_MESSAGE_LENGTH}.
*
* @param source the source of the debug message. One of:
{@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY}
* @param id the identifier of the message
* @param message a string containing the message to be sent to the debug output stream
*
* @see Reference Page
*/
public static void glPushDebugGroup(@NativeType("GLenum") int source, @NativeType("GLuint") int id, @NativeType("GLchar const *") ByteBuffer message) {
nglPushDebugGroup(source, id, message.remaining(), memAddress(message));
}
/**
* Pushes a debug group described by the string {@code message} into the command stream. The value of {@code id} specifies the ID of messages generated.
* The parameter {@code length} contains the number of characters in {@code message}. If {@code length} is negative, it is implied that {@code message}
* contains a null terminated string. The message has the specified {@code source} and {@code id}, {@code type} {@link #GL_DEBUG_TYPE_PUSH_GROUP DEBUG_TYPE_PUSH_GROUP}, and
* {@code severity} {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}. The GL will put a new debug group on top of the debug group stack which inherits the control of the
* volume of debug output of the debug group previously residing on the top of the debug group stack. Because debug groups are strictly hierarchical, any
* additional control of the debug output volume will only apply within the active debug group and the debug groups pushed on top of the active debug
* group.
*
* An {@link GLES20#GL_INVALID_ENUM INVALID_ENUM} error is generated if the value of {@code source} is neither {@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} nor {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY}. An
* {@link GLES20#GL_INVALID_VALUE INVALID_VALUE} error is generated if {@code length} is negative and the number of characters in {@code message}, excluding the null-terminator,
* is not less than the value of {@link #GL_MAX_DEBUG_MESSAGE_LENGTH MAX_DEBUG_MESSAGE_LENGTH}.
*
* @param source the source of the debug message. One of:
{@link #GL_DEBUG_SOURCE_APPLICATION DEBUG_SOURCE_APPLICATION} {@link #GL_DEBUG_SOURCE_THIRD_PARTY DEBUG_SOURCE_THIRD_PARTY}
* @param id the identifier of the message
* @param message a string containing the message to be sent to the debug output stream
*
* @see Reference Page
*/
public static void glPushDebugGroup(@NativeType("GLenum") int source, @NativeType("GLuint") int id, @NativeType("GLchar const *") CharSequence message) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
int messageEncodedLength = stack.nUTF8(message, false);
long messageEncoded = stack.getPointerAddress();
nglPushDebugGroup(source, id, messageEncodedLength, messageEncoded);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glPopDebugGroup ] ---
/**
* Pops the active debug group. When a debug group is popped, the GL will also generate a debug output message describing its cause based on the
* {@code message} string, the source {@code source}, and an ID {@code id} submitted to the associated {@link #glPushDebugGroup PushDebugGroup} command.
* {@link #GL_DEBUG_TYPE_PUSH_GROUP DEBUG_TYPE_PUSH_GROUP} and {@link #GL_DEBUG_TYPE_POP_GROUP DEBUG_TYPE_POP_GROUP} share a single namespace for message {@code id}. {@code severity} has the value
* {@link #GL_DEBUG_SEVERITY_NOTIFICATION DEBUG_SEVERITY_NOTIFICATION}. The {@code type} has the value {@link #GL_DEBUG_TYPE_POP_GROUP DEBUG_TYPE_POP_GROUP}. Popping a debug group restores the debug output volume
* control of the parent debug group.
*
* Attempting to pop the default debug group off the stack generates a {@link #GL_STACK_UNDERFLOW STACK_UNDERFLOW} error; pushing a debug group onto a stack containing
* {@link #GL_MAX_DEBUG_GROUP_STACK_DEPTH MAX_DEBUG_GROUP_STACK_DEPTH} minus one elements will generate a {@link #GL_STACK_OVERFLOW STACK_OVERFLOW} error.
*
* @see Reference Page
*/
public static native void glPopDebugGroup();
// --- [ glObjectLabel ] ---
/**
* Unsafe version of: {@link #glObjectLabel ObjectLabel}
*
* @param length the length of the label to be used for the object
*/
public static native void nglObjectLabel(int identifier, int name, int length, long label);
/**
* Labels a named object identified within a namespace.
*
* @param identifier the namespace from which the name of the object is allocated. One of:
{@link #GL_BUFFER BUFFER} {@link #GL_SHADER SHADER} {@link #GL_PROGRAM PROGRAM} {@link #GL_QUERY QUERY} {@link #GL_PROGRAM_PIPELINE PROGRAM_PIPELINE} {@link #GL_SAMPLER SAMPLER} {@link GLES20#GL_TEXTURE TEXTURE} {@link GLES20#GL_RENDERBUFFER RENDERBUFFER} {@link GLES20#GL_FRAMEBUFFER FRAMEBUFFER} {@link GLES30#GL_TRANSFORM_FEEDBACK TRANSFORM_FEEDBACK}
* @param name the name of the object to label
* @param label a string containing the label to assign to the object
*
* @see Reference Page
*/
public static void glObjectLabel(@NativeType("GLenum") int identifier, @NativeType("GLuint") int name, @NativeType("GLchar const *") ByteBuffer label) {
nglObjectLabel(identifier, name, label.remaining(), memAddress(label));
}
/**
* Labels a named object identified within a namespace.
*
* @param identifier the namespace from which the name of the object is allocated. One of:
{@link #GL_BUFFER BUFFER} {@link #GL_SHADER SHADER} {@link #GL_PROGRAM PROGRAM} {@link #GL_QUERY QUERY} {@link #GL_PROGRAM_PIPELINE PROGRAM_PIPELINE} {@link #GL_SAMPLER SAMPLER} {@link GLES20#GL_TEXTURE TEXTURE} {@link GLES20#GL_RENDERBUFFER RENDERBUFFER} {@link GLES20#GL_FRAMEBUFFER FRAMEBUFFER} {@link GLES30#GL_TRANSFORM_FEEDBACK TRANSFORM_FEEDBACK}
* @param name the name of the object to label
* @param label a string containing the label to assign to the object
*
* @see Reference Page
*/
public static void glObjectLabel(@NativeType("GLenum") int identifier, @NativeType("GLuint") int name, @NativeType("GLchar const *") CharSequence label) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
int labelEncodedLength = stack.nUTF8(label, false);
long labelEncoded = stack.getPointerAddress();
nglObjectLabel(identifier, name, labelEncodedLength, labelEncoded);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetObjectLabel ] ---
/**
* Unsafe version of: {@link #glGetObjectLabel GetObjectLabel}
*
* @param bufSize the length of the buffer whose address is in {@code label}
*/
public static native void nglGetObjectLabel(int identifier, int name, int bufSize, long length, long label);
/**
* Retrieves the label of a named object identified within a namespace.
*
* @param identifier the namespace from which the name of the object is allocated. One of:
{@link #GL_BUFFER BUFFER} {@link #GL_SHADER SHADER} {@link #GL_PROGRAM PROGRAM} {@link #GL_QUERY QUERY} {@link #GL_PROGRAM_PIPELINE PROGRAM_PIPELINE} {@link #GL_SAMPLER SAMPLER} {@link GLES20#GL_TEXTURE TEXTURE} {@link GLES20#GL_RENDERBUFFER RENDERBUFFER} {@link GLES20#GL_FRAMEBUFFER FRAMEBUFFER} {@link GLES30#GL_TRANSFORM_FEEDBACK TRANSFORM_FEEDBACK}
* @param name the name of the object whose label to retrieve
* @param length the address of a variable to receive the length of the object label
* @param label a string that will receive the object label
*
* @see Reference Page
*/
public static void glGetObjectLabel(@NativeType("GLenum") int identifier, @NativeType("GLuint") int name, @Nullable @NativeType("GLsizei *") IntBuffer length, @NativeType("GLchar *") ByteBuffer label) {
if (CHECKS) {
checkSafe(length, 1);
}
nglGetObjectLabel(identifier, name, label.remaining(), memAddressSafe(length), memAddress(label));
}
/**
* Retrieves the label of a named object identified within a namespace.
*
* @param identifier the namespace from which the name of the object is allocated. One of:
{@link #GL_BUFFER BUFFER} {@link #GL_SHADER SHADER} {@link #GL_PROGRAM PROGRAM} {@link #GL_QUERY QUERY} {@link #GL_PROGRAM_PIPELINE PROGRAM_PIPELINE} {@link #GL_SAMPLER SAMPLER} {@link GLES20#GL_TEXTURE TEXTURE} {@link GLES20#GL_RENDERBUFFER RENDERBUFFER} {@link GLES20#GL_FRAMEBUFFER FRAMEBUFFER} {@link GLES30#GL_TRANSFORM_FEEDBACK TRANSFORM_FEEDBACK}
* @param name the name of the object whose label to retrieve
* @param bufSize the length of the buffer whose address is in {@code label}
*
* @see Reference Page
*/
@NativeType("void")
public static String glGetObjectLabel(@NativeType("GLenum") int identifier, @NativeType("GLuint") int name, @NativeType("GLsizei") int bufSize) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer length = stack.ints(0);
ByteBuffer label = stack.malloc(bufSize);
nglGetObjectLabel(identifier, name, bufSize, memAddress(length), memAddress(label));
return memUTF8(label, length.get(0));
} finally {
stack.setPointer(stackPointer);
}
}
/**
* Retrieves the label of a named object identified within a namespace.
*
* @param identifier the namespace from which the name of the object is allocated. One of:
{@link #GL_BUFFER BUFFER} {@link #GL_SHADER SHADER} {@link #GL_PROGRAM PROGRAM} {@link #GL_QUERY QUERY} {@link #GL_PROGRAM_PIPELINE PROGRAM_PIPELINE} {@link #GL_SAMPLER SAMPLER} {@link GLES20#GL_TEXTURE TEXTURE} {@link GLES20#GL_RENDERBUFFER RENDERBUFFER} {@link GLES20#GL_FRAMEBUFFER FRAMEBUFFER} {@link GLES30#GL_TRANSFORM_FEEDBACK TRANSFORM_FEEDBACK}
* @param name the name of the object whose label to retrieve
*
* @see Reference Page
*/
@NativeType("void")
public static String glGetObjectLabel(@NativeType("GLenum") int identifier, @NativeType("GLuint") int name) {
return glGetObjectLabel(identifier, name, GLES20.glGetInteger(GL_MAX_LABEL_LENGTH));
}
// --- [ glObjectPtrLabel ] ---
/**
* Unsafe version of: {@link #glObjectPtrLabel ObjectPtrLabel}
*
* @param length the length of the label to be used for the object
*/
public static native void nglObjectPtrLabel(long ptr, int length, long label);
/**
* Labels a sync object identified by a pointer.
*
* @param ptr a pointer identifying a sync object
* @param label a string containing the label to assign to the object
*
* @see Reference Page
*/
public static void glObjectPtrLabel(@NativeType("void *") long ptr, @NativeType("GLchar const *") ByteBuffer label) {
if (CHECKS) {
check(ptr);
}
nglObjectPtrLabel(ptr, label.remaining(), memAddress(label));
}
/**
* Labels a sync object identified by a pointer.
*
* @param ptr a pointer identifying a sync object
* @param label a string containing the label to assign to the object
*
* @see Reference Page
*/
public static void glObjectPtrLabel(@NativeType("void *") long ptr, @NativeType("GLchar const *") CharSequence label) {
if (CHECKS) {
check(ptr);
}
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
int labelEncodedLength = stack.nUTF8(label, false);
long labelEncoded = stack.getPointerAddress();
nglObjectPtrLabel(ptr, labelEncodedLength, labelEncoded);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetObjectPtrLabel ] ---
/**
* Unsafe version of: {@link #glGetObjectPtrLabel GetObjectPtrLabel}
*
* @param bufSize the length of the buffer whose address is in {@code label}
*/
public static native void nglGetObjectPtrLabel(long ptr, int bufSize, long length, long label);
/**
* Retrieves the label of a sync object identified by a pointer.
*
* @param ptr the name of the sync object whose label to retrieve
* @param length a variable to receive the length of the object label
* @param label a string that will receive the object label
*
* @see Reference Page
*/
public static void glGetObjectPtrLabel(@NativeType("void *") long ptr, @Nullable @NativeType("GLsizei *") IntBuffer length, @NativeType("GLchar *") ByteBuffer label) {
if (CHECKS) {
check(ptr);
checkSafe(length, 1);
}
nglGetObjectPtrLabel(ptr, label.remaining(), memAddressSafe(length), memAddress(label));
}
/**
* Retrieves the label of a sync object identified by a pointer.
*
* @param ptr the name of the sync object whose label to retrieve
* @param bufSize the length of the buffer whose address is in {@code label}
*
* @see Reference Page
*/
@NativeType("void")
public static String glGetObjectPtrLabel(@NativeType("void *") long ptr, @NativeType("GLsizei") int bufSize) {
if (CHECKS) {
check(ptr);
}
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer length = stack.ints(0);
ByteBuffer label = stack.malloc(bufSize);
nglGetObjectPtrLabel(ptr, bufSize, memAddress(length), memAddress(label));
return memUTF8(label, length.get(0));
} finally {
stack.setPointer(stackPointer);
}
}
/**
* Retrieves the label of a sync object identified by a pointer.
*
* @param ptr the name of the sync object whose label to retrieve
*
* @see Reference Page
*/
@NativeType("void")
public static String glGetObjectPtrLabel(@NativeType("void *") long ptr) {
return glGetObjectPtrLabel(ptr, GLES20.glGetInteger(GL_MAX_LABEL_LENGTH));
}
// --- [ glEnablei ] ---
/** Reference Page */
public static native void glEnablei(@NativeType("GLenum") int target, @NativeType("GLuint") int index);
// --- [ glDisablei ] ---
/** Reference Page */
public static native void glDisablei(@NativeType("GLenum") int target, @NativeType("GLuint") int index);
// --- [ glBlendEquationi ] ---
/** Reference Page */
public static native void glBlendEquationi(@NativeType("GLuint") int buf, @NativeType("GLenum") int mode);
// --- [ glBlendEquationSeparatei ] ---
/** Reference Page */
public static native void glBlendEquationSeparatei(@NativeType("GLuint") int buf, @NativeType("GLenum") int modeRGB, @NativeType("GLenum") int modeAlpha);
// --- [ glBlendFunci ] ---
/** Reference Page */
public static native void glBlendFunci(@NativeType("GLuint") int buf, @NativeType("GLenum") int src, @NativeType("GLenum") int dst);
// --- [ glBlendFuncSeparatei ] ---
/** Reference Page */
public static native void glBlendFuncSeparatei(@NativeType("GLuint") int buf, @NativeType("GLenum") int srcRGB, @NativeType("GLenum") int dstRGB, @NativeType("GLenum") int srcAlpha, @NativeType("GLenum") int dstAlpha);
// --- [ glColorMaski ] ---
/** Reference Page */
public static native void glColorMaski(@NativeType("GLuint") int index, @NativeType("GLboolean") boolean r, @NativeType("GLboolean") boolean g, @NativeType("GLboolean") boolean b, @NativeType("GLboolean") boolean a);
// --- [ glIsEnabledi ] ---
/** Reference Page */
@NativeType("GLboolean")
public static native boolean glIsEnabledi(@NativeType("GLenum") int target, @NativeType("GLuint") int index);
// --- [ glDrawElementsBaseVertex ] ---
public static native void nglDrawElementsBaseVertex(int mode, int count, int type, long indices, int basevertex);
/** Reference Page */
public static void glDrawElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLsizei") int count, @NativeType("GLenum") int type, @NativeType("void const *") long indices, @NativeType("GLint") int basevertex) {
nglDrawElementsBaseVertex(mode, count, type, indices, basevertex);
}
/** Reference Page */
public static void glDrawElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLenum") int type, @NativeType("void const *") ByteBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawElementsBaseVertex(mode, indices.remaining() >> GLESChecks.typeToByteShift(type), type, memAddress(indices), basevertex);
}
/** Reference Page */
public static void glDrawElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("void const *") ByteBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawElementsBaseVertex(mode, indices.remaining(), GLES20.GL_UNSIGNED_BYTE, memAddress(indices), basevertex);
}
/** Reference Page */
public static void glDrawElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("void const *") ShortBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawElementsBaseVertex(mode, indices.remaining(), GLES20.GL_UNSIGNED_SHORT, memAddress(indices), basevertex);
}
/** Reference Page */
public static void glDrawElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("void const *") IntBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawElementsBaseVertex(mode, indices.remaining(), GLES20.GL_UNSIGNED_INT, memAddress(indices), basevertex);
}
// --- [ glDrawRangeElementsBaseVertex ] ---
public static native void nglDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, long indices, int basevertex);
/** Reference Page */
public static void glDrawRangeElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("GLsizei") int count, @NativeType("GLenum") int type, @NativeType("void const *") long indices, @NativeType("GLint") int basevertex) {
nglDrawRangeElementsBaseVertex(mode, start, end, count, type, indices, basevertex);
}
/** Reference Page */
public static void glDrawRangeElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("GLenum") int type, @NativeType("void const *") ByteBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawRangeElementsBaseVertex(mode, start, end, indices.remaining() >> GLESChecks.typeToByteShift(type), type, memAddress(indices), basevertex);
}
/** Reference Page */
public static void glDrawRangeElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("void const *") ByteBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawRangeElementsBaseVertex(mode, start, end, indices.remaining(), GLES20.GL_UNSIGNED_BYTE, memAddress(indices), basevertex);
}
/** Reference Page */
public static void glDrawRangeElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("void const *") ShortBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawRangeElementsBaseVertex(mode, start, end, indices.remaining(), GLES20.GL_UNSIGNED_SHORT, memAddress(indices), basevertex);
}
/** Reference Page */
public static void glDrawRangeElementsBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("void const *") IntBuffer indices, @NativeType("GLint") int basevertex) {
nglDrawRangeElementsBaseVertex(mode, start, end, indices.remaining(), GLES20.GL_UNSIGNED_INT, memAddress(indices), basevertex);
}
// --- [ glDrawElementsInstancedBaseVertex ] ---
public static native void nglDrawElementsInstancedBaseVertex(int mode, int count, int type, long indices, int instancecount, int basevertex);
/** Reference Page */
public static void glDrawElementsInstancedBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLsizei") int count, @NativeType("GLenum") int type, @NativeType("void const *") long indices, @NativeType("GLsizei") int instancecount, @NativeType("GLint") int basevertex) {
nglDrawElementsInstancedBaseVertex(mode, count, type, indices, instancecount, basevertex);
}
/** Reference Page */
public static void glDrawElementsInstancedBaseVertex(@NativeType("GLenum") int mode, @NativeType("GLenum") int type, @NativeType("void const *") ByteBuffer indices, @NativeType("GLsizei") int instancecount, @NativeType("GLint") int basevertex) {
nglDrawElementsInstancedBaseVertex(mode, indices.remaining() >> GLESChecks.typeToByteShift(type), type, memAddress(indices), instancecount, basevertex);
}
/** Reference Page */
public static void glDrawElementsInstancedBaseVertex(@NativeType("GLenum") int mode, @NativeType("void const *") ByteBuffer indices, @NativeType("GLsizei") int instancecount, @NativeType("GLint") int basevertex) {
nglDrawElementsInstancedBaseVertex(mode, indices.remaining(), GLES20.GL_UNSIGNED_BYTE, memAddress(indices), instancecount, basevertex);
}
/** Reference Page */
public static void glDrawElementsInstancedBaseVertex(@NativeType("GLenum") int mode, @NativeType("void const *") ShortBuffer indices, @NativeType("GLsizei") int instancecount, @NativeType("GLint") int basevertex) {
nglDrawElementsInstancedBaseVertex(mode, indices.remaining(), GLES20.GL_UNSIGNED_SHORT, memAddress(indices), instancecount, basevertex);
}
/** Reference Page */
public static void glDrawElementsInstancedBaseVertex(@NativeType("GLenum") int mode, @NativeType("void const *") IntBuffer indices, @NativeType("GLsizei") int instancecount, @NativeType("GLint") int basevertex) {
nglDrawElementsInstancedBaseVertex(mode, indices.remaining(), GLES20.GL_UNSIGNED_INT, memAddress(indices), instancecount, basevertex);
}
// --- [ glFramebufferTexture ] ---
/** Reference Page */
public static native void glFramebufferTexture(@NativeType("GLenum") int target, @NativeType("GLenum") int attachment, @NativeType("GLuint") int texture, @NativeType("GLint") int level);
// --- [ glPrimitiveBoundingBox ] ---
/**
* Specifies the primitive bounding box.
*
* Implementations may be able to optimize performance if the application provides bounds of primitives that will be generated by the tessellation
* primitive generator or the geometry shader prior to executing those stages. If the provided bounds are incorrect and primitives extend beyond them, the
* rasterizer may or may not generate fragments for the portions of primitives outside the bounds.
*
* @param minX the minimum x clip space coordinate
* @param minY the minimum y clip space coordinate
* @param minZ the minimum z clip space coordinate
* @param minW the minimum w clip space coordinate
* @param maxX the maximum x clip space coordinate
* @param maxY the maximum y clip space coordinate
* @param maxZ the maximum z clip space coordinate
* @param maxW the maximum w clip space coordinate
*
* @see Reference Page
*/
public static native void glPrimitiveBoundingBox(@NativeType("GLfloat") float minX, @NativeType("GLfloat") float minY, @NativeType("GLfloat") float minZ, @NativeType("GLfloat") float minW, @NativeType("GLfloat") float maxX, @NativeType("GLfloat") float maxY, @NativeType("GLfloat") float maxZ, @NativeType("GLfloat") float maxW);
// --- [ glGetGraphicsResetStatus ] ---
/**
* Indicates if the GL context has been in a reset state at any point since the last call to GetGraphicsResetStatus:
*
*
* - {@link GLES20#GL_NO_ERROR NO_ERROR} indicates that the GL context has not been in a reset state since the last call.
* - {@link #GL_GUILTY_CONTEXT_RESET GUILTY_CONTEXT_RESET} indicates that a reset has been detected that is attributable to the current GL context.
* - {@link #GL_INNOCENT_CONTEXT_RESET INNOCENT_CONTEXT_RESET} indicates a reset has been detected that is not attributable to the current GL context.
* - {@link #GL_UNKNOWN_CONTEXT_RESET UNKNOWN_CONTEXT_RESET} indicates a detected graphics reset whose cause is unknown.
*
*
* If a reset status other than NO_ERROR is returned and subsequent calls return NO_ERROR, the context reset was encountered and completed. If a reset
* status is repeatedly returned, the context may be in the process of resetting.
*
* Reset notification behavior is determined at context creation time, and may be queried by calling GetIntegerv with the symbolic constant
* {@link #GL_RESET_NOTIFICATION_STRATEGY RESET_NOTIFICATION_STRATEGY}.
*
* If the reset notification behavior is {@link #GL_NO_RESET_NOTIFICATION NO_RESET_NOTIFICATION}, then the implementation will never deliver notification of reset events, and
* GetGraphicsResetStatus will always return NO_ERROR.
*
* If the behavior is {@link #GL_LOSE_CONTEXT_ON_RESET LOSE_CONTEXT_ON_RESET}, a graphics reset will result in a lost context and require creating a new context as described
* above. In this case GetGraphicsResetStatus will return an appropriate value from those described above.
*
* If a graphics reset notification occurs in a context, a notification must also occur in all other contexts which share objects with that context.
*
* After a graphics reset has occurred on a context, subsequent GL commands on that context (or any context which shares with that context) will generate a
* {@link #GL_CONTEXT_LOST CONTEXT_LOST} error. Such commands will not have side effects (in particular, they will not modify memory passed by pointer for query results,
* and may not block indefinitely or cause termination of the application. Exceptions to this behavior include:
*
*
* - {@link GLES20#glGetError GetError} and GetGraphicsResetStatus behave normally following a graphics reset, so that the application can determine a reset has
* occurred, and when it is safe to destroy and recreate the context.
* - Any commands which might cause a polling application to block indefinitely will generate a CONTEXT_LOST error, but will also return a value
* indicating completion to the application.
*
*
* @see Reference Page
*/
@NativeType("GLenum")
public static native int glGetGraphicsResetStatus();
// --- [ glReadnPixels ] ---
/**
* Unsafe version of: {@link #glReadnPixels ReadnPixels}
*
* @param bufSize the maximum number of bytes to write into {@code data}
*/
public static native void nglReadnPixels(int x, int y, int width, int height, int format, int type, int bufSize, long pixels);
/**
* Behaves identically to {@link GLES20#glReadPixels ReadPixels} except that it does not write more than {@code bufSize} bytes into {@code data}
*
* @param x the left pixel coordinate
* @param y the lower pixel coordinate
* @param width the number of pixels to read in the x-dimension
* @param height the number of pixels to read in the y-dimension
* @param format the pixel format
* @param type the pixel type
* @param bufSize the maximum number of bytes to write into {@code data}
* @param pixels a buffer in which to place the returned pixel data
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("GLsizei") int bufSize, @NativeType("void *") long pixels) {
nglReadnPixels(x, y, width, height, format, type, bufSize, pixels);
}
/**
* Behaves identically to {@link GLES20#glReadPixels ReadPixels} except that it does not write more than {@code bufSize} bytes into {@code data}
*
* @param x the left pixel coordinate
* @param y the lower pixel coordinate
* @param width the number of pixels to read in the x-dimension
* @param height the number of pixels to read in the y-dimension
* @param format the pixel format
* @param type the pixel type
* @param pixels a buffer in which to place the returned pixel data
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") ByteBuffer pixels) {
nglReadnPixels(x, y, width, height, format, type, pixels.remaining(), memAddress(pixels));
}
/**
* Behaves identically to {@link GLES20#glReadPixels ReadPixels} except that it does not write more than {@code bufSize} bytes into {@code data}
*
* @param x the left pixel coordinate
* @param y the lower pixel coordinate
* @param width the number of pixels to read in the x-dimension
* @param height the number of pixels to read in the y-dimension
* @param format the pixel format
* @param type the pixel type
* @param pixels a buffer in which to place the returned pixel data
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") ShortBuffer pixels) {
nglReadnPixels(x, y, width, height, format, type, pixels.remaining() << 1, memAddress(pixels));
}
/**
* Behaves identically to {@link GLES20#glReadPixels ReadPixels} except that it does not write more than {@code bufSize} bytes into {@code data}
*
* @param x the left pixel coordinate
* @param y the lower pixel coordinate
* @param width the number of pixels to read in the x-dimension
* @param height the number of pixels to read in the y-dimension
* @param format the pixel format
* @param type the pixel type
* @param pixels a buffer in which to place the returned pixel data
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") IntBuffer pixels) {
nglReadnPixels(x, y, width, height, format, type, pixels.remaining() << 2, memAddress(pixels));
}
/**
* Behaves identically to {@link GLES20#glReadPixels ReadPixels} except that it does not write more than {@code bufSize} bytes into {@code data}
*
* @param x the left pixel coordinate
* @param y the lower pixel coordinate
* @param width the number of pixels to read in the x-dimension
* @param height the number of pixels to read in the y-dimension
* @param format the pixel format
* @param type the pixel type
* @param pixels a buffer in which to place the returned pixel data
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") FloatBuffer pixels) {
nglReadnPixels(x, y, width, height, format, type, pixels.remaining() << 2, memAddress(pixels));
}
// --- [ glGetnUniformfv ] ---
/**
* Unsafe version of: {@link #glGetnUniformfv GetnUniformfv}
*
* @param bufSize the maximum number of bytes to write to {@code params}
*/
public static native void nglGetnUniformfv(int program, int location, int bufSize, long params);
/**
* Returns the value or values of a uniform of the default uniform block.
*
* @param program the program object
* @param location the uniform location
* @param params the buffer in which to place the returned data
*
* @see Reference Page
*/
public static void glGetnUniformfv(@NativeType("GLuint") int program, @NativeType("GLint") int location, @NativeType("GLfloat *") FloatBuffer params) {
nglGetnUniformfv(program, location, params.remaining(), memAddress(params));
}
/**
* Returns the value or values of a uniform of the default uniform block.
*
* @param program the program object
* @param location the uniform location
*
* @see Reference Page
*/
@NativeType("void")
public static float glGetnUniformf(@NativeType("GLuint") int program, @NativeType("GLint") int location) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer params = stack.callocFloat(1);
nglGetnUniformfv(program, location, 1, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetnUniformiv ] ---
/**
* Unsafe version of: {@link #glGetnUniformiv GetnUniformiv}
*
* @param bufSize the maximum number of bytes to write to {@code params}
*/
public static native void nglGetnUniformiv(int program, int location, int bufSize, long params);
/**
* Integer version of {@link #glGetnUniformfv GetnUniformfv}.
*
* @param program the program object
* @param location the uniform location
* @param params the buffer in which to place the returned data
*
* @see Reference Page
*/
public static void glGetnUniformiv(@NativeType("GLuint") int program, @NativeType("GLint") int location, @NativeType("GLfloat *") FloatBuffer params) {
nglGetnUniformiv(program, location, params.remaining(), memAddress(params));
}
/**
* Integer version of {@link #glGetnUniformfv GetnUniformfv}.
*
* @param program the program object
* @param location the uniform location
*
* @see Reference Page
*/
@NativeType("void")
public static float glGetnUniformi(@NativeType("GLuint") int program, @NativeType("GLint") int location) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer params = stack.callocFloat(1);
nglGetnUniformiv(program, location, 1, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetnUniformuiv ] ---
/**
* Unsafe version of: {@link #glGetnUniformuiv GetnUniformuiv}
*
* @param bufSize the maximum number of bytes to write to {@code params}
*/
public static native void nglGetnUniformuiv(int program, int location, int bufSize, long params);
/**
* Unsigned version of {@link #glGetnUniformiv GetnUniformiv}.
*
* @param program the program object
* @param location the uniform location
* @param params the buffer in which to place the returned data
*
* @see Reference Page
*/
public static void glGetnUniformuiv(@NativeType("GLuint") int program, @NativeType("GLint") int location, @NativeType("GLfloat *") FloatBuffer params) {
nglGetnUniformuiv(program, location, params.remaining(), memAddress(params));
}
/**
* Unsigned version of {@link #glGetnUniformiv GetnUniformiv}.
*
* @param program the program object
* @param location the uniform location
*
* @see Reference Page
*/
@NativeType("void")
public static float glGetnUniformui(@NativeType("GLuint") int program, @NativeType("GLint") int location) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer params = stack.callocFloat(1);
nglGetnUniformuiv(program, location, 1, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glMinSampleShading ] ---
/** Reference Page */
public static native void glMinSampleShading(@NativeType("GLfloat") float value);
// --- [ glPatchParameteri ] ---
/** Reference Page */
public static native void glPatchParameteri(@NativeType("GLenum") int pname, @NativeType("GLint") int value);
// --- [ glTexParameterIiv ] ---
public static native void nglTexParameterIiv(int target, int pname, long params);
/** Reference Page */
public static void glTexParameterIiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint const *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglTexParameterIiv(target, pname, memAddress(params));
}
/** Reference Page */
public static void glTexParameterIi(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint const *") int param) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.ints(param);
nglTexParameterIiv(target, pname, memAddress(params));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glTexParameterIuiv ] ---
public static native void nglTexParameterIuiv(int target, int pname, long params);
/** Reference Page */
public static void glTexParameterIuiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLuint const *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglTexParameterIuiv(target, pname, memAddress(params));
}
/** Reference Page */
public static void glTexParameterIui(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLuint const *") int param) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.ints(param);
nglTexParameterIuiv(target, pname, memAddress(params));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetTexParameterIiv ] ---
public static native void nglGetTexParameterIiv(int target, int pname, long params);
/** Reference Page */
public static void glGetTexParameterIiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetTexParameterIiv(target, pname, memAddress(params));
}
/** Reference Page */
@NativeType("void")
public static int glGetTexParameterIi(@NativeType("GLenum") int target, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetTexParameterIiv(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetTexParameterIuiv ] ---
public static native void nglGetTexParameterIuiv(int target, int pname, long params);
/** Reference Page */
public static void glGetTexParameterIuiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLuint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetTexParameterIuiv(target, pname, memAddress(params));
}
/** Reference Page */
@NativeType("void")
public static int glGetTexParameterIui(@NativeType("GLenum") int target, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetTexParameterIuiv(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glSamplerParameterIiv ] ---
public static native void nglSamplerParameterIiv(int sampler, int pname, long params);
/** Reference Page */
public static void glSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglSamplerParameterIiv(sampler, pname, memAddress(params));
}
/** Reference Page */
public static void glSamplerParameterIi(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") int param) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.ints(param);
nglSamplerParameterIiv(sampler, pname, memAddress(params));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glSamplerParameterIuiv ] ---
public static native void nglSamplerParameterIuiv(int sampler, int pname, long params);
/** Reference Page */
public static void glSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint const *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglSamplerParameterIuiv(sampler, pname, memAddress(params));
}
/** Reference Page */
public static void glSamplerParameterIui(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint const *") int param) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.ints(param);
nglSamplerParameterIuiv(sampler, pname, memAddress(params));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetSamplerParameterIiv ] ---
public static native void nglGetSamplerParameterIiv(int sampler, int pname, long params);
/** Reference Page */
public static void glGetSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetSamplerParameterIiv(sampler, pname, memAddress(params));
}
/** Reference Page */
@NativeType("void")
public static int glGetSamplerParameterIi(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetSamplerParameterIiv(sampler, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetSamplerParameterIuiv ] ---
public static native void nglGetSamplerParameterIuiv(int sampler, int pname, long params);
/** Reference Page */
public static void glGetSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetSamplerParameterIuiv(sampler, pname, memAddress(params));
}
/** Reference Page */
@NativeType("void")
public static int glGetSamplerParameterIui(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetSamplerParameterIuiv(sampler, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glTexBuffer ] ---
/** Reference Page */
public static native void glTexBuffer(@NativeType("GLenum") int target, @NativeType("GLenum") int internalformat, @NativeType("GLuint") int buffer);
// --- [ glTexBufferRange ] ---
/** Reference Page */
public static native void glTexBufferRange(@NativeType("GLenum") int target, @NativeType("GLenum") int internalformat, @NativeType("GLuint") int buffer, @NativeType("GLintptr") long offset, @NativeType("GLsizeiptr") long size);
// --- [ glTexStorage3DMultisample ] ---
/** Reference Page */
public static native void glTexStorage3DMultisample(@NativeType("GLenum") int target, @NativeType("GLsizei") int samples, @NativeType("GLenum") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLboolean") boolean fixedsamplelocations);
/**
* Array version of: {@link #glDebugMessageControl DebugMessageControl}
*
* @see Reference Page
*/
public static void glDebugMessageControl(@NativeType("GLenum") int source, @NativeType("GLenum") int type, @NativeType("GLenum") int severity, @NativeType("GLuint const *") int[] ids, @NativeType("GLboolean") boolean enabled) {
long __functionAddress = GLES.getICD().glDebugMessageControl;
if (CHECKS) {
check(__functionAddress);
}
callPV(source, type, severity, ids.length, ids, enabled, __functionAddress);
}
/**
* Array version of: {@link #glGetDebugMessageLog GetDebugMessageLog}
*
* @see Reference Page
*/
@NativeType("GLuint")
public static int glGetDebugMessageLog(@NativeType("GLuint") int count, @Nullable @NativeType("GLenum *") int[] sources, @Nullable @NativeType("GLenum *") int[] types, @Nullable @NativeType("GLuint *") int[] ids, @Nullable @NativeType("GLenum *") int[] severities, @Nullable @NativeType("GLsizei *") int[] lengths, @Nullable @NativeType("GLchar *") ByteBuffer messageLog) {
long __functionAddress = GLES.getICD().glGetDebugMessageLog;
if (CHECKS) {
check(__functionAddress);
checkSafe(sources, count);
checkSafe(types, count);
checkSafe(ids, count);
checkSafe(severities, count);
checkSafe(lengths, count);
}
return callPPPPPPI(count, remainingSafe(messageLog), sources, types, ids, severities, lengths, memAddressSafe(messageLog), __functionAddress);
}
/**
* Array version of: {@link #glGetObjectLabel GetObjectLabel}
*
* @see Reference Page
*/
public static void glGetObjectLabel(@NativeType("GLenum") int identifier, @NativeType("GLuint") int name, @Nullable @NativeType("GLsizei *") int[] length, @NativeType("GLchar *") ByteBuffer label) {
long __functionAddress = GLES.getICD().glGetObjectLabel;
if (CHECKS) {
check(__functionAddress);
checkSafe(length, 1);
}
callPPV(identifier, name, label.remaining(), length, memAddress(label), __functionAddress);
}
/**
* Array version of: {@link #glGetObjectPtrLabel GetObjectPtrLabel}
*
* @see Reference Page
*/
public static void glGetObjectPtrLabel(@NativeType("void *") long ptr, @Nullable @NativeType("GLsizei *") int[] length, @NativeType("GLchar *") ByteBuffer label) {
long __functionAddress = GLES.getICD().glGetObjectPtrLabel;
if (CHECKS) {
check(__functionAddress);
check(ptr);
checkSafe(length, 1);
}
callPPPV(ptr, label.remaining(), length, memAddress(label), __functionAddress);
}
/**
* Array version of: {@link #glReadnPixels ReadnPixels}
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") short[] pixels) {
long __functionAddress = GLES.getICD().glReadnPixels;
if (CHECKS) {
check(__functionAddress);
}
callPV(x, y, width, height, format, type, pixels.length << 1, pixels, __functionAddress);
}
/**
* Array version of: {@link #glReadnPixels ReadnPixels}
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") int[] pixels) {
long __functionAddress = GLES.getICD().glReadnPixels;
if (CHECKS) {
check(__functionAddress);
}
callPV(x, y, width, height, format, type, pixels.length << 2, pixels, __functionAddress);
}
/**
* Array version of: {@link #glReadnPixels ReadnPixels}
*
* @see Reference Page
*/
public static void glReadnPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") float[] pixels) {
long __functionAddress = GLES.getICD().glReadnPixels;
if (CHECKS) {
check(__functionAddress);
}
callPV(x, y, width, height, format, type, pixels.length << 2, pixels, __functionAddress);
}
/**
* Array version of: {@link #glGetnUniformfv GetnUniformfv}
*
* @see Reference Page
*/
public static void glGetnUniformfv(@NativeType("GLuint") int program, @NativeType("GLint") int location, @NativeType("GLfloat *") float[] params) {
long __functionAddress = GLES.getICD().glGetnUniformfv;
if (CHECKS) {
check(__functionAddress);
}
callPV(program, location, params.length, params, __functionAddress);
}
/**
* Array version of: {@link #glGetnUniformiv GetnUniformiv}
*
* @see Reference Page
*/
public static void glGetnUniformiv(@NativeType("GLuint") int program, @NativeType("GLint") int location, @NativeType("GLfloat *") float[] params) {
long __functionAddress = GLES.getICD().glGetnUniformiv;
if (CHECKS) {
check(__functionAddress);
}
callPV(program, location, params.length, params, __functionAddress);
}
/**
* Array version of: {@link #glGetnUniformuiv GetnUniformuiv}
*
* @see Reference Page
*/
public static void glGetnUniformuiv(@NativeType("GLuint") int program, @NativeType("GLint") int location, @NativeType("GLfloat *") float[] params) {
long __functionAddress = GLES.getICD().glGetnUniformuiv;
if (CHECKS) {
check(__functionAddress);
}
callPV(program, location, params.length, params, __functionAddress);
}
/**
* Array version of: {@link #glTexParameterIiv TexParameterIiv}
*
* @see Reference Page
*/
public static void glTexParameterIiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint const *") int[] params) {
long __functionAddress = GLES.getICD().glTexParameterIiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(target, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glTexParameterIuiv TexParameterIuiv}
*
* @see Reference Page
*/
public static void glTexParameterIuiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLuint const *") int[] params) {
long __functionAddress = GLES.getICD().glTexParameterIuiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(target, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glGetTexParameterIiv GetTexParameterIiv}
*
* @see Reference Page
*/
public static void glGetTexParameterIiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint *") int[] params) {
long __functionAddress = GLES.getICD().glGetTexParameterIiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(target, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glGetTexParameterIuiv GetTexParameterIuiv}
*
* @see Reference Page
*/
public static void glGetTexParameterIuiv(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLuint *") int[] params) {
long __functionAddress = GLES.getICD().glGetTexParameterIuiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(target, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glSamplerParameterIiv SamplerParameterIiv}
*
* @see Reference Page
*/
public static void glSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") int[] params) {
long __functionAddress = GLES.getICD().glSamplerParameterIiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(sampler, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glSamplerParameterIuiv SamplerParameterIuiv}
*
* @see Reference Page
*/
public static void glSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint const *") int[] params) {
long __functionAddress = GLES.getICD().glSamplerParameterIuiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(sampler, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glGetSamplerParameterIiv GetSamplerParameterIiv}
*
* @see Reference Page
*/
public static void glGetSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint *") int[] params) {
long __functionAddress = GLES.getICD().glGetSamplerParameterIiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(sampler, pname, params, __functionAddress);
}
/**
* Array version of: {@link #glGetSamplerParameterIuiv GetSamplerParameterIuiv}
*
* @see Reference Page
*/
public static void glGetSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint *") int[] params) {
long __functionAddress = GLES.getICD().glGetSamplerParameterIuiv;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(sampler, pname, params, __functionAddress);
}
}