lwjgl2-arm64/src/java/org/lwjgl/opengl/GL.java

1519 lines
66 KiB
Java
Raw Normal View History

2002-08-15 18:19:01 +02:00
/*
2002-12-21 13:37:20 +01:00
* Copyright (c) 2002 Lightweight Java Game Library Project
2002-08-15 18:19:01 +02:00
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
2002-08-09 12:56:30 +02:00
*
2002-08-15 18:19:01 +02:00
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'Light Weight Java Game Library' nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2002-08-09 12:56:30 +02:00
*/
2002-08-15 18:19:01 +02:00
2002-08-09 12:56:30 +02:00
package org.lwjgl.opengl;
2003-06-24 14:24:55 +02:00
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.ShortBuffer;
2003-06-24 14:24:55 +02:00
import java.nio.FloatBuffer;
import java.nio.Buffer;
2002-08-09 12:56:30 +02:00
/**
2002-08-15 18:19:01 +02:00
* $Id$
*
2002-08-09 12:56:30 +02:00
* The GL itself, with all supported extensions, based on OpenGL 1.4.
*
2002-08-15 18:19:01 +02:00
* @author cix_foo <cix_foo@users.sourceforge.net>
* @version $Revision$
2002-08-09 12:56:30 +02:00
*/
public class GL extends CoreGL14 implements GLConstants {
2003-06-24 14:24:55 +02:00
public static native void glActiveStencilFaceEXT(int face);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glActiveTextureARB(int texture);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glAlphaFragmentOp1ATI(
2002-08-16 23:53:02 +02:00
int op,
int dst,
int dstMod,
int arg1,
int arg1Rep,
int arg1Mod);
2003-06-24 14:24:55 +02:00
public static native void glAlphaFragmentOp2ATI(
2002-08-16 23:53:02 +02:00
int op,
int dst,
int dstMod,
int arg1,
int arg1Rep,
int arg1Mod,
int arg2,
int arg2Rep,
int arg2Mod);
2003-06-24 14:24:55 +02:00
public static native void glAlphaFragmentOp3ATI(
2002-08-16 23:53:02 +02:00
int op,
int dst,
int dstMod,
int arg1,
int arg1Rep,
int arg1Mod,
int arg2,
int arg2Rep,
int arg2Mod,
int arg3,
int arg3Rep,
int arg3Mod);
public static boolean glAreProgramsResidentNV(int n, IntBuffer piIDs, ByteBuffer pbResidences) {
return nglAreProgramsResidentNV(n, piIDs, piIDs.position(), pbResidences, pbResidences.position());
}
private static native boolean nglAreProgramsResidentNV(int n, IntBuffer piIDs, int piIDs_offset, ByteBuffer pbResidences, int pbResidences_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glArrayObjectATI(
2002-08-16 23:53:02 +02:00
int array,
int size,
int type,
int stride,
int buffer,
int offset);
2003-06-24 14:24:55 +02:00
public static native void glBeginFragmentShaderATI();
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBeginOcclusionQueryNV(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBeginVertexShaderEXT();
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBindFragmentShaderATI(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glBindLightParameterEXT(int light, int value);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glBindMaterialParameterEXT(int face, int value);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glBindParameterEXT(int value);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBindProgramARB(int target, int program);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBindProgramNV(int target, int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glBindTexGenParameterEXT(int unit, int coord, int value);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glBindTextureUnitParameterEXT(int unit, int value);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBindVertexShaderEXT(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glClientActiveTextureARB(int texture);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glClientActiveVertexStreamATI(int stream);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glColorFragmentOp1ATI(
2002-08-16 23:53:02 +02:00
int op,
int dst,
int dstMask,
int dstMod,
int arg1,
int arg1Rep,
int arg1Mod);
2003-06-24 14:24:55 +02:00
public static native void glColorFragmentOp2ATI(
2002-08-16 23:53:02 +02:00
int op,
int dst,
int dstMask,
int dstMod,
int arg1,
int arg1Rep,
int arg1Mod,
int arg2,
int arg2Rep,
int arg2Mod);
2003-06-24 14:24:55 +02:00
public static native void glColorFragmentOp3ATI(
2002-08-16 23:53:02 +02:00
int op,
int dst,
int dstMask,
int dstMod,
int arg1,
int arg1Rep,
int arg1Mod,
int arg2,
int arg2Rep,
int arg2Mod,
int arg3,
int arg3Rep,
int arg3Mod);
2003-06-24 14:24:55 +02:00
public static native void glCombinerInputNV(
2002-08-16 23:53:02 +02:00
int stage,
int portion,
int variable,
int input,
int mapping,
int componentUsage);
2003-06-24 14:24:55 +02:00
public static native void glCombinerOutputNV(
2002-08-16 23:53:02 +02:00
int stage,
int portion,
int abOutput,
int cdOutput,
int sumOutput,
int scale,
int bias,
boolean abDotProduct,
boolean cdDotProduct,
boolean muxSum);
2003-06-24 14:24:55 +02:00
public static native void glCombinerParameterfNV(int pname, float param);
2002-08-16 23:53:02 +02:00
public static void glCombinerParameterNV(int pname, FloatBuffer pfParams) {
nglCombinerParameterfvNV(pname, pfParams, pfParams.position());
}
private static native void nglCombinerParameterfvNV(int pname, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCombinerParameteriNV(int pname, int param);
2002-08-16 23:53:02 +02:00
public static void glCombinerParameterNV(int pname, IntBuffer piParams) {
nglCombinerParameterivNV(pname, piParams, piParams.position());
}
private static native void nglCombinerParameterivNV(int pname, IntBuffer piParams, int piParams_offset);
public static void glCombinerStageParameterNV(int stage, int pname, FloatBuffer pfParams) {
nglCombinerStageParameterfvNV(stage, pname, pfParams, pfParams.position());
}
private static native void nglCombinerStageParameterfvNV(int stage, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) {
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position());
}
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer pData) {
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()<<1);
}
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer pData) {
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()<<2);
}
private static native void nglCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, Buffer pData, int pData_offset);
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer pData) {
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position());
}
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer pData) {
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position()<<1);
}
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer pData) {
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position()<<2);
}
private static native void nglCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer pData, int pData_offset);
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) {
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position());
}
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) {
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position()<<1);
}
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer pData) {
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position()<<2);
}
private static native void nglCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_offset);
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, ByteBuffer pData) {
nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position());
}
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, ShortBuffer pData) {
nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position()<<1);
}
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, IntBuffer pData) {
nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position()<<2);
}
private static native void nglCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, Buffer pData, int pData_offset);
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, ByteBuffer pData) {
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position());
}
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, ShortBuffer pData) {
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position()<<1);
}
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, IntBuffer pData) {
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position()<<2);
}
private static native void nglCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, Buffer pData, int pData_offset);
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) {
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position());
}
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) {
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position()<<1);
}
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, IntBuffer pData) {
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position()<<2);
}
private static native void nglCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCurrentPaletteMatrixARB(int index);
2002-08-16 23:53:02 +02:00
public static void glDeleteFencesNV(int n, IntBuffer piFences) {
nglDeleteFencesNV(n, piFences, piFences.position());
}
private static native void nglDeleteFencesNV(int n, IntBuffer piFences, int piFences_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDeleteFragmentShaderATI(int id);
2002-08-16 23:53:02 +02:00
public static void glDeleteOcclusionQueriesNV(int n, IntBuffer piIDs) {
nglDeleteOcclusionQueriesNV(n, piIDs, piIDs.position());
}
private static native void nglDeleteOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_offset);
2002-08-16 23:53:02 +02:00
public static void glDeleteProgramsARB(int n, IntBuffer piPrograms) {
nglDeleteProgramsARB(n, piPrograms, piPrograms.position());
}
private static native void nglDeleteProgramsARB(int n, IntBuffer piPrograms, int piPrograms_offset);
2002-08-16 23:53:02 +02:00
public static void glDeleteProgramsNV(int n, IntBuffer piIDs) {
nglDeleteProgramsNV(n, piIDs, piIDs.position());
}
private static native void nglDeleteProgramsNV(int n, IntBuffer piIDs, int piIDs_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDeleteVertexShaderEXT(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDisableVariantClientStateEXT(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDisableVertexAttribArrayARB(int index);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDrawElementArrayATI(int mode, int count);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDrawRangeElementArrayATI(
2002-08-16 23:53:02 +02:00
int mode,
int start,
int end,
int count);
public static void glDrawRangeElementsEXT(int mode, int start, int end, int count, ByteBuffer pIndices) {
nglDrawRangeElementsEXT(mode, start, end, count, GL_UNSIGNED_BYTE, pIndices, pIndices.position());
}
public static void glDrawRangeElementsEXT(int mode, int start, int end, int count, ShortBuffer pIndices) {
nglDrawRangeElementsEXT(mode, start, end, count, GL_UNSIGNED_SHORT, pIndices, pIndices.position()<<1);
}
public static void glDrawRangeElementsEXT(int mode, int start, int end, int count, IntBuffer pIndices) {
nglDrawRangeElementsEXT(mode, start, end, count, GL_UNSIGNED_INT, pIndices, pIndices.position()<<2);
}
private static native void nglDrawRangeElementsEXT(int mode, int start, int end, int count, int type, Buffer pIndices, int pIndices_offset);
public static void glElementPointerATI(ByteBuffer pPointer) {
nglElementPointerATI(GL_UNSIGNED_BYTE, pPointer, pPointer.position());
}
public static void glElementPointerATI(ShortBuffer pPointer) {
nglElementPointerATI(GL_UNSIGNED_SHORT, pPointer, pPointer.position()<<1);
}
public static void glElementPointerATI(IntBuffer pPointer) {
nglElementPointerATI(GL_UNSIGNED_INT, pPointer, pPointer.position()<<2);
}
private static native void nglElementPointerATI(int type, Buffer pPointer, int pPointer_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glEnableVariantClientStateEXT(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glEnableVertexAttribArrayARB(int index);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glEndFragmentShaderATI();
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glEndOcclusionQueryNV();
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glEndVertexShaderEXT();
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glEvalMapsNV(int target, int mode);
2002-08-16 23:53:02 +02:00
public static void glExecuteProgramNV(int target, int id, FloatBuffer pfParams) {
nglExecuteProgramNV(target, id, pfParams, pfParams.position());
}
private static native void nglExecuteProgramNV(int target, int id, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glExtractComponentEXT(int res, int src, int num);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glFinalCombinerInputNV(
2002-08-16 23:53:02 +02:00
int variable,
int input,
int mapping,
int componentUsage);
2003-06-24 14:24:55 +02:00
public static native void glFinishFenceNV(int fence);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glFlushVertexArrayRangeNV();
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glFogCoordfEXT(float coord);
2002-08-16 23:53:02 +02:00
public static void glFogCoordPointerEXT(int stride, FloatBuffer pPointer) {
nglFogCoordPointerEXT(GL_FLOAT, stride, pPointer, pPointer.position()<<2);
}
private static native void nglFogCoordPointerEXT(int type, int stride, Buffer pPointer, int pPointer_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glFreeObjectBufferATI(int buffer);
2002-08-16 23:53:02 +02:00
public static void glGenFencesNV(int n, IntBuffer piFences) {
nglGenFencesNV(n, piFences, piFences.position());
}
private static native void nglGenFencesNV(int n, IntBuffer piFences, int piFences_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glGenFragmentShadersATI(int range);
2002-08-16 23:53:02 +02:00
public static void glGenOcclusionQueriesNV(int n, IntBuffer piIDs) {
nglGenOcclusionQueriesNV(n, piIDs, piIDs.position());
}
private static native void nglGenOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_offset);
2002-08-16 23:53:02 +02:00
public static void glGenProgramsARB(int n, IntBuffer piPrograms) {
nglGenProgramsARB(n, piPrograms, piPrograms.position());
}
private static native void nglGenProgramsARB(int n, IntBuffer piPrograms, int piPrograms_offset);
2002-08-16 23:53:02 +02:00
public static void glGenProgramsNV(int n, IntBuffer piIDs) {
nglGenProgramsNV(n, piIDs, piIDs.position());
}
private static native void nglGenProgramsNV(int n, IntBuffer piIDs, int piIDs_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glGenSymbolsEXT(
2002-08-16 23:53:02 +02:00
int dataType,
int storageType,
int range,
int components);
2003-06-24 14:24:55 +02:00
public static native int glGenVertexShadersEXT(int range);
2002-08-16 23:53:02 +02:00
public static void glGetArrayObjectATI(int array, int pname, FloatBuffer pfParams) {
nglGetArrayObjectfvATI(array, pname, pfParams, pfParams.position());
}
private static native void nglGetArrayObjectfvATI(int array, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetArrayObjectATI(int array, int pname, IntBuffer piParams) {
nglGetArrayObjectivATI(array, pname, piParams, piParams.position());
}
private static native void nglGetArrayObjectivATI(int array, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, FloatBuffer pfParams) {
nglGetCombinerInputParameterfvNV(stage, portion, variable, pname, pfParams, pfParams.position());
}
private static native void nglGetCombinerInputParameterfvNV(int stage, int portion, int variable, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, IntBuffer piParams) {
nglGetCombinerInputParameterivNV(stage, portion, variable, pname, piParams, piParams.position());
}
private static native void nglGetCombinerInputParameterivNV(int stage, int portion, int variable, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, FloatBuffer pfParams) {
nglGetCombinerOutputParameterfvNV(stage, portion, pname, pfParams, pfParams.position());
}
private static native void nglGetCombinerOutputParameterfvNV(int stage, int portion, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, IntBuffer piParams) {
nglGetCombinerOutputParameterivNV(stage, portion, pname, piParams, piParams.position());
}
private static native void nglGetCombinerOutputParameterivNV(int stage, int portion, int pname, IntBuffer piParams, int pfParams_offset);
public static void glGetCombinerStageParameterNV(int stage, int pname, FloatBuffer pfParams) {
nglGetCombinerStageParameterfvNV(stage, pname, pfParams, pfParams.position());
}
private static native void nglGetCombinerStageParameterfvNV(int stage, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) {
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position());
}
public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) {
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position()<<1);
}
public static void glGetCompressedTexImageARB(int target, int lod, IntBuffer pImg) {
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position()<<2);
}
private static native void nglGetCompressedTexImageARB(int target, int lod, Buffer pImg, int pImg_offset);
public static void glGetFenceNV(int fence, int pname, IntBuffer piParams) {
nglGetFenceivNV(fence, pname, piParams, piParams.position());
}
private static native void nglGetFenceivNV(int fence, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetFinalCombinerInputParameterNV(int variable, int pname, FloatBuffer pfParams) {
nglGetFinalCombinerInputParameterfvNV(variable, pname, pfParams, pfParams.position());
}
private static native void nglGetFinalCombinerInputParameterfvNV(int variable, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetFinalCombinerInputParameterNV(int variable, int pname, IntBuffer piParams) {
nglGetFinalCombinerInputParameterivNV(variable, pname, piParams, piParams.position());
}
private static native void nglGetFinalCombinerInputParameterivNV(int variable, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) {
nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position());
}
private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset);
public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pfData) {
nglGetInvariantFloatvEXT(id, value, pfData, pfData.position());
}
private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset);
public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer piData) {
nglGetInvariantIntegervEXT(id, value, piData, piData.position());
}
private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset);
public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) {
nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position());
}
private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset);
public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pfData) {
nglGetLocalConstantFloatvEXT(id, value, pfData, pfData.position());
}
private static native void nglGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset);
public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer piData) {
nglGetLocalConstantIntegervEXT(id, value, piData, piData.position());
}
private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset);
public static void glGetMapAttribParameterNV(int target, int index, int pname, FloatBuffer pfParams) {
nglGetMapAttribParameterfvNV(target, index, pname, pfParams, pfParams.position());
}
private static native void nglGetMapAttribParameterfvNV(int target, int index, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetMapAttribParameterNV(int target, int index, int pname, IntBuffer piParams) {
nglGetMapAttribParameterivNV(target, index, pname, piParams, piParams.position());
}
private static native void nglGetMapAttribParameterivNV(int target, int index, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, FloatBuffer pPoints) {
nglGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints, pPoints.position()<<2);
}
private static native void nglGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, Buffer pPoints, int pPoints_offset);
public static void glGetMapParameterNV(int target, int pname, FloatBuffer pfParams) {
nglGetMapParameterfvNV(target, pname, pfParams, pfParams.position());
}
private static native void nglGetMapParameterfvNV(int target, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetMapParameterNV(int target, int pname, IntBuffer piParams) {
nglGetMapParameterivNV(target, pname, piParams, piParams.position());
}
private static native void nglGetMapParameterivNV(int target, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetObjectBufferATI(int buffer, int pname, FloatBuffer pfParams) {
nglGetObjectBufferfvATI(buffer, pname, pfParams, pfParams.position());
}
private static native void nglGetObjectBufferfvATI(int buffer, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetObjectBufferATI(int buffer, int pname, IntBuffer piParams) {
nglGetObjectBufferivATI(buffer, pname, piParams, piParams.position());
}
private static native void nglGetObjectBufferivATI(int buffer, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetOcclusionQueryNV(int id, int pname, IntBuffer piParams) {
nglGetOcclusionQueryivNV(id, pname, piParams, piParams.position());
}
private static native void nglGetOcclusionQueryivNV(int id, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetOcclusionQueryuNV(int id, int pname, IntBuffer piParams) {
nglGetOcclusionQueryuivNV(id, pname, piParams, piParams.position());
}
private static native void nglGetOcclusionQueryuivNV(int id, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetProgramEnvParameterARB(int target, int index, FloatBuffer pfParams) {
nglGetProgramEnvParameterfvARB(target, index, pfParams, pfParams.position());
}
private static native void nglGetProgramEnvParameterfvARB(int target, int index, FloatBuffer pfParams, int pfParams_offset);
public static void glGetProgramARB(int target, int pname, IntBuffer piParams) {
nglGetProgramivARB(target, pname, piParams, piParams.position());
}
private static native void nglGetProgramivARB(int target, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetProgramNV(int id, int pname, IntBuffer piParams) {
nglGetProgramivNV(id, pname, piParams, piParams.position());
}
private static native void nglGetProgramivNV(int id, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetProgramLocalParameterARB(int target, int index, FloatBuffer pfParams) {
nglGetProgramLocalParameterfvARB(target, index, pfParams, pfParams.position());
}
private static native void nglGetProgramLocalParameterfvARB(int target, int index, FloatBuffer pfParams, int pfParams_offset);
public static void glGetProgramParameterNV(int target, int index, int pname, FloatBuffer pfParams) {
nglGetProgramParameterfvNV(target, index, pname, pfParams, pfParams.position());
}
private static native void nglGetProgramParameterfvNV(int target, int index, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glGetProgramStringARB(int target, int pname, ByteBuffer pString) {
nglGetProgramStringARB(target, pname, pString, pString.position());
}
private static native void nglGetProgramStringARB(int target, int pname, Buffer pString, int pString_offset);
public static void glGetProgramStringNV(int id, int pname, ByteBuffer pProgram) {
nglGetProgramStringNV(id, pname, pProgram, pProgram.position());
}
private static native void nglGetProgramStringNV(int id, int pname, ByteBuffer pProgram, int pProgram_offset);
public static void glGetTexBumpParameterATI(int pname, FloatBuffer pfParam) {
nglGetTexBumpParameterfvATI(pname, pfParam, pfParam.position());
}
private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer pfParam, int pfParam_offset);
public static void glGetTexBumpParameterATI(int pname, IntBuffer piParam) {
nglGetTexBumpParameterivATI(pname, piParam, piParam.position());
}
private static native void nglGetTexBumpParameterivATI(int pname, IntBuffer piParam, int piParam_offset);
public static void glGetTrackMatrixNV(int target, int address, int pname, IntBuffer piParams) {
nglGetTrackMatrixivNV(target, address, pname, piParams, piParams.position());
}
private static native void nglGetTrackMatrixivNV(int target, int address, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetVariantArrayObjectATI(int id, int pname, FloatBuffer pfParams) {
nglGetVariantArrayObjectfvATI(id, pname, pfParams, pfParams.position());
}
private static native void nglGetVariantArrayObjectfvATI(int id, int pname, FloatBuffer pfParams, int pfParams_offset_offset);
public static void glGetVariantArrayObjectATI(int id, int pname, IntBuffer piParams) {
nglGetVariantArrayObjectivATI(id, pname, piParams, piParams.position());
}
private static native void nglGetVariantArrayObjectivATI(int id, int pname, IntBuffer piParams, int piParams_offset);
public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) {
nglGetVariantBooleanvEXT(id, value, pbData, pbData.position());
}
private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset);
public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pfData) {
nglGetVariantFloatvEXT(id, value, pfData, pfData.position());
}
private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset);
public static void glGetVariantIntegerEXT(int id, int value, IntBuffer piData) {
nglGetVariantIntegervEXT(id, value, piData, piData.position());
}
private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset);
2002-08-16 23:53:02 +02:00
public static native ByteBuffer glGetVariantPointerEXT(int id, int value, int size);
2002-08-16 23:53:02 +02:00
public static void glGetVertexAttribARB(int index, int pname, FloatBuffer pfParams) {
nglGetVertexAttribfvARB(index, pname, pfParams, pfParams.position());
}
private static native void nglGetVertexAttribfvARB(int index, int pname, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
public static void glGetVertexAttribNV(int index, int pname, FloatBuffer pfParams) {
nglGetVertexAttribfvNV(index, pname, pfParams, pfParams.position());
}
private static native void nglGetVertexAttribfvNV(int index, int pname, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
public static void glGetVertexAttribARB(int index, int pname, IntBuffer piParams) {
nglGetVertexAttribivARB(index, pname, piParams, piParams.position());
}
private static native void nglGetVertexAttribivARB(int index, int pname, IntBuffer piParams, int piParams_offset);
2002-08-16 23:53:02 +02:00
public static void glGetVertexAttribNV(int index, int pname, IntBuffer piParams) {
nglGetVertexAttribivNV(index, pname, piParams, piParams.position());
}
private static native void nglGetVertexAttribivNV(int index, int pname, IntBuffer piParams, int piParams_offset);
2002-08-16 23:53:02 +02:00
public static native ByteBuffer glGetVertexAttribPointerARB(
2002-08-16 23:53:02 +02:00
int index,
int pname,
2003-06-24 14:24:55 +02:00
int size);
2002-08-16 23:53:02 +02:00
public static native ByteBuffer glGetVertexAttribPointerNV(
2002-08-16 23:53:02 +02:00
int index,
int pname,
2003-06-24 14:24:55 +02:00
int size);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glInsertComponentEXT(int res, int src, int num);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native boolean glIsFenceNV(int fence);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native boolean glIsObjectBufferATI(int buffer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native boolean glIsOcclusionQueryNV(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native boolean glIsProgramARB(int program);
2002-08-16 23:53:02 +02:00
// #ifdef _WIN32
2003-06-24 14:24:55 +02:00
public static native boolean glIsProgramNV(int id);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native boolean glIsVariantEnabledEXT(int id, int cap);
2002-08-16 23:53:02 +02:00
public static void glLoadProgramNV(int target, int id, int len, ByteBuffer pProgram) {
nglLoadProgramNV(target, id, len, pProgram, pProgram.position());
}
private static native void nglLoadProgramNV(int target, int id, int len, ByteBuffer pProgram, int pProgram_offset);
2002-08-16 23:53:02 +02:00
public static void glLoadTransposeMatrixfARB(FloatBuffer pfMtx) {
nglLoadTransposeMatrixfARB(pfMtx, pfMtx.position());
}
private static native void nglLoadTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glLockArraysEXT(int first, int count);
2002-08-16 23:53:02 +02:00
public static void glMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, FloatBuffer pPoints) {
nglMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints, pPoints.position()<<2);
}
private static native void nglMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, Buffer pPoints, int pPoints_offset);
public static void glMapParameterNV(int target, int pname, FloatBuffer pfParams) {
nglMapParameterfvNV(target, pname, pfParams, pfParams.position());
}
private static native void nglMapParameterfvNV(int target, int pname, FloatBuffer pfParams, int pfParams_offset);
public static void glMapParameterNV(int target, int pname, IntBuffer piParams) {
nglMapParameterivNV(target, pname, piParams, piParams.position());
}
private static native void nglMapParameterivNV(int target, int pname, IntBuffer piParams, int piParams_offset);
public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) {
nglMatrixIndexPointerARB(size, GL_UNSIGNED_BYTE, stride, pPointer, pPointer.position());
}
public static void glMatrixIndexPointerARB(int size, int stride, ShortBuffer pPointer) {
nglMatrixIndexPointerARB(size, GL_UNSIGNED_SHORT, stride, pPointer, pPointer.position()<<1);
}
public static void glMatrixIndexPointerARB(int size, int stride, IntBuffer pPointer) {
nglMatrixIndexPointerARB(size, GL_UNSIGNED_INT, stride, pPointer, pPointer.position()<<2);
}
private static native void nglMatrixIndexPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_offset);
public static void glMatrixIndexuARB(int size, ByteBuffer pIndices) {
nglMatrixIndexubvARB(size, pIndices, pIndices.position());
}
private static native void nglMatrixIndexubvARB(int size, ByteBuffer pIndices, int pIndices_offset);
public static void glMatrixIndexuARB(int size, IntBuffer piIndices) {
nglMatrixIndexuivARB(size, piIndices, piIndices.position());
}
private static native void nglMatrixIndexuivARB(int size, IntBuffer piIndices, int piIndices_offset);
public static void glMatrixIndexuARB(int size, ShortBuffer psIndices) {
nglMatrixIndexusvARB(size, psIndices, psIndices.position());
}
private static native void nglMatrixIndexusvARB(int size, ShortBuffer psIndices, int psIndices_offset);
public static void glMultiDrawArraysEXT(int mode, IntBuffer piFirst, IntBuffer piCount, int primcount) {
2003-08-02 14:53:25 +02:00
nglMultiDrawArraysEXT(mode, piFirst, piFirst.position(), piCount, piCount.position(), primcount);
}
2003-08-02 14:53:25 +02:00
private static native void nglMultiDrawArraysEXT(int mode, IntBuffer piFirst, int piFirst_offset, IntBuffer piCount, int piCount_offset, int primcount);
// public static native void glMultiDrawElementsEXT(int mode, int piCount, int type, int pIndices, int primcount);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord1fARB(int target, float s);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord1iARB(int target, int s);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord1sARB(int target, short s);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord2fARB(int target, float s, float t);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord2iARB(int target, int s, int t);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord2sARB(int target, short s, short t);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord3fARB(
2002-08-16 23:53:02 +02:00
int target,
float s,
float t,
float r);
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord3iARB(int target, int s, int t, int r);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord3sARB(
2002-08-16 23:53:02 +02:00
int target,
short s,
short t,
short r);
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord4fARB(
2002-08-16 23:53:02 +02:00
int target,
float s,
float t,
float r,
float q);
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord4iARB(
2002-08-16 23:53:02 +02:00
int target,
int s,
int t,
int r,
int q);
2003-06-24 14:24:55 +02:00
public static native void glMultiTexCoord4sARB(
2002-08-16 23:53:02 +02:00
int target,
short s,
short t,
short r,
short q);
public static void glMultTransposeMatrixfARB(FloatBuffer pfMtx) {
nglMultTransposeMatrixfARB(pfMtx, pfMtx.position());
}
private static native void nglMultTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_offset);
public static int glNewObjectBufferATI(int size, ByteBuffer pPointer, int usage) {
return nglNewObjectBufferATI(size, pPointer, pPointer.position(), usage);
}
public static int glNewObjectBufferATI(int size, ShortBuffer pPointer, int usage) {
return nglNewObjectBufferATI(size, pPointer, pPointer.position()<<1, usage);
}
public static int glNewObjectBufferATI(int size, FloatBuffer pPointer, int usage) {
return nglNewObjectBufferATI(size, pPointer, pPointer.position()<<2, usage);
}
public static int glNewObjectBufferATI(int size, IntBuffer pPointer, int usage) {
return nglNewObjectBufferATI(size, pPointer, pPointer.position()<<2, usage);
}
private static native int nglNewObjectBufferATI(int size, Buffer pPointer, int pPointer_offset, int usage);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glNormalStream3bATI(int stream, byte x, byte y, byte z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glNormalStream3fATI(int stream, float x, float y, float z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glNormalStream3iATI(int stream, int x, int y, int z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glNormalStream3sATI(int stream, short x, short y, short z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPassTexCoordATI(int dst, int coord, int swizzle);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPNTrianglesfATI(int pname, float param);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPNTrianglesiATI(int pname, int param);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPointParameterfARB(int pname, float param);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPointParameterfEXT(int pname, float param);
2002-08-16 23:53:02 +02:00
public static void glPointParameterARB(int pname, FloatBuffer pfParams) {
nglPointParameterfvARB(pname, pfParams, pfParams.position());
}
private static native void nglPointParameterfvARB(int pname, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
public static void glPointParameterEXT(int pname, FloatBuffer pfParams) {
nglPointParameterfvEXT(pname, pfParams, pfParams.position());
}
private static native void nglPointParameterfvEXT(int pname, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPointParameteriNV(int pname, int param);
2002-08-16 23:53:02 +02:00
public static void glPointParameterNV(int pname, IntBuffer piParams) {
nglPointParameterivNV(pname, piParams, piParams.position());
}
private static native void nglPointParameterivNV(int pname, IntBuffer piParams, int piParams_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glProgramEnvParameter4fARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
float x,
float y,
float z,
float w);
2003-06-24 14:24:55 +02:00
public static native void glProgramLocalParameter4fARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
float x,
float y,
float z,
float w);
2003-06-24 14:24:55 +02:00
public static native void glProgramParameter4fNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
float x,
float y,
float z,
float w);
public static void glProgramParameters4NV(int target, int index, int num, FloatBuffer pfParams) {
nglProgramParameters4fvNV(target, index, num, pfParams, pfParams.position());
}
private static native void nglProgramParameters4fvNV(int target, int index, int num, FloatBuffer pfParams, int pfParams_offset);
2002-08-16 23:53:02 +02:00
public static void glProgramStringARB(int target, int format, int len, ByteBuffer pString) {
nglProgramStringARB(target, format, len, pString, pString.position());
}
private static native void nglProgramStringARB(int target, int format, int len, Buffer pString, int pString_offset);
2002-08-16 23:53:02 +02:00
public static void glRequestResidentProgramsNV(int n, IntBuffer piIDs) {
nglRequestResidentProgramsNV(n, piIDs, piIDs.position());
}
private static native void nglRequestResidentProgramsNV(int n, IntBuffer piIDs, int piIDs_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSampleCoverageARB(float value, boolean invert);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSampleMapATI(int dst, int interp, int swizzle);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColor3bEXT(byte red, byte green, byte blue);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColor3fEXT(float red, float green, float blue);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColor3ubEXT(byte red, byte green, byte blue);
2002-08-16 23:53:02 +02:00
public static void glSecondaryColorPointerEXT(int size, int type, int stride, ByteBuffer pPointer) {
nglSecondaryColorPointerEXT(size, type, stride, pPointer, pPointer.position());
}
public static void glSecondaryColorPointerEXT(int size, int type, int stride, FloatBuffer pPointer) {
nglSecondaryColorPointerEXT(size, type, stride, pPointer, pPointer.position()<<2);
}
private static native void nglSecondaryColorPointerEXT(int size, int type, int stride, Buffer pPointer, int pPointer_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSetFenceNV(int fence, int condition);
2002-08-16 23:53:02 +02:00
public static void glSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue) {
nglSetFragmentShaderConstantATI(dst, pfValue, pfValue.position());
}
private static native void nglSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue, int pfValue_offset);
public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) {
nglSetInvariantEXT(id, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, pAddr, pAddr.position());
}
public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
nglSetInvariantEXT(id, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, pAddr, pAddr.position()<<1);
}
public static void glSetInvariantEXT(int id, FloatBuffer pAddr) {
nglSetInvariantEXT(id, GL_FLOAT, pAddr, pAddr.position()<<2);
}
public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) {
nglSetInvariantEXT(id, unsigned ? GL_UNSIGNED_INT : GL_INT, pAddr, pAddr.position()<<2);
}
private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_offset);
public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) {
nglSetLocalConstantEXT(id, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, pAddr, pAddr.position());
}
public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
nglSetLocalConstantEXT(id, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, pAddr, pAddr.position()<<1);
}
public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) {
nglSetLocalConstantEXT(id, GL_FLOAT, pAddr, pAddr.position()<<2);
}
public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) {
nglSetLocalConstantEXT(id, unsigned ? GL_UNSIGNED_INT : GL_INT, pAddr, pAddr.position()<<2);
}
private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glShaderOp1EXT(int op, int res, int arg1);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glShaderOp2EXT(int op, int res, int arg1, int arg2);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glShaderOp3EXT(
2002-08-16 23:53:02 +02:00
int op,
int res,
int arg1,
int arg2,
int arg3);
2003-06-24 14:24:55 +02:00
public static native void glSwizzleEXT(
2002-08-16 23:53:02 +02:00
int res,
int in,
int outX,
int outY,
int outZ,
int outW);
2003-06-24 14:24:55 +02:00
public static native boolean glTestFenceNV(int fence);
2002-08-16 23:53:02 +02:00
public static void glTexBumpParameterATI(int pname, FloatBuffer pfParam) {
nglTexBumpParameterfvATI(pname, pfParam, pfParam.position());
}
private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer pfParam, int pfParam_offset);
2002-08-16 23:53:02 +02:00
public static void glTexBumpParameterATI(int pname, IntBuffer piParam) {
nglTexBumpParameterivATI(pname, piParam, piParam.position());
}
private static native void nglTexBumpParameterivATI(int pname, IntBuffer piParam, int piParam_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glTrackMatrixNV(
2002-08-16 23:53:02 +02:00
int target,
int address,
int matrix,
int transform);
2003-06-24 14:24:55 +02:00
public static native void glUnlockArraysEXT();
2002-08-16 23:53:02 +02:00
public static void glUpdateObjectBufferATI(int buffer, int offset, int size, ByteBuffer pPointer, int preserve) {
nglUpdateObjectBufferATI(buffer, offset, size, pPointer, pPointer.position(), preserve);
}
public static void glUpdateObjectBufferATI(int buffer, int offset, int size, ShortBuffer pPointer, int preserve) {
nglUpdateObjectBufferATI(buffer, offset, size, pPointer, pPointer.position()<<1, preserve);
}
public static void glUpdateObjectBufferATI(int buffer, int offset, int size, FloatBuffer pPointer, int preserve) {
nglUpdateObjectBufferATI(buffer, offset, size, pPointer, pPointer.position()<<2, preserve);
}
public static void glUpdateObjectBufferATI(int buffer, int offset, int size, IntBuffer pPointer, int preserve) {
nglUpdateObjectBufferATI(buffer, offset, size, pPointer, pPointer.position()<<2, preserve);
}
private static native void nglUpdateObjectBufferATI(int buffer, int offset, int size, Buffer pPointer, int pPointer_offset, int preserve);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantArrayObjectATI(
2002-08-16 23:53:02 +02:00
int id,
int type,
int stride,
int buffer,
int offset);
public static void glVariantEXT(int id, ByteBuffer pAddr) {
nglVariantbvEXT(id, pAddr, pAddr.position());
}
private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_offset);
public static void glVariantEXT(int id, FloatBuffer pfAddr) {
nglVariantfvEXT(id, pfAddr, pfAddr.position());
}
private static native void nglVariantfvEXT(int id, FloatBuffer pfAddr, int pfAddr_offset);
public static void glVariantEXT(int id, IntBuffer piAddr) {
nglVariantivEXT(id, piAddr, piAddr.position());
}
private static native void nglVariantivEXT(int id, IntBuffer piAddr, int piAddr_offset);
public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ByteBuffer pAddr) {
nglVariantPointerEXT(id, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pAddr, pAddr.position());
}
public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ShortBuffer pAddr) {
nglVariantPointerEXT(id, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, stride, pAddr, pAddr.position()<<1);
}
public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) {
nglVariantPointerEXT(id, GL_FLOAT, stride, pAddr, pAddr.position()<<2);
}
public static void glVariantPointerEXT(int id, boolean unsigned, int stride, IntBuffer pAddr) {
nglVariantPointerEXT(id, unsigned ? GL_UNSIGNED_INT : GL_INT, stride, pAddr, pAddr.position()<<2);
}
private static native void nglVariantPointerEXT(int id, int type, int stride, Buffer pAddr, int pAddr_offset);
public static void glVariantEXT(int id, ShortBuffer psAddr) {
nglVariantsvEXT(id, psAddr, psAddr.position());
}
private static native void nglVariantsvEXT(int id, ShortBuffer psAddr, int psAddr_offset);
public static void glVariantuEXT(int id, ByteBuffer pAddr) {
nglVariantubvEXT(id, pAddr, pAddr.position());
}
private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_offset);
public static void glVariantuEXT(int id, IntBuffer piAddr) {
nglVariantuivEXT(id, piAddr, piAddr.position());
}
private static native void nglVariantuivEXT(int id, IntBuffer piAddr, int piAddr_offset);
public static void glVariantuEXT(int id, ShortBuffer psAddr) {
nglVariantusvEXT(id, psAddr, psAddr.position());
}
private static native void nglVariantusvEXT(int id, ShortBuffer psAddr, int psAddr_offset);
public static void glVertexArrayRangeNV(ByteBuffer pPointer) {
nglVertexArrayRangeNV(pPointer.capacity(), pPointer, pPointer.position());
}
private static native void nglVertexArrayRangeNV(int size, Buffer pPointer, int pPointer_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib1fARB(int index, float x);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib1fNV(int index, float x);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib1sARB(int index, short x);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib1sNV(int index, short x);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib2fARB(int index, float x, float y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib2fNV(int index, float x, float y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib2sARB(int index, short x, short y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib2sNV(int index, short x, short y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib3fARB(int index, float x, float y, float z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib3fNV(int index, float x, float y, float z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib3sARB(int index, short x, short y, short z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib3sNV(int index, short x, short y, short z);
2002-08-16 23:53:02 +02:00
public static void glVertexAttrib4ARB(int index, ByteBuffer pV) {
nglVertexAttrib4bvARB(index, pV, pV.position());
}
private static native void nglVertexAttrib4bvARB(int index, ByteBuffer pV, int pV_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4fARB(
2002-08-16 23:53:02 +02:00
int index,
float x,
float y,
float z,
float w);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4fNV(
2002-08-16 23:53:02 +02:00
int index,
float x,
float y,
float z,
float w);
public static void glVertexAttrib4ARB(int index, IntBuffer piV) {
nglVertexAttrib4ivARB(index, piV, piV.position());
}
private static native void nglVertexAttrib4ivARB(int index, IntBuffer piV, int piV_offset);
2002-08-16 23:53:02 +02:00
public static void glVertexAttrib4NARB(int index, ByteBuffer pV) {
nglVertexAttrib4NbvARB(index, pV, pV.position());
}
private static native void nglVertexAttrib4NbvARB(int index, ByteBuffer pV, int pV_offset);
2002-08-16 23:53:02 +02:00
public static void glVertexAttrib4NARB(int index, IntBuffer piV) {
nglVertexAttrib4NivARB(index, piV, piV.position());
}
private static native void nglVertexAttrib4NivARB(int index, IntBuffer piV, int piV_offset);
2002-08-16 23:53:02 +02:00
public static void glVertexAttrib4NARB(int index, ShortBuffer psV) {
nglVertexAttrib4NsvARB(index, psV, psV.position());
}
private static native void nglVertexAttrib4NsvARB(int index, ShortBuffer psV, int psV_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NubARB(
2002-08-16 23:53:02 +02:00
int index,
byte x,
byte y,
byte z,
byte w);
public static void glVertexAttrib4NuARB(int index, ByteBuffer pV) {
nglVertexAttrib4NubvARB(index, pV, pV.position());
}
private static native void nglVertexAttrib4NubvARB(int index, ByteBuffer pV, int pV_offset);
2002-08-16 23:53:02 +02:00
public static void glVertexAttrib4NuARB(int index, IntBuffer piV) {
nglVertexAttrib4NuivARB(index, piV, piV.position());
}
private static native void nglVertexAttrib4NuivARB(int index, IntBuffer piV, int piV_offset);
2002-08-16 23:53:02 +02:00
public static void glVertexAttrib4NuARB(int index, ShortBuffer psV) {
nglVertexAttrib4NusvARB(index, psV, psV.position());
}
private static native void nglVertexAttrib4NusvARB(int index, ShortBuffer psV, int psV_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4sARB(
2002-08-16 23:53:02 +02:00
int index,
short x,
short y,
short z,
short w);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4sNV(
2002-08-16 23:53:02 +02:00
int index,
short x,
short y,
short z,
short w);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4ubNV(
2002-08-16 23:53:02 +02:00
int index,
byte x,
byte y,
byte z,
byte w);
public static void glVertexAttrib4uARB(int index, ByteBuffer pV) {
nglVertexAttrib4ubvARB(index, pV, pV.position());
}
private static native void nglVertexAttrib4ubvARB(int index, ByteBuffer pV, int pV_offset);
public static void glVertexAttrib4uNV(int index, ByteBuffer pV) {
nglVertexAttrib4ubvNV(index, pV, pV.position());
}
private static native void nglVertexAttrib4ubvNV(int index, ByteBuffer pV, int pV_offset);
public static void glVertexAttrib4uARB(int index, IntBuffer piV) {
nglVertexAttrib4uivARB(index, piV, piV.position());
}
private static native void nglVertexAttrib4uivARB(int index, IntBuffer piV, int piV_offset);
public static void glVertexAttrib4uARB(int index, ShortBuffer psV) {
nglVertexAttrib4usvARB(index, psV, psV.position());
}
private static native void nglVertexAttrib4usvARB(int index, ShortBuffer psV, int psV_offset);
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer pPointer) {
nglVertexAttribPointerARB(index, size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, normalized, stride, pPointer, pPointer.position());
}
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer pPointer) {
nglVertexAttribPointerARB(index, size, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, normalized, stride, pPointer, pPointer.position()<<1);
}
public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, FloatBuffer pPointer) {
nglVertexAttribPointerARB(index, size, GL_FLOAT, normalized, stride, pPointer, pPointer.position()<<2);
}
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer pPointer) {
nglVertexAttribPointerARB(index, size, unsigned ? GL_UNSIGNED_INT : GL_INT, normalized, stride, pPointer, pPointer.position()<<2);
}
private static native void nglVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, Buffer pPointer, int pPointer_offset);
public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, ByteBuffer pPointer) {
nglVertexAttribPointerNV(index, size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pPointer, pPointer.position());
}
public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, ShortBuffer pPointer) {
nglVertexAttribPointerNV(index, size, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, stride, pPointer, pPointer.position()<<1);
}
public static void glVertexAttribPointerNV(int index, int size, int stride, FloatBuffer pPointer) {
nglVertexAttribPointerNV(index, size, GL_FLOAT, stride, pPointer, pPointer.position()<<2);
}
public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, IntBuffer pPointer) {
nglVertexAttribPointerNV(index, size, unsigned ? GL_UNSIGNED_INT : GL_INT, stride, pPointer, pPointer.position()<<2);
}
private static native void nglVertexAttribPointerNV(int index, int size, int type, int stride, Buffer pPointer, int pPointer_offset);
public static void glVertexAttribs1NV(int index, int n, FloatBuffer pfV) {
nglVertexAttribs1fvNV(index, n, pfV, pfV.position());
}
private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer pfV, int pfV_offset);
public static void glVertexAttribs1NV(int index, int n, ShortBuffer psV) {
nglVertexAttribs1svNV(index, n, psV, psV.position());
}
private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer psV, int psV_offset);
public static void glVertexAttribs2NV(int index, int n, FloatBuffer pfV) {
nglVertexAttribs2fvNV(index, n, pfV, pfV.position());
}
private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer pfV, int pfV_offset);
public static void glVertexAttribs2NV(int index, int n, ShortBuffer psV) {
nglVertexAttribs2svNV(index, n, psV, psV.position());
}
private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer psV, int psV_offset);
public static void glVertexAttribs3NV(int index, int n, FloatBuffer pfV) {
nglVertexAttribs3fvNV(index, n, pfV, pfV.position());
}
private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer pfV, int pfV_offset);
public static void glVertexAttribs3NV(int index, int n, ShortBuffer psV) {
nglVertexAttribs3svNV(index, n, psV, psV.position());
}
private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer psV, int psV_offset);
public static void glVertexAttribs4NV(int index, int n, FloatBuffer pfV) {
nglVertexAttribs4fvNV(index, n, pfV, pfV.position());
}
private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer pfV, int pfV_offset);
public static void glVertexAttribs4NV(int index, int n, ShortBuffer psV) {
nglVertexAttribs4svNV(index, n, psV, psV.position());
}
private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer psV, int psV_offset);
public static void glVertexAttribs4uNV(int index, int n, ByteBuffer pV) {
nglVertexAttribs4ubvNV(index, n, pV, pV.position());
}
private static native void nglVertexAttribs4ubvNV(int index, int n, ByteBuffer pV, int pV_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexBlendARB(int count);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexBlendEnvfATI(int pname, float param);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexBlendEnviATI(int pname, int param);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream2fATI(int stream, float x, float y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream2iATI(int stream, int x, int y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream2sATI(int stream, short x, short y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream3fATI(int stream, float x, float y, float z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream3iATI(int stream, int x, int y, int z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream3sATI(int stream, short x, short y, short z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexStream4fATI(
2002-08-16 23:53:02 +02:00
int stream,
float x,
float y,
float z,
float w);
2003-06-24 14:24:55 +02:00
public static native void glVertexStream4iATI(
2002-08-16 23:53:02 +02:00
int stream,
int x,
int y,
int z,
int w);
2003-06-24 14:24:55 +02:00
public static native void glVertexStream4sATI(
2002-08-16 23:53:02 +02:00
int stream,
short x,
short y,
short z,
short w);
2003-06-24 14:24:55 +02:00
public static native void glVertexWeightfEXT(float weight);
2002-08-16 23:53:02 +02:00
public static void glVertexWeightPointerEXT(int size, int stride, FloatBuffer pPointer) {
nglVertexWeightPointerEXT(size, GL_FLOAT, stride, pPointer, pPointer.position()<<2);
}
private static native void nglVertexWeightPointerEXT(int size, int type, int stride, Buffer pPointer, int pPointer_offset);
public static void glWeightARB(int size, ByteBuffer pWeights) {
nglWeightbvARB(size, pWeights, pWeights.position());
}
private static native void nglWeightbvARB(int size, ByteBuffer pWeights, int pWeights_offset);
public static void glWeightARB(int size, FloatBuffer pfWeights) {
nglWeightfvARB(size, pfWeights, pfWeights.position());
}
private static native void nglWeightfvARB(int size, FloatBuffer pfWeights, int pfWeights_offset);
public static void glWeightARB(int size, IntBuffer piWeights) {
nglWeightivARB(size, piWeights, piWeights.position());
}
private static native void nglWeightivARB(int size, IntBuffer piWeights, int piWeights_offset);
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ByteBuffer pPointer) {
nglWeightPointerARB(size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pPointer, pPointer.position());
}
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ShortBuffer pPointer) {
nglWeightPointerARB(size, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, stride, pPointer, pPointer.position()<<1);
}
public static void glWeightPointerARB(int size, int stride, FloatBuffer pPointer) {
nglWeightPointerARB(size, GL_FLOAT, stride, pPointer, pPointer.position()<<2);
}
public static void glWeightPointerARB(int size, boolean unsigned, int stride, IntBuffer pPointer) {
nglWeightPointerARB(size, unsigned ? GL_UNSIGNED_INT : GL_INT, stride, pPointer, pPointer.position()<<2);
}
private static native void nglWeightPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_offset);
public static void glWeightARB(int size, ShortBuffer psWeights) {
nglWeightsvARB(size, psWeights, psWeights.position());
}
private static native void nglWeightsvARB(int size, ShortBuffer psWeights, int psWeights_offset);
public static void glWeightuARB(int size, ByteBuffer pWeights) {
nglWeightubvARB(size, pWeights, pWeights.position());
}
private static native void nglWeightubvARB(int size, ByteBuffer pWeights, int pWeights_offset);
public static void glWeightuARB(int size, IntBuffer piWeights) {
nglWeightuivARB(size, piWeights, piWeights.position());
}
private static native void nglWeightuivARB(int size, IntBuffer piWeights, int piWeights_offset);
public static void glWeightuARB(int size, ShortBuffer psWeights) {
nglWeightusvARB(size, psWeights, psWeights.position());
}
private static native void nglWeightusvARB(int size, ShortBuffer psWeights, int psWeights_offset);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native ByteBuffer glXAllocateMemoryNV(
int size,
float readFrequency,
float writeFrequency,
float priority);
2003-08-02 14:53:25 +02:00
private static native void glXFreeMemoryNV(ByteBuffer pointer);
2002-08-16 23:53:02 +02:00
// #ifdef _WIN32
2003-06-24 14:24:55 +02:00
public static native ByteBuffer wglAllocateMemoryNV(
2002-08-16 23:53:02 +02:00
int size,
float readFrequency,
float writeFrequency,
float priority);
2002-08-17 16:13:12 +02:00
public static native boolean wglBindTexImageARB(int hPbuffer, int iBuffer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
/* public static native boolean wglChoosePixelFormatARB(
2002-08-16 23:53:02 +02:00
int hdc,
int piAttribIList,
int pfAttribFList,
int nMaxFormats,
int piFormats,
int piNumFormats);
2003-06-24 14:24:55 +02:00
*/
/* public static native int wglCreateBufferRegionARB(
2002-08-16 23:53:02 +02:00
int hdc,
int iLayerPlane,
int uType);
*/
2003-06-24 14:24:55 +02:00
/* public static native int wglCreatePbufferARB(
2002-08-16 23:53:02 +02:00
int hDC,
int iPixelFormat,
int iWidth,
int iHeight,
int piAttribList);
2003-06-24 14:24:55 +02:00
*/
// public static native void wglDeleteBufferRegionARB(Buffer hRegion);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
/* public static native boolean wglDestroyPbufferARB(int hPbuffer);*/
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void wglFreeMemoryNV(ByteBuffer pointer);
2002-08-16 23:53:02 +02:00
public static native int wglGetCurrentReadDCARB();
public static native String wglGetExtensionsStringARB(int hdc);
public static native String wglGetExtensionsStringEXT();
2003-06-24 14:24:55 +02:00
// public static native int wglGetPbufferDCARB(int hPbuffer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
/* public static native boolean wglGetPixelFormatAttribfvARB(
2002-08-16 23:53:02 +02:00
int hdc,
int iPixelFormat,
int iLayerPlane,
int nAttributes,
int piAttributes,
int pfValues);
public static native boolean wglGetPixelFormatAttribivARB(
int hdc,
int iPixelFormat,
int iLayerPlane,
int nAttributes,
int piAttributes,
int piValues);
2003-06-24 14:24:55 +02:00
*/
2002-08-16 23:53:02 +02:00
public static native int wglGetSwapIntervalEXT();
2003-06-24 14:24:55 +02:00
/* public static native boolean wglMakeContextCurrentARB(
2002-08-16 23:53:02 +02:00
int hDrawDC,
int hReadDC,
int hglrc);
2002-08-17 16:13:12 +02:00
public static native boolean wglQueryPbufferARB(
2002-08-16 23:53:02 +02:00
int hPbuffer,
int iAttribute,
int piValue);
2002-08-17 16:13:12 +02:00
public static native int wglReleasePbufferDCARB(int hPbuffer, int hDC);
2003-06-24 14:24:55 +02:00
*/
2002-10-19 01:21:49 +02:00
public static native boolean wglReleaseTexImageARB(
int hPbuffer,
int iBuffer);
2002-08-16 23:53:02 +02:00
/* public static native boolean wglRestoreBufferRegionARB(
2003-06-24 14:24:55 +02:00
Buffer hRegion,
2002-08-16 23:53:02 +02:00
int x,
int y,
int width,
int height,
int xSrc,
int ySrc);
2002-08-17 16:13:12 +02:00
public static native boolean wglSaveBufferRegionARB(
2003-06-24 14:24:55 +02:00
Buffer hRegion,
2002-08-16 23:53:02 +02:00
int x,
int y,
int width,
int height);
*/
2003-06-24 14:24:55 +02:00
/* public static native boolean wglSetPbufferAttribARB(
2002-08-16 23:53:02 +02:00
int hPbuffer,
int piAttribList);
2003-06-24 14:24:55 +02:00
*/
2002-08-16 23:53:02 +02:00
public static native boolean wglSwapIntervalEXT(int interval);
2003-06-24 14:24:55 +02:00
public static native void glWindowPos2fARB(float x, float y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWindowPos2iARB(int x, int y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWindowPos2sARB(short x, short y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWindowPos3fARB(float x, float y, float z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWindowPos3iARB(int x, int y, int z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWindowPos3sARB(short x, short y, short z);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWriteMaskEXT(
2002-08-16 23:53:02 +02:00
int res,
int in,
int outX,
int outY,
int outZ,
int outW);
2002-08-09 12:56:30 +02:00
2003-06-24 14:24:55 +02:00
public static native void glBindBufferARB(int target, int buffer);
public static void glDeleteBuffersARB(int n, IntBuffer buffers) {
nglDeleteBuffersARB(n, buffers, buffers.position());
}
private static native void nglDeleteBuffersARB(int n, IntBuffer buffers, int buffers_offset);
public static void glGenBuffersARB(int n, IntBuffer buffers) {
nglGenBuffersARB(n, buffers, buffers.position());
}
private static native void nglGenBuffersARB(int n, IntBuffer buffers, int buffers_offset);
2003-06-24 14:24:55 +02:00
public static native boolean glIsBufferARB(int buffer);
public static void glBufferDataARB(int target, int size, ByteBuffer data, int usage) {
nglBufferDataARB(target, size, data, data.position(), usage);
}
public static void glBufferDataARB(int target, int size, ShortBuffer data, int usage) {
nglBufferDataARB(target, size, data, data.position()<<1, usage);
}
public static void glBufferDataARB(int target, int size, FloatBuffer data, int usage) {
nglBufferDataARB(target, size, data, data.position()<<2, usage);
}
public static void glBufferDataARB(int target, int size, IntBuffer data, int usage) {
nglBufferDataARB(target, size, data, data.position()<<2, usage);
}
private static native void nglBufferDataARB(int target, int size, Buffer data, int data_offset, int usage);
public static void glBufferSubDataARB(int target, int offset, int size, ByteBuffer data) {
nglBufferSubDataARB(target, offset, size, data, data.position());
}
public static void glBufferSubDataARB(int target, int offset, int size, ShortBuffer data) {
nglBufferSubDataARB(target, offset, size, data, data.position()<<1);
}
public static void glBufferSubDataARB(int target, int offset, int size, FloatBuffer data) {
nglBufferSubDataARB(target, offset, size, data, data.position()<<2);
}
public static void glBufferSubDataARB(int target, int offset, int size, IntBuffer data) {
nglBufferSubDataARB(target, offset, size, data, data.position()<<2);
}
private static native void nglBufferSubDataARB(int target, int offset, int size, Buffer data, int data_offset);
2003-08-02 14:53:25 +02:00
public static void glGetBufferSubDataARB(int target, int offset, int size, ByteBuffer data) {
nglGetBufferSubDataARB(target, offset, size, data, data.position());
}
public static void glGetBufferSubDataARB(int target, int offset, int size, ShortBuffer data) {
nglGetBufferSubDataARB(target, offset, size, data, data.position()<<1);
}
public static void glGetBufferSubDataARB(int target, int offset, int size, IntBuffer data) {
nglGetBufferSubDataARB(target, offset, size, data, data.position()<<2);
}
public static void glGetBufferSubDataARB(int target, int offset, int size, FloatBuffer data) {
nglGetBufferSubDataARB(target, offset, size, data, data.position()<<2);
}
private static native void nglGetBufferSubDataARB(int target, int offset, int size, Buffer data, int data_offset);
2003-06-24 14:24:55 +02:00
/**
* glMapBufferARB maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null, in
* which case a new ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null,
* it will be returned if it points to the same mapped memory, otherwise a new ByteBuffer is created.
* That way, an application will normally use glMapBufferARB like this:
*
* ByteBuffer mapped_buffer;
* mapped_buffer = glMapBufferARB(..., ..., ..., null);
* ...
* // Another map on the same buffer
* mapped_buffer = glMapBufferARB(..., ..., ..., mapped_buffer);
*
* @param size The size of the buffer area.
* @param oldBuffer A ByteBuffer. If this argument points to the same address as the new mapping, it will be returned and
* no new buffer will be created. In that case, size is ignored.
* @return A ByteBuffer representing the mapped buffer memory.
*/
public static native ByteBuffer glMapBufferARB(int target, int access, int size, ByteBuffer oldBuffer);
public static native boolean glUnmapBufferARB(int target);
public static void glGetBufferParameterARB(int target, int pname, IntBuffer params) {
nglGetBufferParameterivARB(target, pname, params, params.position());
}
private static native void nglGetBufferParameterivARB(int target, int pname, IntBuffer params, int params_offset);
public static native ByteBuffer glGetBufferPointerARB(int target, int pname, int size);
2002-08-09 12:56:30 +02:00
}