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

1297 lines
34 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.CharBuffer;
import java.nio.FloatBuffer;
import java.nio.DoubleBuffer;
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
*/
2002-08-14 03:08:57 +02:00
public class GL extends CoreGL 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);
2003-06-24 14:24:55 +02:00
public static native boolean glAreProgramsResidentNV(
2002-08-16 23:53:02 +02:00
int n,
2003-06-24 14:24:55 +02:00
IntBuffer piIDs,
ByteBuffer pbResidences);
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
2003-06-24 14:24:55 +02:00
public static native void glCombinerParameterfvNV(int pname, FloatBuffer pfParams);
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
2003-06-24 14:24:55 +02:00
public static native void glCombinerParameterivNV(int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCombinerStageParameterfvNV(
2002-08-16 23:53:02 +02:00
int stage,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCompressedTexImage1DARB(
2002-08-16 23:53:02 +02:00
int target,
int level,
int internalformat,
int width,
int border,
int imageSize,
2003-06-24 14:24:55 +02:00
Buffer pData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCompressedTexImage2DARB(
2002-08-16 23:53:02 +02:00
int target,
int level,
int internalformat,
int width,
int height,
int border,
int imageSize,
2003-06-24 14:24:55 +02:00
Buffer pData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCompressedTexImage3DARB(
2002-08-16 23:53:02 +02:00
int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int imageSize,
2003-06-24 14:24:55 +02:00
Buffer pData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCompressedTexSubImage1DARB(
2002-08-16 23:53:02 +02:00
int target,
int level,
int xoffset,
int width,
int format,
int imageSize,
2003-06-24 14:24:55 +02:00
Buffer pData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCompressedTexSubImage2DARB(
2002-08-16 23:53:02 +02:00
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int imageSize,
2003-06-24 14:24:55 +02:00
Buffer pData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glCompressedTexSubImage3DARB(
2002-08-16 23:53:02 +02:00
int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int imageSize,
2003-06-24 14:24:55 +02:00
Buffer pData);
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
2003-06-24 14:24:55 +02:00
public static native void glDeleteFencesNV(int n, IntBuffer piFences);
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
2003-06-24 14:24:55 +02:00
public static native void glDeleteOcclusionQueriesNV(int n, IntBuffer piIDs);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDeleteProgramsARB(int n, IntBuffer piPrograms);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glDeleteProgramsNV(int n, IntBuffer piIDs);
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);
2003-06-24 14:24:55 +02:00
public static native void glDrawRangeElementsEXT(
2002-08-16 23:53:02 +02:00
int mode,
int start,
int end,
int count,
int type,
2003-06-24 14:24:55 +02:00
Buffer pIndices);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glElementPointerATI(int type, Buffer pPointer);
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
2003-06-24 14:24:55 +02:00
public static native void glExecuteProgramNV(int target, int id, FloatBuffer pfParams);
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 glFogCoorddEXT(double coord);
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
2003-06-24 14:24:55 +02:00
public static native void glFogCoordPointerEXT(int type, int stride, Buffer pPointer);
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
2003-06-24 14:24:55 +02:00
public static native void glGenFencesNV(int n, IntBuffer piFences);
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
2003-06-24 14:24:55 +02:00
public static native void glGenOcclusionQueriesNV(int n, IntBuffer piIDs);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGenProgramsARB(int n, IntBuffer piPrograms);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGenProgramsNV(int n, IntBuffer piIDs);
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
2003-06-24 14:24:55 +02:00
public static native void glGetArrayObjectfvATI(int array, int pname, FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetArrayObjectivATI(int array, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetCombinerInputParameterfvNV(
2002-08-16 23:53:02 +02:00
int stage,
int portion,
int variable,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetCombinerInputParameterivNV(
2002-08-16 23:53:02 +02:00
int stage,
int portion,
int variable,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetCombinerOutputParameterfvNV(
2002-08-16 23:53:02 +02:00
int stage,
int portion,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetCombinerOutputParameterivNV(
2002-08-16 23:53:02 +02:00
int stage,
int portion,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetCombinerStageParameterfvNV(
2002-08-16 23:53:02 +02:00
int stage,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetCompressedTexImageARB(int target, int lod, Buffer pImg);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetFenceivNV(int fence, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetFinalCombinerInputParameterfvNV(
2002-08-16 23:53:02 +02:00
int variable,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetFinalCombinerInputParameterivNV(
2002-08-16 23:53:02 +02:00
int variable,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetInvariantFloatvEXT(int id, int value, FloatBuffer pfData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetInvariantIntegervEXT(int id, int value, IntBuffer piData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetLocalConstantBooleanvEXT(
2002-08-16 23:53:02 +02:00
int id,
int value,
2003-06-24 14:24:55 +02:00
ByteBuffer pbData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pfData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetLocalConstantIntegervEXT(
2002-08-16 23:53:02 +02:00
int id,
int value,
2003-06-24 14:24:55 +02:00
IntBuffer piData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetMapAttribParameterfvNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetMapAttribParameterivNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetMapControlPointsNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int type,
int ustride,
int vstride,
boolean packed,
2003-06-24 14:24:55 +02:00
Buffer pPoints);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetMapParameterfvNV(int target, int pname, FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetMapParameterivNV(int target, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetObjectBufferfvATI(
2002-08-16 23:53:02 +02:00
int buffer,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetObjectBufferivATI(
2002-08-16 23:53:02 +02:00
int buffer,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetOcclusionQueryivNV(int id, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetOcclusionQueryuivNV(int id, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramEnvParameterdvARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
2003-06-24 14:24:55 +02:00
DoubleBuffer pdParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramEnvParameterfvARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramivARB(int target, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramivNV(int id, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramLocalParameterdvARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
2003-06-24 14:24:55 +02:00
DoubleBuffer pdParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramLocalParameterfvARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramParameterdvNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int pname,
2003-06-24 14:24:55 +02:00
DoubleBuffer pdParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramParameterfvNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramStringARB(int target, int pname, Buffer pString);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetProgramStringNV(int id, int pname, ByteBuffer pProgram);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetTexBumpParameterfvATI(int pname, FloatBuffer pfParam);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetTexBumpParameterivATI(int pname, FloatBuffer piParam);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetTrackMatrixivNV(
2002-08-16 23:53:02 +02:00
int target,
int address,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVariantArrayObjectfvATI(
2002-08-16 23:53:02 +02:00
int id,
int pname,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVariantArrayObjectivATI(
2002-08-16 23:53:02 +02:00
int id,
int pname,
2003-06-24 14:24:55 +02:00
IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVariantFloatvEXT(int id, int value, FloatBuffer pfData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVariantIntegervEXT(int id, int value, IntBuffer piData);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native ByteBuffer glGetVariantPointervEXT(int id, int value, int size);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVertexAttribdvARB(int index, int pname, DoubleBuffer pdParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVertexAttribdvNV(int index, int pname, DoubleBuffer pdParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVertexAttribfvARB(int index, int pname, FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVertexAttribfvNV(int index, int pname, FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVertexAttribivARB(int index, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glGetVertexAttribivNV(int index, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native ByteBuffer glGetVertexAttribPointervARB(
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 ByteBuffer glGetVertexAttribPointervNV(
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
2003-06-24 14:24:55 +02:00
public static native void glLoadProgramNV(int target, int id, int len, ByteBuffer pProgram);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glLoadTransposeMatrixdARB(DoubleBuffer pdMtx); // m[16]
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glLoadTransposeMatrixfARB(FloatBuffer pfMtx); // m[16]
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
2003-06-24 14:24:55 +02:00
public static native void glMapControlPointsNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int type,
int ustride,
int vstride,
int uorder,
int vorder,
boolean packed,
2003-06-24 14:24:55 +02:00
Buffer pPoints);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMapParameterfvNV(int target, int pname, FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMapParameterivNV(int target, int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMatrixIndexPointerARB(
2002-08-16 23:53:02 +02:00
int size,
int type,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pPointer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMatrixIndexubvARB(int size, ByteBuffer pIndices);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMatrixIndexuivARB(int size, IntBuffer piIndices);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMatrixIndexusvARB(int size, CharBuffer psIndices);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultiDrawArraysEXT(
2002-08-16 23:53:02 +02:00
int mode,
2003-06-24 14:24:55 +02:00
IntBuffer piFirst,
IntBuffer piCount,
2002-08-16 23:53:02 +02:00
int primcount);
2003-06-24 14:24:55 +02:00
/* public static native void glMultiDrawElementsEXT(
2002-08-16 23:53:02 +02:00
int mode,
int piCount,
int type,
int pIndices,
int primcount);
2003-06-24 14:24:55 +02:00
*/
public static native void glMultiTexCoord1dARB(int target, double s);
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 glMultiTexCoord2dARB(int target, double s, double t);
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 glMultiTexCoord3dARB(
2002-08-16 23:53:02 +02:00
int target,
double s,
double t,
double r);
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 glMultiTexCoord4dARB(
2002-08-16 23:53:02 +02:00
int target,
double s,
double t,
double r,
double q);
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);
2003-06-24 14:24:55 +02:00
public static native void glMultTransposeMatrixdARB(DoubleBuffer pdMtx); // m[16]
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glMultTransposeMatrixfARB(FloatBuffer pfMtx); // m[16]
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native int glNewObjectBufferATI(int size, Buffer pPointer, 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 glNormalStream3dATI(
2002-08-16 23:53:02 +02:00
int stream,
double x,
double y,
double z);
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
2003-06-24 14:24:55 +02:00
public static native void glPointParameterfvARB(int pname, FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glPointParameterfvEXT(int pname, FloatBuffer pfParams);
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
2003-06-24 14:24:55 +02:00
public static native void glPointParameterivNV(int pname, IntBuffer piParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glProgramEnvParameter4dARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
double x,
double y,
double z,
double w);
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 glProgramLocalParameter4dARB(
2002-08-16 23:53:02 +02:00
int target,
int index,
double x,
double y,
double z,
double 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 glProgramParameter4dNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
double x,
double y,
double z,
double 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);
2003-06-24 14:24:55 +02:00
public static native void glProgramParameters4dvNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int num,
int pdParams);
2003-06-24 14:24:55 +02:00
public static native void glProgramParameters4fvNV(
2002-08-16 23:53:02 +02:00
int target,
int index,
int num,
2003-06-24 14:24:55 +02:00
FloatBuffer pfParams);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glProgramStringARB(
2002-08-16 23:53:02 +02:00
int target,
int format,
int len,
2003-06-24 14:24:55 +02:00
Buffer pString);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glRequestResidentProgramsNV(int n, IntBuffer piIDs);
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 glSecondaryColor3dEXT(
2002-08-16 23:53:02 +02:00
double red,
double green,
double blue);
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 glSecondaryColor3iEXT(int red, int green, int blue);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColor3sEXT(short red, short green, short 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
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColor3uiEXT(int red, int green, int blue);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColor3usEXT(short red, short green, short blue);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSecondaryColorPointerEXT(
2002-08-16 23:53:02 +02:00
int size,
int type,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pPointer);
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
2003-06-24 14:24:55 +02:00
public static native void glSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSetInvariantEXT(int id, int type, Buffer pAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glSetLocalConstantEXT(int id, int type, Buffer pAddr);
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
2003-06-24 14:24:55 +02:00
public static native void glTexBumpParameterfvATI(int pname, FloatBuffer pfParam);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glTexBumpParameterivATI(int pname, IntBuffer piParam);
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
2003-06-24 14:24:55 +02:00
public static native void glUpdateObjectBufferATI(
2002-08-16 23:53:02 +02:00
int buffer,
int offset,
int size,
2003-06-24 14:24:55 +02:00
Buffer pPointer,
2002-08-16 23:53:02 +02:00
int preserve);
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);
2003-06-24 14:24:55 +02:00
public static native void glVariantbvEXT(int id, ByteBuffer pAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantdvEXT(int id, DoubleBuffer pdAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantfvEXT(int id, FloatBuffer pfAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantivEXT(int id, IntBuffer piAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantPointerEXT(
2002-08-16 23:53:02 +02:00
int id,
int type,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantsvEXT(int id, CharBuffer psAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantubvEXT(int id, ByteBuffer pAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantuivEXT(int id, IntBuffer piAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVariantusvEXT(int id, CharBuffer psAddr);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexArrayRangeNV(int size, Buffer pPointer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib1dARB(int index, double x);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib1dNV(int index, double x);
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 glVertexAttrib2dARB(int index, double x, double y);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib2dNV(int index, double x, double y);
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 glVertexAttrib3dARB(
2002-08-16 23:53:02 +02:00
int index,
double x,
double y,
double z);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib3dNV(
2002-08-16 23:53:02 +02:00
int index,
double x,
double y,
double z);
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
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4bvARB(int index, ByteBuffer pV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4dARB(
2002-08-16 23:53:02 +02:00
int index,
double x,
double y,
double z,
double w);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4dNV(
2002-08-16 23:53:02 +02:00
int index,
double x,
double y,
double z,
double w);
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);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4ivARB(int index, IntBuffer piV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NbvARB(int index, ByteBuffer pV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NivARB(int index, IntBuffer piV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NsvARB(int index, CharBuffer psV);
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);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NubvARB(int index, ByteBuffer pV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NuivARB(int index, IntBuffer piV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4NusvARB(int index, CharBuffer psV);
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);
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4ubvARB(int index, ByteBuffer pV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4ubvNV(int index, ByteBuffer pV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4uivARB(int index, IntBuffer piV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttrib4usvARB(int index, CharBuffer psV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribPointerARB(
2002-08-16 23:53:02 +02:00
int index,
int size,
int type,
boolean normalized,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pPointer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribPointerNV(
2002-08-16 23:53:02 +02:00
int index,
int size,
int type,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pPointer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs1dvNV(int index, int n, DoubleBuffer pdV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs1fvNV(int index, int n, FloatBuffer pfV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs1svNV(int index, int n, CharBuffer psV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs2dvNV(int index, int n, DoubleBuffer pdV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs2fvNV(int index, int n, FloatBuffer pfV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs2svNV(int index, int n, CharBuffer psV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs3dvNV(int index, int n, DoubleBuffer pdV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs3fvNV(int index, int n, FloatBuffer pfV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs3svNV(int index, int n, CharBuffer psV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs4dvNV(int index, int n, DoubleBuffer pdV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs4fvNV(int index, int n, FloatBuffer pfV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs4svNV(int index, int n, CharBuffer psV);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glVertexAttribs4ubvNV(int index, int n, ByteBuffer pV);
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 glVertexStream2dATI(int stream, double x, double y);
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 glVertexStream3dATI(
2002-08-16 23:53:02 +02:00
int stream,
double x,
double y,
double z);
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 glVertexStream4dATI(
2002-08-16 23:53:02 +02:00
int stream,
double x,
double y,
double z,
double w);
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
2003-06-24 14:24:55 +02:00
public static native void glVertexWeightPointerEXT(
2002-08-16 23:53:02 +02:00
int size,
int type,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pPointer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightbvARB(int size, ByteBuffer pWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightdvARB(int size, DoubleBuffer pdWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightfvARB(int size, FloatBuffer pfWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightivARB(int size, IntBuffer piWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightPointerARB(
2002-08-16 23:53:02 +02:00
int size,
int type,
int stride,
2003-06-24 14:24:55 +02:00
Buffer pPointer);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightsvARB(int size, CharBuffer psWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightubvARB(int size, ByteBuffer pWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightuivARB(int size, IntBuffer piWeights);
2002-08-16 23:53:02 +02:00
2003-06-24 14:24:55 +02:00
public static native void glWeightusvARB(int size, CharBuffer psWeights);
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-06-24 14:24:55 +02:00
public 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
*/
2002-08-17 16:13:12 +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
2002-08-17 16:13:12 +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 glWindowPos2dARB(double x, double y);
2002-08-16 23:53:02 +02:00
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 glWindowPos3dARB(double x, double y, double z);
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 native void glDeleteBuffersARB(int n, IntBuffer buffers);
public static native void glGenBuffersARB(int n, IntBuffer buffers);
public static native boolean glIsBufferARB(int buffer);
public static native void glBufferDataARB(int target, int size, Buffer data, int usage);
public static native void glBufferSubDataARB(int target, int offset, int size, Buffer data);
public static native void glGetBufferSubDataARB(int target, int offset, int size, Buffer data);
/**
* 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 native void glGetBufferParameterivARB(int target, int pname, IntBuffer params);
public static native ByteBuffer glGetBufferPointervARB(int target, int pname, int size);
2002-08-09 12:56:30 +02:00
}