public static void glDrawTransformFeedbackStreamInstanced( int mode, int id, int stream, int primcount) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glDrawTransformFeedbackStreamInstanced; BufferChecks.checkFunctionAddress(function_pointer); nglDrawTransformFeedbackStreamInstanced(mode, id, stream, primcount, function_pointer); }
public static void glVertexArrayRangeAPPLE(ByteBuffer pointer) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glVertexArrayRangeAPPLE; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pointer); nglVertexArrayRangeAPPLE(pointer.remaining(), pointer, pointer.position(), function_pointer); }
public static void glTexStorage3D( int target, int levels, int internalformat, int width, int height, int depth) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glTexStorage3D; BufferChecks.checkFunctionAddress(function_pointer); nglTexStorage3D(target, levels, internalformat, width, height, depth, function_pointer); }
public static void glPointParameterEXT(int pname, FloatBuffer pfParams) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glPointParameterfvEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pfParams, 4); nglPointParameterfvEXT(pname, MemoryUtil.getAddress(pfParams), function_pointer); }
public static void glCopyBufferSubData( int readTarget, int writeTarget, long readOffset, long writeOffset, long size) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.ARB_copy_buffer_glCopyBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size, function_pointer); }
public static void glGetColorTableParameterEXT(int target, int pname, IntBuffer params) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetColorTableParameterivEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetColorTableParameterivEXT(target, pname, MemoryUtil.getAddress(params), function_pointer); }
public static void glGetColorTableEXT(int target, int format, int type, ShortBuffer data) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetColorTableEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetColorTableEXT(target, format, type, MemoryUtil.getAddress(data), function_pointer); }
public static void glGetCompressedTexImageARB(int target, int lod, long pImg_buffer_offset) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetCompressedTexImageARB; BufferChecks.checkFunctionAddress(function_pointer); GLChecks.ensurePackPBOenabled(caps); nglGetCompressedTexImageARBBO(target, lod, pImg_buffer_offset, function_pointer); }
public static void glBindImageTexture( int unit, int texture, int level, boolean layered, int layer, int access, int format) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glBindImageTexture; BufferChecks.checkFunctionAddress(function_pointer); nglBindImageTexture(unit, texture, level, layered, layer, access, format, function_pointer); }
Tessellator(int par1) { vertexCount = 0; hasColor = false; hasTexture = false; hasBrightness = false; hasNormals = false; rawBufferIndex = 0; addedVertices = 0; isColorDisabled = false; isDrawing = false; useVBO = false; vboIndex = 0; vboCount = 10; bufferSize = par1; byteBuffer = GLAllocation.createDirectByteBuffer(par1 * 4); intBuffer = byteBuffer.asIntBuffer(); floatBuffer = byteBuffer.asFloatBuffer(); shortBuffer = byteBuffer.asShortBuffer(); rawBuffer = new int[par1]; useVBO = tryVBO && GLContext.getCapabilities().GL_ARB_vertex_buffer_object; if (useVBO) { vertexBuffers = GLAllocation.createDirectIntBuffer(vboCount); ARBVertexBufferObject.glGenBuffersARB(vertexBuffers); } }
public static void glProgramLocalParameterI4uNV(int target, int index, IntBuffer params) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.NV_gpu_program4_glProgramLocalParameterI4uivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); params = NondirectBufferWrapper.wrapBuffer(params, 4); nglProgramLocalParameterI4uivNV(target, index, params, params.position(), function_pointer); }
public Tessellator(int p_i52_1_) { renderingChunk = false; defaultTexture = true; autoGrow = true; subTessellators = new Tessellator[0]; subTextures = new int[0]; terrainTexture = 0; textureUpdateTime = 0L; field_1505_h = 0; field_1501_l = false; field_1500_m = false; field_35838_p = false; field_1499_n = false; field_1498_o = 0; field_1497_p = 0; field_1495_q = false; field_1488_w = false; field_1487_x = false; field_1485_z = 0; field_1496_A = 10; field_1494_B = p_i52_1_; field_1509_d = GLAllocation.func_1127_b(p_i52_1_ * 4); field_1508_e = field_1509_d.asIntBuffer(); field_1507_f = field_1509_d.asFloatBuffer(); field_35836_g = field_1509_d.asShortBuffer(); field_1506_g = new int[p_i52_1_]; field_1487_x = field_1510_c && GLContext.getCapabilities().GL_ARB_vertex_buffer_object; if (field_1487_x) { field_1486_y = GLAllocation.func_1125_c(field_1496_A); ARBVertexBufferObject.glGenBuffersARB(field_1486_y); } }
public static void glCompressedTexSubImage3DARB( int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int pData_imageSize, long pData_buffer_offset) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glCompressedTexSubImage3DARB; BufferChecks.checkFunctionAddress(function_pointer); GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage3DARBBO( target, level, xoffset, yoffset, zoffset, width, height, depth, format, pData_imageSize, pData_buffer_offset, function_pointer); }
public static void glGetQueryARB(int target, int pname, IntBuffer params) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetQueryivARB; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryivARB(target, pname, MemoryUtil.getAddress(params), function_pointer); }
public static boolean glIsQueryARB(int id) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glIsQueryARB; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsQueryARB(id, function_pointer); return __result; }
public static void glVertexAttribI4uEXT(int index, ShortBuffer v) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glVertexAttribI4usvEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(v, 4); nglVertexAttribI4usvEXT(index, v, v.position(), function_pointer); }
public static void glUniform4uEXT(int location, IntBuffer value) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glUniform4uivEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(value); nglUniform4uivEXT(location, value.remaining() >> 2, value, value.position(), function_pointer); }
public static void glCompressedTexSubImage3DARB( int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer pData) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glCompressedTexSubImage3DARB; BufferChecks.checkFunctionAddress(function_pointer); GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage3DARB( target, level, xoffset, yoffset, zoffset, width, height, depth, format, pData.remaining(), MemoryUtil.getAddress(pData), function_pointer); }
/** Overloads glBindFragDataLocationEXT. */ public static void glBindFragDataLocationEXT(int program, int colorNumber, CharSequence name) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glBindFragDataLocationEXT; BufferChecks.checkFunctionAddress(function_pointer); nglBindFragDataLocationEXT( program, colorNumber, APIUtil.getBufferNT(name), 0, function_pointer); }
public static void glProgramLocalParameterI4uiNV( int target, int index, int x, int y, int z, int w) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.NV_gpu_program4_glProgramLocalParameterI4uiNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramLocalParameterI4uiNV(target, index, x, y, z, w, function_pointer); }
public static void glWeightARB(DoubleBuffer pWeights) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glWeightdvARB; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightdvARB(pWeights.remaining(), MemoryUtil.getAddress(pWeights), function_pointer); }
public static void glGetUniformuEXT(int program, int location, IntBuffer params) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetUniformuivEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetUniformuivEXT(program, location, params, params.position(), function_pointer); }
public static void glDeleteQueriesARB(IntBuffer ids) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glDeleteQueriesARB; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(ids); nglDeleteQueriesARB(ids.remaining(), MemoryUtil.getAddress(ids), function_pointer); }
public static void glGetVertexAttribIuEXT(int index, int pname, IntBuffer params) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetVertexAttribIuivEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribIuivEXT(index, pname, params, params.position(), function_pointer); }
/** Overloads glGenQueriesARB. */ public static int glGenQueriesARB() { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGenQueriesARB; BufferChecks.checkFunctionAddress(function_pointer); IntBuffer ids = APIUtil.getBufferInt(caps); nglGenQueriesARB(1, MemoryUtil.getAddress(ids), function_pointer); return ids.get(0); }
public static void glProgramEnvParametersI4NV(int target, int index, IntBuffer params) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.NV_gpu_program4_glProgramEnvParametersI4ivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); params = NondirectBufferWrapper.wrapDirect(params); nglProgramEnvParametersI4ivNV( target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); }
public static void glWeightPointerARB( int size, int type, int stride, long pPointer_buffer_offset) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glWeightPointerARB; BufferChecks.checkFunctionAddress(function_pointer); GLChecks.ensureArrayVBOenabled(caps); nglWeightPointerARBBO(size, type, stride, pPointer_buffer_offset, function_pointer); }
/** Overloads glGetFragDataLocationEXT. */ public static int glGetFragDataLocationEXT(int program, CharSequence name) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glGetFragDataLocationEXT; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGetFragDataLocationEXT(program, APIUtil.getBufferNT(name), 0, function_pointer); return __result; }
public static void glBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glBindFragDataLocationEXT; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkNullTerminated(name); nglBindFragDataLocationEXT(program, colorNumber, name, name.position(), function_pointer); }
public static void glVertexAttribIPointerEXT( int index, int size, int type, int stride, long buffer_buffer_offset) { ContextCapabilities caps = GLContext.getCapabilities(); long function_pointer = caps.glVertexAttribIPointerEXT; BufferChecks.checkFunctionAddress(function_pointer); GLChecks.ensureArrayVBOenabled(caps); nglVertexAttribIPointerEXTBO(index, size, type, stride, buffer_buffer_offset, function_pointer); }