/* MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; import org.lwjgl.*; import java.nio.*; public final class GL21 { /** * Returned by the <type> parameter of GetActiveAttribARB. */ public static final int GL_FLOAT_MAT2x3 = 0x8B65, GL_FLOAT_MAT2x4 = 0x8B66, GL_FLOAT_MAT3x2 = 0x8B67, GL_FLOAT_MAT3x4 = 0x8B68, GL_FLOAT_MAT4x2 = 0x8B69, GL_FLOAT_MAT4x3 = 0x8B6A; /** * Accepted by the <target> parameters of BindBuffer, BufferData, * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, * GetBufferParameteriv, and GetBufferPointerv. */ public static final int GL_PIXEL_PACK_BUFFER = 0x88EB, GL_PIXEL_UNPACK_BUFFER = 0x88EC; /** * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, * GetFloatv, and GetDoublev. */ public static final int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED, GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF; /** * Accepted by the <internalformat> parameter of TexImage1D, TexImage2D, * TexImage3D, CopyTexImage1D, CopyTexImage2D. */ public static final int GL_SRGB = 0x8C40, GL_SRGB8 = 0x8C41, GL_SRGB_ALPHA = 0x8C42, GL_SRGB8_ALPHA8 = 0x8C43, GL_SLUMINANCE_ALPHA = 0x8C44, GL_SLUMINANCE8_ALPHA8 = 0x8C45, GL_SLUMINANCE = 0x8C46, GL_SLUMINANCE8 = 0x8C47, GL_COMPRESSED_SRGB = 0x8C48, GL_COMPRESSED_SRGB_ALPHA = 0x8C49, GL_COMPRESSED_SLUMINANCE = 0x8C4A, GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B; /** * Accepted by the <pname> parameter of GetIntegerv and GetFloatv. */ public static final int GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845F; private GL21() {} public static void glUniformMatrix2x3(int location, boolean transpose, FloatBuffer matrices) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniformMatrix2x3fv; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix2x3fv(location, matrices.remaining() / (2 * 3), transpose, MemoryUtil.getAddress(matrices), function_pointer); } static native void nglUniformMatrix2x3fv(int location, int matrices_count, boolean transpose, long matrices, long function_pointer); public static void glUniformMatrix3x2(int location, boolean transpose, FloatBuffer matrices) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniformMatrix3x2fv; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix3x2fv(location, matrices.remaining() / (3 * 2), transpose, MemoryUtil.getAddress(matrices), function_pointer); } static native void nglUniformMatrix3x2fv(int location, int matrices_count, boolean transpose, long matrices, long function_pointer); public static void glUniformMatrix2x4(int location, boolean transpose, FloatBuffer matrices) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniformMatrix2x4fv; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix2x4fv(location, matrices.remaining() >> 3, transpose, MemoryUtil.getAddress(matrices), function_pointer); } static native void nglUniformMatrix2x4fv(int location, int matrices_count, boolean transpose, long matrices, long function_pointer); public static void glUniformMatrix4x2(int location, boolean transpose, FloatBuffer matrices) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniformMatrix4x2fv; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix4x2fv(location, matrices.remaining() >> 3, transpose, MemoryUtil.getAddress(matrices), function_pointer); } static native void nglUniformMatrix4x2fv(int location, int matrices_count, boolean transpose, long matrices, long function_pointer); public static void glUniformMatrix3x4(int location, boolean transpose, FloatBuffer matrices) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniformMatrix3x4fv; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix3x4fv(location, matrices.remaining() / (3 * 4), transpose, MemoryUtil.getAddress(matrices), function_pointer); } static native void nglUniformMatrix3x4fv(int location, int matrices_count, boolean transpose, long matrices, long function_pointer); public static void glUniformMatrix4x3(int location, boolean transpose, FloatBuffer matrices) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniformMatrix4x3fv; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix4x3fv(location, matrices.remaining() / (4 * 3), transpose, MemoryUtil.getAddress(matrices), function_pointer); } static native void nglUniformMatrix4x3fv(int location, int matrices_count, boolean transpose, long matrices, long function_pointer); }