You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
|
2
(5) |
3
(1) |
4
(1) |
5
|
|
6
|
7
(6) |
8
(2) |
9
(11) |
10
|
11
(1) |
12
|
|
13
(1) |
14
(2) |
15
(30) |
16
(46) |
17
(13) |
18
(2) |
19
|
|
20
(26) |
21
(12) |
22
(9) |
23
(22) |
24
(5) |
25
(2) |
26
|
|
27
|
28
|
|
|
|
|
|
|
From: Ioannis T. <sp...@us...> - 2005-02-15 20:02:57
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4775 Modified Files: build.xml Log Message: Added auto-gen for HP,IBM,SUN Index: build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- build.xml 15 Feb 2005 11:44:36 -0000 1.59 +++ build.xml 15 Feb 2005 20:02:24 -0000 1.60 @@ -3,11 +3,11 @@ <!-- ================================================================== --> <!-- Global properties for build --> <!-- ================================================================== --> - <property name="lwjgl.src" value="./src" /> + <property name="lwjgl.src" value="./SRC" /> <property name="lwjgl.src.native" value="${lwjgl.src}/native" /> <property name="lwjgl.src.headers" value="${lwjgl.src.native}/common" /> <property name="lwjgl.src.templates" value="${lwjgl.src}/templates" /> - <property name="lwjgl.bin" value="./bin" /> + <property name="lwjgl.bin" value="./BIN" /> <property name="lwjgl.lib" value="./libs" /> <property name="lwjgl.dist" value="./dist" /> <property name="lwjgl.docs" value="./doc" /> @@ -298,6 +298,48 @@ <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/NV*.java"/> </apply> + <!-- Generate HP --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg path="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg path="${lwjgl.src.headers}/hp"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/HP*.java"/> + </apply> + <!-- Generate IBM --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg path="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg path="${lwjgl.src.headers}/ibm"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/IBM*.java"/> + </apply> + <!-- Generate SUN --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg path="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg path="${lwjgl.src.headers}/sun"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/SUN*.java"/> + </apply> </target> <!-- Compiles the Java source code --> |
|
From: Ioannis T. <sp...@us...> - 2005-02-15 19:27:04
|
Update of /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27138 Modified Files: ARB_buffer_object.java HP_occlusion_test.java IBM_rasterpos_clip.java NV_float_buffer.java Log Message: Misc fixes Index: ARB_buffer_object.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_buffer_object.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ARB_buffer_object.java 15 Feb 2005 17:05:54 -0000 1.2 +++ ARB_buffer_object.java 15 Feb 2005 19:26:17 -0000 1.3 @@ -107,8 +107,8 @@ * <p/> * 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. + * @param result_size The size of the buffer area. + * @param old_buffer 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. */ Index: HP_occlusion_test.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/HP_occlusion_test.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- HP_occlusion_test.java 15 Feb 2005 13:33:59 -0000 1.1 +++ HP_occlusion_test.java 15 Feb 2005 19:26:19 -0000 1.2 @@ -32,4 +32,17 @@ package org.lwjgl.opengl; public interface HP_occlusion_test { + + /** + * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, by + * the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev : + */ + int GL_OCCLUSION_TEST_HP = 0x8165; + + /** + * Accepted by the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and + * GetDoublev : + */ + int GL_OCCLUSION_TEST_RESULT_HP = 0x8166; + } Index: IBM_rasterpos_clip.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/IBM_rasterpos_clip.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- IBM_rasterpos_clip.java 15 Feb 2005 13:33:59 -0000 1.1 +++ IBM_rasterpos_clip.java 15 Feb 2005 19:26:21 -0000 1.2 @@ -32,4 +32,11 @@ package org.lwjgl.opengl; public interface IBM_rasterpos_clip { + + /** + * Accepted by the <target> parameter of Enable and Disable and the <value> + * parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, GetDoublev: + */ + int GL_RASTER_POSITION_UNCLIPPED_IBM = 103010; + } Index: NV_float_buffer.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_float_buffer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- NV_float_buffer.java 15 Feb 2005 17:06:14 -0000 1.2 +++ NV_float_buffer.java 15 Feb 2005 19:26:21 -0000 1.3 @@ -67,19 +67,19 @@ * wglGetPixelFormatAttribfvARB and in the <piAttribIList> and * <pfAttribFList> arrays of wglChoosePixelFormatARB: */ - int GL_WGL_FLOAT_COMPONENTS_NV = 0x20B0; - int GL_WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV = 0x20B1; - int GL_WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV = 0x20B2; - int GL_WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV = 0x20B3; - int GL_WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV = 0x20B4; + int WGL_FLOAT_COMPONENTS_NV = 0x20B0; + int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV = 0x20B1; + int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV = 0x20B2; + int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV = 0x20B3; + int WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV = 0x20B4; /* * Accepted in the <piAttribIList> array of wglCreatePbufferARB and returned * in the <value> parameter of wglQueryPbufferARB when <iAttribute> is * WGL_TEXTURE_FORMAT_ARB: */ - int GL_WGL_TEXTURE_FLOAT_R_NV = 0x20B5; - int GL_WGL_TEXTURE_FLOAT_RG_NV = 0x20B6; - int GL_WGL_TEXTURE_FLOAT_RGB_NV = 0x20B7; - int GL_WGL_TEXTURE_FLOAT_RGBA_NV = 0x20B8; + int WGL_TEXTURE_FLOAT_R_NV = 0x20B5; + int WGL_TEXTURE_FLOAT_RG_NV = 0x20B6; + int WGL_TEXTURE_FLOAT_RGB_NV = 0x20B7; + int WGL_TEXTURE_FLOAT_RGBA_NV = 0x20B8; } |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25849 Modified Files: ALboolean.java ALbyte.java ALenum.java ALfloat.java ALint.java ALshort.java ALsizei.java ALTypeMap.java ALubyte.java ALuint.java ALvoid.java AutoSize.java FieldsGenerator.java GeneratorProcessorFactory.java GeneratorVisitor.java GLbitfield.java GLboolean.java GLbyte.java GLchar.java GLcharARB.java GLclampd.java GLclampf.java GLdouble.java GLenum.java GLfloat.java GLhalf.java GLhandleARB.java GLint.java GLintptr.java GLintptrARB.java GLshort.java GLsizei.java GLsizeiptr.java GLsizeiptrARB.java GLTypeMap.java GLubyte.java GLuint.java GLushort.java GLvoid.java JavaMethodsGenerator.java JavaTypeTranslator.java JNITypeTranslator.java Mode.java NativeMethodStubsGenerator.java NativeType.java NativeTypeTranslator.java PostfixTranslator.java RegisterStubsGenerator.java SignatureTranslator.java TypedefsGenerator.java TypeInfo.java TypeMap.java Utils.java Log Message: Cleanup Index: Utils.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/Utils.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Utils.java 15 Feb 2005 11:05:00 -0000 1.1 +++ Utils.java 15 Feb 2005 17:13:05 -0000 1.2 @@ -45,18 +45,15 @@ import java.io.*; import java.util.*; -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; -import com.sun.mirror.type.*; -import com.sun.mirror.util.*; public class Utils { - public final static String BUFFER_OBJECT_METHOD_POSTFIX = "BO"; - public final static String BUFFER_OBJECT_PARAMETER_POSTFIX = "_buffer_offset"; - public final static String RESULT_SIZE_NAME = "result_size"; - public final static String RESULT_VAR_NAME = "__result"; - public final static String CACHED_BUFFER_NAME = "old_buffer"; - private final static String OVERLOADED_METHOD_PREFIX = "n"; + public static final String BUFFER_OBJECT_METHOD_POSTFIX = "BO"; + public static final String BUFFER_OBJECT_PARAMETER_POSTFIX = "_buffer_offset"; + public static final String RESULT_SIZE_NAME = "result_size"; + public static final String RESULT_VAR_NAME = "__result"; + public static final String CACHED_BUFFER_NAME = "old_buffer"; + private static final String OVERLOADED_METHOD_PREFIX = "n"; private static class AnnotationMirrorComparator implements Comparator<AnnotationMirror> { public int compare(AnnotationMirror a1, AnnotationMirror a2) { @@ -80,11 +77,11 @@ public static boolean isAddressableType(TypeMirror type) { return isAddressableType(getJavaType(type)); } - + public static boolean isAddressableType(Class type) { return Buffer.class.isAssignableFrom(type) || String.class.equals(type); } - + public static Class getJavaType(TypeMirror type_mirror) { JavaTypeTranslator translator = new JavaTypeTranslator(); type_mirror.accept(translator); @@ -105,7 +102,7 @@ throw new RuntimeException(param + " not defined as java.nio.Buffer but has multiple types"); return result; } - + public static ParameterDeclaration findParameter(MethodDeclaration method, String name) { for (ParameterDeclaration param : method.getParameters()) if (param.getSimpleName().equals(name)) @@ -176,7 +173,7 @@ result_type = method.getReturnType(); return result_type; } - + public static void printExtraCallArguments(PrintWriter writer, MethodDeclaration method) { writer.print(", " + RESULT_SIZE_NAME); if (method.getAnnotation(CachedResult.class) != null) { @@ -186,7 +183,7 @@ private static String getClassName(InterfaceDeclaration interface_decl, String opengl_name) { Extension extension_annotation = interface_decl.getAnnotation(Extension.class); - if (extension_annotation != null && !extension_annotation.className().equals("")) { + if (extension_annotation != null && !"".equals(extension_annotation.className())) { return extension_annotation.className(); } StringBuilder result = new StringBuilder(); Index: GLubyte.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLubyte.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLubyte.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLubyte.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLsizei.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLsizei.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLsizei.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLsizei.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLsizeiptr.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLsizeiptr.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLsizeiptr.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLsizeiptr.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLdouble.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLdouble.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLdouble.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLdouble.java 15 Feb 2005 17:12:48 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLushort.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLushort.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLushort.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLushort.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLint.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLint.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLint.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLint.java 15 Feb 2005 17:12:56 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: JavaMethodsGenerator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/JavaMethodsGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- JavaMethodsGenerator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ JavaMethodsGenerator.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -44,7 +44,6 @@ import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; @@ -170,6 +169,7 @@ StripPostfix strip_annotation = method.getAnnotation(StripPostfix.class); String method_name = method.getSimpleName(); if (strip_annotation != null) { + // TODO: This is not used, is it necessary? (keep Utils.findParameter only?) ParameterDeclaration postfix_parameter = Utils.findParameter(method, strip_annotation.value()); if (mode == Mode.NORMAL) method_name = getPostfixStrippedName(type_map, interface_decl, method); @@ -233,7 +233,7 @@ } return null; } - + private static boolean hasAnyParameterAutoTypeAnnotation(MethodDeclaration method, ParameterDeclaration target_param) { for (ParameterDeclaration param : method.getParameters()) { AutoType auto_type_annotation = param.getAnnotation(AutoType.class); @@ -354,7 +354,6 @@ } private static void printMethodCallArguments(PrintWriter writer, MethodDeclaration method, Map<ParameterDeclaration, TypeInfo> typeinfos_instance, Mode mode) { - Collection<ParameterDeclaration> params = method.getParameters(); boolean first_parameter = true; for (ParameterDeclaration param : method.getParameters()) if (param.getAnnotation(Result.class) == null) { @@ -369,7 +368,7 @@ private static void printParameterChecks(PrintWriter writer, MethodDeclaration method, Mode mode) { for (ParameterDeclaration param : method.getParameters()) { Class java_type = Utils.getJavaType(param.getType()); - if (Utils.isAddressableType(java_type) && + if (Utils.isAddressableType(java_type) && (mode != Mode.BUFFEROBJECT || param.getAnnotation(BufferObject.class) == null) && (mode != Mode.AUTOS || getAutoTypeParameter(method, param) == null) && param.getAnnotation(Result.class) == null) { @@ -399,7 +398,7 @@ writer.print("\t"); } writer.print("\t\tBufferChecks.check"); - if (check_value != null && !check_value.equals("")) { + if (check_value != null && !"".equals(check_value) ) { writer.print("Buffer(" + name + ", " + check_value); } else { writer.print("Direct"); Index: GeneratorProcessorFactory.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GeneratorProcessorFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- GeneratorProcessorFactory.java 15 Feb 2005 13:33:03 -0000 1.2 +++ GeneratorProcessorFactory.java 15 Feb 2005 17:12:46 -0000 1.3 @@ -34,19 +34,12 @@ import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; -import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.util.Collection; import java.util.Set; -import java.util.Iterator; import java.util.Map; import java.util.Arrays; -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; - import static java.util.Collections.*; import static com.sun.mirror.util.DeclarationVisitors.*; @@ -61,7 +54,7 @@ */ public class GeneratorProcessorFactory implements AnnotationProcessorFactory, RoundCompleteListener { private static boolean first_round = true; - + // Process any set of annotations private static final Collection<String> supportedAnnotations = unmodifiableCollection(Arrays.asList("*")); @@ -108,7 +101,7 @@ if (k.startsWith("-Atypemap")) { typemap_classname = k.substring(delimiter + 1); } - } else if (k.equals("-Ageneratechecks")) { + } else if ( "-Ageneratechecks".equals(k)) { generate_error_checks = true; } } Index: ALboolean.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALboolean.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALboolean.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALboolean.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GeneratorVisitor.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GeneratorVisitor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- GeneratorVisitor.java 15 Feb 2005 13:33:03 -0000 1.2 +++ GeneratorVisitor.java 15 Feb 2005 17:12:46 -0000 1.3 @@ -44,7 +44,6 @@ import java.io.File; import java.nio.*; -import java.lang.annotation.Annotation; /** * $Id$ @@ -55,7 +54,7 @@ * @version $Revision$ */ public class GeneratorVisitor extends SimpleDeclarationVisitor { - private final static String STUB_INITIALIZER_NAME = "initNativeStubs"; + private static final String STUB_INITIALIZER_NAME = "initNativeStubs"; private final AnnotationProcessorEnvironment env; private final TypeMap type_map; @@ -66,12 +65,12 @@ this.type_map = type_map; this.generate_error_checks = generate_error_checks; } - + private void validateMethods(InterfaceDeclaration d) { for (MethodDeclaration method : d.getMethods()) validateMethod(method); } - + private void validateMethod(MethodDeclaration method) { if (method.isVarArgs()) throw new RuntimeException("Method " + method.getSimpleName() + " is variadic"); @@ -102,7 +101,7 @@ for (int i = 0; i < valid_types.length; i++) if (valid_types[i].equals(annotation_type)) return; - throw new RuntimeException(type + " is annotated with invalid native type " + annotation_type + + throw new RuntimeException(type + " is annotated with invalid native type " + annotation_type + " in method " + method); } @@ -129,7 +128,7 @@ boolean found_auto_size_param = false; for (ParameterDeclaration inner_param : method.getParameters()) { AutoSize auto_size_annotation = inner_param.getAnnotation(AutoSize.class); - if (auto_size_annotation != null && + if (auto_size_annotation != null && auto_size_annotation.value().equals(param.getSimpleName())) { found_auto_size_param = true; break; @@ -150,7 +149,7 @@ } } - private void generateMethodsNativePointers(PrintWriter writer, Collection<? extends MethodDeclaration> methods) { + private static void generateMethodsNativePointers(PrintWriter writer, Collection<? extends MethodDeclaration> methods) { for (MethodDeclaration method : methods) generateMethodNativePointers(writer, method); } Index: GLuint.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLuint.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLuint.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLuint.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLvoid.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLvoid.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLvoid.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLvoid.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALvoid.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALvoid.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALvoid.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALvoid.java 15 Feb 2005 17:12:46 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLintptrARB.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLintptrARB.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLintptrARB.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLintptrARB.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLbyte.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLbyte.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLbyte.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLbyte.java 15 Feb 2005 17:12:47 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: NativeMethodStubsGenerator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/NativeMethodStubsGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NativeMethodStubsGenerator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ NativeMethodStubsGenerator.java 15 Feb 2005 17:12:58 -0000 1.2 @@ -44,15 +44,14 @@ import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; import java.nio.*; public class NativeMethodStubsGenerator { - private final static String BUFFER_ADDRESS_POSTFIX = "_address"; - public final static String BUFFER_POSITION_POSTFIX = "_position"; + private static final String BUFFER_ADDRESS_POSTFIX = "_address"; + public static final String BUFFER_POSITION_POSTFIX = "_position"; public static void generateNativeMethodStubs(AnnotationProcessorEnvironment env, TypeMap type_map, PrintWriter writer, InterfaceDeclaration d, boolean generate_error_checks) { for (MethodDeclaration method : d.getMethods()) { @@ -61,7 +60,7 @@ generateMethodStub(env, type_map, writer, Utils.getQualifiedClassName(d), method, Mode.BUFFEROBJECT, generate_error_checks); } } - + private static void generateParameters(PrintWriter writer, Collection<ParameterDeclaration> params, Mode mode) { for (ParameterDeclaration param : params) if (param.getAnnotation(Result.class) == null) Index: GLenum.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLenum.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLenum.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLenum.java 15 Feb 2005 17:12:48 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: JNITypeTranslator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/JNITypeTranslator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- JNITypeTranslator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ JNITypeTranslator.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -32,20 +32,9 @@ package org.lwjgl.generator; -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; -import java.util.Collection; -import java.util.Iterator; - -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; - -import java.lang.annotation.Annotation; - /** * $Id$ * @@ -69,23 +58,23 @@ public void visitArrayType(ArrayType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitClassType(ClassType t) { signature.append("jobject"); } - + public void visitDeclaredType(DeclaredType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitEnumType(EnumType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitInterfaceType(InterfaceType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitPrimitiveType(PrimitiveType t) { String type; switch (t.getKind()) { @@ -112,23 +101,23 @@ } signature.append(type); } - + public void visitReferenceType(ReferenceType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeMirror(TypeMirror t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeVariable(TypeVariable t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitVoidType(VoidType t) { signature.append(t.toString()); } - + public void visitWildcardType(WildcardType t) { throw new RuntimeException(t + " is not allowed"); } Index: GLbitfield.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLbitfield.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLbitfield.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLbitfield.java 15 Feb 2005 17:12:46 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: TypedefsGenerator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/TypedefsGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TypedefsGenerator.java 15 Feb 2005 11:05:00 -0000 1.1 +++ TypedefsGenerator.java 15 Feb 2005 17:13:02 -0000 1.2 @@ -41,16 +41,14 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; public class TypedefsGenerator { - public final static String TYPEDEF_POSTFIX = "PROC"; + public static final String TYPEDEF_POSTFIX = "PROC"; private static void generateNativeTypedefs(TypeMap type_map, PrintWriter writer, MethodDeclaration method) { TypeMirror return_type = method.getReturnType(); Index: SignatureTranslator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/SignatureTranslator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SignatureTranslator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ SignatureTranslator.java 15 Feb 2005 17:13:02 -0000 1.2 @@ -41,8 +41,6 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; @@ -52,7 +50,7 @@ private final boolean add_position_signature; private final StringBuilder signature = new StringBuilder(); - public SignatureTranslator(boolean add_position_signature) { + SignatureTranslator(boolean add_position_signature) { this.add_position_signature = add_position_signature; } @@ -71,7 +69,7 @@ public void visitArrayType(ArrayType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitClassType(ClassType t) { String type_name = getNativeNameFromClassName(t.getDeclaration().getQualifiedName()); signature.append("L"); @@ -81,21 +79,20 @@ signature.append("I"); } } - + public void visitDeclaredType(DeclaredType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitEnumType(EnumType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitInterfaceType(InterfaceType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitPrimitiveType(PrimitiveType t) { - String type; switch (t.getKind()) { case BOOLEAN: signature.append("Z"); @@ -122,23 +119,23 @@ throw new RuntimeException("Unsupported type " + t); } } - + public void visitReferenceType(ReferenceType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeMirror(TypeMirror t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeVariable(TypeVariable t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitVoidType(VoidType t) { signature.append("V"); } - + public void visitWildcardType(WildcardType t) { throw new RuntimeException(t + " is not allowed"); } Index: NativeTypeTranslator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/NativeTypeTranslator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NativeTypeTranslator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ NativeTypeTranslator.java 15 Feb 2005 17:13:00 -0000 1.2 @@ -35,25 +35,19 @@ /** * $Id$ * - * A TypeVisitor that translates types (and optional native type + * A TypeVisitor that translates types (and optional native type * annotations) to the native type string. * * @author elias_naur <eli...@us...> * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; import java.util.Collection; import java.util.ArrayList; -import java.util.Iterator; - -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; import java.nio.*; @@ -73,7 +67,7 @@ private boolean is_indirect; private final Declaration declaration; private final TypeMap type_map; - + public NativeTypeTranslator(TypeMap type_map, Declaration declaration) { this.declaration = declaration; this.type_map = type_map; @@ -100,7 +94,7 @@ public void visitArrayType(ArrayType t) { throw new RuntimeException(t + " is not allowed"); } - + public static PrimitiveType.Kind getPrimitiveKindFromBufferClass(Class c) { if (IntBuffer.class.equals(c)) return PrimitiveType.Kind.INT; @@ -145,7 +139,7 @@ throw new RuntimeException(t + " is not allowed"); is_indirect = true; } - + public void visitPrimitiveType(PrimitiveType t) { getNativeTypeFromAnnotatedPrimitiveType(t.getKind()); } @@ -153,21 +147,21 @@ public void visitDeclaredType(DeclaredType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitEnumType(EnumType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitInterfaceType(InterfaceType t) { throw new RuntimeException(t + " is not allowed"); } - + // Check if the annotation is itself annotated with a certain annotation type public static <T extends Annotation> T getAnnotation(AnnotationMirror annotation, Class<T> type) { return annotation.getAnnotationType().getDeclaration().getAnnotation(type); } - private Class translateAnnotation(AnnotationMirror annotation) { + private static Class translateAnnotation(AnnotationMirror annotation) { NativeType native_type = getAnnotation(annotation, NativeType.class); if (native_type != null) { return getClassFromType(annotation.getAnnotationType()); @@ -193,17 +187,17 @@ public void visitTypeMirror(TypeMirror t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeVariable(TypeVariable t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitVoidType(VoidType t) { native_types = translateAnnotations(); if (native_types.size() == 0) native_types.add(void.class); } - + public void visitWildcardType(WildcardType t) { throw new RuntimeException(t + " is not allowed"); } Index: JavaTypeTranslator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/JavaTypeTranslator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- JavaTypeTranslator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ JavaTypeTranslator.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -32,23 +32,9 @@ package org.lwjgl.generator; -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; -import java.util.Collection; -import java.util.ArrayList; -import java.util.Iterator; - -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; - -import java.nio.*; - -import java.lang.annotation.Annotation; - /** * $Id$ * @@ -64,7 +50,7 @@ public Class getType() { return type; } - + public void visitAnnotationType(AnnotationType t) { throw new RuntimeException(t + " is not allowed"); } @@ -72,7 +58,7 @@ public void visitArrayType(ArrayType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitPrimitiveType(PrimitiveType t) { switch (t.getKind()) { case INT: @@ -101,35 +87,35 @@ public void visitDeclaredType(DeclaredType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitEnumType(EnumType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitClassType(ClassType t) { type = NativeTypeTranslator.getClassFromType(t); } - + public void visitInterfaceType(InterfaceType t) { type = NativeTypeTranslator.getClassFromType(t); } - + public void visitReferenceType(ReferenceType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeMirror(TypeMirror t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeVariable(TypeVariable t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitVoidType(VoidType t) { type = void.class; } - + public void visitWildcardType(WildcardType t) { throw new RuntimeException(t + " is not allowed"); } Index: GLclampd.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLclampd.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLclampd.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLclampd.java 15 Feb 2005 17:12:48 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLcharARB.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLcharARB.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLcharARB.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLcharARB.java 15 Feb 2005 17:12:47 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: Mode.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/Mode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Mode.java 15 Feb 2005 11:04:59 -0000 1.1 +++ Mode.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -32,14 +32,6 @@ package org.lwjgl.generator; -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; -import com.sun.mirror.type.*; -import com.sun.mirror.util.*; - -import java.io.*; -import java.util.*; - public enum Mode { BUFFEROBJECT, AUTOS, Index: GLboolean.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLboolean.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLboolean.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLboolean.java 15 Feb 2005 17:12:46 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALbyte.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALbyte.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALbyte.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALbyte.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALuint.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALuint.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALuint.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALuint.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLintptr.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLintptr.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLintptr.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLintptr.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALint.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALint.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALint.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALint.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: FieldsGenerator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/FieldsGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- FieldsGenerator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ FieldsGenerator.java 15 Feb 2005 17:12:46 -0000 1.2 @@ -32,14 +32,11 @@ package org.lwjgl.generator; -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; -import java.nio.*; public class FieldsGenerator { private static void validateField(FieldDeclaration field) { @@ -61,7 +58,7 @@ private static void generateField(PrintWriter writer, FieldDeclaration field) { Integer field_value = (Integer)field.getConstantValue(); validateField(field); - String field_value_string = Integer.toHexString(field_value.intValue()); + String field_value_string = Integer.toHexString(field_value); Utils.printDocComment(writer, field); // Print field declaration writer.println("\tpublic static final " + field.getType().toString() + " " + field.getSimpleName() + " = 0x" + field_value_string + ";"); Index: GLshort.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLshort.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLshort.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLshort.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALfloat.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALfloat.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALfloat.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALfloat.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLsizeiptrARB.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLsizeiptrARB.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLsizeiptrARB.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLsizeiptrARB.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALsizei.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALsizei.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALsizei.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALsizei.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLfloat.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLfloat.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLfloat.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLfloat.java 15 Feb 2005 17:12:48 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: NativeType.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/NativeType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NativeType.java 15 Feb 2005 11:04:59 -0000 1.1 +++ NativeType.java 15 Feb 2005 17:12:59 -0000 1.2 @@ -41,7 +41,6 @@ * @version $Revision$ */ -import com.sun.mirror.type.PrimitiveType; import java.lang.annotation.Target; import java.lang.annotation.ElementType; Index: AutoSize.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/AutoSize.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- AutoSize.java 15 Feb 2005 11:04:58 -0000 1.1 +++ AutoSize.java 15 Feb 2005 17:12:46 -0000 1.2 @@ -34,7 +34,7 @@ /** * $Id$ * - * @AutoSize specifies that a parameter should be pre-computed + * AutoSize specifies that a parameter should be pre-computed * according to the remaining() of a Buffer parameter. * * @author elias_naur <eli...@us...> Index: GLhandleARB.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLhandleARB.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLhandleARB.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLhandleARB.java 15 Feb 2005 17:12:56 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLclampf.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLclampf.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLclampf.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLclampf.java 15 Feb 2005 17:12:48 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALshort.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALshort.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALshort.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALshort.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLTypeMap.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLTypeMap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLTypeMap.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLTypeMap.java 15 Feb 2005 17:12:57 -0000 1.2 @@ -41,17 +41,15 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; import java.nio.*; public class GLTypeMap implements TypeMap { - private final static Map<Class, PrimitiveType.Kind> native_types_to_primitive; + private static final Map<Class, PrimitiveType.Kind> native_types_to_primitive; static { native_types_to_primitive = new HashMap<Class, PrimitiveType.Kind>(); @@ -209,7 +207,7 @@ public String getTypedefPrefix() { return "APIENTRY"; } - + public void printNativeIncludes(PrintWriter writer) { writer.println("#include \"extgl.h\""); } Index: RegisterStubsGenerator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/RegisterStubsGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- RegisterStubsGenerator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ RegisterStubsGenerator.java 15 Feb 2005 17:13:01 -0000 1.2 @@ -41,14 +41,11 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; -import java.nio.*; public class RegisterStubsGenerator { public static void generateMethodsNativeStubBind(PrintWriter writer, InterfaceDeclaration d, boolean generate_error_checks) { @@ -79,7 +76,7 @@ type.accept(v); return v.getSignature(); } - + private static String getMethodSignature(MethodDeclaration method, Mode mode) { Collection<ParameterDeclaration> params = method.getParameters(); String signature = "("; Index: GLchar.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLchar.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLchar.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLchar.java 15 Feb 2005 17:12:47 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: GLhalf.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GLhalf.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLhalf.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GLhalf.java 15 Feb 2005 17:12:48 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: TypeMap.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/TypeMap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TypeMap.java 15 Feb 2005 11:05:00 -0000 1.1 +++ TypeMap.java 15 Feb 2005 17:13:05 -0000 1.2 @@ -41,27 +41,23 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; -import java.util.*; -import java.nio.*; public interface TypeMap { - public String getErrorCheckMethodName(); - public String getRegisterNativesFunctionName(); - public PrimitiveType.Kind getPrimitiveTypeFromNativeType(Class native_type); - public String getTypedefPrefix(); - public void printNativeIncludes(PrintWriter writer); - public Class getStringElementType(); - public Class[] getValidAnnotationTypes(Class type); - public Class getVoidType(); - public String translateAnnotation(Class annotation_type); - public Class getNativeTypeFromPrimitiveType(PrimitiveType.Kind kind); - public String getAutoTypeFromAnnotation(AnnotationMirror annotation); - public Class getInverseType(Class type); - public Signedness getSignednessFromType(Class type); + String getErrorCheckMethodName(); + String getRegisterNativesFunctionName(); + PrimitiveType.Kind getPrimitiveTypeFromNativeType(Class native_type); + String getTypedefPrefix(); + void printNativeIncludes(PrintWriter writer); + Class getStringElementType(); + Class[] getValidAnnotationTypes(Class type); + Class getVoidType(); + String translateAnnotation(Class annotation_type); + Class getNativeTypeFromPrimitiveType(PrimitiveType.Kind kind); + String getAutoTypeFromAnnotation(AnnotationMirror annotation); + Class getInverseType(Class type); + Signedness getSignednessFromType(Class type); } Index: TypeInfo.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/TypeInfo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TypeInfo.java 15 Feb 2005 11:05:00 -0000 1.1 +++ TypeInfo.java 15 Feb 2005 17:13:03 -0000 1.2 @@ -48,7 +48,7 @@ import java.nio.*; public class TypeInfo { - public final static String UNSIGNED_PARAMETER_NAME = "unsigned"; + public static final String UNSIGNED_PARAMETER_NAME = "unsigned"; private final Signedness signedness; private final Class type; @@ -67,7 +67,7 @@ public Signedness getSignedness() { return signedness; } - + public String getAutoType() { if (auto_type == null) throw new RuntimeException("No auto type assigned"); Index: ALTypeMap.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALTypeMap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALTypeMap.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALTypeMap.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -41,17 +41,15 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; -import com.sun.mirror.util.*; import java.io.*; import java.util.*; import java.nio.*; public class ALTypeMap implements TypeMap { - private final static Map<Class, PrimitiveType.Kind> native_types_to_primitive; + private static final Map<Class, PrimitiveType.Kind> native_types_to_primitive; static { native_types_to_primitive = new HashMap<Class, PrimitiveType.Kind>(); @@ -173,7 +171,7 @@ public String getTypedefPrefix() { return "ALAPIENTRY"; } - + public void printNativeIncludes(PrintWriter writer) { writer.println("#include \"checkALerror.h\""); writer.println("#include \"extal.h\""); @@ -182,7 +180,7 @@ public Class getStringElementType() { return ALubyte.class; } - + public Class[] getValidAnnotationTypes(Class type) { Class[] valid_types; if (Buffer.class.isAssignableFrom(type)) Index: PostfixTranslator.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/PostfixTranslator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- PostfixTranslator.java 15 Feb 2005 11:04:59 -0000 1.1 +++ PostfixTranslator.java 15 Feb 2005 17:13:01 -0000 1.2 @@ -42,27 +42,17 @@ * @version $Revision$ */ -import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; -import java.util.Collection; -import java.util.Iterator; - -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; - import java.nio.*; -import java.lang.annotation.Annotation; - public class PostfixTranslator implements TypeVisitor { private final StringBuilder signature = new StringBuilder(); private final Declaration declaration; private final TypeMap type_map; - + public PostfixTranslator(TypeMap type_map, Declaration declaration) { this.declaration = declaration; this.type_map = type_map; @@ -79,7 +69,7 @@ public void visitArrayType(ArrayType t) { throw new RuntimeException(t + " is not allowed"); } - + private static PrimitiveType.Kind getPrimitiveKindFromBufferClass(Class c) { if (IntBuffer.class.equals(c)) return PrimitiveType.Kind.INT; @@ -100,19 +90,19 @@ PrimitiveType.Kind kind = getPrimitiveKindFromBufferClass(c); visitPrimitiveTypeKind(kind); } - + public void visitDeclaredType(DeclaredType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitEnumType(EnumType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitInterfaceType(InterfaceType t) { throw new RuntimeException(t + " is not allowed"); } - + private boolean translateAnnotation(AnnotationMirror annotation) { NativeType native_type = NativeTypeTranslator.getAnnotation(annotation, NativeType.class); if (native_type != null) { @@ -165,22 +155,22 @@ } signature.append(type); } - + public void visitReferenceType(ReferenceType t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeMirror(TypeMirror t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitTypeVariable(TypeVariable t) { throw new RuntimeException(t + " is not allowed"); } - + public void visitVoidType(VoidType t) { } - + public void visitWildcardType(WildcardType t) { throw new RuntimeException(t + " is not allowed"); } Index: ALubyte.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALubyte.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALubyte.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALubyte.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) Index: ALenum.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/ALenum.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALenum.java 15 Feb 2005 11:04:58 -0000 1.1 +++ ALenum.java 15 Feb 2005 17:12:45 -0000 1.2 @@ -40,7 +40,6 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; -import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) |
Update of /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23876 Modified Files: ARB_buffer_object.java ARB_color_buffer_float.java ARB_depth_texture.java ARB_draw_buffers.java ARB_fragment_program.java ARB_fragment_shader.java ARB_half_float_pixel.java ARB_imaging.java ARB_matrix_palette.java ARB_multisample.java ARB_multitexture.java ARB_occlusion_query.java ARB_pixel_buffer_object.java ARB_point_parameters.java ARB_point_sprite.java ARB_program.java ARB_shader_objects.java ARB_shading_language_100.java ARB_shadow.java ARB_shadow_ambient.java ARB_texture_border_clamp.java ARB_texture_compression.java ARB_texture_cube_map.java ARB_texture_env_combine.java ARB_texture_env_dot3.java ARB_texture_float.java ARB_texture_mirrored_repeat.java ARB_texture_rectangle.java ARB_transpose_matrix.java ARB_vertex_blend.java ARB_vertex_buffer_object.java ARB_vertex_program.java ARB_vertex_shader.java ARB_window_pos.java ATI_draw_buffers.java ATI_element_array.java ATI_envmap_bumpmap.java ATI_fragment_shader.java ATI_map_object_buffer.java ATI_pn_triangles.java ATI_separate_stencil.java ATI_texture_compression_3dc.java ATI_texture_float.java ATI_texture_mirror_once.java ATI_vertex_array_object.java ATI_vertex_attrib_array_object.java ATI_vertex_streams.java EXT_abgr.java EXT_bgra.java EXT_blend_equation_separate.java EXT_blend_func_separate.java EXT_blend_subtract.java EXT_cg_shader.java EXT_compiled_vertex_array.java EXT_depth_bounds_test.java EXT_draw_range_elements.java EXT_fog_coord.java EXT_framebuffer_object.java EXT_multi_draw_arrays.java EXT_packed_pixels.java EXT_paletted_texture.java EXT_pixel_buffer_object.java EXT_point_parameters.java EXT_rescale_normal.java EXT_secondary_color.java EXT_separate_specular_color.java EXT_shared_texture_palette.java EXT_stencil_two_side.java EXT_stencil_wrap.java EXT_texture_compression_s3tc.java EXT_texture_env_combine.java EXT_texture_env_dot3.java EXT_texture_filter_anisotropic.java EXT_texture_lod_bias.java EXT_texture_mirror_clamp.java EXT_texture_rectangle.java EXT_vertex_shader.java EXT_vertex_weighting.java GL11.java GL12.java GL13.java GL14.java GL15.java GL20.java NV_copy_depth_to_color.java NV_depth_clamp.java NV_evaluators.java NV_fence.java NV_float_buffer.java NV_fog_distance.java NV_fragment_program.java NV_fragment_program2.java NV_half_float.java NV_light_max_exponent.java NV_multisample_filter_hint.java NV_occlusion_query.java NV_packed_depth_stencil.java NV_pixel_data_range.java NV_point_sprite.java NV_primitive_restart.java NV_program.java NV_register_combiners.java NV_register_combiners2.java NV_texgen_reflection.java NV_texture_compression_vtc.java NV_texture_env_combine4.java NV_texture_expand_normal.java NV_texture_rectangle.java NV_texture_shader.java NV_texture_shader2.java NV_texture_shader3.java NV_vertex_array_range.java NV_vertex_array_range2.java NV_vertex_program.java NV_vertex_program2_option.java NV_vertex_program3.java SUN_slice_accum.java Log Message: Removed redundant modifiers Index: NV_fence.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_fence.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_fence.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_fence.java 15 Feb 2005 17:06:14 -0000 1.2 @@ -36,20 +36,20 @@ import org.lwjgl.generator.*; public interface NV_fence { - public static final int GL_ALL_COMPLETED_NV = 0x84F2; - public static final int GL_FENCE_STATUS_NV = 0x84F3; - public static final int GL_FENCE_CONDITION_NV = 0x84F4; + int GL_ALL_COMPLETED_NV = 0x84F2; + int GL_FENCE_STATUS_NV = 0x84F3; + int GL_FENCE_CONDITION_NV = 0x84F4; - public void glGenFencesNV(@AutoSize("piFences") @GLsizei int n, @GLuint IntBuffer piFences); - public void glDeleteFencesNV(@AutoSize("piFences") @GLsizei int n, @Const @GLuint IntBuffer piFences); + void glGenFencesNV(@AutoSize("piFences") @GLsizei int n, @GLuint IntBuffer piFences); + void glDeleteFencesNV(@AutoSize("piFences") @GLsizei int n, @Const @GLuint IntBuffer piFences); - public void glSetFenceNV(@GLuint int fence, @GLenum int condition); + void glSetFenceNV(@GLuint int fence, @GLenum int condition); - public boolean glTestFenceNV(@GLuint int fence); + boolean glTestFenceNV(@GLuint int fence); - public void glFinishFenceNV(@GLuint int fence); + void glFinishFenceNV(@GLuint int fence); - public boolean glIsFenceNV(@GLuint int fence); + boolean glIsFenceNV(@GLuint int fence); - public void glGetFenceivNV(@GLuint int fence, @GLenum int pname, @Check("4") IntBuffer piParams); + void glGetFenceivNV(@GLuint int fence, @GLenum int pname, @Check("4") IntBuffer piParams); } Index: NV_texgen_reflection.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_texgen_reflection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_texgen_reflection.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_texgen_reflection.java 15 Feb 2005 17:06:15 -0000 1.2 @@ -32,6 +32,6 @@ package org.lwjgl.opengl; public interface NV_texgen_reflection { - public static final int GL_NORMAL_MAP_NV = 0x8511; - public static final int GL_REFLECTION_MAP_NV = 0x8512; + int GL_NORMAL_MAP_NV = 0x8511; + int GL_REFLECTION_MAP_NV = 0x8512; } Index: EXT_depth_bounds_test.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/EXT_depth_bounds_test.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- EXT_depth_bounds_test.java 15 Feb 2005 11:05:36 -0000 1.1 +++ EXT_depth_bounds_test.java 15 Feb 2005 17:06:00 -0000 1.2 @@ -39,13 +39,13 @@ and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev: */ - public static final int DEPTH_BOUNDS_TEST_EXT = 0x8890; + int GL_DEPTH_BOUNDS_TEST_EXT = 0x8890; /* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev: */ - public static final int DEPTH_BOUNDS_EXT = 0x8891; + int GL_DEPTH_BOUNDS_EXT = 0x8891; - public void glDepthBoundsEXT(@GLclampd double zmin, @GLclampd double zmax); + void glDepthBoundsEXT(@GLclampd double zmin, @GLclampd double zmax); } Index: NV_primitive_restart.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_primitive_restart.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_primitive_restart.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_primitive_restart.java 15 Feb 2005 17:06:15 -0000 1.2 @@ -40,15 +40,15 @@ * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and * GetDoublev: */ - public static final int GL_PRIMITIVE_RESTART_NV = 0x8558; + int GL_PRIMITIVE_RESTART_NV = 0x8558; /* * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, * GetFloatv, and GetDoublev: */ - public static final int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; + int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; - public void glPrimitiveRestartNV(); + void glPrimitiveRestartNV(); - public void glPrimitiveRestartIndexNV(@GLuint int index); + void glPrimitiveRestartIndexNV(@GLuint int index); } Index: ARB_texture_env_combine.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_texture_env_combine.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_texture_env_combine.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_texture_env_combine.java 15 Feb 2005 17:05:56 -0000 1.2 @@ -32,25 +32,25 @@ package org.lwjgl.opengl; public interface ARB_texture_env_combine { - public static final int GL_COMBINE_ARB = 0x8570; - public static final int GL_COMBINE_RGB_ARB = 0x8571; - public static final int GL_COMBINE_ALPHA_ARB = 0x8572; - public static final int GL_RGB_SCALE_ARB = 0x8573; - public static final int GL_ADD_SIGNED_ARB = 0x8574; - public static final int GL_INTERPOLATE_ARB = 0x8575; - public static final int GL_CONSTANT_ARB = 0x8576; - public static final int GL_PRIMARY_COLOR_ARB = 0x8577; - public static final int GL_PREVIOUS_ARB = 0x8578; - public static final int GL_SOURCE0_RGB_ARB = 0x8580; - public static final int GL_SOURCE1_RGB_ARB = 0x8581; - public static final int GL_SOURCE2_RGB_ARB = 0x8582; - public static final int GL_SOURCE0_ALPHA_ARB = 0x8588; - public static final int GL_SOURCE1_ALPHA_ARB = 0x8589; - public static final int GL_SOURCE2_ALPHA_ARB = 0x858A; - public static final int GL_OPERAND0_RGB_ARB = 0x8590; - public static final int GL_OPERAND1_RGB_ARB = 0x8591; - public static final int GL_OPERAND2_RGB_ARB = 0x8592; - public static final int GL_OPERAND0_ALPHA_ARB = 0x8598; - public static final int GL_OPERAND1_ALPHA_ARB = 0x8599; - public static final int GL_OPERAND2_ALPHA_ARB = 0x859A; + int GL_COMBINE_ARB = 0x8570; + int GL_COMBINE_RGB_ARB = 0x8571; + int GL_COMBINE_ALPHA_ARB = 0x8572; + int GL_RGB_SCALE_ARB = 0x8573; + int GL_ADD_SIGNED_ARB = 0x8574; + int GL_INTERPOLATE_ARB = 0x8575; + int GL_CONSTANT_ARB = 0x8576; + int GL_PRIMARY_COLOR_ARB = 0x8577; + int GL_PREVIOUS_ARB = 0x8578; + int GL_SOURCE0_RGB_ARB = 0x8580; + int GL_SOURCE1_RGB_ARB = 0x8581; + int GL_SOURCE2_RGB_ARB = 0x8582; + int GL_SOURCE0_ALPHA_ARB = 0x8588; + int GL_SOURCE1_ALPHA_ARB = 0x8589; + int GL_SOURCE2_ALPHA_ARB = 0x858A; + int GL_OPERAND0_RGB_ARB = 0x8590; + int GL_OPERAND1_RGB_ARB = 0x8591; + int GL_OPERAND2_RGB_ARB = 0x8592; + int GL_OPERAND0_ALPHA_ARB = 0x8598; + int GL_OPERAND1_ALPHA_ARB = 0x8599; + int GL_OPERAND2_ALPHA_ARB = 0x859A; } Index: EXT_secondary_color.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/EXT_secondary_color.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- EXT_secondary_color.java 15 Feb 2005 11:05:36 -0000 1.1 +++ EXT_secondary_color.java 15 Feb 2005 17:06:02 -0000 1.2 @@ -32,27 +32,25 @@ package org.lwjgl.opengl; import java.nio.Buffer; -import java.nio.ByteBuffer; -import java.nio.FloatBuffer; import org.lwjgl.generator.*; public interface EXT_secondary_color { - public static final int GL_COLOR_SUM_EXT = 0x8458; - public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459; - public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A; - public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B; - public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C; - public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; - public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; + int GL_COLOR_SUM_EXT = 0x8458; + int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459; + int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A; + int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B; + int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C; + int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; + int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; - public void glSecondaryColor3bEXT(byte red, byte green, byte blue); + void glSecondaryColor3bEXT(byte red, byte green, byte blue); - public void glSecondaryColor3fEXT(float red, float green, float blue); + void glSecondaryColor3fEXT(float red, float green, float blue); - public void glSecondaryColor3ubEXT(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue); + void glSecondaryColor3ubEXT(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue); - public void glSecondaryColorPointerEXT(int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride, + void glSecondaryColorPointerEXT(int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride, @BufferObject(BufferKind.ArrayVBO) @Check @GLbyte Index: NV_register_combiners2.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_register_combiners2.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_register_combiners2.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_register_combiners2.java 15 Feb 2005 17:06:15 -0000 1.2 @@ -36,11 +36,11 @@ import org.lwjgl.generator.*; public interface NV_register_combiners2 { - public static final int GL_PER_STAGE_CONSTANTS_NV = 0x8535; + int GL_PER_STAGE_CONSTANTS_NV = 0x8535; @StripPostfix("params") - public void glCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Const @Check("4") FloatBuffer params); + void glCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Const @Check("4") FloatBuffer params); @StripPostfix("params") - public void glGetCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Check("4") FloatBuffer params); + void glGetCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Check("4") FloatBuffer params); } Index: EXT_multi_draw_arrays.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/EXT_multi_draw_arrays.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- EXT_multi_draw_arrays.java 15 Feb 2005 11:05:36 -0000 1.1 +++ EXT_multi_draw_arrays.java 15 Feb 2005 17:06:00 -0000 1.2 @@ -39,5 +39,5 @@ @Code( " if (piFirst.remaining() != piCount.remaining()) {\n" + " throw new IllegalArgumentException(\"piFirst.remaining() != piCount.remaining()\");\n" + " }") - public void glMultiDrawArraysEXT(@GLenum int mode, IntBuffer piFirst, @Check @GLsizei IntBuffer piCount, @AutoSize("piFirst") int primcount); + void glMultiDrawArraysEXT(@GLenum int mode, IntBuffer piFirst, @Check @GLsizei IntBuffer piCount, @AutoSize("piFirst") int primcount); } Index: ARB_shading_language_100.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_shading_language_100.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_shading_language_100.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_shading_language_100.java 15 Feb 2005 17:05:56 -0000 1.2 @@ -35,5 +35,5 @@ /** * Accepted by the <name> parameter of GetString: */ - public static final int GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C; + int GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C; } Index: GL13.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/GL13.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GL13.java 15 Feb 2005 11:05:36 -0000 1.1 +++ GL13.java 15 Feb 2005 17:06:12 -0000 1.2 @@ -32,14 +32,9 @@ package org.lwjgl.opengl; import java.nio.Buffer; -import java.nio.ByteBuffer; import java.nio.FloatBuffer; -import java.nio.IntBuffer; -import java.nio.ShortBuffer; import org.lwjgl.generator.*; -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; /** * $Id$ @@ -50,112 +45,112 @@ * @version $Revision$ */ public interface GL13 { - public static final int GL_TEXTURE0 = 0x84C0; - public static final int GL_TEXTURE1 = 0x84C1; - public static final int GL_TEXTURE2 = 0x84C2; - public static final int GL_TEXTURE3 = 0x84C3; - public static final int GL_TEXTURE4 = 0x84C4; - public static final int GL_TEXTURE5 = 0x84C5; - public static final int GL_TEXTURE6 = 0x84C6; - public static final int GL_TEXTURE7 = 0x84C7; - public static final int GL_TEXTURE8 = 0x84C8; - public static final int GL_TEXTURE9 = 0x84C9; - public static final int GL_TEXTURE10 = 0x84CA; - public static final int GL_TEXTURE11 = 0x84CB; - public static final int GL_TEXTURE12 = 0x84CC; - public static final int GL_TEXTURE13 = 0x84CD; - public static final int GL_TEXTURE14 = 0x84CE; - public static final int GL_TEXTURE15 = 0x84CF; - public static final int GL_TEXTURE16 = 0x84D0; - public static final int GL_TEXTURE17 = 0x84D1; - public static final int GL_TEXTURE18 = 0x84D2; - public static final int GL_TEXTURE19 = 0x84D3; - public static final int GL_TEXTURE20 = 0x84D4; - public static final int GL_TEXTURE21 = 0x84D5; - public static final int GL_TEXTURE22 = 0x84D6; - public static final int GL_TEXTURE23 = 0x84D7; - public static final int GL_TEXTURE24 = 0x84D8; - public static final int GL_TEXTURE25 = 0x84D9; - public static final int GL_TEXTURE26 = 0x84DA; - public static final int GL_TEXTURE27 = 0x84DB; - public static final int GL_TEXTURE28 = 0x84DC; - public static final int GL_TEXTURE29 = 0x84DD; - public static final int GL_TEXTURE30 = 0x84DE; - public static final int GL_TEXTURE31 = 0x84DF; - public static final int GL_ACTIVE_TEXTURE = 0x84E0; - public static final int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1; - public static final int GL_MAX_TEXTURE_UNITS = 0x84E2; + int GL_TEXTURE0 = 0x84C0; + int GL_TEXTURE1 = 0x84C1; + int GL_TEXTURE2 = 0x84C2; + int GL_TEXTURE3 = 0x84C3; + int GL_TEXTURE4 = 0x84C4; + int GL_TEXTURE5 = 0x84C5; + int GL_TEXTURE6 = 0x84C6; + int GL_TEXTURE7 = 0x84C7; + int GL_TEXTURE8 = 0x84C8; + int GL_TEXTURE9 = 0x84C9; + int GL_TEXTURE10 = 0x84CA; + int GL_TEXTURE11 = 0x84CB; + int GL_TEXTURE12 = 0x84CC; + int GL_TEXTURE13 = 0x84CD; + int GL_TEXTURE14 = 0x84CE; + int GL_TEXTURE15 = 0x84CF; + int GL_TEXTURE16 = 0x84D0; + int GL_TEXTURE17 = 0x84D1; + int GL_TEXTURE18 = 0x84D2; + int GL_TEXTURE19 = 0x84D3; + int GL_TEXTURE20 = 0x84D4; + int GL_TEXTURE21 = 0x84D5; + int GL_TEXTURE22 = 0x84D6; + int GL_TEXTURE23 = 0x84D7; + int GL_TEXTURE24 = 0x84D8; + int GL_TEXTURE25 = 0x84D9; + int GL_TEXTURE26 = 0x84DA; + int GL_TEXTURE27 = 0x84DB; + int GL_TEXTURE28 = 0x84DC; + int GL_TEXTURE29 = 0x84DD; + int GL_TEXTURE30 = 0x84DE; + int GL_TEXTURE31 = 0x84DF; + int GL_ACTIVE_TEXTURE = 0x84E0; + int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1; + int GL_MAX_TEXTURE_UNITS = 0x84E2; - public static final int GL_NORMAL_MAP = 0x8511; - public static final int GL_REFLECTION_MAP = 0x8512; - public static final int GL_TEXTURE_CUBE_MAP = 0x8513; - public static final int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; - public static final int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; - public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; + int GL_NORMAL_MAP = 0x8511; + int GL_REFLECTION_MAP = 0x8512; + int GL_TEXTURE_CUBE_MAP = 0x8513; + int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; + int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; + int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; + int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; + int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; + int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; + int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; + int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; + int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; - public static final int GL_COMPRESSED_ALPHA = 0x84E9; - public static final int GL_COMPRESSED_LUMINANCE = 0x84EA; - public static final int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB; - public static final int GL_COMPRESSED_INTENSITY = 0x84EC; - public static final int GL_COMPRESSED_RGB = 0x84ED; - public static final int GL_COMPRESSED_RGBA = 0x84EE; - public static final int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; - public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; - public static final int GL_TEXTURE_COMPRESSED = 0x86A1; - public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; - public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; + int GL_COMPRESSED_ALPHA = 0x84E9; + int GL_COMPRESSED_LUMINANCE = 0x84EA; + int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB; + int GL_COMPRESSED_INTENSITY = 0x84EC; + int GL_COMPRESSED_RGB = 0x84ED; + int GL_COMPRESSED_RGBA = 0x84EE; + int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; + int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; + int GL_TEXTURE_COMPRESSED = 0x86A1; + int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; + int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; - public static final int GL_MULTISAMPLE = 0x809D; - public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; - public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; - public static final int GL_SAMPLE_COVERAGE = 0x80A0; - public static final int GL_SAMPLE_BUFFERS = 0x80A8; - public static final int GL_SAMPLES = 0x80A9; - public static final int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; - public static final int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; - public static final int GL_MULTISAMPLE_BIT = 0x20000000; + int GL_MULTISAMPLE = 0x809D; + int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; + int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; + int GL_SAMPLE_COVERAGE = 0x80A0; + int GL_SAMPLE_BUFFERS = 0x80A8; + int GL_SAMPLES = 0x80A9; + int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; + int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; + int GL_MULTISAMPLE_BIT = 0x20000000; - public static final int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; - public static final int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4; - public static final int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5; - public static final int GL_TRANSPOSE_COLOR_MATRIX = 0x84E6; + int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; + int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4; + int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5; + int GL_TRANSPOSE_COLOR_MATRIX = 0x84E6; - public static final int GL_COMBINE = 0x8570; - public static final int GL_COMBINE_RGB = 0x8571; - public static final int GL_COMBINE_ALPHA = 0x8572; - public static final int GL_SOURCE0_RGB = 0x8580; - public static final int GL_SOURCE1_RGB = 0x8581; - public static final int GL_SOURCE2_RGB = 0x8582; - public static final int GL_SOURCE0_ALPHA = 0x8588; - public static final int GL_SOURCE1_ALPHA = 0x8589; - public static final int GL_SOURCE2_ALPHA = 0x858A; - public static final int GL_OPERAND0_RGB = 0x8590; - public static final int GL_OPERAND1_RGB = 0x8591; - public static final int GL_OPERAND2_RGB = 0x8592; - public static final int GL_OPERAND0_ALPHA = 0x8598; - public static final int GL_OPERAND1_ALPHA = 0x8599; - public static final int GL_OPERAND2_ALPHA = 0x859A; - public static final int GL_RGB_SCALE = 0x8573; - public static final int GL_ADD_SIGNED = 0x8574; - public static final int GL_INTERPOLATE = 0x8575; - public static final int GL_SUBTRACT = 0x84E7; - public static final int GL_CONSTANT = 0x8576; - public static final int GL_PRIMARY_COLOR = 0x8577; - public static final int GL_PREVIOUS = 0x8578; - public static final int GL_DOT3_RGB = 0x86AE; - public static final int GL_DOT3_RGBA = 0x86AF; - public static final int GL_CLAMP_TO_BORDER = 0x812D; + int GL_COMBINE = 0x8570; + int GL_COMBINE_RGB = 0x8571; + int GL_COMBINE_ALPHA = 0x8572; + int GL_SOURCE0_RGB = 0x8580; + int GL_SOURCE1_RGB = 0x8581; + int GL_SOURCE2_RGB = 0x8582; + int GL_SOURCE0_ALPHA = 0x8588; + int GL_SOURCE1_ALPHA = 0x8589; + int GL_SOURCE2_ALPHA = 0x858A; + int GL_OPERAND0_RGB = 0x8590; + int GL_OPERAND1_RGB = 0x8591; + int GL_OPERAND2_RGB = 0x8592; + int GL_OPERAND0_ALPHA = 0x8598; + int GL_OPERAND1_ALPHA = 0x8599; + int GL_OPERAND2_ALPHA = 0x859A; + int GL_RGB_SCALE = 0x8573; + int GL_ADD_SIGNED = 0x8574; + int GL_INTERPOLATE = 0x8575; + int GL_SUBTRACT = 0x84E7; + int GL_CONSTANT = 0x8576; + int GL_PRIMARY_COLOR = 0x8577; + int GL_PREVIOUS = 0x8578; + int GL_DOT3_RGB = 0x86AE; + int GL_DOT3_RGBA = 0x86AF; + int GL_CLAMP_TO_BORDER = 0x812D; - public void glActiveTexture(@GLenum int texture); + void glActiveTexture(@GLenum int texture); - public void glClientActiveTexture(@GLenum int texture); - public void glCompressedTexImage1D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @GLsizei int imageSize, + void glClientActiveTexture(@GLenum int texture); + void glCompressedTexImage1D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @@ -165,7 +160,7 @@ @GLfloat Buffer data); - public void glCompressedTexImage2D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @GLsizei int imageSize, + void glCompressedTexImage2D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @@ -175,7 +170,7 @@ @GLfloat Buffer data); - public void glCompressedTexImage3D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLsizei int imageSize, + void glCompressedTexImage3D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @@ -184,8 +179,8 @@ @GLint @GLfloat Buffer data); - - public void glCompressedTexSubImage1D(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @GLsizei int imageSize, + + void glCompressedTexSubImage1D(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @@ -195,7 +190,7 @@ @GLfloat Buffer data); - public void glCompressedTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLsizei int imageSize, + void glCompressedTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @@ -205,7 +200,7 @@ @GLfloat Buffer data); - public void glCompressedTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLsizei int imageSize, + void glCompressedTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @@ -214,9 +209,9 @@ @GLint @GLfloat Buffer data); - + // TODO: check buffer size valid - public void glGetCompressedTexImage(@GLenum int target, int lod, + void glGetCompressedTexImage(@GLenum int target, int lod, @BufferObject(BufferKind.PackPBO) @Check @GLbyte @@ -224,20 +219,20 @@ @GLint Buffer img); - public void glMultiTexCoord1f(@GLenum int target, float s); + void glMultiTexCoord1f(@GLenum int target, float s); - public void glMultiTexCoord2f(@GLenum int target, float s, float t); + void glMultiTexCoord2f(@GLenum int target, float s, float t); - public void glMultiTexCoord3f(@GLenum int target, float s, float t, float r); + void glMultiTexCoord3f(@GLenum int target, float s, float t, float r); - public void glMultiTexCoord4f(@GLenum int target, float s, float t, float r, float q); + void glMultiTexCoord4f(@GLenum int target, float s, float t, float r, float q); @StripPostfix("m") - public void glLoadTransposeMatrixf(@Check("16") @Const FloatBuffer m); + void glLoadTransposeMatrixf(@Check("16") @Const FloatBuffer m); @StripPostfix("m") - public void glMultTransposeMatrixf(@Check("16") @Const FloatBuffer m); + void glMultTransposeMatrixf(@Check("16") @Const FloatBuffer m); - public void glSampleCoverage(@GLclampf float value, boolean invert); + void glSampleCoverage(@GLclampf float value, boolean invert); } Index: ARB_window_pos.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_window_pos.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_window_pos.java 15 Feb 2005 11:05:36 -0000 1.1 +++ ARB_window_pos.java 15 Feb 2005 17:05:58 -0000 1.2 @@ -31,19 +31,17 @@ */ package org.lwjgl.opengl; -import org.lwjgl.LWJGLException; - public interface ARB_window_pos { - public void glWindowPos2fARB(float x, float y); + void glWindowPos2fARB(float x, float y); - public void glWindowPos2iARB(int x, int y); + void glWindowPos2iARB(int x, int y); - public void glWindowPos2sARB(short x, short y); + void glWindowPos2sARB(short x, short y); - public void glWindowPos3fARB(float x, float y, float z); + void glWindowPos3fARB(float x, float y, float z); - public void glWindowPos3iARB(int x, int y, int z); + void glWindowPos3iARB(int x, int y, int z); - public void glWindowPos3sARB(short x, short y, short z); + void glWindowPos3sARB(short x, short y, short z); } Index: ARB_shadow_ambient.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_shadow_ambient.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_shadow_ambient.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_shadow_ambient.java 15 Feb 2005 17:05:56 -0000 1.2 @@ -32,5 +32,5 @@ package org.lwjgl.opengl; public interface ARB_shadow_ambient { - public static final int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF; + int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF; } Index: ARB_multitexture.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_multitexture.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_multitexture.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_multitexture.java 15 Feb 2005 17:05:55 -0000 1.2 @@ -31,71 +31,70 @@ */ package org.lwjgl.opengl; -import org.lwjgl.LWJGLException; import org.lwjgl.generator.*; public interface ARB_multitexture { - public static final int GL_TEXTURE0_ARB = 0x84C0; - public static final int GL_TEXTURE1_ARB = 0x84C1; - public static final int GL_TEXTURE2_ARB = 0x84C2; - public static final int GL_TEXTURE3_ARB = 0x84C3; - public static final int GL_TEXTURE4_ARB = 0x84C4; - public static final int GL_TEXTURE5_ARB = 0x84C5; - public static final int GL_TEXTURE6_ARB = 0x84C6; - public static final int GL_TEXTURE7_ARB = 0x84C7; - public static final int GL_TEXTURE8_ARB = 0x84C8; - public static final int GL_TEXTURE9_ARB = 0x84C9; - public static final int GL_TEXTURE10_ARB = 0x84CA; - public static final int GL_TEXTURE11_ARB = 0x84CB; - public static final int GL_TEXTURE12_ARB = 0x84CC; - public static final int GL_TEXTURE13_ARB = 0x84CD; - public static final int GL_TEXTURE14_ARB = 0x84CE; - public static final int GL_TEXTURE15_ARB = 0x84CF; - public static final int GL_TEXTURE16_ARB = 0x84D0; - public static final int GL_TEXTURE17_ARB = 0x84D1; - public static final int GL_TEXTURE18_ARB = 0x84D2; - public static final int GL_TEXTURE19_ARB = 0x84D3; - public static final int GL_TEXTURE20_ARB = 0x84D4; - public static final int GL_TEXTURE21_ARB = 0x84D5; - public static final int GL_TEXTURE22_ARB = 0x84D6; - public static final int GL_TEXTURE23_ARB = 0x84D7; - public static final int GL_TEXTURE24_ARB = 0x84D8; - public static final int GL_TEXTURE25_ARB = 0x84D9; - public static final int GL_TEXTURE26_ARB = 0x84DA; - public static final int GL_TEXTURE27_ARB = 0x84DB; - public static final int GL_TEXTURE28_ARB = 0x84DC; - public static final int GL_TEXTURE29_ARB = 0x84DD; - public static final int GL_TEXTURE30_ARB = 0x84DE; - public static final int GL_TEXTURE31_ARB = 0x84DF; - public static final int GL_ACTIVE_TEXTURE_ARB = 0x84E0; - public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; - public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; + int GL_TEXTURE0_ARB = 0x84C0; + int GL_TEXTURE1_ARB = 0x84C1; + int GL_TEXTURE2_ARB = 0x84C2; + int GL_TEXTURE3_ARB = 0x84C3; + int GL_TEXTURE4_ARB = 0x84C4; + int GL_TEXTURE5_ARB = 0x84C5; + int GL_TEXTURE6_ARB = 0x84C6; + int GL_TEXTURE7_ARB = 0x84C7; + int GL_TEXTURE8_ARB = 0x84C8; + int GL_TEXTURE9_ARB = 0x84C9; + int GL_TEXTURE10_ARB = 0x84CA; + int GL_TEXTURE11_ARB = 0x84CB; + int GL_TEXTURE12_ARB = 0x84CC; + int GL_TEXTURE13_ARB = 0x84CD; + int GL_TEXTURE14_ARB = 0x84CE; + int GL_TEXTURE15_ARB = 0x84CF; + int GL_TEXTURE16_ARB = 0x84D0; + int GL_TEXTURE17_ARB = 0x84D1; + int GL_TEXTURE18_ARB = 0x84D2; + int GL_TEXTURE19_ARB = 0x84D3; + int GL_TEXTURE20_ARB = 0x84D4; + int GL_TEXTURE21_ARB = 0x84D5; + int GL_TEXTURE22_ARB = 0x84D6; + int GL_TEXTURE23_ARB = 0x84D7; + int GL_TEXTURE24_ARB = 0x84D8; + int GL_TEXTURE25_ARB = 0x84D9; + int GL_TEXTURE26_ARB = 0x84DA; + int GL_TEXTURE27_ARB = 0x84DB; + int GL_TEXTURE28_ARB = 0x84DC; + int GL_TEXTURE29_ARB = 0x84DD; + int GL_TEXTURE30_ARB = 0x84DE; + int GL_TEXTURE31_ARB = 0x84DF; + int GL_ACTIVE_TEXTURE_ARB = 0x84E0; + int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; + int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; - public void glClientActiveTextureARB(@GLenum int texture); + void glClientActiveTextureARB(@GLenum int texture); - public void glActiveTextureARB(@GLenum int texture); + void glActiveTextureARB(@GLenum int texture); - public void glMultiTexCoord1fARB(@GLenum int target, float s); + void glMultiTexCoord1fARB(@GLenum int target, float s); - public void glMultiTexCoord1iARB(@GLenum int target, int s); + void glMultiTexCoord1iARB(@GLenum int target, int s); - public void glMultiTexCoord1sARB(@GLenum int target, short s); + void glMultiTexCoord1sARB(@GLenum int target, short s); - public void glMultiTexCoord2fARB(@GLenum int target, float s, float t); + void glMultiTexCoord2fARB(@GLenum int target, float s, float t); - public void glMultiTexCoord2iARB(@GLenum int target, int s, int t); + void glMultiTexCoord2iARB(@GLenum int target, int s, int t); - public void glMultiTexCoord2sARB(@GLenum int target, short s, short t); + void glMultiTexCoord2sARB(@GLenum int target, short s, short t); - public void glMultiTexCoord3fARB(@GLenum int target, float s, float t, float r); + void glMultiTexCoord3fARB(@GLenum int target, float s, float t, float r); - public void glMultiTexCoord3iARB(@GLenum int target, int s, int t, int r); + void glMultiTexCoord3iARB(@GLenum int target, int s, int t, int r); - public void glMultiTexCoord3sARB(@GLenum int target, short s, short t, short r); + void glMultiTexCoord3sARB(@GLenum int target, short s, short t, short r); - public void glMultiTexCoord4fARB(@GLenum int target, float s, float t, float r, float q); + void glMultiTexCoord4fARB(@GLenum int target, float s, float t, float r, float q); - public void glMultiTexCoord4iARB(@GLenum int target, int s, int t, int r, int q); + void glMultiTexCoord4iARB(@GLenum int target, int s, int t, int r, int q); - public void glMultiTexCoord4sARB(@GLenum int target, short s, short t, short r, short q); + void glMultiTexCoord4sARB(@GLenum int target, short s, short t, short r, short q); } Index: ARB_texture_cube_map.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_texture_cube_map.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_texture_cube_map.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_texture_cube_map.java 15 Feb 2005 17:05:56 -0000 1.2 @@ -32,16 +32,16 @@ package org.lwjgl.opengl; public interface ARB_texture_cube_map { - public static final int GL_NORMAL_MAP_ARB = 0x8511; - public static final int GL_REFLECTION_MAP_ARB = 0x8512; - public static final int GL_TEXTURE_CUBE_MAP_ARB = 0x8513; - public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A; - public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B; - public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C; + int GL_NORMAL_MAP_ARB = 0x8511; + int GL_REFLECTION_MAP_ARB = 0x8512; + int GL_TEXTURE_CUBE_MAP_ARB = 0x8513; + int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514; + int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515; + int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516; + int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517; + int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518; + int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519; + int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A; + int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B; + int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C; } Index: ARB_buffer_object.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_buffer_object.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_buffer_object.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_buffer_object.java 15 Feb 2005 17:05:54 -0000 1.2 @@ -31,8 +31,6 @@ */ package org.lwjgl.opengl; -import org.lwjgl.BufferChecks; -import org.lwjgl.LWJGLException; import org.lwjgl.generator.*; import java.nio.*; @@ -42,49 +40,49 @@ /* * Accepted by the <usage> parameter of BufferDataARB: */ - public static final int GL_STREAM_DRAW_ARB = 0x88E0; - public static final int GL_STREAM_READ_ARB = 0x88E1; - public static final int GL_STREAM_COPY_ARB = 0x88E2; - public static final int GL_STATIC_DRAW_ARB = 0x88E4; - public static final int GL_STATIC_READ_ARB = 0x88E5; - public static final int GL_STATIC_COPY_ARB = 0x88E6; - public static final int GL_DYNAMIC_DRAW_ARB = 0x88E8; - public static final int GL_DYNAMIC_READ_ARB = 0x88E9; - public static final int GL_DYNAMIC_COPY_ARB = 0x88EA; + int GL_STREAM_DRAW_ARB = 0x88E0; + int GL_STREAM_READ_ARB = 0x88E1; + int GL_STREAM_COPY_ARB = 0x88E2; + int GL_STATIC_DRAW_ARB = 0x88E4; + int GL_STATIC_READ_ARB = 0x88E5; + int GL_STATIC_COPY_ARB = 0x88E6; + int GL_DYNAMIC_DRAW_ARB = 0x88E8; + int GL_DYNAMIC_READ_ARB = 0x88E9; + int GL_DYNAMIC_COPY_ARB = 0x88EA; /* * Accepted by the <access> parameter of MapBufferARB: */ - public static final int GL_READ_ONLY_ARB = 0x88B8; - public static final int GL_WRITE_ONLY_ARB = 0x88B9; - public static final int GL_READ_WRITE_ARB = 0x88BA; + int GL_READ_ONLY_ARB = 0x88B8; + int GL_WRITE_ONLY_ARB = 0x88B9; + int GL_READ_WRITE_ARB = 0x88BA; /* * Accepted by the <pname> parameter of GetBufferParameterivARB: */ - public static final int GL_BUFFER_SIZE_ARB = 0x8764; - public static final int GL_BUFFER_USAGE_ARB = 0x8765; - public static final int GL_BUFFER_ACCESS_ARB = 0x88BB; - public static final int GL_BUFFER_MAPPED_ARB = 0x88BC; - public static final int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; + int GL_BUFFER_SIZE_ARB = 0x8764; + int GL_BUFFER_USAGE_ARB = 0x8765; + int GL_BUFFER_ACCESS_ARB = 0x88BB; + int GL_BUFFER_MAPPED_ARB = 0x88BC; + int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; @Code( " BufferObjectTracker.bindBuffer(target, buffer);") - public void glBindBufferARB(@GLenum int target, @GLuint int buffer); + void glBindBufferARB(@GLenum int target, @GLuint int buffer); @Code( " BufferObjectTracker.deleteBuffers(buffers);") - public void glDeleteBuffersARB(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers); - public void glGenBuffersARB(@AutoSize("buffers") int n, @GLuint IntBuffer buffers); - public boolean glIsBufferARB(@GLuint int buffer); + void glDeleteBuffersARB(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers); + void glGenBuffersARB(@AutoSize("buffers") int n, @GLuint IntBuffer buffers); + boolean glIsBufferARB(@GLuint int buffer); @GenerateAutos - public void glBufferDataARB(@GLenum int target, @AutoSize("data") @GLsizeiptrARB int size, + void glBufferDataARB(@GLenum int target, @AutoSize("data") @GLsizeiptrARB int size, @Const @GLbyte @GLshort @GLint @GLfloat Buffer data, @GLenum int usage); - - public void glBufferSubDataARB(@GLenum int target, @GLintptrARB int offset, @AutoSize("data") @GLsizeiptrARB int size, + + void glBufferSubDataARB(@GLenum int target, @GLintptrARB int offset, @AutoSize("data") @GLsizeiptrARB int size, @Check @Const @GLbyte @@ -93,7 +91,7 @@ @GLfloat Buffer data); - public void glGetBufferSubDataARB(@GLenum int target, @GLintptrARB int offset, @AutoSize("data") @GLsizeiptrARB int size, + void glGetBufferSubDataARB(@GLenum int target, @GLintptrARB int offset, @AutoSize("data") @GLsizeiptrARB int size, @Check @GLbyte @GLshort @@ -115,13 +113,13 @@ * @return A ByteBuffer representing the mapped buffer memory. */ @CachedResult - public @GLvoid ByteBuffer glMapBufferARB(@GLenum int target, @GLenum int access); + @GLvoid ByteBuffer glMapBufferARB(@GLenum int target, @GLenum int access); - public boolean glUnmapBufferARB(@GLenum int target); + boolean glUnmapBufferARB(@GLenum int target); @StripPostfix("params") - public void glGetBufferParameterivARB(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); + void glGetBufferParameterivARB(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); @StripPostfix("pointer") - public void glGetBufferPointervARB(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer); + void glGetBufferPointervARB(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer); } Index: NV_light_max_exponent.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_light_max_exponent.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_light_max_exponent.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_light_max_exponent.java 15 Feb 2005 17:06:14 -0000 1.2 @@ -32,6 +32,6 @@ package org.lwjgl.opengl; public interface NV_light_max_exponent { - public static final int GL_MAX_SHININESS_NV = 0x8504; - public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8505; + int GL_MAX_SHININESS_NV = 0x8504; + int GL_MAX_SPOT_EXPONENT_NV = 0x8505; } Index: NV_evaluators.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_evaluators.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_evaluators.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_evaluators.java 15 Feb 2005 17:06:14 -0000 1.2 @@ -38,53 +38,53 @@ import org.lwjgl.generator.*; public interface NV_evaluators { - public static final int GL_EVAL_2D_NV = 0x86C0; - public static final int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; - public static final int GL_MAP_TESSELLATION_NV = 0x86C2; - public static final int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3; - public static final int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4; - public static final int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5; - public static final int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6; - public static final int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7; - public static final int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8; - public static final int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9; - public static final int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA; - public static final int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB; - public static final int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC; - public static final int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD; - public static final int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE; - public static final int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF; - public static final int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0; - public static final int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1; - public static final int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2; - public static final int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3; - public static final int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4; - public static final int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5; - public static final int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; - public static final int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; + int GL_EVAL_2D_NV = 0x86C0; + int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; + int GL_MAP_TESSELLATION_NV = 0x86C2; + int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3; + int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4; + int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5; + int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6; + int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7; + int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8; + int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9; + int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA; + int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB; + int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC; + int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD; + int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE; + int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF; + int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0; + int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1; + int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2; + int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3; + int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4; + int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5; + int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; + int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; - public void glGetMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, boolean packed, + void glGetMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, boolean packed, @Check @Const @GLfloat Buffer pPoints); - public void glMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, int uorder, int vorder, boolean packed, @Check @Const @GLfloat Buffer pPoints); + void glMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, int uorder, int vorder, boolean packed, @Check @Const @GLfloat Buffer pPoints); @StripPostfix("params") - public void glMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params); + void glMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params); @StripPostfix("params") - public void glMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params); + void glMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params); @StripPostfix("params") - public void glGetMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params); + void glGetMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params); @StripPostfix("params") - public void glGetMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params); + void glGetMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params); @StripPostfix("params") - public void glGetMapAttribParameterfvNV(@GLenum int target, @GLuint int index, @GLenum int pname, @Check("4") FloatBuffer params); + void glGetMapAttribParameterfvNV(@GLenum int target, @GLuint int index, @GLenum int pname, @Check("4") FloatBuffer params); @StripPostfix("params") - public void glGetMapAttribParameterivNV(@GLenum int target, @GLuint int index, @GLenum int pname, @Check("4") IntBuffer params); + void glGetMapAttribParameterivNV(@GLenum int target, @GLuint int index, @GLenum int pname, @Check("4") IntBuffer params); - public void glEvalMapsNV(@GLenum int target, @GLenum int mode); + void glEvalMapsNV(@GLenum int target, @GLenum int mode); } Index: NV_fog_distance.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/NV_fog_distance.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NV_fog_distance.java 15 Feb 2005 11:05:36 -0000 1.1 +++ NV_fog_distance.java 15 Feb 2005 17:06:14 -0000 1.2 @@ -25,14 +25,14 @@ * 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 + * 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. */ package org.lwjgl.opengl; public interface NV_fog_distance { - public static final int GL_FOG_DISTANCE_MODE_NV = 0x855A; - public static final int GL_EYE_RADIAL_NV = 0x855B; - public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C; + int GL_FOG_DISTANCE_MODE_NV = 0x855A; + int GL_EYE_RADIAL_NV = 0x855B; + int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C; } Index: GL15.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/GL15.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GL15.java 15 Feb 2005 11:05:36 -0000 1.1 +++ GL15.java 15 Feb 2005 17:06:12 -0000 1.2 @@ -32,8 +32,6 @@ package org.lwjgl.opengl; import org.lwjgl.generator.*; -import org.lwjgl.BufferChecks; -import org.lwjgl.LWJGLException; import java.nio.*; @@ -42,55 +40,55 @@ // ---------------------- ARB_vertex_buffer_object ---------------------- // ---------------------------------------------------------------------- - public static final int GL_ARRAY_BUFFER = 0x8892; - public static final int GL_ELEMENT_ARRAY_BUFFER = 0x8893; - public static final int GL_ARRAY_BUFFER_BINDING = 0x8894; - public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; - public static final int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896; - public static final int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897; - public static final int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898; - public static final int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899; - public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A; - public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B; - public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C; - public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D; - public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E; - public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; - public static final int GL_STREAM_DRAW = 0x88E0; - public static final int GL_STREAM_READ = 0x88E1; - public static final int GL_STREAM_COPY = 0x88E2; - public static final int GL_STATIC_DRAW = 0x88E4; - public static final int GL_STATIC_READ = 0x88E5; - public static final int GL_STATIC_COPY = 0x88E6; - public static final int GL_DYNAMIC_DRAW = 0x88E8; - public static final int GL_DYNAMIC_READ = 0x88E9; - public static final int GL_DYNAMIC_COPY = 0x88EA; - public static final int GL_READ_ONLY = 0x88B8; - public static final int GL_WRITE_ONLY = 0x88B9; - public static final int GL_READ_WRITE = 0x88BA; - public static final int GL_BUFFER_SIZE = 0x8764; - public static final int GL_BUFFER_USAGE = 0x8765; - public static final int GL_BUFFER_ACCESS = 0x88BB; - public static final int GL_BUFFER_MAPPED = 0x88BC; - public static final int GL_BUFFER_MAP_POINTER = 0x88BD; + int GL_ARRAY_BUFFER = 0x8892; + int GL_ELEMENT_ARRAY_BUFFER = 0x8893; + int GL_ARRAY_BUFFER_BINDING = 0x8894; + int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; + int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896; + int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897; + int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898; + int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899; + int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A; + int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B; + int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C; + int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D; + int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E; + int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; + int GL_STREAM_DRAW = 0x88E0; + int GL_STREAM_READ = 0x88E1; + int GL_STREAM_COPY = 0x88E2; + int GL_STATIC_DRAW = 0x88E4; + int GL_STATIC_READ = 0x88E5; + int GL_STATIC_COPY = 0x88E6; + int GL_DYNAMIC_DRAW = 0x88E8; + int GL_DYNAMIC_READ = 0x88E9; + int GL_DYNAMIC_COPY = 0x88EA; + int GL_READ_ONLY = 0x88B8; + int GL_WRITE_ONLY = 0x88B9; + int GL_READ_WRITE = 0x88BA; + int GL_BUFFER_SIZE = 0x8764; + int GL_BUFFER_USAGE = 0x8765; + int GL_BUFFER_ACCESS = 0x88BB; + int GL_BUFFER_MAPPED = 0x88BC; + int GL_BUFFER_MAP_POINTER = 0x88BD; @Code( " BufferObjectTracker.bindBuffer(target, buffer);") - public void glBindBuffer(@GLenum int target, @GLuint int buffer); + void glBindBuffer(@GLenum int target, @GLuint int buffer); @Code( " BufferObjectTracker.deleteBuffers(buffers);") - public void glDeleteBuffers(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers); + void glDeleteBuffers(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers); + + void glGenBuffers(@AutoSize("buffers") @GLsizei int n, @GLuint IntBuffer buffers); + boolean glIsBuffer(@GLuint int buffer); - public void glGenBuffers(@AutoSize("buffers") @GLsizei int n, @GLuint IntBuffer buffers); - public boolean glIsBuffer(@GLuint int buffer); - @GenerateAutos - public void glBufferData(@GLenum int target, @AutoSize("data") @GLsizeiptr int size, + void glBufferData(@GLenum int target, @AutoSize("data") @GLsizeiptr int size, @Const @GLbyte @GLshort @GLint @GLfloat Buffer data, @GLenum int usage); - public void glBufferSubData(@GLenum int target, @GLintptr int offset, @AutoSize("data") @GLsizeiptr int size, + void glBufferSubData(@GLenum int target, @GLintptr int offset, @AutoSize("data") @GLsizeiptr int size, @Check @Const @GLbyte @@ -98,8 +96,8 @@ @GLint @GLfloat Buffer data); - - public void glGetBufferSubData(@GLenum int target, @GLintptr int offset, @AutoSize("data") @GLsizeiptr int size, + + void glGetBufferSubData(@GLenum int target, @GLintptr int offset, @AutoSize("data") @GLsizeiptr int size, @Check @GLbyte @GLshort @@ -123,15 +121,15 @@ * @return A ByteBuffer representing the mapped buffer memory. */ @CachedResult - public @GLvoid ByteBuffer glMapBuffer(@GLenum int target, @GLenum int access); + @GLvoid ByteBuffer glMapBuffer(@GLenum int target, @GLenum int access); - public boolean glUnmapBuffer(@GLenum int target); + boolean glUnmapBuffer(@GLenum int target); @StripPostfix("params") - public void glGetBufferParameteriv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); + void glGetBufferParameteriv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); @StripPostfix("pointer") - public void glGetBufferPointerv(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer); + void glGetBufferPointerv(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer); // ----------------------------------------------------------------- // ---------------------- ARB_occlusion_query ---------------------- @@ -141,34 +139,34 @@ * Accepted by the <target> parameter of BeginQuery, EndQuery, * and GetQueryiv: */ - public static final int GL_SAMPLES_PASSED = 0x8914; + int GL_SAMPLES_PASSED = 0x8914; /* Accepted by the <pname> parameter of GetQueryiv: */ - public static final int GL_QUERY_COUNTER_BITS = 0x8864; - public static final int GL_CURRENT_QUERY = 0x8865; + int GL_QUERY_COUNTER_BITS = 0x8864; + int GL_CURRENT_QUERY = 0x8865; /* Accepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv: */ - public static final int GL_QUERY_RESULT = 0x8866; - public static final int GL_QUERY_RESULT_AVAILABLE = 0x8867; + int GL_QUERY_RESULT = 0x8866; + int GL_QUERY_RESULT_AVAILABLE = 0x8867; - public void glGenQueries(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids); - public void glDeleteQueries(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids); - public boolean glIsQuery(@GLuint int id); + void glGenQueries(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids); + void glDeleteQueries(@AutoSize("ids") @GLsizei int n, @GLuint IntBuffer ids); + boolean glIsQuery(@GLuint int id); - public void glBeginQuery(@GLenum int target, @GLuint int id); - public void glEndQuery(@GLenum int target); + void glBeginQuery(@GLenum int target, @GLuint int id); + void glEndQuery(@GLenum int target); @StripPostfix("params") - public void glGetQueryiv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); + void glGetQueryiv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); @StripPostfix("params") - public void glGetQueryObjectiv(@GLenum int id, @GLenum int pname, @Check("4") @GLint IntBuffer params); + void glGetQueryObjectiv(@GLenum int id, @GLenum int pname, @Check("4") @GLint IntBuffer params); @StripPostfix("params") - public void glGetQueryObjectuiv(@GLenum int id, @GLenum int pname, @Check("4") @GLuint IntBuffer params); + void glGetQueryObjectuiv(@GLenum int id, @GLenum int pname, @Check("4") @GLuint IntBuffer params); } Index: ATI_vertex_attrib_array_object.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ATI_vertex_attrib_array_object.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ATI_vertex_attrib_array_object.java 15 Feb 2005 11:05:36 -0000 1.1 +++ ATI_vertex_attrib_array_object.java 15 Feb 2005 17:06:00 -0000 1.2 @@ -37,10 +37,10 @@ import org.lwjgl.generator.*; public interface ATI_vertex_attrib_array_object { - public void glVertexAttribArrayObjectATI(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride, @GLuint int buffer, @GLuint int offset); + void glVertexAttribArrayObjectATI(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride, @GLuint int buffer, @GLuint int offset); @StripPostfix("params") - public void glGetVertexAttribArrayObjectfvATI(@GLuint int index, @GLenum int pname, @Check("4") FloatBuffer params); + void glGetVertexAttribArrayObjectfvATI(@GLuint int index, @GLenum int pname, @Check("4") FloatBuffer params); @StripPostfix("params") - public void glGetVertexAttribArrayObjectivATI(@GLuint int index, @GLenum int pname, @Check("4") IntBuffer params); + void glGetVertexAttribArrayObjectivATI(@GLuint int index, @GLenum int pname, @Check("4") IntBuffer params); } Index: ARB_texture_compression.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl/ARB_texture_compression.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ARB_texture_compression.java 15 Feb 2005 11:05:21 -0000 1.1 +++ ARB_texture_compression.java 15 Feb 2005 17:05:56 -0000 1.2 @@ -32,94 +32,88 @@ package org.lwjgl.opengl; import java.nio.Buffer; -import java.nio.ByteBuffer; -import java.nio.FloatBuffer; -import java.nio.IntBuffer; -import java.nio.ShortBuffer; -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; import org.lwjgl.generator.*; public interface ARB_texture_compression { - public static final int GL_COMPRESSED_ALPHA_ARB = 0x84E9; - public static final int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA; - public static final int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB; - public static final int GL_COMPRESSED_INTENSITY_ARB = 0x84EC; - public static final int GL_COMPRESSED_RGB_ARB = 0x84ED; - public static final int GL_COMPRESSED_RGBA_ARB = 0x84EE; - public static final int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF; - public static final int GL_TEXTURE_IMAGE_SIZE_ARB = 0x86A0; - public static final int GL_TEXTURE_COMPRESSED_ARB = 0x86A1; - public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2; - public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3; + int GL_COMPRESSED_ALPHA_ARB = 0x84E9; +... [truncated message content] |
|
From: Ioannis T. <sp...@us...> - 2005-02-15 17:04:54
|
Update of /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23602 Modified Files: AL10.java Log Message: Removed redundant modifiers Index: AL10.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/openal/AL10.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- AL10.java 15 Feb 2005 11:05:20 -0000 1.1 +++ AL10.java 15 Feb 2005 17:04:37 -0000 1.2 @@ -1,39 +1,37 @@ -/* +/* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are + * modification, are permitted provided that the following conditions are * met: - * [...965 lines suppressed...] * VD: AL_DOPPLER_VELOCITY @@ -1173,9 +1170,9 @@ * vs: Source verlocity (scalar, projected on source-listener vector) * f: Frequency in sample * f': effective Doppler shifted frequency - * + * * f' = DF * f * (VD-vl)/(VD+vs) - * + * * vl<0, vs>0 : source and listener approaching each other * vl>0, vs<0 : source and listener moving away from each other * </pre> @@ -1203,5 +1200,5 @@ * @param value Doppler velocity value to set */ @ALvoid - public void alDopplerVelocity(float value); + void alDopplerVelocity(float value); } |
Update of /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2227 Added Files: ARB_fragment_program_shadow.java ARB_texture_env_add.java ARB_texture_env_crossbar.java ARB_texture_non_power_of_two.java EXT_shadow_funcs.java EXT_texture_3d.java HP_occlusion_test.java IBM_rasterpos_clip.java NV_blend_square.java NV_fragment_program_option.java NV_vertex_program1_1.java NV_vertex_program2.java SUN_slice_accum.java Log Message: Added templates for marker extensions --- NEW FILE: EXT_texture_3d.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface EXT_texture_3d { } --- NEW FILE: NV_fragment_program_option.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_fragment_program_option { } --- NEW FILE: ARB_texture_env_add.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_texture_env_add { } --- NEW FILE: ARB_texture_env_crossbar.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_texture_env_crossbar { } --- NEW FILE: ARB_fragment_program_shadow.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_fragment_program_shadow { } --- NEW FILE: HP_occlusion_test.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface HP_occlusion_test { } --- NEW FILE: SUN_slice_accum.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface SUN_slice_accum { } --- NEW FILE: IBM_rasterpos_clip.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface IBM_rasterpos_clip { } --- NEW FILE: NV_vertex_program2.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_vertex_program2 { } --- NEW FILE: NV_vertex_program1_1.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_vertex_program1_1 { } --- NEW FILE: ARB_texture_non_power_of_two.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_texture_non_power_of_two { } --- NEW FILE: EXT_shadow_funcs.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface EXT_shadow_funcs { } --- NEW FILE: NV_blend_square.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_blend_square { } |
|
From: Elias N. <eli...@us...> - 2005-02-15 13:33:27
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1975 Modified Files: GeneratorProcessorFactory.java GeneratorVisitor.java Log Message: Generator wont generate java source for empty extensions Index: GeneratorVisitor.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GeneratorVisitor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GeneratorVisitor.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GeneratorVisitor.java 15 Feb 2005 13:33:03 -0000 1.2 @@ -231,10 +231,10 @@ public void visitInterfaceDeclaration(InterfaceDeclaration d) { try { - generateJavaSource(d); - if (d.getMethods().size() > 0) { + if (d.getMethods().size() > 0 || d.getFields().size() > 0) + generateJavaSource(d); + if (d.getMethods().size() > 0) generateNativeSource(d); - } } catch (IOException e) { throw new RuntimeException(e); } Index: GeneratorProcessorFactory.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator/GeneratorProcessorFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GeneratorProcessorFactory.java 15 Feb 2005 11:04:59 -0000 1.1 +++ GeneratorProcessorFactory.java 15 Feb 2005 13:33:03 -0000 1.2 @@ -87,7 +87,7 @@ if (first_round) { env.addListener(this); return new GeneratorProcessor(env); - } + } else return AnnotationProcessors.NO_OP; } |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:44:46
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9120 Modified Files: build.xml Log Message: Win32: Fixed generator path arguments Index: build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- build.xml 15 Feb 2005 11:04:57 -0000 1.58 +++ build.xml 15 Feb 2005 11:44:36 -0000 1.59 @@ -215,11 +215,11 @@ <arg value="-factory"/> <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> <arg value="-cp"/> - <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> <arg value="-s"/> - <arg value="${lwjgl.src}/java"/> + <arg path="${lwjgl.src}/java"/> <arg value="-d"/> - <arg value="${lwjgl.src.headers}"/> + <arg path="${lwjgl.src.headers}"/> <arg value="-Atypemap=org.lwjgl.generator.ALTypeMap"/> <arg value="-Ageneratechecks"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/openal/AL10.java"/> @@ -234,11 +234,11 @@ <arg value="-factory"/> <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> <arg value="-cp"/> - <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> <arg value="-s"/> - <arg value="${lwjgl.src}/java"/> + <arg path="${lwjgl.src}/java"/> <arg value="-d"/> - <arg value="${lwjgl.src.headers}"/> + <arg path="${lwjgl.src.headers}"/> <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/GL*.java"/> </apply> @@ -248,11 +248,11 @@ <arg value="-factory"/> <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> <arg value="-cp"/> - <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> <arg value="-s"/> - <arg value="${lwjgl.src}/java"/> + <arg path="${lwjgl.src}/java"/> <arg value="-d"/> - <arg value="${lwjgl.src.headers}/arb"/> + <arg path="${lwjgl.src.headers}/arb"/> <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/ARB*.java"/> </apply> @@ -262,11 +262,11 @@ <arg value="-factory"/> <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> <arg value="-cp"/> - <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> <arg value="-s"/> - <arg value="${lwjgl.src}/java"/> + <arg path="${lwjgl.src}/java"/> <arg value="-d"/> - <arg value="${lwjgl.src.headers}/ati"/> + <arg path="${lwjgl.src.headers}/ati"/> <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/ATI*.java"/> </apply> @@ -276,11 +276,11 @@ <arg value="-factory"/> <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> <arg value="-cp"/> - <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> <arg value="-s"/> - <arg value="${lwjgl.src}/java"/> + <arg path="${lwjgl.src}/java"/> <arg value="-d"/> - <arg value="${lwjgl.src.headers}/ext"/> + <arg path="${lwjgl.src.headers}/ext"/> <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/EXT*.java"/> </apply> @@ -290,11 +290,11 @@ <arg value="-factory"/> <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> <arg value="-cp"/> - <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> <arg value="-s"/> - <arg value="${lwjgl.src}/java"/> + <arg path="${lwjgl.src}/java"/> <arg value="-d"/> - <arg value="${lwjgl.src.headers}/nv"/> + <arg path="${lwjgl.src.headers}/nv"/> <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/NV*.java"/> </apply> |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:40:27
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8249/common Modified Files: extgl.h Log Message: Mac OS X: platform specific GL types in extgl.h Index: extgl.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extgl.h,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- extgl.h 15 Feb 2005 11:05:13 -0000 1.49 +++ extgl.h 15 Feb 2005 11:40:18 -0000 1.50 @@ -107,6 +107,23 @@ /* OpenGL 1.1 definition */ +#ifdef _MACOSX +typedef unsigned long GLenum; +typedef unsigned char GLboolean; +typedef unsigned long GLbitfield; +typedef signed char GLbyte; +typedef short GLshort; +typedef long GLint; +typedef long GLsizei; +typedef unsigned char GLubyte; +typedef unsigned short GLushort; +typedef unsigned long GLuint; +typedef float GLfloat; +typedef float GLclampf; +typedef double GLdouble; +typedef double GLclampd; +typedef void GLvoid; +#else typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; @@ -122,6 +139,7 @@ typedef double GLdouble; typedef double GLclampd; typedef void GLvoid; +#endif // OpenGL 2.0 types typedef int GLintptr; |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/java/org/lwjgl/opengl Modified Files: ARBBufferObject.java ARBColorBufferFloat.java ARBDepthTexture.java ARBDrawBuffers.java ARBFragmentProgram.java ARBFragmentShader.java ARBHalfFloatPixel.java ARBImaging.java ARBMatrixPalette.java ARBMultisample.java ARBMultitexture.java ARBOcclusionQuery.java ARBPixelBufferObject.java ARBPointParameters.java ARBPointSprite.java ARBProgram.java ARBShaderObjects.java ARBShadingLanguage100.java ARBShadow.java ARBShadowAmbient.java ARBTextureBorderClamp.java ARBTextureCompression.java ARBTextureCubeMap.java ARBTextureEnvCombine.java ARBTextureEnvDot3.java ARBTextureFloat.java ARBTextureMirroredRepeat.java ARBTextureRectangle.java ARBTransposeMatrix.java ARBVertexBlend.java ARBVertexBufferObject.java ARBVertexProgram.java ARBVertexShader.java ARBWindowPos.java ATIDrawBuffers.java ATIElementArray.java ATIEnvmapBumpmap.java ATIFragmentShader.java ATIMapObjectBuffer.java ATIPnTriangles.java ATISeparateStencil.java ATITextureCompression3DC.java ATITextureFloat.java ATITextureMirrorOnce.java ATIVertexArrayObject.java ATIVertexAttribArrayObject.java ATIVertexStreams.java BufferObjectTracker.java EXTAbgr.java EXTBgra.java EXTBlendEquationSeparate.java EXTBlendFuncSeparate.java EXTBlendSubtract.java EXTCgShader.java EXTCompiledVertexArray.java EXTDepthBoundsTest.java EXTDrawRangeElements.java EXTFogCoord.java EXTFramebufferObject.java EXTMultiDrawArrays.java EXTPackedPixels.java EXTPalettedTexture.java EXTPixelBufferObject.java EXTPointParameters.java EXTRescaleNormal.java EXTSecondaryColor.java EXTSeparateSpecularColor.java EXTSharedTexturePalette.java EXTStencilTwoSide.java EXTStencilWrap.java EXTTextureCompressionS3TC.java EXTTextureEnvCombine.java EXTTextureEnvDot3.java EXTTextureFilterAnisotropic.java EXTTextureLODBias.java EXTTextureMirrorClamp.java EXTTextureRectangle.java EXTVertexShader.java EXTVertexWeighting.java GL11.java GL12.java GL13.java GL14.java GL15.java GL20.java GLBufferChecks.java GLContext.java NVCopyDepthToColor.java NVDepthClamp.java NVEvaluators.java NVFence.java NVFloatBuffer.java NVFogDistance.java NVFragmentProgram.java NVFragmentProgram2.java NVHalfFloat.java NVLightMaxExponent.java NVMultisampleFilterHint.java NVOcclusionQuery.java NVPackedDepthStencil.java NVPixelDataRange.java NVPointSprite.java NVPrimitiveRestart.java NVProgram.java NVRegisterCombiners.java NVRegisterCombiners2.java NVTexgenReflection.java NVTextureCompressionVTC.java NVTextureEnvCombine4.java NVTextureExpandNormal.java NVTextureRectangle.java NVTextureShader.java NVTextureShader2.java NVTextureShader3.java NVVertexArrayRange.java NVVertexArrayRange2.java NVVertexProgram.java NVVertexProgram2Option.java NVVertexProgram3.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: EXTTextureMirrorClamp.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTTextureMirrorClamp.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- EXTTextureMirrorClamp.java 25 Nov 2004 22:20:44 -0000 1.4 +++ EXTTextureMirrorClamp.java 15 Feb 2005 11:05:02 -0000 1.5 @@ -1,48 +1,17 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ +/* MACHINE GENERATED FILE, DO NOT EDIT */ + package org.lwjgl.opengl; -public final class EXTTextureMirrorClamp { +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; - /* - * Accepted by the <param> parameter of TexParameteri and TexParameterf, - * and by the <params> parameter of TexParameteriv and TexParameterfv, - * when their <pname> parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, - * or TEXTURE_WRAP_R: - */ - public static final int GL_MIRROR_CLAMP_EXT = 0x8742; - public static final int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743; +public final class EXTTextureMirrorClamp { public static final int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912; + public static final int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743; + public static final int GL_MIRROR_CLAMP_EXT = 0x8742; private EXTTextureMirrorClamp() { } + } Index: EXTVertexShader.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTVertexShader.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- EXTVertexShader.java 25 Nov 2004 22:20:44 -0000 1.11 +++ EXTVertexShader.java 15 Feb 2005 11:05:02 -0000 1.12 @@ -1,393 +1,332 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ -package org.lwjgl.opengl; +/* MACHINE GENERATED FILE, DO NOT EDIT */ -import java.nio.Buffer; -import java.nio.ByteBuffer; -import java.nio.FloatBuffer; -import java.nio.IntBuffer; -import java.nio.ShortBuffer; +package org.lwjgl.opengl; import org.lwjgl.LWJGLException; import org.lwjgl.BufferChecks; +import java.nio.*; public final class EXTVertexShader { - - public static final int GL_VERTEX_SHADER_EXT = 0x8780; - public static final int GL_VERTEX_SHADER_BINDING_EXT = 0x8781; - public static final int GL_OP_INDEX_EXT = 0x8782; - public static final int GL_OP_NEGATE_EXT = 0x8783; - public static final int GL_OP_DOT3_EXT = 0x8784; - public static final int GL_OP_DOT4_EXT = 0x8785; - public static final int GL_OP_MUL_EXT = 0x8786; - public static final int GL_OP_ADD_EXT = 0x8787; - public static final int GL_OP_MADD_EXT = 0x8788; - public static final int GL_OP_FRAC_EXT = 0x8789; - public static final int GL_OP_MAX_EXT = 0x878A; - public static final int GL_OP_MIN_EXT = 0x878B; - public static final int GL_OP_SET_GE_EXT = 0x878C; - public static final int GL_OP_SET_LT_EXT = 0x878D; - public static final int GL_OP_CLAMP_EXT = 0x878E; - public static final int GL_OP_FLOOR_EXT = 0x878F; - public static final int GL_OP_ROUND_EXT = 0x8790; - public static final int GL_OP_EXP_BASE_2_EXT = 0x8791; - public static final int GL_OP_LOG_BASE_2_EXT = 0x8792; - public static final int GL_OP_POWER_EXT = 0x8793; - public static final int GL_OP_RECIP_EXT = 0x8794; - public static final int GL_OP_RECIP_SQRT_EXT = 0x8795; - public static final int GL_OP_SUB_EXT = 0x8796; - public static final int GL_OP_CROSS_PRODUCT_EXT = 0x8797; - public static final int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798; + public static final int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ed; + public static final int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87ec; + public static final int GL_INVARIANT_DATATYPE_EXT = 0x87eb; + public static final int GL_INVARIANT_VALUE_EXT = 0x87ea; + public static final int GL_VARIANT_ARRAY_POINTER_EXT = 0x87e9; + public static final int GL_VARIANT_ARRAY_EXT = 0x87e8; + public static final int GL_VARIANT_ARRAY_TYPE_EXT = 0x87e7; + public static final int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87e6; + public static final int GL_VARIANT_DATATYPE_EXT = 0x87e5; + public static final int GL_VARIANT_VALUE_EXT = 0x87e4; + public static final int GL_MVP_MATRIX_EXT = 0x87e3; + public static final int GL_CURRENT_VERTEX_EXT = 0x87e2; + public static final int GL_FULL_RANGE_EXT = 0x87e1; + public static final int GL_NORMALIZED_RANGE_EXT = 0x87e0; + public static final int GL_NEGATIVE_ONE_EXT = 0x87df; + public static final int GL_ONE_EXT = 0x87de; + public static final int GL_ZERO_EXT = 0x87dd; + public static final int GL_NEGATIVE_W_EXT = 0x87dc; + public static final int GL_NEGATIVE_Z_EXT = 0x87db; + public static final int GL_NEGATIVE_Y_EXT = 0x87da; + public static final int GL_NEGATIVE_X_EXT = 0x87d9; + public static final int GL_W_EXT = 0x87d8; + public static final int GL_Z_EXT = 0x87d7; + public static final int GL_Y_EXT = 0x87d6; + public static final int GL_X_EXT = 0x87d5; + public static final int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87d4; + public static final int GL_VERTEX_SHADER_LOCALS_EXT = 0x87d3; + public static final int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87d2; + public static final int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87d1; + public static final int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87d0; + public static final int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87cf; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87ce; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87cd; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87cc; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87cb; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87ca; + public static final int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87c9; + public static final int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87c8; + public static final int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87c7; + public static final int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87c6; + public static final int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87c5; + public static final int GL_LOCAL_EXT = 0x87c4; + public static final int GL_LOCAL_CONSTANT_EXT = 0x87c3; + public static final int GL_INVARIANT_EXT = 0x87c2; + public static final int GL_VARIANT_EXT = 0x87c1; + public static final int GL_MATRIX_EXT = 0x87c0; + public static final int GL_VECTOR_EXT = 0x87bf; + public static final int GL_SCALAR_EXT = 0x87be; + public static final int GL_OUTPUT_FOG_EXT = 0x87bd; + public static final int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87bc; + public static final int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87bb; + public static final int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87ba; + public static final int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87b9; + public static final int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87b8; + public static final int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87b7; + public static final int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87b6; + public static final int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87b5; + public static final int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87b4; + public static final int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87b3; + public static final int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87b2; + public static final int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87b1; + public static final int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87b0; + public static final int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87af; + public static final int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87ae; + public static final int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87ad; + public static final int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87ac; + public static final int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87ab; + public static final int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87aa; + public static final int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87a9; + public static final int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87a8; + public static final int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87a7; + public static final int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87a6; + public static final int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87a5; + public static final int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87a4; + public static final int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87a3; + public static final int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87a2; + public static final int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87a1; + public static final int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87a0; + public static final int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879f; + public static final int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879e; + public static final int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879d; + public static final int GL_OUTPUT_COLOR1_EXT = 0x879c; + public static final int GL_OUTPUT_COLOR0_EXT = 0x879b; + public static final int GL_OUTPUT_VERTEX_EXT = 0x879a; public static final int GL_OP_MOV_EXT = 0x8799; - public static final int GL_OUTPUT_VERTEX_EXT = 0x879A; - public static final int GL_OUTPUT_COLOR0_EXT = 0x879B; - public static final int GL_OUTPUT_COLOR1_EXT = 0x879C; - public static final int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879D; - public static final int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879E; - public static final int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879F; - public static final int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87A0; - public static final int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87A1; - public static final int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87A2; - public static final int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87A3; - public static final int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87A4; - public static final int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87A5; - public static final int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87A6; - public static final int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87A7; - public static final int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87A8; - public static final int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87A9; - public static final int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87AA; - public static final int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87AB; - public static final int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87AC; - public static final int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87AD; - public static final int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87AE; - public static final int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87AF; - public static final int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87B0; - public static final int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87B1; - public static final int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87B2; - public static final int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87B3; - public static final int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87B4; - public static final int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87B5; - public static final int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87B6; - public static final int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87B7; - public static final int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87B8; - public static final int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87B9; - public static final int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87BA; - public static final int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87BB; - public static final int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87BC; - public static final int GL_OUTPUT_FOG_EXT = 0x87BD; - public static final int GL_SCALAR_EXT = 0x87BE; - public static final int GL_VECTOR_EXT = 0x87BF; - public static final int GL_MATRIX_EXT = 0x87C0; - public static final int GL_VARIANT_EXT = 0x87C1; - public static final int GL_INVARIANT_EXT = 0x87C2; - public static final int GL_LOCAL_CONSTANT_EXT = 0x87C3; - public static final int GL_LOCAL_EXT = 0x87C4; - public static final int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5; - public static final int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6; - public static final int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7; - public static final int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8; - public static final int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9; - public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA; - public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB; - public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CC; - public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CD; - public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE; - public static final int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF; - public static final int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87D0; - public static final int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87D1; - public static final int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2; - public static final int GL_VERTEX_SHADER_LOCALS_EXT = 0x87D3; - public static final int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4; - public static final int GL_X_EXT = 0x87D5; - public static final int GL_Y_EXT = 0x87D6; - public static final int GL_Z_EXT = 0x87D7; - public static final int GL_W_EXT = 0x87D8; - public static final int GL_NEGATIVE_X_EXT = 0x87D9; - public static final int GL_NEGATIVE_Y_EXT = 0x87DA; - public static final int GL_NEGATIVE_Z_EXT = 0x87DB; - public static final int GL_NEGATIVE_W_EXT = 0x87DC; - public static final int GL_ZERO_EXT = 0x87DD; - public static final int GL_ONE_EXT = 0x87DE; - public static final int GL_NEGATIVE_ONE_EXT = 0x87DF; - public static final int GL_NORMALIZED_RANGE_EXT = 0x87E0; - public static final int GL_FULL_RANGE_EXT = 0x87E1; - public static final int GL_CURRENT_VERTEX_EXT = 0x87E2; - public static final int GL_MVP_MATRIX_EXT = 0x87E3; - public static final int GL_VARIANT_VALUE_EXT = 0x87E4; - public static final int GL_VARIANT_DATATYPE_EXT = 0x87E5; - public static final int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87E6; - public static final int GL_VARIANT_ARRAY_TYPE_EXT = 0x87E7; - public static final int GL_VARIANT_ARRAY_EXT = 0x87E8; - public static final int GL_VARIANT_ARRAY_POINTER_EXT = 0x87E9; - public static final int GL_INVARIANT_VALUE_EXT = 0x87EA; - public static final int GL_INVARIANT_DATATYPE_EXT = 0x87EB; - public static final int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC; - public static final int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED; + public static final int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798; + public static final int GL_OP_CROSS_PRODUCT_EXT = 0x8797; + public static final int GL_OP_SUB_EXT = 0x8796; + public static final int GL_OP_RECIP_SQRT_EXT = 0x8795; + public static final int GL_OP_RECIP_EXT = 0x8794; + public static final int GL_OP_POWER_EXT = 0x8793; + public static final int GL_OP_LOG_BASE_2_EXT = 0x8792; + public static final int GL_OP_EXP_BASE_2_EXT = 0x8791; + public static final int GL_OP_ROUND_EXT = 0x8790; + public static final int GL_OP_FLOOR_EXT = 0x878f; + public static final int GL_OP_CLAMP_EXT = 0x878e; + public static final int GL_OP_SET_LT_EXT = 0x878d; + public static final int GL_OP_SET_GE_EXT = 0x878c; + public static final int GL_OP_MIN_EXT = 0x878b; + public static final int GL_OP_MAX_EXT = 0x878a; + public static final int GL_OP_FRAC_EXT = 0x8789; + public static final int GL_OP_MADD_EXT = 0x8788; + public static final int GL_OP_ADD_EXT = 0x8787; + public static final int GL_OP_MUL_EXT = 0x8786; + public static final int GL_OP_DOT4_EXT = 0x8785; + public static final int GL_OP_DOT3_EXT = 0x8784; + public static final int GL_OP_NEGATE_EXT = 0x8783; + public static final int GL_OP_INDEX_EXT = 0x8782; + public static final int GL_VERTEX_SHADER_BINDING_EXT = 0x8781; + public static final int GL_VERTEX_SHADER_EXT = 0x8780; private EXTVertexShader() { } static native void initNativeStubs() throws LWJGLException; - public static native void glBeginVertexShaderEXT(); - - public static native void glEndVertexShaderEXT(); - - public static native void glBindVertexShaderEXT(int id); - - public static native int glGenVertexShadersEXT(int range); - - public static native void glDeleteVertexShaderEXT(int id); - - public static native void glShaderOp1EXT(int op, int res, int arg1); - - public static native void glShaderOp2EXT(int op, int res, int arg1, int arg2); - - public static native void glShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3); - - public static native void glSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW); - - public static native void glWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW); - - public static native void glInsertComponentEXT(int res, int src, int num); - - public static native void glExtractComponentEXT(int res, int src, int num); - - public static native int glGenSymbolsEXT(int dataType, int storageType, int range, int components); - - public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position()); - } - - public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1); + public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetLocalConstantFloatvEXT(id, value, pbData, pbData.position()); } + private static native void nglGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position); - public static void glSetInvariantEXT(int id, FloatBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetInvariantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2); + public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetLocalConstantIntegervEXT(id, value, pbData, pbData.position()); } + private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position); - public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2); + public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position()); } + private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position); - private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_offset); - - public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position()); + public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetInvariantFloatvEXT(id, value, pbData, pbData.position()); } + private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position); - public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1); + public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetInvariantIntegervEXT(id, value, pbData, pbData.position()); } + private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position); - public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetLocalConstantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2); + public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position()); } + private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position); - public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2); + public static java.nio.ByteBuffer glGetVariantPointerEXT(int id, int value, int result_size) { + java.nio.ByteBuffer __result = nglGetVariantPointervEXT(id, value, result_size); + return __result; } + private static native java.nio.ByteBuffer nglGetVariantPointervEXT(int id, int value, int result_size); - private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_offset); - - public static void glVariantEXT(int id, ByteBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglVariantbvEXT(id, pAddr, pAddr.position()); + public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetVariantFloatvEXT(id, value, pbData, pbData.position()); } + private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position); - private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_offset); - - public static void glVariantEXT(int id, ShortBuffer psAddr) { - BufferChecks.checkBuffer(psAddr); - nglVariantsvEXT(id, psAddr, psAddr.position()); + public static void glGetVariantIntegerEXT(int id, int value, IntBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetVariantIntegervEXT(id, value, pbData, pbData.position()); } + private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position); - private static native void nglVariantsvEXT(int id, ShortBuffer psAddr, int psAddr_offset); - - public static void glVariantEXT(int id, FloatBuffer pfAddr) { - BufferChecks.checkBuffer(pfAddr); - nglVariantfvEXT(id, pfAddr, pfAddr.position()); + public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) { + BufferChecks.checkBuffer(pbData, 4); + nglGetVariantBooleanvEXT(id, value, pbData, pbData.position()); } + private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position); - private static native void nglVariantfvEXT(int id, FloatBuffer pfAddr, int pfAddr_offset); - - public static void glVariantEXT(int id, IntBuffer piAddr) { - BufferChecks.checkBuffer(piAddr); - nglVariantivEXT(id, piAddr, piAddr.position()); - } + public static native boolean glIsVariantEnabledEXT(int id, int cap); - private static native void nglVariantivEXT(int id, IntBuffer piAddr, int piAddr_offset); + public static native int glBindParameterEXT(int value); - public static void glVariantuEXT(int id, ByteBuffer pAddr) { - BufferChecks.checkBuffer(pAddr); - nglVariantubvEXT(id, pAddr, pAddr.position()); - } + public static native int glBindTextureUnitParameterEXT(int unit, int value); - private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_offset); + public static native int glBindTexGenParameterEXT(int unit, int coord, int value); - public static void glVariantuEXT(int id, ShortBuffer psAddr) { - BufferChecks.checkBuffer(psAddr); - nglVariantusvEXT(id, psAddr, psAddr.position()); - } + public static native int glBindMaterialParameterEXT(int face, int value); - private static native void nglVariantusvEXT(int id, ShortBuffer psAddr, int psAddr_offset); + public static native int glBindLightParameterEXT(int light, int value); - public static void glVariantuEXT(int id, IntBuffer piAddr) { - BufferChecks.checkBuffer(piAddr); - nglVariantuivEXT(id, piAddr, piAddr.position()); - } + public static native void glDisableVariantClientStateEXT(int id); - private static native void nglVariantuivEXT(int id, IntBuffer piAddr, int piAddr_offset); + public static native void glEnableVariantClientStateEXT(int id); - public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ByteBuffer pAddr) { + public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) { + GLBufferChecks.ensureArrayVBOdisabled(); BufferChecks.checkDirect(pAddr); + nglVariantPointerEXT(id, GL11.GL_FLOAT, stride, pAddr, pAddr.position() << 2); + } + public static void glVariantPointerEXT(int id, boolean unsigned, int stride, IntBuffer pAddr) { GLBufferChecks.ensureArrayVBOdisabled(); - nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pAddr, pAddr.position()); + BufferChecks.checkDirect(pAddr); + nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, stride, pAddr, pAddr.position() << 2); } - public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ShortBuffer pAddr) { - BufferChecks.checkDirect(pAddr); GLBufferChecks.ensureArrayVBOdisabled(); + BufferChecks.checkDirect(pAddr); nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, stride, pAddr, pAddr.position() << 1); } - - public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) { - BufferChecks.checkDirect(pAddr); + public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ByteBuffer pAddr) { GLBufferChecks.ensureArrayVBOdisabled(); - nglVariantPointerEXT(id, GL11.GL_FLOAT, stride, pAddr, pAddr.position() << 2); - } - - public static void glVariantPointerEXT(int id, boolean unsigned, int stride, IntBuffer pAddr) { BufferChecks.checkDirect(pAddr); - GLBufferChecks.ensureArrayVBOdisabled(); - nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, stride, pAddr, pAddr.position() << 2); + nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pAddr, pAddr.position()); } - - private static native void nglVariantPointerEXT(int id, int type, int stride, Buffer pAddr, int pAddr_offset); - - public static void glVariantPointerEXT(int id, int type, int stride, int buffer_offset) { + private static native void nglVariantPointerEXT(int id, int type, int stride, Buffer pAddr, int pAddr_position); + public static void glVariantPointerEXT(int id, int type, int stride, int pAddr_buffer_offset) { GLBufferChecks.ensureArrayVBOenabled(); - nglVariantPointerEXTVBO(id, type, stride, buffer_offset); + nglVariantPointerEXTBO(id, type, stride, pAddr_buffer_offset); } + private static native void nglVariantPointerEXTBO(int id, int type, int stride, int pAddr_buffer_offset); - private static native void nglVariantPointerEXTVBO(int id, int type, int stride, int buffer_offset); - - public static native void glEnableVariantClientStateEXT(int id); - - public static native void glDisableVariantClientStateEXT(int id); - - public static native int glBindLightParameterEXT(int light, int value); - - public static native int glBindMaterialParameterEXT(int face, int value); - - public static native int glBindTexGenParameterEXT(int unit, int coord, int value); - - public static native int glBindTextureUnitParameterEXT(int unit, int value); + public static void glVariantuEXT(int id, IntBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantuivEXT(id, pAddr, pAddr.position()); + } + private static native void nglVariantuivEXT(int id, IntBuffer pAddr, int pAddr_position); - public static native int glBindParameterEXT(int value); + public static void glVariantuEXT(int id, ShortBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantusvEXT(id, pAddr, pAddr.position()); + } + private static native void nglVariantusvEXT(int id, ShortBuffer pAddr, int pAddr_position); - public static native boolean glIsVariantEnabledEXT(int id, int cap); + public static void glVariantuEXT(int id, ByteBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantubvEXT(id, pAddr, pAddr.position()); + } + private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_position); - public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) { - BufferChecks.checkDirect(pbData); - nglGetVariantBooleanvEXT(id, value, pbData, pbData.position()); + public static void glVariantEXT(int id, FloatBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantfvEXT(id, pAddr, pAddr.position()); } + private static native void nglVariantfvEXT(int id, FloatBuffer pAddr, int pAddr_position); - private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset); + public static void glVariantEXT(int id, IntBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantivEXT(id, pAddr, pAddr.position()); + } + private static native void nglVariantivEXT(int id, IntBuffer pAddr, int pAddr_position); - public static void glGetVariantIntegerEXT(int id, int value, IntBuffer piData) { - BufferChecks.checkDirect(piData); - nglGetVariantIntegervEXT(id, value, piData, piData.position()); + public static void glVariantEXT(int id, ShortBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantsvEXT(id, pAddr, pAddr.position()); } + private static native void nglVariantsvEXT(int id, ShortBuffer pAddr, int pAddr_position); - private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset); + public static void glVariantEXT(int id, ByteBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglVariantbvEXT(id, pAddr, pAddr.position()); + } + private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_position); - public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pfData) { - BufferChecks.checkDirect(pfData); - nglGetVariantFloatvEXT(id, value, pfData, pfData.position()); + public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetLocalConstantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2); + } + public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2); } + public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1); + } + public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position()); + } + private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_position); - private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset); + public static void glSetInvariantEXT(int id, FloatBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetInvariantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2); + } + public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2); + } + public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1); + } + public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) { + BufferChecks.checkBuffer(pAddr, 4); + nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position()); + } + private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_position); - public static native ByteBuffer glGetVariantPointerEXT(int id, int value, int size); + public static native int glGenSymbolsEXT(int dataType, int storageType, int range, int components); - public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) { - BufferChecks.checkDirect(pbData); - nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position()); - } + public static native void glExtractComponentEXT(int res, int src, int num); - private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset); + public static native void glInsertComponentEXT(int res, int src, int num); - public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer piData) { - BufferChecks.checkDirect(piData); - nglGetInvariantIntegervEXT(id, value, piData, piData.position()); - } + public static native void glWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW); - private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset); + public static native void glSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW); - public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pfData) { - BufferChecks.checkDirect(pfData); - nglGetInvariantFloatvEXT(id, value, pfData, pfData.position()); - } + public static native void glShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3); - private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset); + public static native void glShaderOp2EXT(int op, int res, int arg1, int arg2); - public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) { - BufferChecks.checkDirect(pbData); - nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position()); - } + public static native void glShaderOp1EXT(int op, int res, int arg1); - private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset); + public static native void glDeleteVertexShaderEXT(int id); - public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer piData) { - BufferChecks.checkDirect(piData); - nglGetLocalConstantIntegervEXT(id, value, piData, piData.position()); - } + public static native int glGenVertexShadersEXT(int range); - private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset); + public static native void glBindVertexShaderEXT(int id); - public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pfData) { - BufferChecks.checkDirect(pfData); - nglGetLocalConstantFloatvEXT(id, value, pfData, pfData.position()); - } + public static native void glEndVertexShaderEXT(); - private static native void nglGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset); + public static native void glBeginVertexShaderEXT(); } Index: ATIEnvmapBumpmap.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIEnvmapBumpmap.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- ATIEnvmapBumpmap.java 25 Nov 2004 22:20:43 -0000 1.9 +++ ATIEnvmapBumpmap.java 15 Feb 2005 11:05:02 -0000 1.10 @@ -1,83 +1,47 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ -package org.lwjgl.opengl; +/* MACHINE GENERATED FILE, DO NOT EDIT */ -import java.nio.FloatBuffer; -import java.nio.IntBuffer; +package org.lwjgl.opengl; import org.lwjgl.LWJGLException; import org.lwjgl.BufferChecks; +import java.nio.*; public final class ATIEnvmapBumpmap { - - public static final int GL_BUMP_ROT_MATRIX_ATI = 0x8775; - public static final int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776; - public static final int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777; - public static final int GL_BUMP_TEX_UNITS_ATI = 0x8778; + public static final int GL_BUMP_TARGET_ATI = 0x877c; + public static final int GL_BUMP_ENVMAP_ATI = 0x877b; + public static final int GL_DU8DV8_ATI = 0x877a; public static final int GL_DUDV_ATI = 0x8779; - public static final int GL_DU8DV8_ATI = 0x877A; - public static final int GL_BUMP_ENVMAP_ATI = 0x877B; - public static final int GL_BUMP_TARGET_ATI = 0x877C; + public static final int GL_BUMP_TEX_UNITS_ATI = 0x8778; + public static final int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777; + public static final int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776; + public static final int GL_BUMP_ROT_MATRIX_ATI = 0x8775; private ATIEnvmapBumpmap() { } static native void initNativeStubs() throws LWJGLException; - public static void glTexBumpParameterATI(int pname, FloatBuffer pfParam) { - BufferChecks.checkBuffer(pfParam); - nglTexBumpParameterfvATI(pname, pfParam, pfParam.position()); + public static void glGetTexBumpParameterATI(int pname, IntBuffer param) { + BufferChecks.checkBuffer(param, 4); + nglGetTexBumpParameterivATI(pname, param, param.position()); } + private static native void nglGetTexBumpParameterivATI(int pname, IntBuffer param, int param_position); - private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer pfParam, int pfParam_offset); - - public static void glTexBumpParameterATI(int pname, IntBuffer piParam) { - BufferChecks.checkBuffer(piParam); - nglTexBumpParameterivATI(pname, piParam, piParam.position()); + public static void glGetTexBumpParameterATI(int pname, FloatBuffer param) { + BufferChecks.checkBuffer(param, 4); + nglGetTexBumpParameterfvATI(pname, param, param.position()); } + private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position); - private static native void nglTexBumpParameterivATI(int pname, IntBuffer piParam, int piParam_offset); - - public static void glGetTexBumpParameterATI(int pname, FloatBuffer pfParam) { - BufferChecks.checkBuffer(pfParam); - nglGetTexBumpParameterfvATI(pname, pfParam, pfParam.position()); + public static void glTexBumpParameterATI(int pname, IntBuffer param) { + BufferChecks.checkBuffer(param, 4); + nglTexBumpParameterivATI(pname, param, param.position()); } + private static native void nglTexBumpParameterivATI(int pname, IntBuffer param, int param_position); - private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer pfParam, int pfParam_offset); - - public static void glGetTexBumpParameterATI(int pname, IntBuffer piParam) { - BufferChecks.checkBuffer(piParam); - nglGetTexBumpParameterivATI(pname, piParam, piParam.position()); + public static void glTexBumpParameterATI(int pname, FloatBuffer param) { + BufferChecks.checkBuffer(param, 4); + nglTexBumpParameterfvATI(pname, param, param.position()); } - - private static native void nglGetTexBumpParameterivATI(int pname, IntBuffer piParam, int piParam_offset); + private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position); } Index: ARBShaderObjects.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBShaderObjects.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- ARBShaderObjects.java 25 Nov 2004 22:20:43 -0000 1.13 +++ ARBShaderObjects.java 15 Feb 2005 11:05:01 -0000 1.14 @@ -1,394 +1,238 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ -package org.lwjgl.opengl; +/* MACHINE GENERATED FILE, DO NOT EDIT */ -import java.nio.BufferOverflowException; -import java.nio.ByteBuffer; -import java.nio.FloatBuffer; -import java.nio.IntBuffer; +package org.lwjgl.opengl; import org.lwjgl.LWJGLException; import org.lwjgl.BufferChecks; +import java.nio.*; public final class ARBShaderObjects { - - /* - * Accepted by the <pname> argument of GetHandleARB: - */ - public static final int GL_PROGRAM_OBJECT_ARB = 0x8B40; - - /* - * Accepted by the <pname> parameter of GetObjectParameter{fi}vARB: - */ - public static final int GL_OBJECT_TYPE_ARB = 0x8B4E; - public static final int GL_OBJECT_SUBTYPE_ARB = 0x8B4F; - public static final int GL_OBJECT_DELETE_STATUS_ARB = 0x8B80; - public static final int GL_OBJECT_COMPILE_STATUS_ARB = 0x8B81; - public static final int GL_OBJECT_LINK_STATUS_ARB = 0x8B82; - public static final int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8B83; - public static final int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84; - public static final int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85; - public static final int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86; - public static final int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87; - public static final int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88; - - /* - * Returned by the <params> parameter of GetObjectParameter{fi}vARB: - */ - public static final int GL_SHADER_OBJECT_ARB = 0x8B48; - - /* - * Returned by the <type> parameter of GetActiveUniformARB: - */ - public static final int GL_FLOAT = 0x1406; - public static final int GL_FLOAT_VEC2_ARB = 0x8B50; - public static final int GL_FLOAT_VEC3_ARB = 0x8B51; - public static final int GL_FLOAT_VEC4_ARB = 0x8B52; + public static final int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8b64; + public static final int GL_SAMPLER_2D_RECT_ARB = 0x8b63; + public static final int GL_SAMPLER_2D_SHADOW_ARB = 0x8b62; + public static final int GL_SAMPLER_1D_SHADOW_ARB = 0x8b61; + public static final int GL_SAMPLER_CUBE_ARB = 0x8b60; + public static final int GL_SAMPLER_3D_ARB = 0x8b5f; + public static final int GL_SAMPLER_2D_ARB = 0x8b5e; + public static final int GL_SAMPLER_1D_ARB = 0x8b5d; + public static final int GL_FLOAT_MAT4_ARB = 0x8b5c; + public static final int GL_FLOAT_MAT3_ARB = 0x8b5b; + public static final int GL_FLOAT_MAT2_ARB = 0x8b5a; + public static final int GL_BOOL_VEC4_ARB = 0x8b59; + public static final int GL_BOOL_VEC3_ARB = 0x8b58; + public static final int GL_BOOL_VEC2_ARB = 0x8b57; + public static final int GL_BOOL_ARB = 0x8b56; + public static final int GL_INT_VEC4_ARB = 0x8b55; + public static final int GL_INT_VEC3_ARB = 0x8b54; + public static final int GL_INT_VEC2_ARB = 0x8b53; public static final int GL_INT = 0x1404; - public static final int GL_INT_VEC2_ARB = 0x8B53; - public static final int GL_INT_VEC3_ARB = 0x8B54; - public static final int GL_INT_VEC4_ARB = 0x8B55; - public static final int GL_BOOL_ARB = 0x8B56; - public static final int GL_BOOL_VEC2_ARB = 0x8B57; - public static final int GL_BOOL_VEC3_ARB = 0x8B58; - public static final int GL_BOOL_VEC4_ARB = 0x8B59; - public static final int GL_FLOAT_MAT2_ARB = 0x8B5A; - public static final int GL_FLOAT_MAT3_ARB = 0x8B5B; - public static final int GL_FLOAT_MAT4_ARB = 0x8B5C; - public static final int GL_SAMPLER_1D_ARB = 0x8B5D; - public static final int GL_SAMPLER_2D_ARB = 0x8B5E; - public static final int GL_SAMPLER_3D_ARB = 0x8B5F; - public static final int GL_SAMPLER_CUBE_ARB = 0x8B60; - public static final int GL_SAMPLER_1D_SHADOW_ARB = 0x8B61; - public static final int GL_SAMPLER_2D_SHADOW_ARB = 0x8B62; - public static final int GL_SAMPLER_2D_RECT_ARB = 0x8B63; - public static final int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64; + public static final int GL_FLOAT_VEC4_ARB = 0x8b52; + public static final int GL_FLOAT_VEC3_ARB = 0x8b51; + public static final int GL_FLOAT_VEC2_ARB = 0x8b50; + public static final int GL_FLOAT = 0x1406; + public static final int GL_SHADER_OBJECT_ARB = 0x8b48; + public static final int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8b88; + public static final int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8b87; + public static final int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8b86; + public static final int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8b85; + public static final int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8b84; + public static final int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8b83; + public static final int GL_OBJECT_LINK_STATUS_ARB = 0x8b82; + public static final int GL_OBJECT_COMPILE_STATUS_ARB = 0x8b81; + public static final int GL_OBJECT_DELETE_STATUS_ARB = 0x8b80; + public static final int GL_OBJECT_SUBTYPE_ARB = 0x8b4f; + public static final int GL_OBJECT_TYPE_ARB = 0x8b4e; + public static final int GL_PROGRAM_OBJECT_ARB = 0x8b40; private ARBShaderObjects() { } static native void initNativeStubs() throws LWJGLException; - public static native void glDeleteObjectARB(int obj); - - public static native int glGetHandleARB(int pname); - - public static native void glDetachObjectARB(int containerObj, int attachedObj); + public static void glGetShaderSourceARB(int obj, IntBuffer length, ByteBuffer source) { + if (length != null) + BufferChecks.checkBuffer(length, 1); + BufferChecks.checkDirect(source); + nglGetShaderSourceARB(obj, (source.remaining()), length, length != null ? length.position() : 0, source, source.position()); + } + private static native void nglGetShaderSourceARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer source, int source_position); - public static native int glCreateShaderObjectARB(int shaderType); + public static void glGetUniformARB(int programObj, int location, IntBuffer params) { + BufferChecks.checkDirect(params); + nglGetUniformivARB(programObj, location, params, params.position()); + } + private static native void nglGetUniformivARB(int programObj, int location, IntBuffer params, int params_position); - // --------------------------- - /** - * The ARB_shader_objects extension allows multiple, optionally null-terminated, source strings to define a shader program. - * <p/> - * This method uses just a single string, that should NOT be null-terminated. - * - * @param shaderObj - * @param string - */ - public static void glShaderSourceARB(int shaderObj, ByteBuffer string) { - BufferChecks.checkDirect(string); - initShaderSource(1); - setShaderString(0, string, string.position(), string.remaining()); + public static void glGetUniformARB(int programObj, int location, FloatBuffer params) { + BufferChecks.checkDirect(params); + nglGetUniformfvARB(programObj, location, params, params.position()); + } + private static native void nglGetUniformfvARB(int programObj, int location, FloatBuffer params, int params_position); - nglShaderSourceARB(shaderObj); + public static void glGetActiveUniformARB(int programObj, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { + if (length != null) + BufferChecks.checkBuffer(length, 1); + BufferChecks.checkBuffer(size, 1); + BufferChecks.checkBuffer(type, 1); + BufferChecks.checkDirect(name); + nglGetActiveUniformARB(programObj, index, (name.remaining()), length, length != null ? length.position() : 0, size, size.position(), type, type.position(), name, name.position()); } + private static native void nglGetActiveUniformARB(int programObj, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position); /** - * The ARB_shader_objects extension allows multiple, optionally null-terminated, source strings to define a shader program. - * <p/> - * This method uses an array of strings, that should NOT be null-terminated. - * - * @param shaderObj - * @param strings + * Returns the location of the uniform with the specified name. The ByteBuffer should contain the uniform name as a <b>null-terminated</b> string. + * @param programObj + * @param name + * @return */ - public static void glShaderSourceARB(int shaderObj, ByteBuffer[] strings) { - if ( strings == null || strings.length == 0 ) - throw new IllegalArgumentException("Invalid shader string array."); - - initShaderSource(strings.length); - for ( int i = 0; i < strings.length; i++ ) { - BufferChecks.checkDirect(strings[i]); - setShaderString(i, strings[i], strings[i].position(), strings[i].remaining()); - } - - nglShaderSourceARB(shaderObj); + public static int glGetUniformLocationARB(int programObj, ByteBuffer name) { + BufferChecks.checkDirect(name); + BufferChecks.checkNullTerminated(name); + int __result = nglGetUniformLocationARB(programObj, name, name.position()); + return __result; } + private static native int nglGetUniformLocationARB(int programObj, ByteBuffer name, int name_position); - private static native void initShaderSource(int count); - - private static native void setShaderString(int index, ByteBuffer string, int stringOffset, int stringLength); - - private static native void nglShaderSourceARB(int shaderObj); - // --------------------------- - - public static native void glCompileShaderARB(int shaderObj); - - public static native int glCreateProgramObjectARB(); - - public static native void glAttachObjectARB(int containerObj, int obj); - - public static native void glLinkProgramARB(int programObj); - - public static native void glUseProgramObjectARB(int programObj); - - public static native void glValidateProgramARB(int programObj); - - public static native void glUniform1fARB(int location, float v0); - - public static native void glUniform2fARB(int location, float v0, float v1); - - public static native void glUniform3fARB(int location, float v0, float v1, float v2); - - public static native void glUniform4fARB(int location, float v0, float v1, float v2, float v3); + public static void glGetAttachedObjectsARB(int containerObj, IntBuffer count, IntBuffer obj) { + if (count != null) + BufferChecks.checkBuffer(count, 1); + BufferChecks.checkDirect(obj); + nglGetAttachedObjectsARB(containerObj, (obj.remaining()), count, count != null ? count.position() : 0, obj, obj.position()); + } + private static native void nglGetAttachedObjectsARB(int containerObj, int maxCount, IntBuffer count, int count_position, IntBuffer obj, int obj_position); - public static native void glUniform1iARB(int location, int v0); + public static void glGetInfoLogARB(int obj, IntBuffer length, ByteBuffer infoLog) { + if (length != null) + BufferChecks.checkBuffer(length, 1); + BufferChecks.checkDirect(infoLog); + nglGetInfoLogARB(obj, (infoLog.remaining()), length, length != null ? length.position() : 0, infoLog, infoLog.position()); + } + private static native void nglGetInfoLogARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer infoLog, int infoLog_position); - public static native void glUniform2iARB(int location, int v0, int v1); + public static void glGetObjectParameterARB(int obj, int pname, IntBuffer params) { + BufferChecks.checkDirect(params); + nglGetObjectParameterivARB(obj, pname, params, params.position()); + } + private static native void nglGetObjectParameterivARB(int obj, int pname, IntBuffer params, int params_position); - public static native void glUniform3iARB(int location, int v0, int v1, int v2); + public static void glGetObjectParameterARB(int obj, int pname, FloatBuffer params) { + BufferChecks.checkDirect(params); + nglGetObjectParameterfvARB(obj, pname, params, params.position()); + } + private static native void nglGetObjectParameterfvARB(int obj, int pname, FloatBuffer params, int params_position); - public static native void glUniform4iARB(int location, int v0, int v1, int v2, int v3); + public static void glUniformMatrix4ARB(int location, boolean transpose, FloatBuffer matrices) { + BufferChecks.checkDirect(matrices); + nglUniformMatrix4fvARB(location, (matrices.remaining()) >> 4, transpose, matrices, matrices.position()); + } + private static native void nglUniformMatrix4fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position); - // ---------------... [truncated message content] |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:06:12
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/java/org/lwjgl/openal Modified Files: AL10.java OpenALException.java Added Files: Util.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: AL10.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL10.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- AL10.java 31 Jul 2004 09:34:08 -0000 1.9 +++ AL10.java 15 Feb 2005 11:05:00 -0000 1.10 @@ -1,265 +1,106 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * [...2232 lines suppressed...] + * @param capability name of a capability to disable + */ + public static void alDisable(int capability) { + nalDisable(capability); + Util.checkALError(); + } + private static native void nalDisable(int capability); + + /** + * The application can temporarily disable certain AL capabilities on a per Context + * basis. This allows the driver implementation to optimize for certain subsets of + * operations. Enabling and disabling capabilities is handled using a function pair. + * @param capability name of a capability to enable + */ + public static void alEnable(int capability) { + nalEnable(capability); + Util.checkALError(); + } + private static native void nalEnable(int capability); } --- NEW FILE: Util.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.openal; import java.nio.*; import org.lwjgl.BufferUtils; /** * Simple utility class. * * @author cix_foo <ci...@us...> * @version $Revision: 1.1 $ */ public final class Util { /** No c'tor */ private Util() { } public static void checkALError() { int err = AL10.alGetError(); if (err != AL10.AL_NO_ERROR) throw new OpenALException(err); } } Index: OpenALException.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/OpenALException.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- OpenALException.java 12 Jun 2004 20:28:22 -0000 1.6 +++ OpenALException.java 15 Feb 2005 11:05:00 -0000 1.7 @@ -50,6 +50,13 @@ } /** + * Constructor that takes an AL error number + */ + public OpenALException(int error_code) { + super("OpenAL error: " + AL10.alGetString(error_code) + " (" + error_code + ")"); + } + + /** * Constructor for OpenALException. * @param message */ |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:06:11
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473 Modified Files: build.xml Removed Files: SignatureDump.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. --- SignatureDump.java DELETED --- Index: build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- build.xml 28 Jan 2005 02:09:51 -0000 1.57 +++ build.xml 15 Feb 2005 11:04:57 -0000 1.58 @@ -6,6 +6,7 @@ <property name="lwjgl.src" value="./src" /> <property name="lwjgl.src.native" value="${lwjgl.src}/native" /> <property name="lwjgl.src.headers" value="${lwjgl.src.native}/common" /> + <property name="lwjgl.src.templates" value="${lwjgl.src}/templates" /> <property name="lwjgl.bin" value="./bin" /> <property name="lwjgl.lib" value="./libs" /> <property name="lwjgl.dist" value="./dist" /> @@ -199,8 +200,109 @@ </target> <!-- Compiles the Java source code --> + <target name="generator" description="Compiles the native method generator"> + <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/generator/**.java" source="1.5" target="1.5" taskname="generator"> + <compilerarg value="-Xlint:all"/> + </javac> + </target> + + <target name="generate-all" depends="generate-openal, generate-opengl" description="Generates java and native source"/> + + <target name="generate-openal" depends="generator" description="Generates java and native source for AL"> + <!-- Generate OpenAL --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg value="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg value="${lwjgl.src.headers}"/> + <arg value="-Atypemap=org.lwjgl.generator.ALTypeMap"/> + <arg value="-Ageneratechecks"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/openal/AL10.java"/> + </apply> + </target> + + <target name="generate-opengl" depends="generator" description="Generates java and native source for GL"> + <!-- there's no apt task in ant yet, so we'll just invoke it manually for now --> + <!-- Generate core GL --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg value="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg value="${lwjgl.src.headers}"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/GL*.java"/> + </apply> + <!-- Generate ARB --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg value="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg value="${lwjgl.src.headers}/arb"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/ARB*.java"/> + </apply> + <!-- Generate ATI --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg value="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg value="${lwjgl.src.headers}/ati"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/ATI*.java"/> + </apply> + <!-- Generate EXT --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg value="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg value="${lwjgl.src.headers}/ext"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/EXT*.java"/> + </apply> + <!-- Generate NV --> + <apply executable="apt" parallel="true"> + <arg value="-nocompile"/> + <arg value="-factory"/> + <arg value="org.lwjgl.generator.GeneratorProcessorFactory"/> + <arg value="-cp"/> + <arg value="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/> + <arg value="-s"/> + <arg value="${lwjgl.src}/java"/> + <arg value="-d"/> + <arg value="${lwjgl.src.headers}/nv"/> + <arg value="-Atypemap=org.lwjgl.generator.GLTypeMap"/> + <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/opengl/NV*.java"/> + </apply> + </target> + + <!-- Compiles the Java source code --> <target name="compile" description="Compiles the java source code"> - <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/**.java" source="1.4" target="1.4" taskname="lwjgl" /> + <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/*.java" source="1.4" target="1.4" taskname="lwjgl" /> <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/input/**" source="1.4" target="1.4" taskname="input" /> <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/openal/**" source="1.4" target="1.4" taskname="openal" /> <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/opengl/**" source="1.4" target="1.4" taskname="opengl" /> |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:06:11
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/java/org/lwjgl Modified Files: BufferChecks.java BufferUtils.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: BufferUtils.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/BufferUtils.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- BufferUtils.java 14 Oct 2004 20:59:13 -0000 1.5 +++ BufferUtils.java 15 Feb 2005 11:04:58 -0000 1.6 @@ -90,6 +90,22 @@ } /** + * @return n, where buffer_element_size=2^n. + */ + public static int getElementSizeExponent(Buffer buf) { + if (buf instanceof ByteBuffer) + return 0; + else if (buf instanceof ShortBuffer || buf instanceof CharBuffer) + return 1; + else if (buf instanceof FloatBuffer || buf instanceof IntBuffer) + return 2; + else if (buf instanceof LongBuffer || buf instanceof DoubleBuffer) + return 3; + else + throw new IllegalStateException("Unsupported buffer type"); + } + + /** * Construct a direct native-order doublebuffer with the specified number * of elements. * @param size The size, in floats @@ -105,14 +121,7 @@ * @return the position of the buffer, in BYTES */ public static int getOffset(Buffer buffer) { - if (buffer instanceof FloatBuffer || buffer instanceof IntBuffer) - return buffer.position() << 2; - else if (buffer instanceof ShortBuffer || buffer instanceof CharBuffer) - return buffer.position() << 1; - else if (buffer instanceof DoubleBuffer || buffer instanceof LongBuffer) - return buffer.position() << 3; - else - return buffer.position(); + return buffer.position() << getElementSizeExponent(buffer); } } Index: BufferChecks.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/BufferChecks.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- BufferChecks.java 9 Feb 2005 13:44:52 -0000 1.4 +++ BufferChecks.java 15 Feb 2005 11:04:58 -0000 1.5 @@ -67,6 +67,11 @@ } } + public static void checkNotNull(Object o) { + if (o == null) + throw new IllegalArgumentException("Null argument"); + } + /** * Helper methods to ensure a buffer is direct or null. */ |
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/nv In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/native/common/nv Modified Files: org_lwjgl_opengl_NVEvaluators.c org_lwjgl_opengl_NVFence.c org_lwjgl_opengl_NVFragmentProgram.c org_lwjgl_opengl_NVHalfFloat.c org_lwjgl_opengl_NVOcclusionQuery.c org_lwjgl_opengl_NVPixelDataRange.c org_lwjgl_opengl_NVPointSprite.c org_lwjgl_opengl_NVPrimitiveRestart.c org_lwjgl_opengl_NVProgram.c org_lwjgl_opengl_NVRegisterCombiners.c org_lwjgl_opengl_NVRegisterCombiners2.c org_lwjgl_opengl_NVVertexArrayRange.c org_lwjgl_opengl_NVVertexProgram.c Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: org_lwjgl_opengl_NVHalfFloat.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_NVHalfFloat.c 10 Sep 2004 08:13:54 -0000 1.1 +++ org_lwjgl_opengl_NVHalfFloat.c 15 Feb 2005 11:05:19 -0000 1.2 @@ -1,371 +1,185 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVHalfFloat -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef unsigned short GLhalf; - -typedef void (APIENTRY * glVertex2hNVPROC) (GLhalf x, GLhalf y); -typedef void (APIENTRY * glVertex3hNVPROC) (GLhalf x, GLhalf y, GLhalf z); -typedef void (APIENTRY * glVertex4hNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w); -typedef void (APIENTRY * glNormal3hNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz); -typedef void (APIENTRY * glColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue); -typedef void (APIENTRY * glColor4hNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha); -typedef void (APIENTRY * glTexCoord1hNVPROC) (GLhalf s); -typedef void (APIENTRY * glTexCoord2hNVPROC) (GLhalf s, GLhalf t); -typedef void (APIENTRY * glTexCoord3hNVPROC) (GLhalf s, GLhalf t, GLhalf r); -typedef void (APIENTRY * glTexCoord4hNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q); -typedef void (APIENTRY * glMultiTexCoord1hNVPROC) (GLenum target, GLhalf s); -typedef void (APIENTRY * glMultiTexCoord2hNVPROC) (GLenum target, GLhalf s, GLhalf t); -typedef void (APIENTRY * glMultiTexCoord3hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r); -typedef void (APIENTRY * glMultiTexCoord4hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q); -typedef void (APIENTRY * glFogCoordhNVPROC) (GLhalf fog); -typedef void (APIENTRY * glSecondaryColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue); -typedef void (APIENTRY * glVertexAttrib1hNVPROC) (GLuint index, GLhalf x); -typedef void (APIENTRY * glVertexAttrib2hNVPROC) (GLuint index, GLhalf x, GLhalf y); -typedef void (APIENTRY * glVertexAttrib3hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z); -typedef void (APIENTRY * glVertexAttrib4hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w); -typedef void (APIENTRY * glVertexAttribs1hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); -typedef void (APIENTRY * glVertexAttribs2hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); -typedef void (APIENTRY * glVertexAttribs3hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); -typedef void (APIENTRY * glVertexAttribs4hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); +typedef void (APIENTRY *glVertexAttribs4hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs); +typedef void (APIENTRY *glVertexAttribs3hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs); +typedef void (APIENTRY *glVertexAttribs2hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs); +typedef void (APIENTRY *glVertexAttribs1hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs); +typedef void (APIENTRY *glVertexAttrib4hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w); +typedef void (APIENTRY *glVertexAttrib3hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z); +typedef void (APIENTRY *glVertexAttrib2hNVPROC) (GLuint index, GLhalf x, GLhalf y); +typedef void (APIENTRY *glVertexAttrib1hNVPROC) (GLuint index, GLhalf x); +typedef void (APIENTRY *glSecondaryColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue); +typedef void (APIENTRY *glFogCoordhNVPROC) (GLhalf fog); +typedef void (APIENTRY *glMultiTexCoord4hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q); +typedef void (APIENTRY *glMultiTexCoord3hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r); +typedef void (APIENTRY *glMultiTexCoord2hNVPROC) (GLenum target, GLhalf s, GLhalf t); +typedef void (APIENTRY *glMultiTexCoord1hNVPROC) (GLenum target, GLhalf s); +typedef void (APIENTRY *glTexCoord4hNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q); +typedef void (APIENTRY *glTexCoord3hNVPROC) (GLhalf s, GLhalf t, GLhalf r); +typedef void (APIENTRY *glTexCoord2hNVPROC) (GLhalf s, GLhalf t); +typedef void (APIENTRY *glTexCoord1hNVPROC) (GLhalf s); +typedef void (APIENTRY *glColor4hNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha); +typedef void (APIENTRY *glColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue); +typedef void (APIENTRY *glNormal3hNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz); +typedef void (APIENTRY *glVertex4hNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w); +typedef void (APIENTRY *glVertex3hNVPROC) (GLhalf x, GLhalf y, GLhalf z); +typedef void (APIENTRY *glVertex2hNVPROC) (GLhalf x, GLhalf y); -static glVertex2hNVPROC glVertex2hNV; -static glVertex3hNVPROC glVertex3hNV; -static glVertex4hNVPROC glVertex4hNV; -static glNormal3hNVPROC glNormal3hNV; -static glColor3hNVPROC glColor3hNV; -static glColor4hNVPROC glColor4hNV; -static glTexCoord1hNVPROC glTexCoord1hNV; -static glTexCoord2hNVPROC glTexCoord2hNV; -static glTexCoord3hNVPROC glTexCoord3hNV; -static glTexCoord4hNVPROC glTexCoord4hNV; -static glMultiTexCoord1hNVPROC glMultiTexCoord1hNV; -static glMultiTexCoord2hNVPROC glMultiTexCoord2hNV; -static glMultiTexCoord3hNVPROC glMultiTexCoord3hNV; -static glMultiTexCoord4hNVPROC glMultiTexCoord4hNV; -static glFogCoordhNVPROC glFogCoordhNV; -static glSecondaryColor3hNVPROC glSecondaryColor3hNV; -static glVertexAttrib1hNVPROC glVertexAttrib1hNV; -static glVertexAttrib2hNVPROC glVertexAttrib2hNV; -static glVertexAttrib3hNVPROC glVertexAttrib3hNV; -static glVertexAttrib4hNVPROC glVertexAttrib4hNV; -static glVertexAttribs1hvNVPROC glVertexAttribs1hvNV; -static glVertexAttribs2hvNVPROC glVertexAttribs2hvNV; -static glVertexAttribs3hvNVPROC glVertexAttribs3hvNV; static glVertexAttribs4hvNVPROC glVertexAttribs4hvNV; +static glVertexAttribs3hvNVPROC glVertexAttribs3hvNV; +static glVertexAttribs2hvNVPROC glVertexAttribs2hvNV; +static glVertexAttribs1hvNVPROC glVertexAttribs1hvNV; +static glVertexAttrib4hNVPROC glVertexAttrib4hNV; +static glVertexAttrib3hNVPROC glVertexAttrib3hNV; +static glVertexAttrib2hNVPROC glVertexAttrib2hNV; +static glVertexAttrib1hNVPROC glVertexAttrib1hNV; +static glSecondaryColor3hNVPROC glSecondaryColor3hNV; +static glFogCoordhNVPROC glFogCoordhNV; +static glMultiTexCoord4hNVPROC glMultiTexCoord4hNV; +static glMultiTexCoord3hNVPROC glMultiTexCoord3hNV; +static glMultiTexCoord2hNVPROC glMultiTexCoord2hNV; +static glMultiTexCoord1hNVPROC glMultiTexCoord1hNV; +static glTexCoord4hNVPROC glTexCoord4hNV; +static glTexCoord3hNVPROC glTexCoord3hNV; +static glTexCoord2hNVPROC glTexCoord2hNV; +static glTexCoord1hNVPROC glTexCoord1hNV; +static glColor4hNVPROC glColor4hNV; +static glColor3hNVPROC glColor3hNV; +static glNormal3hNVPROC glNormal3hNV; +static glVertex4hNVPROC glVertex4hNV; +static glVertex3hNVPROC glVertex3hNV; +static glVertex2hNVPROC glVertex2hNV; -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertex2hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV - (JNIEnv * env, jclass clazz, jshort x, jshort y) -{ - glVertex2hNV(x, y); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position) { + const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position; + glVertexAttribs4hvNV(index, n, attribs_address); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertex3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV - (JNIEnv * env, jclass clazz, jshort x, jshort y, jshort z) -{ - glVertex3hNV(x, y, z); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position) { + const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position; + glVertexAttribs3hvNV(index, n, attribs_address); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertex4hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV - (JNIEnv * env, jclass clazz, jshort x, jshort y, jshort z, jshort w) -{ - glVertex4hNV(x, y, z, w); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position) { + const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position; + glVertexAttribs2hvNV(index, n, attribs_address); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glNormal3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV - (JNIEnv * env, jclass clazz, jshort nx, jshort ny, jshort nz) -{ - glNormal3hNV(nx, ny, nz); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position) { + const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position; + glVertexAttribs1hvNV(index, n, attribs_address); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glColor3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV - (JNIEnv * env, jclass clazz, jshort red, jshort green, jshort blue) -{ - glColor3hNV(red, green, blue); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) { + glVertexAttrib4hNV(index, x, y, z, w); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glColor4hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV - (JNIEnv * env, jclass clazz, jshort red, jshort green, jshort blue, jshort alpha) -{ - glColor4hNV(red, green, blue, alpha); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z) { + glVertexAttrib3hNV(index, x, y, z); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord1hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV - (JNIEnv * env, jclass clazz, jshort s) -{ - glTexCoord1hNV(s); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y) { + glVertexAttrib2hNV(index, x, y); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord2hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV - (JNIEnv * env, jclass clazz, jshort s, jshort t) -{ - glTexCoord2hNV(s, t); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV(JNIEnv *env, jclass clazz, jint index, jshort x) { + glVertexAttrib1hNV(index, x); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV - (JNIEnv * env, jclass clazz, jshort s, jshort t, jshort r) -{ - glTexCoord3hNV(s, t, r); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue) { + glSecondaryColor3hNV(red, green, blue); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord4hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV - (JNIEnv * env, jclass clazz, jshort s, jshort t, jshort r, jshort q) -{ - glTexCoord4hNV(s, t, r, q); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV(JNIEnv *env, jclass clazz, jshort fog) { + glFogCoordhNV(fog); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord1hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV - (JNIEnv * env, jclass clazz, jint target, jshort s) -{ - glMultiTexCoord1hNV(target, s); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q) { + glMultiTexCoord4hNV(target, s, t, r, q); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord2hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV - (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t) -{ - glMultiTexCoord2hNV(target, s, t); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r) { + glMultiTexCoord3hNV(target, s, t, r); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV - (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t, jshort r) -{ - glMultiTexCoord3hNV(target, s, t, r); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t) { + glMultiTexCoord2hNV(target, s, t); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord4hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV - (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q) -{ - glMultiTexCoord4hNV(target, s, t, r, q); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV(JNIEnv *env, jclass clazz, jint target, jshort s) { + glMultiTexCoord1hNV(target, s); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glFogCoordhNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV - (JNIEnv * env, jclass clazz, jshort fog) -{ - glFogCoordhNV(fog); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jshort r, jshort q) { + glTexCoord4hNV(s, t, r, q); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glSecondaryColor3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV - (JNIEnv * env, jclass clazz, jshort red, jshort green, jshort blue) -{ - glSecondaryColor3hNV(red, green, blue); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jshort r) { + glTexCoord3hNV(s, t, r); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib1hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV - (JNIEnv * env, jclass clazz, jint index, jshort x) -{ - glVertexAttrib1hNV(index, x); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV(JNIEnv *env, jclass clazz, jshort s, jshort t) { + glTexCoord2hNV(s, t); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib2hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV - (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y) -{ - glVertexAttrib2hNV(index, x, y); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV(JNIEnv *env, jclass clazz, jshort s) { + glTexCoord1hNV(s); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib3hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV - (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z) -{ - glVertexAttrib3hNV(index, x, y, z); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jshort alpha) { + glColor4hNV(red, green, blue, alpha); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib4hNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV - (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) -{ - glVertexAttrib4hNV(index, x, y, z, w); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue) { + glColor3hNV(red, green, blue); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs1hvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV - (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) -{ - GLushort *attribs_ptr = (GLushort *)(*env)->GetDirectBufferAddress(env, attribs) + attribsOffset; - glVertexAttribs1hvNV(index, n, attribs_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV(JNIEnv *env, jclass clazz, jshort nx, jshort ny, jshort nz) { + glNormal3hNV(nx, ny, nz); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs2hvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV - (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) -{ - GLushort *attribs_ptr = (GLushort *)(*env)->GetDirectBufferAddress(env, attribs) + attribsOffset; - glVertexAttribs2hvNV(index, n, attribs_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jshort w) { + glVertex4hNV(x, y, z, w); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs3hvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV - (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) -{ - GLushort *attribs_ptr = (GLushort *)(*env)->GetDirectBufferAddress(env, attribs) + attribsOffset; - glVertexAttribs3hvNV(index, n, attribs_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z) { + glVertex3hNV(x, y, z); } -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs4hvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV - (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) -{ - GLushort *attribs_ptr = (GLushort *)(*env)->GetDirectBufferAddress(env, attribs) + attribsOffset; - glVertexAttribs4hvNV(index, n, attribs_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV(JNIEnv *env, jclass clazz, jshort x, jshort y) { + glVertex2hNV(x, y); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glVertex2hNV", "(SS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV, "glVertex2hNV", (void*)&glVertex2hNV}, - {"glVertex3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV, "glVertex3hNV", (void*)&glVertex3hNV}, - {"glVertex4hNV", "(SSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV, "glVertex4hNV", (void*)&glVertex4hNV}, - {"glNormal3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV, "glNormal3hNV", (void*)&glNormal3hNV}, - {"glColor3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV, "glColor3hNV", (void*)&glColor3hNV}, - {"glColor4hNV", "(SSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV, "glColor4hNV", (void*)&glColor4hNV}, - {"glTexCoord1hNV", "(S)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV, "glTexCoord1hNV", (void*)&glTexCoord1hNV}, - {"glTexCoord2hNV", "(SS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV, "glTexCoord2hNV", (void*)&glTexCoord2hNV}, - {"glTexCoord3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV, "glTexCoord3hNV", (void*)&glTexCoord3hNV}, - {"glTexCoord4hNV", "(SSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV, "glTexCoord4hNV", (void*)&glTexCoord4hNV}, - {"glMultiTexCoord1hNV", "(IS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV, "glMultiTexCoord1hNV", (void*)&glMultiTexCoord1hNV}, - {"glMultiTexCoord2hNV", "(ISS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV, "glMultiTexCoord2hNV", (void*)&glMultiTexCoord2hNV}, - {"glMultiTexCoord3hNV", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV, "glMultiTexCoord3hNV", (void*)&glMultiTexCoord3hNV}, - {"glMultiTexCoord4hNV", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV, "glMultiTexCoord4hNV", (void*)&glMultiTexCoord4hNV}, - {"glFogCoordhNV", "(S)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV, "glFogCoordhNV", (void*)&glFogCoordhNV}, - {"glSecondaryColor3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV, "glSecondaryColor3hNV", (void*)&glSecondaryColor3hNV}, - {"glVertexAttrib1hNV", "(IS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV, "glVertexAttrib1hNV", (void*)&glVertexAttrib1hNV}, - {"glVertexAttrib2hNV", "(ISS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV, "glVertexAttrib2hNV", (void*)&glVertexAttrib2hNV}, - {"glVertexAttrib3hNV", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV, "glVertexAttrib3hNV", (void*)&glVertexAttrib3hNV}, - {"glVertexAttrib4hNV", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV, "glVertexAttrib4hNV", (void*)&glVertexAttrib4hNV}, - {"nglVertexAttribs1hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV, "glVertexAttribs1hvNV", (void*)&glVertexAttribs1hvNV}, - {"nglVertexAttribs2hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV, "glVertexAttribs2hvNV", (void*)&glVertexAttribs2hvNV}, - {"nglVertexAttribs3hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV, "glVertexAttribs3hvNV", (void*)&glVertexAttribs3hvNV}, - {"nglVertexAttribs4hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV, "glVertexAttribs4hvNV", (void*)&glVertexAttribs4hvNV} + {"nglVertexAttribs4hvNV", "(IILjava/nio/ShortBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV, "glVertexAttribs4hvNV", (void *)&glVertexAttribs4hvNV}, + {"nglVertexAttribs3hvNV", "(IILjava/nio/ShortBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV, "glVertexAttribs3hvNV", (void *)&glVertexAttribs3hvNV}, + {"nglVertexAttribs2hvNV", "(IILjava/nio/ShortBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV, "glVertexAttribs2hvNV", (void *)&glVertexAttribs2hvNV}, + {"nglVertexAttribs1hvNV", "(IILjava/nio/ShortBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV, "glVertexAttribs1hvNV", (void *)&glVertexAttribs1hvNV}, + {"glVertexAttrib4hNV", "(ISSSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV, "glVertexAttrib4hNV", (void *)&glVertexAttrib4hNV}, + {"glVertexAttrib3hNV", "(ISSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV, "glVertexAttrib3hNV", (void *)&glVertexAttrib3hNV}, + {"glVertexAttrib2hNV", "(ISS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV, "glVertexAttrib2hNV", (void *)&glVertexAttrib2hNV}, + {"glVertexAttrib1hNV", "(IS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV, "glVertexAttrib1hNV", (void *)&glVertexAttrib1hNV}, + {"glSecondaryColor3hNV", "(SSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV, "glSecondaryColor3hNV", (void *)&glSecondaryColor3hNV}, + {"glFogCoordhNV", "(S)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV, "glFogCoordhNV", (void *)&glFogCoordhNV}, + {"glMultiTexCoord4hNV", "(ISSSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV, "glMultiTexCoord4hNV", (void *)&glMultiTexCoord4hNV}, + {"glMultiTexCoord3hNV", "(ISSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV, "glMultiTexCoord3hNV", (void *)&glMultiTexCoord3hNV}, + {"glMultiTexCoord2hNV", "(ISS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV, "glMultiTexCoord2hNV", (void *)&glMultiTexCoord2hNV}, + {"glMultiTexCoord1hNV", "(IS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV, "glMultiTexCoord1hNV", (void *)&glMultiTexCoord1hNV}, + {"glTexCoord4hNV", "(SSSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV, "glTexCoord4hNV", (void *)&glTexCoord4hNV}, + {"glTexCoord3hNV", "(SSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV, "glTexCoord3hNV", (void *)&glTexCoord3hNV}, + {"glTexCoord2hNV", "(SS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV, "glTexCoord2hNV", (void *)&glTexCoord2hNV}, + {"glTexCoord1hNV", "(S)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV, "glTexCoord1hNV", (void *)&glTexCoord1hNV}, + {"glColor4hNV", "(SSSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV, "glColor4hNV", (void *)&glColor4hNV}, + {"glColor3hNV", "(SSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV, "glColor3hNV", (void *)&glColor3hNV}, + {"glNormal3hNV", "(SSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV, "glNormal3hNV", (void *)&glNormal3hNV}, + {"glVertex4hNV", "(SSSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV, "glVertex4hNV", (void *)&glVertex4hNV}, + {"glVertex3hNV", "(SSS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV, "glVertex3hNV", (void *)&glVertex3hNV}, + {"glVertex2hNV", "(SS)V", (void *)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV, "glVertex2hNV", (void *)&glVertex2hNV} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_NVFence.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/nv/org_lwjgl_opengl_NVFence.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_NVFence.c 10 Sep 2004 08:13:54 -0000 1.1 +++ org_lwjgl_opengl_NVFence.c 15 Feb 2005 11:05:19 -0000 1.2 @@ -1,150 +1,67 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVFence -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glGenFencesNVPROC) (GLsizei n, GLuint *fences); -typedef void (APIENTRY * glDeleteFencesNVPROC) (GLsizei n, const GLuint *fences); -typedef void (APIENTRY * glSetFenceNVPROC) (GLuint fence, GLenum condition); -typedef GLboolean (APIENTRY * glTestFenceNVPROC) (GLuint fence); -typedef void (APIENTRY * glFinishFenceNVPROC) (GLuint fence); -typedef GLboolean (APIENTRY * glIsFenceNVPROC) (GLuint fence); -typedef void (APIENTRY * glGetFenceivNVPROC) (GLuint fence, GLenum pname, GLint *params); +typedef void (APIENTRY *glGetFenceivNVPROC) (GLuint fence, GLenum pname, GLint * piParams); +typedef GLboolean (APIENTRY *glIsFenceNVPROC) (GLuint fence); +typedef void (APIENTRY *glFinishFenceNVPROC) (GLuint fence); +typedef GLboolean (APIENTRY *glTestFenceNVPROC) (GLuint fence); +typedef void (APIENTRY *glSetFenceNVPROC) (GLuint fence, GLenum condition); +typedef void (APIENTRY *glDeleteFencesNVPROC) (GLsizei n, const GLuint * piFences); +typedef void (APIENTRY *glGenFencesNVPROC) (GLsizei n, GLuint * piFences); -static glGenFencesNVPROC glGenFencesNV; -static glDeleteFencesNVPROC glDeleteFencesNV; -static glSetFenceNVPROC glSetFenceNV; -static glTestFenceNVPROC glTestFenceNV; -static glFinishFenceNVPROC glFinishFenceNV; -static glIsFenceNVPROC glIsFenceNV; static glGetFenceivNVPROC glGetFenceivNV; +static glIsFenceNVPROC glIsFenceNV; +static glFinishFenceNVPROC glFinishFenceNV; +static glTestFenceNVPROC glTestFenceNV; +static glSetFenceNVPROC glSetFenceNV; +static glDeleteFencesNVPROC glDeleteFencesNV; +static glGenFencesNVPROC glGenFencesNV; -/* - * Class: org.lwjgl.opengl.NVFence - * Method: nglGenFencesNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV - (JNIEnv * env, jclass clazz, jint n, jobject piFences, jint piFences_offset) -{ - GLuint *piFences_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, piFences) + piFences_offset; - glGenFencesNV(n, piFences_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV(JNIEnv *env, jclass clazz, jint fence, jint pname, jobject piParams, jint piParams_position) { + GLint *piParams_address = ((GLint *)(*env)->GetDirectBufferAddress(env, piParams)) + piParams_position; + glGetFenceivNV(fence, pname, piParams_address); } -/* - * Class: org.lwjgl.opengl.NVFence - * Method: nglDeleteFencesNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV - (JNIEnv * env, jclass clazz, jint n, jobject piFences, jint piFences_offset) -{ - GLuint *piFences_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, piFences) + piFences_offset; - glDeleteFencesNV(n, piFences_ptr); +static jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glIsFenceNV(JNIEnv *env, jclass clazz, jint fence) { + GLboolean __result = glIsFenceNV(fence); + return __result; } -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glSetFenceNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVFence_glSetFenceNV - (JNIEnv * env, jclass clazz, jint fence, jint condition) -{ - glSetFenceNV(fence, condition); +static void JNICALL Java_org_lwjgl_opengl_NVFence_glFinishFenceNV(JNIEnv *env, jclass clazz, jint fence) { + glFinishFenceNV(fence); } -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glTestFenceNV - */ -static jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glTestFenceNV - (JNIEnv * env, jclass clazz, jint fence) -{ - GLboolean result = glTestFenceNV(fence); - - return result; +static jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glTestFenceNV(JNIEnv *env, jclass clazz, jint fence) { + GLboolean __result = glTestFenceNV(fence); + return __result; } -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glFinishFenceNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVFence_glFinishFenceNV - (JNIEnv * env, jclass clazz, jint fence) -{ - glFinishFenceNV(fence); +static void JNICALL Java_org_lwjgl_opengl_NVFence_glSetFenceNV(JNIEnv *env, jclass clazz, jint fence, jint condition) { + glSetFenceNV(fence, condition); } -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glIsFenceNV - */ -static jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glIsFenceNV - (JNIEnv * env, jclass clazz, jint fence) -{ - GLboolean result = glIsFenceNV(fence); - - return result; +static void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV(JNIEnv *env, jclass clazz, jint n, jobject piFences, jint piFences_position) { + const GLuint *piFences_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, piFences)) + piFences_position; + glDeleteFencesNV(n, piFences_address); } -/* - * Class: org.lwjgl.opengl.NVFence - * Method: nglGetFenceivNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV - (JNIEnv * env, jclass clazz, jint fence, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glGetFenceivNV(fence, pname, piParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV(JNIEnv *env, jclass clazz, jint n, jobject piFences, jint piFences_position) { + GLuint *piFences_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, piFences)) + piFences_position; + glGenFencesNV(n, piFences_address); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglGenFencesNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFence_nglGenFencesNV, "glGenFencesNV", (void*)&glGenFencesNV}, - {"nglDeleteFencesNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV, "glDeleteFencesNV", (void*)&glDeleteFencesNV}, - {"glSetFenceNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVFence_glSetFenceNV, "glSetFenceNV", (void*)&glSetFenceNV}, - {"glTestFenceNV", "(I)Z", (void*)&Java_org_lwjgl_opengl_NVFence_glTestFenceNV, "glTestFenceNV", (void*)&glTestFenceNV}, - {"glFinishFenceNV", "(I)V", (void*)&Java_org_lwjgl_opengl_NVFence_glFinishFenceNV, "glFinishFenceNV", (void*)&glFinishFenceNV}, - {"glIsFenceNV", "(I)Z", (void*)&Java_org_lwjgl_opengl_NVFence_glIsFenceNV, "glIsFenceNV", (void*)&glIsFenceNV}, - {"nglGetFenceivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV, "glGetFenceivNV", (void*)&glGetFenceivNV} + {"nglGetFenceivNV", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV, "glGetFenceivNV", (void *)&glGetFenceivNV}, + {"glIsFenceNV", "(I)Z", (void *)&Java_org_lwjgl_opengl_NVFence_glIsFenceNV, "glIsFenceNV", (void *)&glIsFenceNV}, + {"glFinishFenceNV", "(I)V", (void *)&Java_org_lwjgl_opengl_NVFence_glFinishFenceNV, "glFinishFenceNV", (void *)&glFinishFenceNV}, + {"glTestFenceNV", "(I)Z", (void *)&Java_org_lwjgl_opengl_NVFence_glTestFenceNV, "glTestFenceNV", (void *)&glTestFenceNV}, + {"glSetFenceNV", "(II)V", (void *)&Java_org_lwjgl_opengl_NVFence_glSetFenceNV, "glSetFenceNV", (void *)&glSetFenceNV}, + {"nglDeleteFencesNV", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV, "glDeleteFencesNV", (void *)&glDeleteFencesNV}, + {"nglGenFencesNV", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVFence_nglGenFencesNV, "glGenFencesNV", (void *)&glGenFencesNV} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif Index: org_lwjgl_opengl_NVPrimitiveRestart.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_NVPrimitiveRestart.c 10 Sep 2004 08:13:54 -0000 1.1 +++ org_lwjgl_opengl_NVPrimitiveRestart.c 15 Feb 2005 11:05:19 -0000 1.2 @@ -1,79 +1,27 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVPrimitiveRestart -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glPrimitiveRestartNVPROC) (GLvoid); -typedef void (APIENTRY * glPrimitiveRestartIndexNVPROC) (GLuint index); +typedef void (APIENTRY *glPrimitiveRestartIndexNVPROC) (GLuint index); +typedef void (APIENTRY *glPrimitiveRestartNVPROC) (); -static glPrimitiveRestartNVPROC glPrimitiveRestartNV; static glPrimitiveRestartIndexNVPROC glPrimitiveRestartIndexNV; +static glPrimitiveRestartNVPROC glPrimitiveRestartNV; -/* - * Class: org.lwjgl.opengl.NVPrimitiveRestart - * Method: glPrimitiveRestartNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV - (JNIEnv * env, jclass clazz) -{ - glPrimitiveRestartNV(); +static void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV(JNIEnv *env, jclass clazz, jint index) { + glPrimitiveRestartIndexNV(index); } -/* - * Class: org.lwjgl.opengl.NVPrimitiveRestart - * Method: glPrimitiveRestartIndexNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV - (JNIEnv * env, jclass clazz, jint index) -{ - glPrimitiveRestartIndexNV(index); +static void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV(JNIEnv *env, jclass clazz) { + glPrimitiveRestartNV(); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glPrimitiveRestartNV", "()V", (void*)&Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV, "glPrimitiveRestartNV", (void*)&glPrimitiveRestartNV}, - {"glPrimitiveRestartIndexNV", "(I)V", (void*)&Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV, "glPrimitiveRestartIndexNV", (void*)&glPrimitiveRestartIndexNV} + {"glPrimitiveRestartIndexNV", "(I)V", (void *)&Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV, "glPrimitiveRestartIndexNV", (void *)&glPrimitiveRestartIndexNV}, + {"glPrimitiveRestartNV", "()V", (void *)&Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV, "glPrimitiveRestartNV", (void *)&glPrimitiveRestartNV} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_NVEvaluators.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_NVEvaluators.c 10 Sep 2004 08:13:54 -0000 1.1 +++ org_lwjgl_opengl_NVEvaluators.c 15 Feb 2005 11:05:19 -0000 1.2 @@ -1,177 +1,84 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVEvaluators -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); -typedef void (APIENTRY * glMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * glMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * glGetMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); -typedef void (APIENTRY * glGetMapParameterivNVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetMapParameterfvNVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glGetMapAttribParameterivNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetMapAttribParameterfvNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glEvalMapsNVPROC) (GLenum target, GLenum mode); +typedef void (APIENTRY *glEvalMapsNVPROC) (GLenum target, GLenum mode); +typedef void (APIENTRY *glGetMapAttribParameterivNVPROC) (GLenum target, GLuint index, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetMapAttribParameterfvNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat * params); +typedef void (APIENTRY *glGetMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint * params); +typedef void (APIENTRY *glGetMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat * params); +typedef void (APIENTRY *glMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint * params); +typedef void (APIENTRY *glMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat * params); +typedef void (APIENTRY *glMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid * pPoints); +typedef void (APIENTRY *glGetMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, const GLvoid * pPoints); -static glMapControlPointsNVPROC glMapControlPointsNV; +static glEvalMapsNVPROC glEvalMapsNV; +static glGetMapAttribParameterivNVPROC glGetMapAttribParameterivNV; +static glGetMapAttribParameterfvNVPROC glGetMapAttribParameterfvNV; +static glGetMapParameterivNVPROC glGetMapParameterivNV; +static glGetMapParameterfvNVPROC glGetMapParameterfvNV; static glMapParameterivNVPROC glMapParameterivNV; static glMapParameterfvNVPROC glMapParameterfvNV; +static glMapControlPointsNVPROC glMapControlPointsNV; static glGetMapControlPointsNVPROC glGetMapControlPointsNV; -static glGetMapParameterivNVPROC glGetMapParameterivNV; -static glGetMapParameterfvNVPROC glGetMapParameterfvNV; -static glGetMapAttribParameterivNVPROC glGetMapAttribParameterivNV; -static glGetMapAttribParameterfvNVPROC glGetMapAttribParameterfvNV; -static glEvalMapsNVPROC glEvalMapsNV; -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapControlPointsNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV - (JNIEnv * env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jboolean packed, jobject pPoints, jint pPoints_offset) -{ - GLvoid *pPoints_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pPoints) + pPoints_offset); - glGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV(JNIEnv *env, jclass clazz, jint target, jint mode) { + glEvalMapsNV(target, mode); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglMapControlPointsNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV - (JNIEnv * env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jint uorder, jint vorder, jboolean packed, jobject pPoints, jint pPoints_offset) -{ - GLvoid *pPoints_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pPoints) + pPoints_offset); - glMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetMapAttribParameterivNV(target, index, pname, params_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglMapParameterfvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV - (JNIEnv * env, jclass clazz, jint target, jint pname, jobject pfParams, jint pfParams_offset) -{ - GLfloat *pfParams_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams) + pfParams_offset; - glMapParameterfvNV(target, pname, pfParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetMapAttribParameterfvNV(target, index, pname, params_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglMapParameterivNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV - (JNIEnv * env, jclass clazz, jint target, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glMapParameterivNV(target, pname, piParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetMapParameterivNV(target, pname, params_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapParameterfvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV - (JNIEnv * env, jclass clazz, jint target, jint pname, jobject pfParams, jint pfParams_offset) -{ - GLfloat *pfParams_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams) + pfParams_offset; - glGetMapParameterfvNV(target, pname, pfParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position) { + const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetMapParameterfvNV(target, pname, params_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapParameterivNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV - (JNIEnv * env, jclass clazz, jint target, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glGetMapParameterivNV(target, pname, piParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glMapParameterivNV(target, pname, params_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapAttribParameterfvNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV - (JNIEnv * env, jclass clazz, jint target, jint index, jint pname, jobject pfParams, jint pfParams_offset) -{ - GLfloat *pfParams_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams) + pfParams_offset; - glGetMapAttribParameterfvNV(target, index, pname, pfParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position) { + const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glMapParameterfvNV(target, pname, params_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapAttribParameterivNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV - (JNIEnv * env, jclass clazz, jint target, jint index, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glGetMapAttribParameterivNV(target, index, pname, piParams_ptr); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV(JNIEnv *env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jint uorder, jint vorder, jboolean packed, jobject pPoints, jint pPoints_position) { + const GLvoid *pPoints_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPoints)) + pPoints_position)); + glMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints_address); } -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: glEvalMapsNV - */ -static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV - (JNIEnv * env, jclass clazz, jint target, jint mode) -{ - glEvalMapsNV(target, mode); +static void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV(JNIEnv *env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jboolean packed, jobject pPoints, jint pPoints_position) { + const GLvoid *pPoints_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPoints)) + pPoints_position)); + glGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints_address); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglGetMapControlPointsNV", "(IIIIIZLjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV, "glGetMapControlPointsNV", (void*)&glGetMapControlPointsNV}, - {"nglMapControlPointsNV", "(IIIIIIIZLjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV, "glMapControlPointsNV", (void*)&glMapControlPointsNV}, - {"nglMapParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV, "glMapParameterfvNV", (void*)&glMapParameterfvNV}, - {"nglMapParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV, "glMapParameterivNV", (void*)&glMapParameterivNV}, - {"nglGetMapParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV, "glGetMapParameterfvNV", (void*)&glGetMapParameterfvNV}, - {"nglGetMapParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV, "glGetMapParameterivNV", (void*)&glGetMapParameterivNV}, - {"nglGetMapAttribParameterfvNV", "(IIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV, "glGetMapAttribParameterfvNV", (void*)&glGetMapAttribParameterfvNV}, - {"nglGetMapAttribParameterivNV", "(IIILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV, "glGetMapAttribParameterivNV", (void*)&glGetMapAttribParameterivNV}, - {"glEvalMapsNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV, "glEvalMapsNV", (void*)&glEvalMapsNV} + {"glEvalMapsNV", "(II)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV, "glEvalMapsNV", (void *)&glEvalMapsNV}, + {"nglGetMapAttribParameterivNV", "(IIILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV, "glGetMapAttribParameterivNV", (void *)&glGetMapAttribParameterivNV}, + {"nglGetMapAttribParameterfvNV", "(IIILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV, "glGetMapAttribParameterfvNV", (void *)&glGetMapAttribParameterfvNV}, + {"nglGetMapParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV, "glGetMapParameterivNV", (void *)&glGetMapParameterivNV}, + {"nglGetMapParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV, "glGetMapParameterfvNV", (void *)&glGetMapParameterfvNV}, + {"nglMapParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV, "glMapParameterivNV", (void *)&glMapParameterivNV}, + {"nglMapParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV, "glMapParameterfvNV", (void *)&glMapParameterfvNV}, + {"nglMapControlPointsNV", "(IIIIIIIZLjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV, "glMapControlPointsNV", (void *)&glMapControlPointsNV}, + {"nglGetMapControlPointsNV", "(IIIIIZLjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV, "glGetMapControlPointsNV", (void *)&glGetMapControlPointsNV} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif Index: org_lwjgl_opengl_NVFragmentProgram.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_NVFragmentProgram.c 10 Sep 2004 08:13:54 -0000 1.1 +++ org_lwjgl_opengl_NVFragmentProgram.c 15 Feb 2005 11:05:19 -0000 1.2 @@ -1,81 +1,30 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVFragmentProgram -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +... [truncated message content] |
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/ext In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/native/common/ext Modified Files: org_lwjgl_opengl_EXTBlendEquationSeparate.c org_lwjgl_opengl_EXTBlendFuncSeparate.c org_lwjgl_opengl_EXTCompiledVertexArray.c org_lwjgl_opengl_EXTDepthBoundsTest.c org_lwjgl_opengl_EXTDrawRangeElements.c org_lwjgl_opengl_EXTFogCoord.c org_lwjgl_opengl_EXTFramebufferObject.c org_lwjgl_opengl_EXTMultiDrawArrays.c org_lwjgl_opengl_EXTPalettedTexture.c org_lwjgl_opengl_EXTPointParameters.c org_lwjgl_opengl_EXTSecondaryColor.c org_lwjgl_opengl_EXTStencilTwoSide.c org_lwjgl_opengl_EXTVertexShader.c org_lwjgl_opengl_EXTVertexWeighting.c Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: org_lwjgl_opengl_EXTDepthBoundsTest.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ext/org_lwjgl_opengl_EXTDepthBoundsTest.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_EXTDepthBoundsTest.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_EXTDepthBoundsTest.c 15 Feb 2005 11:05:18 -0000 1.2 @@ -1,66 +1,20 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTDepthBoundsTest -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glDepthBoundsEXTPROC) (GLclampd zmin, GLclampd zmax); +typedef void (APIENTRY *glDepthBoundsEXTPROC) (GLclampd zmin, GLclampd zmax); static glDepthBoundsEXTPROC glDepthBoundsEXT; -/* - * Class: org.lwjgl.opengl.EXTDepthBoundsTest - * Method: glDepthBoundsEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTDepthBoundsTest_glDepthBoundsEXT - (JNIEnv * env, jclass clazz, jfloat zmin, jfloat zmax) -{ +static void JNICALL Java_org_lwjgl_opengl_EXTDepthBoundsTest_glDepthBoundsEXT(JNIEnv *env, jclass clazz, jdouble zmin, jdouble zmax) { glDepthBoundsEXT(zmin, zmax); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDepthBoundsTest_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glDepthBoundsEXT", "(FF)V", (void*)&Java_org_lwjgl_opengl_EXTDepthBoundsTest_glDepthBoundsEXT, "glDepthBoundsEXT", (void*)&glDepthBoundsEXT} + {"glDepthBoundsEXT", "(DD)V", (void *)&Java_org_lwjgl_opengl_EXTDepthBoundsTest_glDepthBoundsEXT, "glDepthBoundsEXT", (void *)&glDepthBoundsEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_EXTVertexShader.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_EXTVertexShader.c 10 Sep 2004 08:13:53 -0000 1.1 +++ org_lwjgl_opengl_EXTVertexShader.c 15 Feb 2005 11:05:18 -0000 1.2 @@ -1,669 +1,335 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTVertexShader -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -#include "common_tools.h" -typedef void (APIENTRY * glBeginVertexShaderEXTPROC) (); -typedef void (APIENTRY * glEndVertexShaderEXTPROC) (); -typedef void (APIENTRY * glBindVertexShaderEXTPROC) (GLuint id); -typedef GLuint (APIENTRY * glGenVertexShadersEXTPROC) (GLuint range); -typedef void (APIENTRY * glDeleteVertexShaderEXTPROC) (GLuint id); -typedef void (APIENTRY * glShaderOp1EXTPROC) (GLenum op, GLuint res, GLuint arg1); -typedef void (APIENTRY * glShaderOp2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); -typedef void (APIENTRY * glShaderOp3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -typedef void (APIENTRY * glSwizzleEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (APIENTRY * glWriteMaskEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (APIENTRY * glInsertComponentEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef void (APIENTRY * glExtractComponentEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef GLuint (APIENTRY * glGenSymbolsEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components); -typedef void (APIENTRY * glSetInvariantEXTPROC) (GLuint id, GLenum type, GLvoid *addr); -typedef void (APIENTRY * glSetLocalConstantEXTPROC) (GLuint id, GLenum type, GLvoid *addr); -typedef void (APIENTRY * glVariantbvEXTPROC) (GLuint id, GLbyte *addr); -typedef void (APIENTRY * glVariantsvEXTPROC) (GLuint id, GLshort *addr); -typedef void (APIENTRY * glVariantivEXTPROC) (GLuint id, GLint *addr); -typedef void (APIENTRY * glVariantfvEXTPROC) (GLuint id, GLfloat *addr); -typedef void (APIENTRY * glVariantubvEXTPROC) (GLuint id, GLubyte *addr); -typedef void (APIENTRY * glVariantusvEXTPROC) (GLuint id, GLushort *addr); -typedef void (APIENTRY * glVariantuivEXTPROC) (GLuint id, GLuint *addr); -typedef void (APIENTRY * glVariantPointerEXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid *addr); -typedef void (APIENTRY * glEnableVariantClientStateEXTPROC) (GLuint id); -typedef void (APIENTRY * glDisableVariantClientStateEXTPROC) (GLuint id); -typedef GLuint (APIENTRY * glBindLightParameterEXTPROC) (GLenum light, GLenum value); -typedef GLuint (APIENTRY * glBindMaterialParameterEXTPROC) (GLenum face, GLenum value); -typedef GLuint (APIENTRY * glBindTexGenParameterEXTPROC) (GLenum unit, GLenum coord, GLenum value); -typedef GLuint (APIENTRY * glBindTextureUnitParameterEXTPROC) (GLenum unit, GLenum value); -typedef GLuint (APIENTRY * glBindParameterEXTPROC) (GLenum value); -typedef GLboolean (APIENTRY * glIsVariantEnabledEXTPROC) (GLuint id, GLenum cap); -typedef void (APIENTRY * glGetVariantBooleanvEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRY * glGetVariantIntegervEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRY * glGetVariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (APIENTRY * glGetVariantPointervEXTPROC) (GLuint id, GLenum value, GLvoid **data); -typedef void (APIENTRY * glGetInvariantBooleanvEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRY * glGetInvariantIntegervEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRY * glGetInvariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (APIENTRY * glGetLocalConstantBooleanvEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRY * glGetLocalConstantIntegervEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRY * glGetLocalConstantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (APIENTRY *glGetLocalConstantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData); +typedef void (APIENTRY *glGetLocalConstantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData); +typedef void (APIENTRY *glGetLocalConstantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData); +typedef void (APIENTRY *glGetInvariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData); +typedef void (APIENTRY *glGetInvariantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData); +typedef void (APIENTRY *glGetInvariantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData); +typedef void (APIENTRY *glGetVariantPointervEXTPROC) (GLuint id, GLenum value, GLvoid ** pbData); +typedef void (APIENTRY *glGetVariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData); +typedef void (APIENTRY *glGetVariantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData); +typedef void (APIENTRY *glGetVariantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData); +typedef GLboolean (APIENTRY *glIsVariantEnabledEXTPROC) (GLuint id, GLenum cap); +typedef GLuint (APIENTRY *glBindParameterEXTPROC) (GLenum value); +typedef GLuint (APIENTRY *glBindTextureUnitParameterEXTPROC) (GLenum unit, GLenum value); +typedef GLuint (APIENTRY *glBindTexGenParameterEXTPROC) (GLenum unit, GLenum coord, GLenum value); +typedef GLuint (APIENTRY *glBindMaterialParameterEXTPROC) (GLenum face, GLenum value); +typedef GLuint (APIENTRY *glBindLightParameterEXTPROC) (GLenum light, GLenum value); +typedef void (APIENTRY *glDisableVariantClientStateEXTPROC) (GLuint id); +typedef void (APIENTRY *glEnableVariantClientStateEXTPROC) (GLuint id); +typedef void (APIENTRY *glVariantPointerEXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid * pAddr); +typedef void (APIENTRY *glVariantuivEXTPROC) (GLuint id, GLuint * pAddr); +typedef void (APIENTRY *glVariantusvEXTPROC) (GLuint id, GLushort * pAddr); +typedef void (APIENTRY *glVariantubvEXTPROC) (GLuint id, GLubyte * pAddr); +typedef void (APIENTRY *glVariantfvEXTPROC) (GLuint id, GLfloat * pAddr); +typedef void (APIENTRY *glVariantivEXTPROC) (GLuint id, GLint * pAddr); +typedef void (APIENTRY *glVariantsvEXTPROC) (GLuint id, GLshort * pAddr); +typedef void (APIENTRY *glVariantbvEXTPROC) (GLuint id, GLbyte * pAddr); +typedef void (APIENTRY *glSetLocalConstantEXTPROC) (GLuint id, GLenum type, GLvoid * pAddr); +typedef void (APIENTRY *glSetInvariantEXTPROC) (GLuint id, GLenum type, GLvoid * pAddr); +typedef GLuint (APIENTRY *glGenSymbolsEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components); +typedef void (APIENTRY *glExtractComponentEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef void (APIENTRY *glInsertComponentEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef void (APIENTRY *glWriteMaskEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (APIENTRY *glSwizzleEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (APIENTRY *glShaderOp3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); +typedef void (APIENTRY *glShaderOp2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); +typedef void (APIENTRY *glShaderOp1EXTPROC) (GLenum op, GLuint res, GLuint arg1); +typedef void (APIENTRY *glDeleteVertexShaderEXTPROC) (GLuint id); +typedef GLuint (APIENTRY *glGenVertexShadersEXTPROC) (GLuint range); +typedef void (APIENTRY *glBindVertexShaderEXTPROC) (GLuint id); +typedef void (APIENTRY *glEndVertexShaderEXTPROC) (); +typedef void (APIENTRY *glBeginVertexShaderEXTPROC) (); -static glBeginVertexShaderEXTPROC glBeginVertexShaderEXT; -static glEndVertexShaderEXTPROC glEndVertexShaderEXT; -static glBindVertexShaderEXTPROC glBindVertexShaderEXT; -static glGenVertexShadersEXTPROC glGenVertexShadersEXT; -static glDeleteVertexShaderEXTPROC glDeleteVertexShaderEXT; -static glShaderOp1EXTPROC glShaderOp1EXT; -static glShaderOp2EXTPROC glShaderOp2EXT; -static glShaderOp3EXTPROC glShaderOp3EXT; -static glSwizzleEXTPROC glSwizzleEXT; -static glWriteMaskEXTPROC glWriteMaskEXT; -static glInsertComponentEXTPROC glInsertComponentEXT; -static glExtractComponentEXTPROC glExtractComponentEXT; -static glGenSymbolsEXTPROC glGenSymbolsEXT; -static glSetInvariantEXTPROC glSetInvariantEXT; -static glSetLocalConstantEXTPROC glSetLocalConstantEXT; -static glVariantbvEXTPROC glVariantbvEXT; -static glVariantsvEXTPROC glVariantsvEXT; -static glVariantivEXTPROC glVariantivEXT; -static glVariantfvEXTPROC glVariantfvEXT; -static glVariantubvEXTPROC glVariantubvEXT; -static glVariantusvEXTPROC glVariantusvEXT; -static glVariantuivEXTPROC glVariantuivEXT; -static glVariantPointerEXTPROC glVariantPointerEXT; -static glEnableVariantClientStateEXTPROC glEnableVariantClientStateEXT; -static glDisableVariantClientStateEXTPROC glDisableVariantClientStateEXT; -static glBindLightParameterEXTPROC glBindLightParameterEXT; -static glBindMaterialParameterEXTPROC glBindMaterialParameterEXT; -static glBindTexGenParameterEXTPROC glBindTexGenParameterEXT; -static glBindTextureUnitParameterEXTPROC glBindTextureUnitParameterEXT; -static glBindParameterEXTPROC glBindParameterEXT; -static glIsVariantEnabledEXTPROC glIsVariantEnabledEXT; -static glGetVariantBooleanvEXTPROC glGetVariantBooleanvEXT; -static glGetVariantIntegervEXTPROC glGetVariantIntegervEXT; -static glGetVariantFloatvEXTPROC glGetVariantFloatvEXT; -static glGetVariantPointervEXTPROC glGetVariantPointervEXT; -static glGetInvariantBooleanvEXTPROC glGetInvariantBooleanvEXT; -static glGetInvariantIntegervEXTPROC glGetInvariantIntegervEXT; -static glGetInvariantFloatvEXTPROC glGetInvariantFloatvEXT; -static glGetLocalConstantBooleanvEXTPROC glGetLocalConstantBooleanvEXT; -static glGetLocalConstantIntegervEXTPROC glGetLocalConstantIntegervEXT; static glGetLocalConstantFloatvEXTPROC glGetLocalConstantFloatvEXT; +static glGetLocalConstantIntegervEXTPROC glGetLocalConstantIntegervEXT; +static glGetLocalConstantBooleanvEXTPROC glGetLocalConstantBooleanvEXT; +static glGetInvariantFloatvEXTPROC glGetInvariantFloatvEXT; +static glGetInvariantIntegervEXTPROC glGetInvariantIntegervEXT; +static glGetInvariantBooleanvEXTPROC glGetInvariantBooleanvEXT; +static glGetVariantPointervEXTPROC glGetVariantPointervEXT; +static glGetVariantFloatvEXTPROC glGetVariantFloatvEXT; +static glGetVariantIntegervEXTPROC glGetVariantIntegervEXT; +static glGetVariantBooleanvEXTPROC glGetVariantBooleanvEXT; +static glIsVariantEnabledEXTPROC glIsVariantEnabledEXT; +static glBindParameterEXTPROC glBindParameterEXT; +static glBindTextureUnitParameterEXTPROC glBindTextureUnitParameterEXT; +static glBindTexGenParameterEXTPROC glBindTexGenParameterEXT; +static glBindMaterialParameterEXTPROC glBindMaterialParameterEXT; +static glBindLightParameterEXTPROC glBindLightParameterEXT; +static glDisableVariantClientStateEXTPROC glDisableVariantClientStateEXT; +static glEnableVariantClientStateEXTPROC glEnableVariantClientStateEXT; +static glVariantPointerEXTPROC glVariantPointerEXT; +static glVariantuivEXTPROC glVariantuivEXT; +static glVariantusvEXTPROC glVariantusvEXT; +static glVariantubvEXTPROC glVariantubvEXT; +static glVariantfvEXTPROC glVariantfvEXT; +static glVariantivEXTPROC glVariantivEXT; +static glVariantsvEXTPROC glVariantsvEXT; +static glVariantbvEXTPROC glVariantbvEXT; +static glSetLocalConstantEXTPROC glSetLocalConstantEXT; +static glSetInvariantEXTPROC glSetInvariantEXT; +static glGenSymbolsEXTPROC glGenSymbolsEXT; +static glExtractComponentEXTPROC glExtractComponentEXT; +static glInsertComponentEXTPROC glInsertComponentEXT; +static glWriteMaskEXTPROC glWriteMaskEXT; +static glSwizzleEXTPROC glSwizzleEXT; +static glShaderOp3EXTPROC glShaderOp3EXT; +static glShaderOp2EXTPROC glShaderOp2EXT; +static glShaderOp1EXTPROC glShaderOp1EXT; +static glDeleteVertexShaderEXTPROC glDeleteVertexShaderEXT; +static glGenVertexShadersEXTPROC glGenVertexShadersEXT; +static glBindVertexShaderEXTPROC glBindVertexShaderEXT; +static glEndVertexShaderEXTPROC glEndVertexShaderEXT; +static glBeginVertexShaderEXTPROC glBeginVertexShaderEXT; -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBeginVertexShaderEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT - (JNIEnv * env, jclass clazz) -{ - glBeginVertexShaderEXT(); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetLocalConstantFloatvEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glEndVertexShaderEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT - (JNIEnv * env, jclass clazz) -{ - glEndVertexShaderEXT(); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetLocalConstantIntegervEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindVertexShaderEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT - (JNIEnv * env, jclass clazz, jint id) -{ - glBindVertexShaderEXT(id); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetLocalConstantBooleanvEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glGenVertexShadersEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT - (JNIEnv * env, jclass clazz, jint range) -{ - GLuint result = glGenVertexShadersEXT(range); - - return result; +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetInvariantFloatvEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glDeleteVertexShaderEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT - (JNIEnv * env, jclass clazz, jint id) -{ - glDeleteVertexShaderEXT(id); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetInvariantIntegervEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glShaderOp1EXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT - (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1) -{ - glShaderOp1EXT(op, res, arg1); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetInvariantBooleanvEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glShaderOp2EXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT - (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1, jint arg2) -{ - glShaderOp2EXT(op, res, arg1, arg2); - +static jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantPointervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jint result_size) { + GLvoid * __result; + glGetVariantPointervEXT(id, value, &__result); + return safeNewBuffer(env, __result, result_size); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glShaderOp3EXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT - (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jint arg3) -{ - glShaderOp3EXT(op, res, arg1, arg2, arg3); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetVariantFloatvEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glSwizzleEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT - (JNIEnv * env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) -{ - glSwizzleEXT(res, in, outX, outY, outZ, outW); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetVariantIntegervEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glWriteMaskEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT - (JNIEnv * env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) -{ - glWriteMaskEXT(res, in, outX, outY, outZ, outW); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position) { + GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position; + glGetVariantBooleanvEXT(id, value, pbData_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glInsertComponentEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT - (JNIEnv * env, jclass clazz, jint res, jint src, jint num) -{ - glInsertComponentEXT(res, src, num); - +static jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT(JNIEnv *env, jclass clazz, jint id, jint cap) { + GLboolean __result = glIsVariantEnabledEXT(id, cap); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glExtractComponentEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT - (JNIEnv * env, jclass clazz, jint res, jint src, jint num) -{ - glExtractComponentEXT(res, src, num); - +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT(JNIEnv *env, jclass clazz, jint value) { + GLuint __result = glBindParameterEXT(value); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glGenSymbolsEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT - (JNIEnv * env, jclass clazz, jint dataType, jint storageType, jint range, jint components) -{ - GLuint result = glGenSymbolsEXT(dataType, storageType, range, components); - - return result; +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT(JNIEnv *env, jclass clazz, jint unit, jint value) { + GLuint __result = glBindTextureUnitParameterEXT(unit, value); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglSetInvariantEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT - (JNIEnv * env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_offset) -{ - GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset); - glSetInvariantEXT(id, type, pAddr_ptr); - +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT(JNIEnv *env, jclass clazz, jint unit, jint coord, jint value) { + GLuint __result = glBindTexGenParameterEXT(unit, coord, value); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglSetLocalConstantEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT - (JNIEnv * env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_offset) -{ - GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset); - glSetLocalConstantEXT(id, type, pAddr_ptr); - +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT(JNIEnv *env, jclass clazz, jint face, jint value) { + GLuint __result = glBindMaterialParameterEXT(face, value); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantbvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT - (JNIEnv * env, jclass clazz, jint id, jobject pAddr, jint pAddr_offset) -{ - GLbyte *pAddr_ptr = (GLbyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset; - glVariantbvEXT(id, pAddr_ptr); - +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT(JNIEnv *env, jclass clazz, jint light, jint value) { + GLuint __result = glBindLightParameterEXT(light, value); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantsvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT - (JNIEnv * env, jclass clazz, jint id, jobject psAddr, jint psAddr_offset) -{ - GLshort *psAddr_ptr = (GLshort *)(*env)->GetDirectBufferAddress(env, psAddr) + psAddr_offset; - glVariantsvEXT(id, psAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT(JNIEnv *env, jclass clazz, jint id) { + glDisableVariantClientStateEXT(id); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantfvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT - (JNIEnv * env, jclass clazz, jint id, jobject pfAddr, jint pfAddr_offset) -{ - GLfloat *pfAddr_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfAddr) + pfAddr_offset; - glVariantfvEXT(id, pfAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT(JNIEnv *env, jclass clazz, jint id) { + glEnableVariantClientStateEXT(id); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantivEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT - (JNIEnv * env, jclass clazz, jint id, jobject piAddr, jint piAddr_offset) -{ - GLint *piAddr_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piAddr) + piAddr_offset; - glVariantivEXT(id, piAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT(JNIEnv *env, jclass clazz, jint id, jint type, jint stride, jobject pAddr, jint pAddr_position) { + GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position)); + glVariantPointerEXT(id, type, stride, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantubvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT - (JNIEnv * env, jclass clazz, jint id, jobject pAddr, jint pAddr_offset) -{ - GLubyte *pAddr_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset; - glVariantubvEXT(id, pAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTBO(JNIEnv *env, jclass clazz, jint id, jint type, jint stride, jint pAddr_buffer_offset) { + GLvoid *pAddr_address = ((GLvoid *)offsetToPointer(pAddr_buffer_offset)); + glVariantPointerEXT(id, type, stride, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantusvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT - (JNIEnv * env, jclass clazz, jint id, jobject psAddr, jint psAddr_offset) -{ - GLushort *psAddr_ptr = (GLushort *)(*env)->GetDirectBufferAddress(env, psAddr) + psAddr_offset; - glVariantusvEXT(id, psAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLuint *pAddr_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantuivEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantuivEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT - (JNIEnv * env, jclass clazz, jint id, jobject piAddr, jint piAddr_offset) -{ - GLuint *piAddr_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, piAddr) + piAddr_offset; - glVariantuivEXT(id, piAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLushort *pAddr_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantusvEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantPointerEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT - (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jobject pAddr, jint pAddr_offset) -{ - GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset); - glVariantPointerEXT(id, type, stride, pAddr_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLubyte *pAddr_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantubvEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantPointerEXTVBO - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO - (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jint buffer_offset) -{ - glVariantPointerEXT(id, type, stride, (GLvoid *)buffer_offset); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLfloat *pAddr_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantfvEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glEnableVariantClientStateEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT - (JNIEnv * env, jclass clazz, jint id) -{ - glEnableVariantClientStateEXT(id); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLint *pAddr_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantivEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glDisableVariantClientStateEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT - (JNIEnv * env, jclass clazz, jint id) -{ - glDisableVariantClientStateEXT(id); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLshort *pAddr_address = ((GLshort *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantsvEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindLightParameterEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT - (JNIEnv * env, jclass clazz, jint light, jint value) -{ - GLuint result = glBindLightParameterEXT(light, value); - - return result; +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position) { + GLbyte *pAddr_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position; + glVariantbvEXT(id, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindMaterialParameterEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT - (JNIEnv * env, jclass clazz, jint face, jint value) -{ - GLuint result = glBindMaterialParameterEXT(face, value); - - return result; +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT(JNIEnv *env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_position) { + GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position)); + glSetLocalConstantEXT(id, type, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindTexGenParameterEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT - (JNIEnv * env, jclass clazz, jint unit, jint coord, jint value) -{ - GLuint result = glBindTexGenParameterEXT(unit, coord, value); - - return result; +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT(JNIEnv *env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_position) { + GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position)); + glSetInvariantEXT(id, type, pAddr_address); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindTextureUnitParameterEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT - (JNIEnv * env, jclass clazz, jint unit, jint value) -{ - GLuint result = glBindTextureUnitParameterEXT(unit, value); - - return result; +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT(JNIEnv *env, jclass clazz, jint dataType, jint storageType, jint range, jint components) { + GLuint __result = glGenSymbolsEXT(dataType, storageType, range, components); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindParameterEXT - */ -static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT - (JNIEnv * env, jclass clazz, jint value) -{ - GLuint result = glBindParameterEXT(value); - - return result; +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT(JNIEnv *env, jclass clazz, jint res, jint src, jint num) { + glExtractComponentEXT(res, src, num); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glIsVariantEnabledEXT - */ -static jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT - (JNIEnv * env, jclass clazz, jint id, jint cap) -{ - GLboolean result = glIsVariantEnabledEXT(id, cap); - - return result; +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT(JNIEnv *env, jclass clazz, jint res, jint src, jint num) { + glInsertComponentEXT(res, src, num); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetVariantBooleanvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) -{ - GLubyte *pbData_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pbData) + pbData_offset; - glGetVariantBooleanvEXT(id, value, pbData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT(JNIEnv *env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) { + glWriteMaskEXT(res, in, outX, outY, outZ, outW); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetVariantIntegervEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) -{ - GLint *piData_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piData) + piData_offset; - glGetVariantIntegervEXT(id, value, piData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT(JNIEnv *env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) { + glSwizzleEXT(res, in, outX, outY, outZ, outW); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetVariantFloatvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) -{ - GLfloat *pfData_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfData) + pfData_offset; - glGetVariantFloatvEXT(id, value, pfData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jint arg3) { + glShaderOp3EXT(op, res, arg1, arg2, arg3); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glGetVariantPointerEXT - */ -static jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jint size) -{ - void *address; - glGetVariantPointervEXT((GLuint)id, (GLuint)value, &address); - - return safeNewBuffer(env, address, size); +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jint arg2) { + glShaderOp2EXT(op, res, arg1, arg2); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetInvariantBooleanvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) -{ - GLubyte *pbData_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pbData) + pbData_offset; - glGetInvariantBooleanvEXT(id, value, pbData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1) { + glShaderOp1EXT(op, res, arg1); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetInvariantIntegervEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) -{ - GLint *piData_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piData) + piData_offset; - glGetInvariantIntegervEXT(id, value, piData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT(JNIEnv *env, jclass clazz, jint id) { + glDeleteVertexShaderEXT(id); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetInvariantFloatvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) -{ - GLfloat *pfData_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfData) + pfData_offset; - glGetInvariantFloatvEXT(id, value, pfData_ptr); - +static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT(JNIEnv *env, jclass clazz, jint range) { + GLuint __result = glGenVertexShadersEXT(range); + return __result; } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetLocalConstantBooleanvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) -{ - GLubyte *pbData_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pbData) + pbData_offset; - glGetLocalConstantBooleanvEXT(id, value, pbData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT(JNIEnv *env, jclass clazz, jint id) { + glBindVertexShaderEXT(id); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetLocalConstantIntegervEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) -{ - GLint *piData_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piData) + piData_offset; - glGetLocalConstantIntegervEXT(id, value, piData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT(JNIEnv *env, jclass clazz) { + glEndVertexShaderEXT(); } -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetLocalConstantFloatvEXT - */ -static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT - (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) -{ - GLfloat *pfData_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfData) + pfData_offset; - glGetLocalConstantFloatvEXT(id, value, pfData_ptr); - +static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT(JNIEnv *env, jclass clazz) { + glBeginVertexShaderEXT(); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glBeginVertexShaderEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT, "glBeginVertexShaderEXT", (void*)&glBeginVertexShaderEXT}, - {"glEndVertexShaderEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT, "glEndVertexShaderEXT", (void*)&glEndVertexShaderEXT}, - {"glBindVertexShaderEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT, "glBindVertexShaderEXT", (void*)&glBindVertexShaderEXT}, - {"glGenVertexShadersEXT", "(I)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT, "glGenVertexShadersEXT", (void*)&glGenVertexShadersEXT}, - {"glDeleteVertexShaderEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT, "glDeleteVertexShaderEXT", (void*)&glDeleteVertexShaderEXT}, - {"glShaderOp1EXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT, "glShaderOp1EXT", (void*)&glShaderOp1EXT}, - {"glShaderOp2EXT", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT, "glShaderOp2EXT", (void*)&glShaderOp2EXT}, - {"glShaderOp3EXT", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT, "glShaderOp3EXT", (void*)&glShaderOp3EXT}, - {"glSwizzleEXT", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT, "glSwizzleEXT", (void*)&glSwizzleEXT}, - {"glWriteMaskEXT", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT, "glWriteMaskEXT", (void*)&glWriteMaskEXT}, - {"glInsertComponentEXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT, "glInsertComponentEXT", (void*)&glInsertComponentEXT}, - {"glExtractComponentEXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT, "glExtractComponentEXT", (void*)&glExtractComponentEXT}, - {"glGenSymbolsEXT", "(IIII)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT, "glGenSymbolsEXT", (void*)&glGenSymbolsEXT}, - {"nglSetInvariantEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT, "glSetInvariantEXT", (void*)&glSetInvariantEXT}, - {"nglSetLocalConstantEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT, "glSetLocalConstantEXT", (void*)&glSetLocalConstantEXT}, - {"nglVariantbvEXT", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT, "glVariantbvEXT", (void*)&glVariantbvEXT}, - {"nglVariantsvEXT", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT, "glVariantsvEXT", (void*)&glVariantsvEXT}, - {"nglVariantfvEXT", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT, "glVariantfvEXT", (void*)&glVariantfvEXT}, - {"nglVariantivEXT", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT, "glVariantivEXT", (void*)&glVariantivEXT}, - {"nglVariantubvEXT", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT, "glVariantubvEXT", (void*)&glVariantubvEXT}, - {"nglVariantusvEXT", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT, "glVariantusvEXT", (void*)&glVariantusvEXT}, - {"nglVariantuivEXT", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT, "glVariantuivEXT", (void*)&glVariantuivEXT}, - {"nglVariantPointerEXT", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT, "glVariantPointerEXT", (void*)&glVariantPointerEXT}, - {"nglVariantPointerEXTVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO, NULL, NULL}, - {"glEnableVariantClientStateEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT, "glEnableVariantClientStateEXT", (void*)&glEnableVariantClientStateEXT}, - {"glDisableVariantClientStateEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT, "glDisableVariantClientStateEXT", (void*)&glDisableVariantClientStateEXT}, - {"glBindLightParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT, "glBindLightParameterEXT", (void*)&glBindLightParameterEXT}, - {"glBindMaterialParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT, "glBindMaterialParameterEXT", (void*)&glBindMaterialParameterEXT}, - {"glBindTexGenParameterEXT", "(III)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT, "glBindTexGenParameterEXT", (void*)&glBindTexGenParameterEXT}, - {"glBindTextureUnitParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT, "glBindTextureUnitParameterEXT", (void*)&glBindTextureUnitParameterEXT}, - {"glBindParameterEXT", "(I)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT, "glBindParameterEXT", (void*)&glBindParameterEXT}, - {"glIsVariantEnabledEXT", "(II)Z", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT, "glIsVariantEnabledEXT", (void*)&glIsVariantEnabledEXT}, - {"nglGetVariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT, "glGetVariantBooleanvEXT", (void*)&glGetVariantBooleanvEXT}, - {"nglGetVariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT, "glGetVariantIntegervEXT", (void*)&glGetVariantIntegervEXT}, - {"nglGetVariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT, "glGetVariantFloatvEXT", (void*)&glGetVariantFloatvEXT}, - {"glGetVariantPointerEXT", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT, "glGetVariantPointervEXT", (void*)&glGetVariantPointervEXT}, - {"nglGetInvariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT, "glGetInvariantBooleanvEXT", (void*)&glGetInvariantBooleanvEXT}, - {"nglGetInvariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT, "glGetInvariantIntegervEXT", (void*)&glGetInvariantIntegervEXT}, - {"nglGetInvariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT, "glGetInvariantFloatvEXT", (void*)&glGetInvariantFloatvEXT}, - {"nglGetLocalConstantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT, "glGetLocalConstantBooleanvEXT", (void*)&glGetLocalConstantBooleanvEXT}, - {"nglGetLocalConstantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT, "glGetLocalConstantIntegervEXT", (void*)&glGetLocalConstantIntegervEXT}, - {"nglGetLocalConstantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT, "glGetLocalConstantFloatvEXT", (void*)&glGetLocalConstantFloatvEXT} + {"nglGetLocalConstantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT, "glGetLocalConstantFloatvEXT", (void *)&glGetLocalConstantFloatvEXT}, + {"nglGetLocalConstantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT, "glGetLocalConstantIntegervEXT", (void *)&glGetLocalConstantIntegervEXT}, + {"nglGetLocalConstantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT, "glGetLocalConstantBooleanvEXT", (void *)&glGetLocalConstantBooleanvEXT}, + {"nglGetInvariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT, "glGetInvariantFloatvEXT", (void *)&glGetInvariantFloatvEXT}, + {"nglGetInvariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT, "glGetInvariantIntegervEXT", (void *)&glGetInvariantIntegervEXT}, + {"nglGetInvariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT, "glGetInvariantBooleanvEXT", (void *)&glGetInvariantBooleanvEXT}, + {"nglGetVariantPointervEXT", "(III)Ljava/nio/ByteBuffer;", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantPointervEXT, "glGetVariantPointervEXT", (void *)&glGetVariantPointervEXT}, + {"nglGetVariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT, "glGetVariantFloatvEXT", (void *)&glGetVariantFloatvEXT}, + {"nglGetVariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT, "glGetVariantIntegervEXT", (void *)&glGetVariantIntegervEXT}, + {"nglGetVariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT, "glGetVariantBooleanvEXT", (void *)&glGetVariantBooleanvEXT}, + {"glIsVariantEnabledEXT", "(II)Z", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT, "glIsVariantEnabledEXT", (void *)&glIsVariantEnabledEXT}, + {"glBindParameterEXT", "(I)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT, "glBindParameterEXT", (void *)&glBindParameterEXT}, + {"glBindTextureUnitParameterEXT", "(II)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT, "glBindTextureUnitParameterEXT", (void *)&glBindTextureUnitParameterEXT}, + {"glBindTexGenParameterEXT", "(III)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT, "glBindTexGenParameterEXT", (void *)&glBindTexGenParameterEXT}, + {"glBindMaterialParameterEXT", "(II)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT, "glBindMaterialParameterEXT", (void *)&glBindMaterialParameterEXT}, + {"glBindLightParameterEXT", "(II)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT, "glBindLightParameterEXT", (void *)&glBindLightParameterEXT}, + {"glDisableVariantClientStateEXT", "(I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT, "glDisableVariantClientStateEXT", (void *)&glDisableVariantClientStateEXT}, + {"glEnableVariantClientStateEXT", "(I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT, "glEnableVariantClientStateEXT", (void *)&glEnableVariantClientStateEXT}, + {"nglVariantPointerEXT", "(IIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT, "glVariantPointerEXT", (void *)&glVariantPointerEXT}, + {"nglVariantPointerEXTBO", "(IIII)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTBO, "glVariantPointerEXT", (void *)&glVariantPointerEXT}, + {"nglVariantuivEXT", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT, "glVariantuivEXT", (void *)&glVariantuivEXT}, + {"nglVariantusvEXT", "(ILjava/nio/ShortBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT, "glVariantusvEXT", (void *)&glVariantusvEXT}, + {"nglVariantubvEXT", "(ILjava/nio/ByteBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT, "glVariantubvEXT", (void *)&glVariantubvEXT}, + {"nglVariantfvEXT", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT, "glVariantfvEXT", (void *)&glVariantfvEXT}, + {"nglVariantivEXT", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT, "glVariantivEXT", (void *)&glVariantivEXT}, + {"nglVariantsvEXT", "(ILjava/nio/ShortBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT, "glVariantsvEXT", (void *)&glVariantsvEXT}, + {"nglVariantbvEXT", "(ILjava/nio/ByteBuffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT, "glVariantbvEXT", (void *)&glVariantbvEXT}, + {"nglSetLocalConstantEXT", "(IILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT, "glSetLocalConstantEXT", (void *)&glSetLocalConstantEXT}, + {"nglSetInvariantEXT", "(IILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT, "glSetInvariantEXT", (void *)&glSetInvariantEXT}, + {"glGenSymbolsEXT", "(IIII)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT, "glGenSymbolsEXT", (void *)&glGenSymbolsEXT}, + {"glExtractComponentEXT", "(III)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT, "glExtractComponentEXT", (void *)&glExtractComponentEXT}, + {"glInsertComponentEXT", "(III)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT, "glInsertComponentEXT", (void *)&glInsertComponentEXT}, + {"glWriteMaskEXT", "(IIIIII)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT, "glWriteMaskEXT", (void *)&glWriteMaskEXT}, + {"glSwizzleEXT", "(IIIIII)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT, "glSwizzleEXT", (void *)&glSwizzleEXT}, + {"glShaderOp3EXT", "(IIIII)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT, "glShaderOp3EXT", (void *)&glShaderOp3EXT}, + {"glShaderOp2EXT", "(IIII)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT, "glShaderOp2EXT", (void *)&glShaderOp2EXT}, + {"glShaderOp1EXT", "(III)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT, "glShaderOp1EXT", (void *)&glShaderOp1EXT}, + {"glDeleteVertexShaderEXT", "(I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT, "glDeleteVertexShaderEXT", (void *)&glDeleteVertexShaderEXT}, + {"glGenVertexShadersEXT", "(I)I", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT, "glGenVertexShadersEXT", (void *)&glGenVertexShadersEXT}, + {"glBindVertexShaderEXT", "(I)V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT, "glBindVertexShaderEXT", (void *)&glBindVertexShaderEXT}, + {"glEndVertexShaderEXT", "()V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT, "glEndVertexShaderEXT", (void *)&glEndVertexShaderEXT}, + {"glBeginVertexShaderEXT", "()V", (void *)&Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT, "glBeginVertexShaderEXT", (void *)&glBeginVertexShaderEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_EXTDrawRangeElements.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_EXTDrawRangeElements.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_EXTDrawRangeElements.c 15 Feb 2005 11:05:18 -0000 1.2 @@ -1,80 +1,27 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTDrawRangeElements -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #i... [truncated message content] |
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/arb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/native/common/arb Modified Files: org_lwjgl_opengl_ARBBufferObject.c org_lwjgl_opengl_ARBColorBufferFloat.c org_lwjgl_opengl_ARBDrawBuffers.c org_lwjgl_opengl_ARBImaging.c org_lwjgl_opengl_ARBMatrixPalette.c org_lwjgl_opengl_ARBMultisample.c org_lwjgl_opengl_ARBMultitexture.c org_lwjgl_opengl_ARBOcclusionQuery.c org_lwjgl_opengl_ARBPointParameters.c org_lwjgl_opengl_ARBProgram.c org_lwjgl_opengl_ARBShaderObjects.c org_lwjgl_opengl_ARBTextureCompression.c org_lwjgl_opengl_ARBTransposeMatrix.c org_lwjgl_opengl_ARBVertexBlend.c org_lwjgl_opengl_ARBVertexProgram.c org_lwjgl_opengl_ARBVertexShader.c org_lwjgl_opengl_ARBWindowPos.c Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: org_lwjgl_opengl_ARBDrawBuffers.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/arb/org_lwjgl_opengl_ARBDrawBuffers.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ARBDrawBuffers.c 10 Sep 2004 08:13:51 -0000 1.1 +++ org_lwjgl_opengl_ARBDrawBuffers.c 15 Feb 2005 11:05:15 -0000 1.2 @@ -1,69 +1,21 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBDrawBuffers -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" - -typedef void (APIENTRY * glDrawBuffersARBPROC) (GLsizei n, const GLenum *bufs); +typedef void (APIENTRY *glDrawBuffersARBPROC) (GLsizei size, const GLenum * buffers); static glDrawBuffersARBPROC glDrawBuffersARB; -/* - * Class: org.lwjgl.opengl.ARBDrawBuffers - * Method: nglDrawBuffersARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBDrawBuffers_nglDrawBuffersARB - (JNIEnv * env, jclass clazz, jint size, jobject buffers, jint buffersOffset) -{ - GLuint *buffers_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, buffers) + buffersOffset; - glDrawBuffersARB(size, buffers_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ARBDrawBuffers_nglDrawBuffersARB(JNIEnv *env, jclass clazz, jint size, jobject buffers, jint buffers_position) { + const GLenum *buffers_address = ((const GLenum *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position; + glDrawBuffersARB(size, buffers_address); } -#ifdef __clplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBDrawBuffers_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglDrawBuffersARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBDrawBuffers_nglDrawBuffersARB, "glDrawBuffersARB", (void*)&glDrawBuffersARB} + {"nglDrawBuffersARB", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBDrawBuffers_nglDrawBuffersARB, "glDrawBuffersARB", (void *)&glDrawBuffersARB} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ARBTextureCompression.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_opengl_ARBTextureCompression.c 13 Jan 2005 20:30:39 -0000 1.2 +++ org_lwjgl_opengl_ARBTextureCompression.c 15 Feb 2005 11:05:17 -0000 1.3 @@ -1,227 +1,111 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBTextureCompression -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glCompressedTexImage1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexImage2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexImage3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexSubImage1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexSubImage2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexSubImage3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glGetCompressedTexImageARBPROC) (GLenum target, GLint lod, GLvoid *img ); +typedef void (APIENTRY *glGetCompressedTexImageARBPROC) (GLenum target, GLint lod, GLvoid * pImg); +typedef void (APIENTRY *glCompressedTexSubImage3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * pData); +typedef void (APIENTRY *glCompressedTexSubImage2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * pData); +typedef void (APIENTRY *glCompressedTexSubImage1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * pData); +typedef void (APIENTRY *glCompressedTexImage3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * pData); +typedef void (APIENTRY *glCompressedTexImage2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * pData); +typedef void (APIENTRY *glCompressedTexImage1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * pData); -static glCompressedTexImage3DARBPROC glCompressedTexImage3DARB; -static glCompressedTexImage2DARBPROC glCompressedTexImage2DARB; -static glCompressedTexImage1DARBPROC glCompressedTexImage1DARB; +static glGetCompressedTexImageARBPROC glGetCompressedTexImageARB; static glCompressedTexSubImage3DARBPROC glCompressedTexSubImage3DARB; static glCompressedTexSubImage2DARBPROC glCompressedTexSubImage2DARB; static glCompressedTexSubImage1DARBPROC glCompressedTexSubImage1DARB; -static glGetCompressedTexImageARBPROC glGetCompressedTexImageARB; +static glCompressedTexImage3DARBPROC glCompressedTexImage3DARB; +static glCompressedTexImage2DARBPROC glCompressedTexImage2DARB; +static glCompressedTexImage1DARBPROC glCompressedTexImage1DARB; -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage1DARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB - (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jobject pData, jint pData_offset) -{ - GLvoid *pData_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pData) + pData_offset); - glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB(JNIEnv *env, jclass clazz, jint target, jint lod, jobject pImg, jint pImg_position) { + GLvoid *pImg_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pImg)) + pImg_position)); + glGetCompressedTexImageARB(target, lod, pImg_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage1DARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARBBO - (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jint buffer_offset) -{ - glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARBBO(JNIEnv *env, jclass clazz, jint target, jint lod, jint pImg_buffer_offset) { + GLvoid *pImg_address = ((GLvoid *)offsetToPointer(pImg_buffer_offset)); + glGetCompressedTexImageARB(target, lod, pImg_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage2DARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB - (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject pData, jint pData_offset) -{ - GLvoid *pData_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pData) + pData_offset); - glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jobject pData, jint pData_position) { + const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position)); + glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage2DARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARBBO - (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jint buffer_offset) -{ - glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jint pData_buffer_offset) { + const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset)); + glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage3DARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB - (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_offset) -{ - GLvoid *pData_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pData) + pData_offset); - glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject pData, jint pData_position) { + const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position)); + glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage3DARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARBBO - (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jint buffer_offset) -{ - glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jint pData_buffer_offset) { + const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset)); + glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage1DARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB - (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint border, jint imageSize, jobject pData, jint pData_offset) -{ - GLvoid *pData_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pData) + pData_offset); - glCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jobject pData, jint pData_position) { + const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position)); + glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage1DARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARBBO - (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint border, jint imageSize, jint buffer_offset) -{ - glCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jint pData_buffer_offset) { + const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset)); + glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage2DARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB - (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint border, jint imageSize, jobject pData, jint pData_offset) -{ - GLvoid *pData_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pData) + pData_offset); - glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_position) { + const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position)); + glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage2DARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARBBO - (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint border, jint imageSize, jint buffer_offset) -{ - glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jint pData_buffer_offset) { + const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset)); + glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage3DARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB - (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_offset) -{ - GLvoid *pData_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pData) + pData_offset); - glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject pData, jint pData_position) { + const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position)); + glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage3DARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARBBO - (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint border, jint imageSize, jint buffer_offset) -{ - glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jint pData_buffer_offset) { + const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset)); + glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglGetCompressedTexImageARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB - (JNIEnv * env, jclass clazz, jint target, jint lod, jobject pImg, jint pImg_offset) -{ - GLvoid *pImg_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pImg) + pImg_offset); - glGetCompressedTexImageARB(target, lod, pImg_ptr); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jobject pData, jint pData_position) { + const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position)); + glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_address); } -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglGetCompressedTexImageARBBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARBBO - (JNIEnv * env, jclass clazz, jint target, jint lod, jint buffer_offset) -{ - glGetCompressedTexImageARB(target, lod, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jint pData_buffer_offset) { + const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset)); + glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_address); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglCompressedTexImage1DARB", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB, "glCompressedTexImage1DARB", (void*)&glCompressedTexImage1DARB}, - {"nglCompressedTexImage1DARBBO", "(IIIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARBBO, NULL, NULL}, - {"nglCompressedTexImage2DARB", "(IIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB, "glCompressedTexImage2DARB", (void*)&glCompressedTexImage2DARB}, - {"nglCompressedTexImage2DARBBO", "(IIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARBBO, NULL, NULL}, - {"nglCompressedTexImage3DARB", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB, "glCompressedTexImage3DARB", (void*)&glCompressedTexImage3DARB}, - {"nglCompressedTexImage3DARBBO", "(IIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARBBO, NULL, NULL}, - {"nglCompressedTexSubImage1DARB", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB, "glCompressedTexSubImage1DARB", (void*)&glCompressedTexSubImage1DARB}, - {"nglCompressedTexSubImage1DARBBO", "(IIIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARBBO, NULL, NULL}, - {"nglCompressedTexSubImage2DARB", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB, "glCompressedTexSubImage2DARB", (void*)&glCompressedTexSubImage2DARB}, - {"nglCompressedTexSubImage2DARBBO", "(IIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARBBO, NULL, NULL}, - {"nglCompressedTexSubImage3DARB", "(IIIIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB, "glCompressedTexSubImage3DARB", (void*)&glCompressedTexSubImage3DARB}, - {"nglCompressedTexSubImage3DARBBO", "(IIIIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARBBO, NULL, NULL}, - {"nglGetCompressedTexImageARB", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB, "glGetCompressedTexImageARB", (void*)&glGetCompressedTexImageARB}, - {"nglGetCompressedTexImageARBBO", "(III)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARBBO, NULL, NULL} + {"nglGetCompressedTexImageARB", "(IILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB, "glGetCompressedTexImageARB", (void *)&glGetCompressedTexImageARB}, + {"nglGetCompressedTexImageARBBO", "(III)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARBBO, "glGetCompressedTexImageARB", (void *)&glGetCompressedTexImageARB}, + {"nglCompressedTexSubImage3DARB", "(IIIIIIIIIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB, "glCompressedTexSubImage3DARB", (void *)&glCompressedTexSubImage3DARB}, + {"nglCompressedTexSubImage3DARBBO", "(IIIIIIIIIII)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARBBO, "glCompressedTexSubImage3DARB", (void *)&glCompressedTexSubImage3DARB}, + {"nglCompressedTexSubImage2DARB", "(IIIIIIIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB, "glCompressedTexSubImage2DARB", (void *)&glCompressedTexSubImage2DARB}, + {"nglCompressedTexSubImage2DARBBO", "(IIIIIIIII)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARBBO, "glCompressedTexSubImage2DARB", (void *)&glCompressedTexSubImage2DARB}, + {"nglCompressedTexSubImage1DARB", "(IIIIIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB, "glCompressedTexSubImage1DARB", (void *)&glCompressedTexSubImage1DARB}, + {"nglCompressedTexSubImage1DARBBO", "(IIIIIII)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARBBO, "glCompressedTexSubImage1DARB", (void *)&glCompressedTexSubImage1DARB}, + {"nglCompressedTexImage3DARB", "(IIIIIIIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB, "glCompressedTexImage3DARB", (void *)&glCompressedTexImage3DARB}, + {"nglCompressedTexImage3DARBBO", "(IIIIIIIII)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARBBO, "glCompressedTexImage3DARB", (void *)&glCompressedTexImage3DARB}, + {"nglCompressedTexImage2DARB", "(IIIIIIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB, "glCompressedTexImage2DARB", (void *)&glCompressedTexImage2DARB}, + {"nglCompressedTexImage2DARBBO", "(IIIIIIII)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARBBO, "glCompressedTexImage2DARB", (void *)&glCompressedTexImage2DARB}, + {"nglCompressedTexImage1DARB", "(IIIIIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB, "glCompressedTexImage1DARB", (void *)&glCompressedTexImage1DARB}, + {"nglCompressedTexImage1DARBBO", "(IIIIIII)V", (void *)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARBBO, "glCompressedTexImage1DARB", (void *)&glCompressedTexImage1DARB} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif \ No newline at end of file Index: org_lwjgl_opengl_ARBVertexProgram.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ARBVertexProgram.c 10 Sep 2004 08:13:51 -0000 1.1 +++ org_lwjgl_opengl_ARBVertexProgram.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,304 +1,129 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBVertexProgram -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -#include "common_tools.h" -typedef void (APIENTRY * glVertexAttrib1sARBPROC) (GLuint index, GLshort x); -typedef void (APIENTRY * glVertexAttrib1fARBPROC) (GLuint index, GLfloat x); -typedef void (APIENTRY * glVertexAttrib2sARBPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRY * glVertexAttrib2fARBPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRY * glVertexAttrib3sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRY * glVertexAttrib3fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * glVertexAttrib4sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRY * glVertexAttrib4fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * glVertexAttrib4NubARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRY * glVertexAttrib1svARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib1fvARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib2svARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib2fvARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib2dvARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * glVertexAttrib3svARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib3fvARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib3dvARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * glVertexAttrib4bvARBPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRY * glVertexAttrib4svARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib4ivARBPROC) (GLuint index, const GLint *v); -typedef void (APIENTRY * glVertexAttrib4ubvARBPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRY * glVertexAttrib4usvARBPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRY * glVertexAttrib4uivARBPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRY * glVertexAttrib4fvARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib4dvARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * glVertexAttrib4NbvARBPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRY * glVertexAttrib4NsvARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib4NivARBPROC) (GLuint index, const GLint *v); -typedef void (APIENTRY * glVertexAttrib4NubvARBPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRY * glVertexAttrib4NusvARBPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRY * glVertexAttrib4NuivARBPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRY * glVertexAttribPointerARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * glEnableVertexAttribArrayARBPROC) (GLuint index); -typedef void (APIENTRY * glDisableVertexAttribArrayARBPROC) (GLuint index); -typedef void (APIENTRY * glGetVertexAttribdvARBPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRY * glGetVertexAttribfvARBPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glGetVertexAttribivARBPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetVertexAttribPointervARBPROC) (GLuint index, GLenum pname, GLvoid **pointer); +typedef void (APIENTRY *glGetVertexAttribPointervARBPROC) (GLuint index, GLenum pname, GLvoid ** result); +typedef void (APIENTRY *glGetVertexAttribivARBPROC) (GLuint index, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetVertexAttribfvARBPROC) (GLuint index, GLenum pname, GLfloat * params); +typedef void (APIENTRY *glDisableVertexAttribArrayARBPROC) (GLuint index); +typedef void (APIENTRY *glEnableVertexAttribArrayARBPROC) (GLuint index); +typedef void (APIENTRY *glVertexAttribPointerARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * buffer); +typedef void (APIENTRY *glVertexAttrib4NubARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRY *glVertexAttrib4fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRY *glVertexAttrib4sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRY *glVertexAttrib3fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRY *glVertexAttrib3sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRY *glVertexAttrib2fARBPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRY *glVertexAttrib2sARBPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRY *glVertexAttrib1fARBPROC) (GLuint index, GLfloat x); +typedef void (APIENTRY *glVertexAttrib1sARBPROC) (GLuint index, GLshort x); -static glVertexAttrib1sARBPROC glVertexAttrib1sARB; -static glVertexAttrib1fARBPROC glVertexAttrib1fARB; -static glVertexAttrib2sARBPROC glVertexAttrib2sARB; -static glVertexAttrib2fARBPROC glVertexAttrib2fARB; -static glVertexAttrib3sARBPROC glVertexAttrib3sARB; -static glVertexAttrib3fARBPROC glVertexAttrib3fARB; -static glVertexAttrib4sARBPROC glVertexAttrib4sARB; -static glVertexAttrib4fARBPROC glVertexAttrib4fARB; -static glVertexAttrib4NubARBPROC glVertexAttrib4NubARB; -static glVertexAttribPointerARBPROC glVertexAttribPointerARB; -static glEnableVertexAttribArrayARBPROC glEnableVertexAttribArrayARB; -static glDisableVertexAttribArrayARBPROC glDisableVertexAttribArrayARB; -static glGetVertexAttribfvARBPROC glGetVertexAttribfvARB; -static glGetVertexAttribivARBPROC glGetVertexAttribivARB; static glGetVertexAttribPointervARBPROC glGetVertexAttribPointervARB; +static glGetVertexAttribivARBPROC glGetVertexAttribivARB; +static glGetVertexAttribfvARBPROC glGetVertexAttribfvARB; +static glDisableVertexAttribArrayARBPROC glDisableVertexAttribArrayARB; +static glEnableVertexAttribArrayARBPROC glEnableVertexAttribArrayARB; +static glVertexAttribPointerARBPROC glVertexAttribPointerARB; +static glVertexAttrib4NubARBPROC glVertexAttrib4NubARB; +static glVertexAttrib4fARBPROC glVertexAttrib4fARB; +static glVertexAttrib4sARBPROC glVertexAttrib4sARB; +static glVertexAttrib3fARBPROC glVertexAttrib3fARB; +static glVertexAttrib3sARBPROC glVertexAttrib3sARB; +static glVertexAttrib2fARBPROC glVertexAttrib2fARB; +static glVertexAttrib2sARBPROC glVertexAttrib2sARB; +static glVertexAttrib1fARBPROC glVertexAttrib1fARB; +static glVertexAttrib1sARBPROC glVertexAttrib1sARB; -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib1sARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB - (JNIEnv * env, jclass clazz, jint index, jshort x) -{ - glVertexAttrib1sARB(index, x); - +static jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribPointervARB(JNIEnv *env, jclass clazz, jint index, jint pname, jint result_size) { + GLvoid * __result; + glGetVertexAttribPointervARB(index, pname, &__result); + return safeNewBuffer(env, __result, result_size); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib1fARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB - (JNIEnv * env, jclass clazz, jint index, jfloat x) -{ - glVertexAttrib1fARB(index, x); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVertexAttribivARB(index, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib2sARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB - (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y) -{ - glVertexAttrib2sARB(index, x, y); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVertexAttribfvARB(index, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib2fARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB - (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y) -{ - glVertexAttrib2fARB(index, x, y); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB(JNIEnv *env, jclass clazz, jint index) { + glDisableVertexAttribArrayARB(index); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib3sARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB - (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z) -{ - glVertexAttrib3sARB(index, x, y, z); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB(JNIEnv *env, jclass clazz, jint index) { + glEnableVertexAttribArrayARB(index); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib3fARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB - (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z) -{ - glVertexAttrib3fARB(index, x, y, z); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jobject buffer, jint buffer_position) { + const GLvoid *buffer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, buffer)) + buffer_position)); + glVertexAttribPointerARB(index, size, type, normalized, stride, buffer_address); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib4sARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB - (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) -{ - glVertexAttrib4sARB(index, x, y, z, w); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBBO(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer_buffer_offset) { + const GLvoid *buffer_address = ((const GLvoid *)offsetToPointer(buffer_buffer_offset)); + glVertexAttribPointerARB(index, size, type, normalized, stride, buffer_address); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib4fARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB - (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w) -{ - glVertexAttrib4fARB(index, x, y, z, w); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w) { + glVertexAttrib4NubARB(index, x, y, z, w); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib4NubARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB - (JNIEnv * env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w) -{ - glVertexAttrib4NubARB(index, x, y, z, w); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { + glVertexAttrib4fARB(index, x, y, z, w); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttribPointerARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB - (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jobject buffer, jint bufferOffset) -{ - GLvoid *buffer_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, buffer) + bufferOffset); - glVertexAttribPointerARB(index, size, type, normalized, stride, buffer_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) { + glVertexAttrib4sARB(index, x, y, z, w); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttribPointerARBVBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBVBO - (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint bufferOffset) -{ - glVertexAttribPointerARB(index, size, type, normalized, stride, (GLvoid *)bufferOffset); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z) { + glVertexAttrib3fARB(index, x, y, z); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glEnableVertexAttribArrayARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB - (JNIEnv * env, jclass clazz, jint index) -{ - glEnableVertexAttribArrayARB(index); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z) { + glVertexAttrib3sARB(index, x, y, z); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glDisableVertexAttribArrayARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB - (JNIEnv * env, jclass clazz, jint index) -{ - glDisableVertexAttribArrayARB(index); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y) { + glVertexAttrib2fARB(index, x, y); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglGetVertexAttribfvARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB - (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) -{ - GLfloat *params_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetVertexAttribfvARB(index, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y) { + glVertexAttrib2sARB(index, x, y); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglGetVertexAttribivARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB - (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) -{ - GLint *params_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetVertexAttribivARB(index, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB(JNIEnv *env, jclass clazz, jint index, jfloat x) { + glVertexAttrib1fARB(index, x); } -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glGetVertexAttribPointerARB - */ -static jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glGetVertexAttribPointerARB - (JNIEnv * env, jclass clazz, jint index, jint pname, jint size) -{ - void *address; - glGetVertexAttribPointervARB((GLuint)index, (GLuint)pname, &address); - - return safeNewBuffer(env, address, size); +static void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB(JNIEnv *env, jclass clazz, jint index, jshort x) { + glVertexAttrib1sARB(index, x); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glVertexAttrib1sARB", "(IS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB, "glVertexAttrib1sARB", (void*)&glVertexAttrib1sARB}, - {"glVertexAttrib1fARB", "(IF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB, "glVertexAttrib1fARB", (void*)&glVertexAttrib1fARB}, - {"glVertexAttrib2sARB", "(ISS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB, "glVertexAttrib2sARB", (void*)&glVertexAttrib2sARB}, - {"glVertexAttrib2fARB", "(IFF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB, "glVertexAttrib2fARB", (void*)&glVertexAttrib2fARB}, - {"glVertexAttrib3sARB", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB, "glVertexAttrib3sARB", (void*)&glVertexAttrib3sARB}, - {"glVertexAttrib3fARB", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB, "glVertexAttrib3fARB", (void*)&glVertexAttrib3fARB}, - {"glVertexAttrib4sARB", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB, "glVertexAttrib4sARB", (void*)&glVertexAttrib4sARB}, - {"glVertexAttrib4fARB", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB, "glVertexAttrib4fARB", (void*)&glVertexAttrib4fARB}, - {"glVertexAttrib4NubARB", "(IBBBB)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB, "glVertexAttrib4NubARB", (void*)&glVertexAttrib4NubARB}, - {"nglVertexAttribPointerARB", "(IIIZILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB, "glVertexAttribPointerARB", (void*)&glVertexAttribPointerARB}, - {"nglVertexAttribPointerARBVBO", "(IIIZII)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBVBO, NULL, NULL}, - {"glEnableVertexAttribArrayARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB, "glEnableVertexAttribArrayARB", (void*)&glEnableVertexAttribArrayARB}, - {"glDisableVertexAttribArrayARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB, "glDisableVertexAttribArrayARB", (void*)&glDisableVertexAttribArrayARB}, - {"nglGetVertexAttribfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB, "glGetVertexAttribfvARB", (void*)&glGetVertexAttribfvARB}, - {"nglGetVertexAttribivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB, "glGetVertexAttribivARB", (void*)&glGetVertexAttribivARB}, - {"glGetVertexAttribPointerARB", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glGetVertexAttribPointerARB, "glGetVertexAttribPointervARB", (void*)&glGetVertexAttribPointervARB} + {"nglGetVertexAttribPointervARB", "(III)Ljava/nio/ByteBuffer;", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribPointervARB, "glGetVertexAttribPointervARB", (void *)&glGetVertexAttribPointervARB}, + {"nglGetVertexAttribivARB", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB, "glGetVertexAttribivARB", (void *)&glGetVertexAttribivARB}, + {"nglGetVertexAttribfvARB", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB, "glGetVertexAttribfvARB", (void *)&glGetVertexAttribfvARB}, + {"glDisableVertexAttribArrayARB", "(I)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB, "glDisableVertexAttribArrayARB", (void *)&glDisableVertexAttribArrayARB}, + {"glEnableVertexAttribArrayARB", "(I)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB, "glEnableVertexAttribArrayARB", (void *)&glEnableVertexAttribArrayARB}, + {"nglVertexAttribPointerARB", "(IIIZILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB, "glVertexAttribPointerARB", (void *)&glVertexAttribPointerARB}, + {"nglVertexAttribPointerARBBO", "(IIIZII)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBBO, "glVertexAttribPointerARB", (void *)&glVertexAttribPointerARB}, + {"glVertexAttrib4NubARB", "(IBBBB)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB, "glVertexAttrib4NubARB", (void *)&glVertexAttrib4NubARB}, + {"glVertexAttrib4fARB", "(IFFFF)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB, "glVertexAttrib4fARB", (void *)&glVertexAttrib4fARB}, + {"glVertexAttrib4sARB", "(ISSSS)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB, "glVertexAttrib4sARB", (void *)&glVertexAttrib4sARB}, + {"glVertexAttrib3fARB", "(IFFF)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB, "glVertexAttrib3fARB", (void *)&glVertexAttrib3fARB}, + {"glVertexAttrib3sARB", "(ISSS)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB, "glVertexAttrib3sARB", (void *)&glVertexAttrib3sARB}, + {"glVertexAttrib2fARB", "(IFF)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB, "glVertexAttrib2fARB", (void *)&glVertexAttrib2fARB}, + {"glVertexAttrib2sARB", "(ISS)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB, "glVertexAttrib2sARB", (void *)&glVertexAttrib2sARB}, + {"glVertexAttrib1fARB", "(IF)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB, "glVertexAttrib1fARB", (void *)&glVertexAttrib1fARB}, + {"glVertexAttrib1sARB", "(IS)V", (void *)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB, "glVertexAttrib1sARB", (void *)&glVertexAttrib1sARB} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ARBMatrixPalette.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ARBMatrixPalette.c 10 Sep 2004 08:13:51 -0000 1.1 +++ org_lwjgl_opengl_ARBMatrixPalette.c 15 Feb 2005 11:05:16 -0000 1.2 @@ -1,139 +1,58 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBMatrixPalette -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glCurrentPaletteMatrixARBPROC) (GLint index); -typedef void (APIENTRY * glMatrixIndexubvARBPROC) (GLint size, GLubyte *indices); -typedef void (APIENTRY * glMatrixIndexusvARBPROC) (GLint size, GLushort *indices); -typedef void (APIENTRY * glMatrixIndexuivARBPROC) (GLint size, GLuint *indices); -typedef void (APIENTRY * glMatrixIndexPointerARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); +typedef void (APIENTRY *glMatrixIndexuivARBPROC) (GLint size, GLuint * pIndices); +typedef void (APIENTRY *glMatrixIndexusvARBPROC) (GLint size, GLushort * pIndices); +typedef void (APIENTRY *glMatrixIndexubvARBPROC) (GLint size, GLubyte * pIndices); +typedef void (APIENTRY *glMatrixIndexPointerARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid * pPointer); +typedef void (APIENTRY *glCurrentPaletteMatrixARBPROC) (GLint index); -static glCurrentPaletteMatrixARBPROC glCurrentPaletteMatrixARB; -static glMatrixIndexubvARBPROC glMatrixIndexubvARB; -static glMatrixIndexusvARBPROC glMatrixIndexusvARB; static glMatrixIndexuivARBPROC glMatrixIndexuivARB; +static glMatrixIndexusvARBPROC glMatrixIndexusvARB; +static glMatrixIndexubvARBPROC glMatrixIndexubvARB; static glMatrixIndexPointerARBPROC glMatrixIndexPointerARB; +static glCurrentPaletteMatrixARBPROC glCurrentPaletteMatrixARB; -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: glCurrentPaletteMatrixARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_glCurrentPaletteMatrixARB - (JNIEnv * env, jclass clazz, jint index) -{ - glCurrentPaletteMatrixARB(index); - +static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position) { + GLuint *pIndices_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position; + glMatrixIndexuivARB(size, pIndices_address); } -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexPointerARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB - (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_offset) -{ - GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pPointer) + pPointer_offset); - glMatrixIndexPointerARB(size, type, stride, pPointer_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position) { + GLushort *pIndices_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position; + glMatrixIndexusvARB(size, pIndices_address); } -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexPointerARBVBO - */ -static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARBVBO - (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jint buffer_offset) -{ - glMatrixIndexPointerARB(size, type, stride, (GLvoid *)buffer_offset); - +static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position) { + GLubyte *pIndices_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position; + glMatrixIndexubvARB(size, pIndices_address); } -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexubvARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB - (JNIEnv * env, jclass clazz, jint size, jobject pIndices, jint pIndices_offset) -{ - GLubyte *pIndices_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pIndices) + pIndices_offset; - glMatrixIndexubvARB(size, pIndices_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_position) { + GLvoid *pPointer_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position)); + glMatrixIndexPointerARB(size, type, stride, pPointer_address); } -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexuivARB - */ -static void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB - (JNIEnv * env, jclass clazz, jint size, jobject piIndices, jint piIndices_offset) -{ - GLuint *piIndices_ptr = (GLuint *)(*env)->GetDirectBuffer... [truncated message content] |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:06:03
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/native/common Modified Files: checkALerror.h common_tools.c common_tools.h extal.h extgl.h org_lwjgl_openal_AL10.c org_lwjgl_opengl_GL11.c org_lwjgl_opengl_GL12.c org_lwjgl_opengl_GL13.c org_lwjgl_opengl_GL14.c org_lwjgl_opengl_GL15.c org_lwjgl_opengl_GL20.c Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: org_lwjgl_opengl_GL14.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GL14.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_opengl_GL14.c 15 Jan 2005 23:50:55 -0000 1.2 +++ org_lwjgl_opengl_GL14.c 15 Feb 2005 11:05:14 -0000 1.3 @@ -1,322 +1,157 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -/** - * $Id$ - * - * Core OpenGL functions. - * - * @author cix_foo <ci...@us...> - * @version $Revision$ - */ +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -#include "common_tools.h" -typedef void (APIENTRY * glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -typedef void (APIENTRY * glBlendEquationPROC) (GLenum mode); -typedef void (APIENTRY * glFogCoordfPROC) (GLfloat coord); -typedef void (APIENTRY * glFogCoordPointerPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * glMultiDrawArraysPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (APIENTRY * glPointParameterfPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * glPointParameteriPROC) (GLenum pname, GLint param); -typedef void (APIENTRY * glPointParameterfvPROC) (GLenum pname, GLfloat *params); -typedef void (APIENTRY * glPointParameterivPROC) (GLenum pname, GLint *params); -typedef void (APIENTRY * glSecondaryColor3bPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRY * glSecondaryColor3fPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRY * glSecondaryColor3ubPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRY * glSecondaryColorPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * glBlendFuncSeparatePROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -typedef void (APIENTRY * glWindowPos2fPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRY * glWindowPos2iPROC) (GLint x, GLint y); -typedef void (APIENTRY * glWindowPos3fPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * glWindowPos3iPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRY *glWindowPos3iPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRY *glWindowPos3fPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRY *glWindowPos2iPROC) (GLint x, GLint y); +typedef void (APIENTRY *glWindowPos2fPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRY *glBlendFuncSeparatePROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRY *glSecondaryColorPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid * data); +typedef void (APIENTRY *glSecondaryColor3ubPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (APIENTRY *glSecondaryColor3fPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (APIENTRY *glSecondaryColor3bPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (APIENTRY *glPointParameterfvPROC) (GLenum pname, GLfloat * params); +typedef void (APIENTRY *glPointParameterivPROC) (GLenum pname, GLint * params); +typedef void (APIENTRY *glPointParameterfPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRY *glPointParameteriPROC) (GLenum pname, GLint param); +typedef void (APIENTRY *glMultiDrawArraysPROC) (GLenum mode, GLint * piFirst, GLsizei * piCount, GLsizei primcount); +typedef void (APIENTRY *glFogCoordPointerPROC) (GLenum type, GLsizei stride, const GLvoid * data); +typedef void (APIENTRY *glFogCoordfPROC) (GLfloat coord); +typedef void (APIENTRY *glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +typedef void (APIENTRY *glBlendEquationPROC) (GLenum mode); -static glFogCoordfPROC glFogCoordf; -static glFogCoordPointerPROC glFogCoordPointer; -static glMultiDrawArraysPROC glMultiDrawArrays; -static glPointParameterfPROC glPointParameterf; -static glPointParameteriPROC glPointParameteri; +static glWindowPos3iPROC glWindowPos3i; +static glWindowPos3fPROC glWindowPos3f; +static glWindowPos2iPROC glWindowPos2i; +static glWindowPos2fPROC glWindowPos2f; +static glBlendFuncSeparatePROC glBlendFuncSeparate; +static glSecondaryColorPointerPROC glSecondaryColorPointer; +static glSecondaryColor3ubPROC glSecondaryColor3ub; +static glSecondaryColor3fPROC glSecondaryColor3f; +static glSecondaryColor3bPROC glSecondaryColor3b; static glPointParameterfvPROC glPointParameterfv; static glPointParameterivPROC glPointParameteriv; -static glSecondaryColor3bPROC glSecondaryColor3b; -static glSecondaryColor3fPROC glSecondaryColor3f; -static glSecondaryColor3ubPROC glSecondaryColor3ub; -static glSecondaryColorPointerPROC glSecondaryColorPointer; -static glBlendFuncSeparatePROC glBlendFuncSeparate; -static glWindowPos2fPROC glWindowPos2f; -static glWindowPos2iPROC glWindowPos2i; -static glWindowPos3fPROC glWindowPos3f; -static glWindowPos3iPROC glWindowPos3i; +static glPointParameterfPROC glPointParameterf; +static glPointParameteriPROC glPointParameteri; +static glMultiDrawArraysPROC glMultiDrawArrays; +static glFogCoordPointerPROC glFogCoordPointer; +static glFogCoordfPROC glFogCoordf; static glBlendColorPROC glBlendColor; static glBlendEquationPROC glBlendEquation; -static void JNICALL Java_org_lwjgl_opengl_GL14_glBlendEquation - (JNIEnv *env, jclass clazz, jint mode) -{ - glBlendEquation(mode); +static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3i(JNIEnv *env, jclass clazz, jint x, jint y, jint z) { + glWindowPos3i(x, y, z); } -static void JNICALL Java_org_lwjgl_opengl_GL14_glBlendColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) -{ - glBlendColor((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); +static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3f(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jfloat z) { + glWindowPos3f(x, y, z); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glFogCoordf - * Signature: (F)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glFogCoordf - (JNIEnv *env, jclass clazz, jfloat f) { - glFogCoordf(f); +static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2i(JNIEnv *env, jclass clazz, jint x, jint y) { + glWindowPos2i(x, y); } - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglFogCoordPointer - * Signature: (IILjava/nio/Buffer;)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer - (JNIEnv *env, jclass clazz, jint p1, jint p2, jobject buffer, jint offset) { - GLvoid *address = (GLvoid *)(offset + (GLbyte *)(*env)->GetDirectBufferAddress(env, buffer)); - glFogCoordPointer(p1, p2, address); - +static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2f(JNIEnv *env, jclass clazz, jfloat x, jfloat y) { + glWindowPos2f(x, y); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglFogCoordPointerVBO - * Signature: (IILjava/nio/Buffer;)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO - (JNIEnv *env, jclass clazz, jint p1, jint p2, jint buffer_offset) { - glFogCoordPointer(p1, p2, offsetToPointer(buffer_offset)); +static void JNICALL Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate(JNIEnv *env, jclass clazz, jint sfactorRGB, jint dfactorRGB, jint sfactorAlpha, jint dfactorAlpha) { + glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glMultiDrawArrays - * Signature: (IIII)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays - (JNIEnv *env, jclass clazz, jint mode, jobject first, jint first_offset, jobject count, jint count_offset, jint primcount) { - GLint *address = first_offset + (GLint *)(*env)->GetDirectBufferAddress(env, first); - GLsizei *address2 = count_offset + (GLsizei *)(*env)->GetDirectBufferAddress(env, count); - glMultiDrawArrays(mode, address, address2, (GLsizei)primcount); +static void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject data, jint data_position) { + const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position)); + glSecondaryColorPointer(size, type, stride, data_address); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glPointParameterf - * Signature: (IF)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameterf - (JNIEnv *env, jclass clazz, jint p1, jfloat p2) { - glPointParameterf(p1, p2); +static void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerBO(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jint data_buffer_offset) { + const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset)); + glSecondaryColorPointer(size, type, stride, data_address); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glPointParameteri - * Signature: (IF)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameteri - (JNIEnv *env, jclass clazz, jint p1, jint p2) { - glPointParameteri(p1, p2); +static void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue) { + glSecondaryColor3ub(red, green, blue); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glPointParameterfv - * Signature: (ILjava/nio/FloatBuffer;)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv - (JNIEnv *env, jclass clazz, jint p1, jobject buffer, jint offset) { - GLfloat *address = offset + (GLfloat *)(*env)->GetDirectBufferAddress(env, buffer); - glPointParameterfv(p1, address); +static void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3f(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue) { + glSecondaryColor3f(red, green, blue); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glPointParameteriv - * Signature: (ILjava/nio/IntBuffer;)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameteriv - (JNIEnv *env, jclass clazz, jint p1, jobject buffer, jint offset) { - GLint *address = offset + (GLint *)(*env)->GetDirectBufferAddress(env, buffer); - glPointParameteriv(p1, address); +static void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3b(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue) { + glSecondaryColor3b(red, green, blue); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glSecondaryColor3b - * Signature: (BBB)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3b - (JNIEnv *env, jclass clazz, jbyte p1, jbyte p2, jbyte p3) { - glSecondaryColor3b(p1, p2, p3); +static void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glPointParameterfv(pname, params_address); } - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glSecondaryColor3f - * Signature: (FFF)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3f - (JNIEnv *env, jclass clazz, jfloat p1, jfloat p2, jfloat p3) { - glSecondaryColor3f(p1, p2, p3); +static void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameteriv(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glPointParameteriv(pname, params_address); } - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glSecondaryColor3ub - * Signature: (BBB)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub - (JNIEnv *env, jclass clazz, jbyte p1, jbyte p2, jbyte p3) { - glSecondaryColor3ub(p1, p2, p3); +static void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameterf(JNIEnv *env, jclass clazz, jint pname, jfloat param) { + glPointParameterf(pname, param); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglSecondaryColorPointer - * Signature: (IIILjava/nio/Buffer;)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer - (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jobject buffer, jint offset) { - const GLvoid *address = (const GLvoid *)(offset + (GLbyte *)(*env)->GetDirectBufferAddress(env, buffer)); - glSecondaryColorPointer(p1, p2, p3, address); - +static void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameteri(JNIEnv *env, jclass clazz, jint pname, jint param) { + glPointParameteri(pname, param); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglSecondaryColorPointerVBO - * Signature: (IIILjava/nio/Buffer;)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO - (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jint buffer_offset) { - glSecondaryColorPointer(p1, p2, p3, offsetToPointer(buffer_offset)); - +static void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays(JNIEnv *env, jclass clazz, jint mode, jobject piFirst, jint piFirst_position, jobject piCount, jint piCount_position, jint primcount) { + GLint *piFirst_address = ((GLint *)(*env)->GetDirectBufferAddress(env, piFirst)) + piFirst_position; + GLsizei *piCount_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, piCount)) + piCount_position; + glMultiDrawArrays(mode, piFirst_address, piCount_address, primcount); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glBlendFuncSeparate - * Signature: (IIII)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate - (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jint p4) { - glBlendFuncSeparate(p1, p2, p3, p4); - +static void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer(JNIEnv *env, jclass clazz, jint type, jint stride, jobject data, jint data_position) { + const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position)); + glFogCoordPointer(type, stride, data_address); } - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos2f - * Signature: (FF)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2f - (JNIEnv *env, jclass clazz, jfloat p1, jfloat p2) { - glWindowPos2f(p1, p2); +static void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerBO(JNIEnv *env, jclass clazz, jint type, jint stride, jint data_buffer_offset) { + const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset)); + glFogCoordPointer(type, stride, data_address); } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos2i - * Signature: (II)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2i - (JNIEnv *env, jclass clazz, jint p1, jint p2) { - glWindowPos2i(p1, p2); +static void JNICALL Java_org_lwjgl_opengl_GL14_glFogCoordf(JNIEnv *env, jclass clazz, jfloat coord) { + glFogCoordf(coord); } - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos3f - * Signature: (FFF)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3f - (JNIEnv *env, jclass clazz, jfloat p1, jfloat p2, jfloat p3) { - glWindowPos3f(p1, p2, p3); +static void JNICALL Java_org_lwjgl_opengl_GL14_glBlendColor(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha) { + glBlendColor(red, green, blue, alpha); } - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos3i - * Signature: (III)V - */ -static void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3i - (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3) { - glWindowPos3i(p1, p2, p3); +static void JNICALL Java_org_lwjgl_opengl_GL14_glBlendEquation(JNIEnv *env, jclass clazz, jint mode) { + glBlendEquation(mode); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glBlendEquation", "(I)V", (void*)&Java_org_lwjgl_opengl_GL14_glBlendEquation, "glBlendEquation", (void*)&glBlendEquation}, - {"glBlendColor", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL14_glBlendColor, "glBlendColor", (void*)&glBlendColor}, - {"glFogCoordf", "(F)V", (void*)&Java_org_lwjgl_opengl_GL14_glFogCoordf, "glFogCoordf", (void*)&glFogCoordf}, - {"nglFogCoordPointer", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglFogCoordPointer, "glFogCoordPointer", (void*)&glFogCoordPointer}, - {"nglFogCoordPointerVBO", "(III)V", (void*)&Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO, NULL, NULL}, - {"nglMultiDrawArrays", "(ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;II)V", (void*)&Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays, "glMultiDrawArrays", (void*)&glMultiDrawArrays}, - {"glPointParameterf", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL14_glPointParameterf, "glPointParameterf", (void*)&glPointParameterf}, - {"glPointParameteri", "(II)V", (void*)&Java_org_lwjgl_opengl_GL14_glPointParameteri, "glPointParameteri", (void*)&glPointParameteri}, - {"nglPointParameterfv", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglPointParameterfv, "glPointParameterfv", (void*)&glPointParameterfv}, - {"nglPointParameteriv", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglPointParameteriv, "glPointParameteriv", (void*)&glPointParameteriv}, - {"glSecondaryColor3b", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3b, "glSecondaryColor3b", (void*)&glSecondaryColor3b}, - {"glSecondaryColor3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3f, "glSecondaryColor3f", (void*)&glSecondaryColor3f}, - {"glSecondaryColor3ub", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub, "glSecondaryColor3ub", (void*)&glSecondaryColor3ub}, - {"nglSecondaryColorPointer", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer, "glSecondaryColorPointer", (void*)&glSecondaryColorPointer}, - {"nglSecondaryColorPointerVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO, NULL, NULL}, - {"glBlendFuncSeparate", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate, "glBlendFuncSeparate", (void*)&glBlendFuncSeparate}, - {"glWindowPos2f", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos2f, "glWindowPos2f", (void*)&glWindowPos2f}, - {"glWindowPos2i", "(II)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos2i, "glWindowPos2i", (void*)&glWindowPos2i}, - {"glWindowPos3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos3f, "glWindowPos3f", (void*)&glWindowPos3f}, - {"glWindowPos3i", "(III)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos3i, "glWindowPos3i", (void*)&glWindowPos3i} + {"glWindowPos3i", "(III)V", (void *)&Java_org_lwjgl_opengl_GL14_glWindowPos3i, "glWindowPos3i", (void *)&glWindowPos3i}, + {"glWindowPos3f", "(FFF)V", (void *)&Java_org_lwjgl_opengl_GL14_glWindowPos3f, "glWindowPos3f", (void *)&glWindowPos3f}, + {"glWindowPos2i", "(II)V", (void *)&Java_org_lwjgl_opengl_GL14_glWindowPos2i, "glWindowPos2i", (void *)&glWindowPos2i}, + {"glWindowPos2f", "(FF)V", (void *)&Java_org_lwjgl_opengl_GL14_glWindowPos2f, "glWindowPos2f", (void *)&glWindowPos2f}, + {"glBlendFuncSeparate", "(IIII)V", (void *)&Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate, "glBlendFuncSeparate", (void *)&glBlendFuncSeparate}, + {"nglSecondaryColorPointer", "(IIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer, "glSecondaryColorPointer", (void *)&glSecondaryColorPointer}, + {"nglSecondaryColorPointerBO", "(IIII)V", (void *)&Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerBO, "glSecondaryColorPointer", (void *)&glSecondaryColorPointer}, + {"glSecondaryColor3ub", "(BBB)V", (void *)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub, "glSecondaryColor3ub", (void *)&glSecondaryColor3ub}, + {"glSecondaryColor3f", "(FFF)V", (void *)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3f, "glSecondaryColor3f", (void *)&glSecondaryColor3f}, + {"glSecondaryColor3b", "(BBB)V", (void *)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3b, "glSecondaryColor3b", (void *)&glSecondaryColor3b}, + {"nglPointParameterfv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL14_nglPointParameterfv, "glPointParameterfv", (void *)&glPointParameterfv}, + {"nglPointParameteriv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL14_nglPointParameteriv, "glPointParameteriv", (void *)&glPointParameteriv}, + {"glPointParameterf", "(IF)V", (void *)&Java_org_lwjgl_opengl_GL14_glPointParameterf, "glPointParameterf", (void *)&glPointParameterf}, + {"glPointParameteri", "(II)V", (void *)&Java_org_lwjgl_opengl_GL14_glPointParameteri, "glPointParameteri", (void *)&glPointParameteri}, + {"nglMultiDrawArrays", "(ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;II)V", (void *)&Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays, "glMultiDrawArrays", (void *)&glMultiDrawArrays}, + {"nglFogCoordPointer", "(IILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_GL14_nglFogCoordPointer, "glFogCoordPointer", (void *)&glFogCoordPointer}, + {"nglFogCoordPointerBO", "(III)V", (void *)&Java_org_lwjgl_opengl_GL14_nglFogCoordPointerBO, "glFogCoordPointer", (void *)&glFogCoordPointer}, + {"glFogCoordf", "(F)V", (void *)&Java_org_lwjgl_opengl_GL14_glFogCoordf, "glFogCoordf", (void *)&glFogCoordf}, + {"glBlendColor", "(FFFF)V", (void *)&Java_org_lwjgl_opengl_GL14_glBlendColor, "glBlendColor", (void *)&glBlendColor}, + {"glBlendEquation", "(I)V", (void *)&Java_org_lwjgl_opengl_GL14_glBlendEquation, "glBlendEquation", (void *)&glBlendEquation} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_GL11.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GL11.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- org_lwjgl_opengl_GL11.c 9 Feb 2005 12:04:24 -0000 1.10 +++ org_lwjgl_opengl_GL11.c 15 Feb 2005 11:05:14 -0000 1.11 @@ -1,355 +1,296 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * [...4049 lines suppressed...] + {"glBegin", "(I)V", (void *)&Java_org_lwjgl_opengl_GL11_glBegin, "glBegin", (void *)&glBegin}, + {"glBindTexture", "(II)V", (void *)&Java_org_lwjgl_opengl_GL11_glBindTexture, "glBindTexture", (void *)&glBindTexture}, + {"nglBitmap", "(IIFFFFLjava/nio/ByteBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL11_nglBitmap, "glBitmap", (void *)&glBitmap}, + {"nglBitmapBO", "(IIFFFFI)V", (void *)&Java_org_lwjgl_opengl_GL11_nglBitmapBO, "glBitmap", (void *)&glBitmap}, + {"glBlendFunc", "(II)V", (void *)&Java_org_lwjgl_opengl_GL11_glBlendFunc, "glBlendFunc", (void *)&glBlendFunc}, + {"glCallList", "(I)V", (void *)&Java_org_lwjgl_opengl_GL11_glCallList, "glCallList", (void *)&glCallList}, + {"nglCallLists", "(IILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_GL11_nglCallLists, "glCallLists", (void *)&glCallLists}, + {"glClear", "(I)V", (void *)&Java_org_lwjgl_opengl_GL11_glClear, "glClear", (void *)&glClear}, + {"glClearAccum", "(FFFF)V", (void *)&Java_org_lwjgl_opengl_GL11_glClearAccum, "glClearAccum", (void *)&glClearAccum}, + {"glClearColor", "(FFFF)V", (void *)&Java_org_lwjgl_opengl_GL11_glClearColor, "glClearColor", (void *)&glClearColor}, + {"glAlphaFunc", "(IF)V", (void *)&Java_org_lwjgl_opengl_GL11_glAlphaFunc, "glAlphaFunc", (void *)&glAlphaFunc}, + {"glAccum", "(IF)V", (void *)&Java_org_lwjgl_opengl_GL11_glAccum, "glAccum", (void *)&glAccum} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_GL15.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GL15.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_opengl_GL15.c 9 Feb 2005 12:04:25 -0000 1.3 +++ org_lwjgl_opengl_GL15.c 15 Feb 2005 11:05:14 -0000 1.4 @@ -1,344 +1,163 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.GL15 -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -#include "common_tools.h" - -typedef void (APIENTRY * glBindBufferPROC) (GLenum target, GLuint buffer); -typedef void (APIENTRY * glDeleteBuffersPROC) (GLsizei n, const GLuint *buffers); -typedef void (APIENTRY * glGenBuffersPROC) (GLsizei n, GLuint *buffers); -typedef GLboolean (APIENTRY * glIsBufferPROC) (GLuint buffer); -typedef void (APIENTRY * glBufferDataPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); -typedef void (APIENTRY * glBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); -typedef void (APIENTRY * glGetBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); -typedef void * (APIENTRY * glMapBufferPROC) (GLenum target, GLenum access); -typedef GLboolean (APIENTRY * glUnmapBufferPROC) (GLenum target); -typedef void (APIENTRY * glGetBufferParameterivPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetBufferPointervPROC) (GLenum target, GLenum pname, GLvoid **params); - -typedef void (APIENTRY * glGenQueriesPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRY * glDeleteQueriesPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRY * glIsQueryPROC) (GLuint id); -typedef void (APIENTRY * glBeginQueryPROC) (GLenum target, GLuint id); -typedef void (APIENTRY * glEndQueryPROC) (GLenum target); -typedef void (APIENTRY * glGetQueryivPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetQueryObjectivPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetQueryObjectuivPROC) (GLuint id, GLenum pname, GLuint *params); -static glBindBufferPROC glBindBuffer; -static glDeleteBuffersPROC glDeleteBuffers; -static glGenBuffersPROC glGenBuffers; -static glIsBufferPROC glIsBuffer; -static glBufferDataPROC glBufferData; -static glBufferSubDataPROC glBufferSubData; -static glGetBufferSubDataPROC glGetBufferSubData; -static glMapBufferPROC glMapBuffer; -static glUnmapBufferPROC glUnmapBuffer; -static glGetBufferParameterivPROC glGetBufferParameteriv; -static glGetBufferPointervPROC glGetBufferPointerv; +typedef void (APIENTRY *glGetQueryObjectuivPROC) (GLenum id, GLenum pname, GLuint * params); +typedef void (APIENTRY *glGetQueryObjectivPROC) (GLenum id, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetQueryivPROC) (GLenum target, GLenum pname, GLint * params); +typedef void (APIENTRY *glEndQueryPROC) (GLenum target); +typedef void (APIENTRY *glBeginQueryPROC) (GLenum target, GLuint id); +typedef GLboolean (APIENTRY *glIsQueryPROC) (GLuint id); +typedef void (APIENTRY *glDeleteQueriesPROC) (GLsizei n, GLuint * ids); +typedef void (APIENTRY *glGenQueriesPROC) (GLsizei n, GLuint * ids); +typedef void (APIENTRY *glGetBufferPointervPROC) (GLenum target, GLenum pname, GLvoid ** pointer); +typedef void (APIENTRY *glGetBufferParameterivPROC) (GLenum target, GLenum pname, GLint * params); +typedef GLboolean (APIENTRY *glUnmapBufferPROC) (GLenum target); +typedef GLvoid * (APIENTRY *glMapBufferPROC) (GLenum target, GLenum access); +typedef void (APIENTRY *glGetBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid * data); +typedef void (APIENTRY *glBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data); +typedef void (APIENTRY *glBufferDataPROC) (GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage); +typedef GLboolean (APIENTRY *glIsBufferPROC) (GLuint buffer); +typedef void (APIENTRY *glGenBuffersPROC) (GLsizei n, GLuint * buffers); +typedef void (APIENTRY *glDeleteBuffersPROC) (GLsizei n, const GLuint * buffers); +typedef void (APIENTRY *glBindBufferPROC) (GLenum target, GLuint buffer); -static glGenQueriesPROC glGenQueries; -static glDeleteQueriesPROC glDeleteQueries; -static glIsQueryPROC glIsQuery; -static glBeginQueryPROC glBeginQuery; -static glEndQueryPROC glEndQuery; -static glGetQueryivPROC glGetQueryiv; -static glGetQueryObjectivPROC glGetQueryObjectiv; static glGetQueryObjectuivPROC glGetQueryObjectuiv; +static glGetQueryObjectivPROC glGetQueryObjectiv; +static glGetQueryivPROC glGetQueryiv; +static glEndQueryPROC glEndQuery; +static glBeginQueryPROC glBeginQuery; +static glIsQueryPROC glIsQuery; +static glDeleteQueriesPROC glDeleteQueries; +static glGenQueriesPROC glGenQueries; +static glGetBufferPointervPROC glGetBufferPointerv; +static glGetBufferParameterivPROC glGetBufferParameteriv; +static glUnmapBufferPROC glUnmapBuffer; +static glMapBufferPROC glMapBuffer; +static glGetBufferSubDataPROC glGetBufferSubData; +static glBufferSubDataPROC glBufferSubData; +static glBufferDataPROC glBufferData; +static glIsBufferPROC glIsBuffer; +static glGenBuffersPROC glGenBuffers; +static glDeleteBuffersPROC glDeleteBuffers; +static glBindBufferPROC glBindBuffer; -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglBindBuffer - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer - (JNIEnv * env, jclass clazz, jint target, jint buffer) -{ - glBindBuffer(target, buffer); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetQueryObjectuiv(id, pname, params_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglDeleteBuffers - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers - (JNIEnv * env, jclass clazz, jint n, jobject buffers, jint buffers_offset) -{ - GLuint *buffers_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, buffers) + buffers_offset; - glDeleteBuffers(n, buffers_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetQueryObjectiv(id, pname, params_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGenBuffers - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers - (JNIEnv * env, jclass clazz, jint n, jobject buffers, jint buffers_offset) -{ - GLuint *buffers_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, buffers) + buffers_offset; - glGenBuffers(n, buffers_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetQueryiv(target, pname, params_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glIsBuffer - */ -static jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsBuffer - (JNIEnv * env, jclass clazz, jint buffer) -{ - GLboolean result = glIsBuffer(buffer); - - return result; +static void JNICALL Java_org_lwjgl_opengl_GL15_glEndQuery(JNIEnv *env, jclass clazz, jint target) { + glEndQuery(target); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglBufferData - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData - (JNIEnv * env, jclass clazz, jint target, jint size, jobject data, jint data_offset, jint usage) -{ - GLvoid *data_ptr = (GLvoid *)((char *)safeGetBufferAddress(env, data) + data_offset); - glBufferData(target, size, data_ptr, usage); - +static void JNICALL Java_org_lwjgl_opengl_GL15_glBeginQuery(JNIEnv *env, jclass clazz, jint target, jint id) { + glBeginQuery(target, id); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglBufferSubData - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData - (JNIEnv * env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_offset) -{ - GLvoid *data_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, data) + data_offset); - glBufferSubData(target, offset, size, data_ptr); - +static jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsQuery(JNIEnv *env, jclass clazz, jint id) { + GLboolean __result = glIsQuery(id); + return __result; } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGetBufferSubData - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData - (JNIEnv * env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_offset) -{ - GLvoid *data_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, data) + data_offset); - glGetBufferSubData(target, offset, size, data_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position) { + GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position; + glDeleteQueries(n, ids_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glMapBuffer - */ -static jobject JNICALL Java_org_lwjgl_opengl_GL15_glMapBuffer - (JNIEnv * env, jclass clazz, jint target, jint access, jint size, jobject oldBuffer) -{ - void *buffer_address = glMapBuffer((GLenum)target, (GLenum)access); - - if (oldBuffer != NULL) { - void *old_buffer_address = (*env)->GetDirectBufferAddress(env, oldBuffer); - if (old_buffer_address == buffer_address) - return oldBuffer; - } - return safeNewBuffer(env, buffer_address, size); +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position) { + GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position; + glGenQueries(n, ids_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glUnmapBuffer - */ -static jboolean JNICALL Java_org_lwjgl_opengl_GL15_glUnmapBuffer - (JNIEnv * env, jclass clazz, jint target) -{ - GLboolean result = glUnmapBuffer(target); - - return result; +static jobject JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferPointerv(JNIEnv *env, jclass clazz, jint target, jint pname, jint result_size) { + GLvoid * __result; + glGetBufferPointerv(target, pname, &__result); + return safeNewBuffer(env, __result, result_size); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGetBufferParameteriv - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv - (JNIEnv * env, jclass clazz, jint target, jint pname, jobject params, jint params_offset) -{ - GLint *params_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, params) + params_offset; - glGetBufferParameteriv(target, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetBufferParameteriv(target, pname, params_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glGetBufferPointer - */ -static jobject JNICALL Java_org_lwjgl_opengl_GL15_glGetBufferPointer - (JNIEnv * env, jclass clazz, jint target, jint pname, jint size) -{ - void *pointer; - glGetBufferPointerv((GLenum)target, (GLenum)pname, &pointer); - - return safeNewBuffer(env, pointer, size); +static jboolean JNICALL Java_org_lwjgl_opengl_GL15_glUnmapBuffer(JNIEnv *env, jclass clazz, jint target) { + GLboolean __result = glUnmapBuffer(target); + return __result; } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGenQueries - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries - (JNIEnv * env, jclass clazz, jint n, jobject ids, jint idsOffset) -{ - GLuint *ids_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, ids) + idsOffset; - glGenQueries(n, ids_ptr); - +static jobject JNICALL Java_org_lwjgl_opengl_GL15_nglMapBuffer(JNIEnv *env, jclass clazz, jint target, jint access, jint result_size, jobject old_buffer) { + GLvoid * __result = glMapBuffer(target, access); + return safeNewBufferCached(env, __result, result_size, old_buffer); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglDeleteQueries - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries - (JNIEnv * env, jclass clazz, jint n, jobject ids, jint idsOffset) -{ - GLuint *ids_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, ids) + idsOffset; - glDeleteQueries(n, ids_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position) { + GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position)); + glGetBufferSubData(target, offset, size, data_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glIsQuery - */ -static jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsQuery - (JNIEnv * env, jclass clazz, jint id) -{ - GLboolean result = glIsQuery(id); - - return result; +static void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position) { + const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position)); + glBufferSubData(target, offset, size, data_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glBeginQuery - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_glBeginQuery - (JNIEnv * env, jclass clazz, jint target, jint id) -{ - glBeginQuery(target, id); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData(JNIEnv *env, jclass clazz, jint target, jint size, jobject data, jint data_position, jint usage) { + const GLvoid *data_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, data)) + data_position)); + glBufferData(target, size, data_address, usage); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: glEndQuery - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_glEndQuery - (JNIEnv * env, jclass clazz, jint target) -{ - glEndQuery(target); - +static jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsBuffer(JNIEnv *env, jclass clazz, jint buffer) { + GLboolean __result = glIsBuffer(buffer); + return __result; } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGetQueryiv - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv - (JNIEnv * env, jclass clazz, jint target, jint pname, jobject params, jint paramsOffset) -{ - GLint *params_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetQueryiv(target, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position) { + GLuint *buffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position; + glGenBuffers(n, buffers_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGetQueryObjectiv - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv - (JNIEnv * env, jclass clazz, jint id, jint pname, jobject params, jint paramsOffset) -{ - GLint *params_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetQueryObjectiv(id, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position) { + const GLuint *buffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position; + glDeleteBuffers(n, buffers_address); } -/* - * Class: org.lwjgl.opengl.GL15 - * Method: nglGetQueryObjectuiv - */ -static void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv - (JNIEnv * env, jclass clazz, jint id, jint pname, jobject params, jint paramsOffset) -{ - GLuint *params_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetQueryObjectuiv(id, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer(JNIEnv *env, jclass clazz, jint target, jint buffer) { + glBindBuffer(target, buffer); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglBindBuffer", "(II)V", (void*)&Java_org_lwjgl_opengl_GL15_nglBindBuffer, "glBindBuffer", (void*)&glBindBuffer}, - {"nglDeleteBuffers", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglDeleteBuffers, "glDeleteBuffers", (void*)&glDeleteBuffers}, - {"nglGenBuffers", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGenBuffers, "glGenBuffers", (void*)&glGenBuffers}, - {"glIsBuffer", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL15_glIsBuffer, "glIsBuffer", (void*)&glIsBuffer}, - {"nglBufferData", "(IILjava/nio/Buffer;II)V", (void*)&Java_org_lwjgl_opengl_GL15_nglBufferData, "glBufferData", (void*)&glBufferData}, - {"nglBufferSubData", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglBufferSubData, "glBufferSubData", (void*)&glBufferSubData}, - {"nglGetBufferSubData", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetBufferSubData, "glGetBufferSubData", (void*)&glGetBufferSubData}, - {"glMapBuffer", "(IIILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_GL15_glMapBuffer, "glMapBuffer", (void*)&glMapBuffer}, - {"glUnmapBuffer", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL15_glUnmapBuffer, "glUnmapBuffer", (void*)&glUnmapBuffer}, - {"nglGetBufferParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv, "glGetBufferParameteriv", (void*)&glGetBufferParameteriv}, - {"glGetBufferPointer", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_GL15_glGetBufferPointer, "glGetBufferPointerv", (void*)&glGetBufferPointerv}, - {"nglGenQueries", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGenQueries, "glGenQueries", (void*)&glGenQueries}, - {"nglDeleteQueries", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglDeleteQueries, "glDeleteQueries", (void*)&glDeleteQueries}, - {"glIsQuery", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL15_glIsQuery, "glIsQuery", (void*)&glIsQuery}, - {"glBeginQuery", "(II)V", (void*)&Java_org_lwjgl_opengl_GL15_glBeginQuery, "glBeginQuery", (void*)&glBeginQuery}, - {"glEndQuery", "(I)V", (void*)&Java_org_lwjgl_opengl_GL15_glEndQuery, "glEndQuery", (void*)&glEndQuery}, - {"nglGetQueryiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetQueryiv, "glGetQueryiv", (void*)&glGetQueryiv}, - {"nglGetQueryObjectiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv, "glGetQueryObjectiv", (void*)&glGetQueryObjectiv}, - {"nglGetQueryObjectuiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv, "glGetQueryObjectuiv", (void*)&glGetQueryObjectuiv} + {"nglGetQueryObjectuiv", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv, "glGetQueryObjectuiv", (void *)&glGetQueryObjectuiv}, + {"nglGetQueryObjectiv", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv, "glGetQueryObjectiv", (void *)&glGetQueryObjectiv}, + {"nglGetQueryiv", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGetQueryiv, "glGetQueryiv", (void *)&glGetQueryiv}, + {"glEndQuery", "(I)V", (void *)&Java_org_lwjgl_opengl_GL15_glEndQuery, "glEndQuery", (void *)&glEndQuery}, + {"glBeginQuery", "(II)V", (void *)&Java_org_lwjgl_opengl_GL15_glBeginQuery, "glBeginQuery", (void *)&glBeginQuery}, + {"glIsQuery", "(I)Z", (void *)&Java_org_lwjgl_opengl_GL15_glIsQuery, "glIsQuery", (void *)&glIsQuery}, + {"nglDeleteQueries", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglDeleteQueries, "glDeleteQueries", (void *)&glDeleteQueries}, + {"nglGenQueries", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGenQueries, "glGenQueries", (void *)&glGenQueries}, + {"nglGetBufferPointerv", "(III)Ljava/nio/ByteBuffer;", (void *)&Java_org_lwjgl_opengl_GL15_nglGetBufferPointerv, "glGetBufferPointerv", (void *)&glGetBufferPointerv}, + {"nglGetBufferParameteriv", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv, "glGetBufferParameteriv", (void *)&glGetBufferParameteriv}, + {"glUnmapBuffer", "(I)Z", (void *)&Java_org_lwjgl_opengl_GL15_glUnmapBuffer, "glUnmapBuffer", (void *)&glUnmapBuffer}, + {"nglMapBuffer", "(IIILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void *)&Java_org_lwjgl_opengl_GL15_nglMapBuffer, "glMapBuffer", (void *)&glMapBuffer}, + {"nglGetBufferSubData", "(IIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGetBufferSubData, "glGetBufferSubData", (void *)&glGetBufferSubData}, + {"nglBufferSubData", "(IIILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglBufferSubData, "glBufferSubData", (void *)&glBufferSubData}, + {"nglBufferData", "(IILjava/nio/Buffer;II)V", (void *)&Java_org_lwjgl_opengl_GL15_nglBufferData, "glBufferData", (void *)&glBufferData}, + {"glIsBuffer", "(I)Z", (void *)&Java_org_lwjgl_opengl_GL15_glIsBuffer, "glIsBuffer", (void *)&glIsBuffer}, + {"nglGenBuffers", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglGenBuffers, "glGenBuffers", (void *)&glGenBuffers}, + {"nglDeleteBuffers", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_GL15_nglDeleteBuffers, "glDeleteBuffers", (void *)&glDeleteBuffers}, + {"nglBindBuffer", "(II)V", (void *)&Java_org_lwjgl_opengl_GL15_nglBindBuffer, "glBindBuffer", (void *)&glBindBuffer} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_GL20.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GL20.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_opengl_GL20.c 9 Feb 2005 10:57:30 -0000 1.4 +++ org_lwjgl_opengl_GL20.c 15 Feb 2005 11:05:14 -0000 1.5 @@ -1,1124 +1,537 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * [...1476 lines suppressed...] + {"glDeleteProgram", "(I)V", (void *)&Java_org_lwjgl_opengl_GL20_glDeleteProgram, "glDeleteProgram", (void *)&glDeleteProgram}, + {"glValidateProgram", "(I)V", (void *)&Java_org_lwjgl_opengl_GL20_glValidateProgram, "glValidateProgram", (void *)&glValidateProgram}, + {"glUseProgram", "(I)V", (void *)&Java_org_lwjgl_opengl_GL20_glUseProgram, "glUseProgram", (void *)&glUseProgram}, + {"glLinkProgram", "(I)V", (void *)&Java_org_lwjgl_opengl_GL20_glLinkProgram, "glLinkProgram", (void *)&glLinkProgram}, + {"glDetachShader", "(II)V", (void *)&Java_org_lwjgl_opengl_GL20_glDetachShader, "glDetachShader", (void *)&glDetachShader}, + {"glAttachShader", "(II)V", (void *)&Java_org_lwjgl_opengl_GL20_glAttachShader, "glAttachShader", (void *)&glAttachShader}, + {"glIsProgram", "(I)Z", (void *)&Java_org_lwjgl_opengl_GL20_glIsProgram, "glIsProgram", (void *)&glIsProgram}, + {"glCreateProgram", "()I", (void *)&Java_org_lwjgl_opengl_GL20_glCreateProgram, "glCreateProgram", (void *)&glCreateProgram}, + {"glDeleteShader", "(I)V", (void *)&Java_org_lwjgl_opengl_GL20_glDeleteShader, "glDeleteShader", (void *)&glDeleteShader}, + {"glCompileShader", "(I)V", (void *)&Java_org_lwjgl_opengl_GL20_glCompileShader, "glCompileShader", (void *)&glCompileShader}, + {"glIsShader", "(I)Z", (void *)&Java_org_lwjgl_opengl_GL20_glIsShader, "glIsShader", (void *)&glIsShader}, + {"glCreateShader", "(I)I", (void *)&Java_org_lwjgl_opengl_GL20_glCreateShader, "glCreateShader", (void *)&glCreateShader}, + {"nglShaderSource", "(IILjava/nio/ByteBuffer;II)V", (void *)&Java_org_lwjgl_opengl_GL20_nglShaderSource, "glShaderSource", (void *)&glShaderSource} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif Index: extal.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extal.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- extal.h 13 Feb 2005 13:20:29 -0000 1.33 +++ extal.h 15 Feb 2005 11:05:13 -0000 1.34 @@ -97,12 +97,7 @@ void DeInitializeOpenAL(); typedef ALvoid* (ALAPIENTRY *alGetProcAddressPROC)( ALubyte* fname ); -typedef ALubyte* (ALAPIENTRY *alGetStringPROC)( ALenum param ); -typedef ALenum (ALAPIENTRY *alGetErrorPROC)( ALvoid ); - extern alGetProcAddressPROC alGetProcAddress; -extern alGetStringPROC alGetString; -extern alGetErrorPROC alGetError; typedef ALCcontext* (ALCAPIENTRY *alcGetCurrentContextPROC)(ALCvoid); extern alcGetCurrentContextPROC alcGetCurrentContext; Index: org_lwjgl_opengl_GL13.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GL13.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_opengl_GL13.c 13 Jan 2005 02:16:46 -0000 1.2 +++ org_lwjgl_opengl_GL13.c 15 Feb 2005 11:05:14 -0000 1.3 @@ -1,378 +1,176 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -/** - * $Id$ - * - * Core OpenGL functions. - * - * @author cix_foo <ci...@us...> - * @version $Revision$ - */ +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glActiveTexturePROC) (GLenum texture ); -typedef void (APIENTRY * glClientActiveTexturePROC) (GLenum texture ); -typedef void (APIENTRY * glCompressedTexImage1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexImage2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexImage3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexSubImage1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data ); -typedef void (APIENTRY * glGetCompressedTexImagePROC) (GLenum target, GLint lod, GLvoid *img ); -typedef void (APIENTRY * glMultiTexCoord1fPROC) (GLenum target, GLfloat s ); -typedef void (APIENTRY * glMultiTexCoord2fPROC) (GLenum target, GLfloat s, GLfloat t ); -typedef void (APIENTRY * glMultiTexCoord3fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r ); -typedef void (APIENTRY * glMultiTexCoord4fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ); -typedef void (APIENTRY * glLoadTransposeMatrixfPROC) (const GLfloat m[16] ); -typedef void (APIENTRY * glMultTransposeMatrixfPROC) (const GLfloat m[16] ); -typedef void (APIENTRY * glSampleCoveragePROC) (GLclampf value, GLboolean invert ); +typedef void (APIENTRY *glSampleCoveragePROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRY *glMultTransposeMatrixfPROC) (const GLfloat * m); +typedef void (APIENTRY *glLoadTransposeMatrixfPROC) (const GLfloat * m); +typedef void (APIENTRY *glMultiTexCoord4fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (APIENTRY *glMultiTexCoord3fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (APIENTRY *glMultiTexCoord2fPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (APIENTRY *glMultiTexCoord1fPROC) (GLenum target, GLfloat s); +typedef void (APIENTRY *glGetCompressedTexImagePROC) (GLenum target, GLint lod, GLvoid * img); +typedef void (APIENTRY *glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data); +typedef void (APIENTRY *glCompressedTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data); +typedef void (APIENTRY *glCompressedTexSubImage1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data); +typedef void (APIENTRY *glCompressedTexImage3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data); +typedef void (APIENTRY *glCompressedTexImage2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data); +typedef void (APIENTRY *glCompressedTexImage1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data); +typedef void (APIENTRY *glClientActiveTexturePROC) (GLenum texture); +typedef void (APIENTRY *glActiveTexturePROC) (GLenum texture); -static glActiveTexturePROC glActiveTexture; -static glClientActiveTexturePROC glClientActiveTexture; -static glMultiTexCoord1fPROC glMultiTexCoord1f; -static glMultiTexCoord2fPROC glMultiTexCoord2f; -static glMultiTexCoord3fPROC glMultiTexCoord3f; -static glMultiTexCoord4fPROC glMultiTexCoord4f; -static glLoadTransposeMatrixfPROC glLoadTransposeMatrixf; +static glSampleCoveragePROC glSampleCoverage; static glMultTransposeMatrixfPROC glMultTransposeMatrixf; -static glCompressedTexImage3DPROC glCompressedTexImage3D; -static glCompressedTexImage2DPROC glCompressedTexImage2D; -static glCompressedTexImage1DPROC glCompressedTexImage1D; +static glLoadTransposeMatrixfPROC glLoadTransposeMatrixf; +static glMultiTexCoord4fPROC glMultiTexCoord4f; +static glMultiTexCoord3fPROC glMultiTexCoord3... [truncated message content] |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:06:03
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/native/linux Modified Files: Makefile Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: Makefile =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/Makefile,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Makefile 16 Jan 2005 10:43:30 -0000 1.17 +++ Makefile 15 Feb 2005 11:05:20 -0000 1.18 @@ -4,7 +4,7 @@ LINKER=gcc STRIP=strip CFLAGS_LINK=-shared -Wall -LIBS=-L/usr/X11/lib -lX11 -lXext -lXxf86vm -lpthread -L/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/i386/ -ljawt -Wl,-static,-lXcursor,-lXrender,-lXrandr,-call_shared +LIBS=-L/usr/X11/lib -lX11 -lXext -lXxf86vm -lpthread -L/usr/lib/jvm/java-1.5.0-sun-1.5.0.01/jre/lib/i386/ -ljawt -Wl,-static,-lXcursor,-lXrender,-lXrandr,-call_shared CFLAGS_O=-fPIC -O2 -D_X11 -Wall -pthread -c -I../common -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux SRC=$(wildcard *.c) $(wildcard ../common/*.c) $(wildcard ../common/arb/*.c) $(wildcard ../common/ati/*.c) $(wildcard ../common/ext/*.c) $(wildcard ../common/nv/*.c) OBJECTS=$(subst .c,.o,$(SRC)) |
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/ati In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/native/common/ati Modified Files: org_lwjgl_opengl_ATIDrawBuffers.c org_lwjgl_opengl_ATIElementArray.c org_lwjgl_opengl_ATIEnvmapBumpmap.c org_lwjgl_opengl_ATIFragmentShader.c org_lwjgl_opengl_ATIMapObjectBuffer.c org_lwjgl_opengl_ATIPnTriangles.c org_lwjgl_opengl_ATISeparateStencil.c org_lwjgl_opengl_ATIVertexArrayObject.c org_lwjgl_opengl_ATIVertexAttribArrayObject.c org_lwjgl_opengl_ATIVertexStreams.c Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: org_lwjgl_opengl_ATIElementArray.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATIElementArray.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATIElementArray.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,108 +1,41 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIElementArray -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glElementPointerATIPROC) (GLenum type, const GLvoid *pointer); -typedef void (APIENTRY * glDrawElementArrayATIPROC) (GLenum mode, GLsizei count); -typedef void (APIENTRY * glDrawRangeElementArrayATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); +typedef void (APIENTRY *glDrawRangeElementArrayATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); +typedef void (APIENTRY *glDrawElementArrayATIPROC) (GLenum mode, GLsizei count); +typedef void (APIENTRY *glElementPointerATIPROC) (GLenum type, const GLvoid * pPointer); -static glElementPointerATIPROC glElementPointerATI; -static glDrawElementArrayATIPROC glDrawElementArrayATI; static glDrawRangeElementArrayATIPROC glDrawRangeElementArrayATI; +static glDrawElementArrayATIPROC glDrawElementArrayATI; +static glElementPointerATIPROC glElementPointerATI; -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: nglElementPointerATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI - (JNIEnv * env, jclass clazz, jint type, jobject pPointer, jint pPointer_offset) -{ - GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pPointer) + pPointer_offset); - glElementPointerATI(type, pPointer_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count) { + glDrawRangeElementArrayATI(mode, start, end, count); } -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: nglElementPointerATIVBO - */ -static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIVBO - (JNIEnv * env, jclass clazz, jint type, jint buffer_offset) -{ - glElementPointerATI(type, (GLvoid *)buffer_offset); - +static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI(JNIEnv *env, jclass clazz, jint mode, jint count) { + glDrawElementArrayATI(mode, count); } -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: glDrawElementArrayATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI - (JNIEnv * env, jclass clazz, jint mode, jint count) -{ - glDrawElementArrayATI(mode, count); - +static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI(JNIEnv *env, jclass clazz, jint type, jobject pPointer, jint pPointer_position) { + const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position)); + glElementPointerATI(type, pPointer_address); } -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: glDrawRangeElementArrayATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI - (JNIEnv * env, jclass clazz, jint mode, jint start, jint end, jint count) -{ - glDrawRangeElementArrayATI(mode, start, end, count); - +static void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIBO(JNIEnv *env, jclass clazz, jint type, jint pPointer_buffer_offset) { + const GLvoid *pPointer_address = ((const GLvoid *)offsetToPointer(pPointer_buffer_offset)); + glElementPointerATI(type, pPointer_address); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglElementPointerATI", "(ILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI, "glElementPointerATI", (void*)&glElementPointerATI}, - {"nglElementPointerATIVBO", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIVBO, NULL, NULL}, - {"glDrawElementArrayATI", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI, "glDrawElementArrayATI", (void*)&glDrawElementArrayATI}, - {"glDrawRangeElementArrayATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI, "glDrawRangeElementArrayATI", (void*)&glDrawRangeElementArrayATI} + {"glDrawRangeElementArrayATI", "(IIII)V", (void *)&Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI, "glDrawRangeElementArrayATI", (void *)&glDrawRangeElementArrayATI}, + {"glDrawElementArrayATI", "(II)V", (void *)&Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI, "glDrawElementArrayATI", (void *)&glDrawElementArrayATI}, + {"nglElementPointerATI", "(ILjava/nio/Buffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI, "glElementPointerATI", (void *)&glElementPointerATI}, + {"nglElementPointerATIBO", "(II)V", (void *)&Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIBO, "glElementPointerATI", (void *)&glElementPointerATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ATIEnvmapBumpmap.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATIEnvmapBumpmap.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATIEnvmapBumpmap.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,109 +1,45 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIEnvmapBumpmap -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glTexBumpParameterivATIPROC) (GLenum pname, GLint *param); -typedef void (APIENTRY * glTexBumpParameterfvATIPROC) (GLenum pname, GLfloat *param); -typedef void (APIENTRY * glGetTexBumpParameterivATIPROC) (GLenum pname, GLint *param); -typedef void (APIENTRY * glGetTexBumpParameterfvATIPROC) (GLenum pname, GLfloat *param); +typedef void (APIENTRY *glGetTexBumpParameterivATIPROC) (GLenum pname, GLint * param); +typedef void (APIENTRY *glGetTexBumpParameterfvATIPROC) (GLenum pname, GLfloat * param); +typedef void (APIENTRY *glTexBumpParameterivATIPROC) (GLenum pname, GLint * param); +typedef void (APIENTRY *glTexBumpParameterfvATIPROC) (GLenum pname, GLfloat * param); -static glTexBumpParameterivATIPROC glTexBumpParameterivATI; -static glTexBumpParameterfvATIPROC glTexBumpParameterfvATI; static glGetTexBumpParameterivATIPROC glGetTexBumpParameterivATI; static glGetTexBumpParameterfvATIPROC glGetTexBumpParameterfvATI; +static glTexBumpParameterivATIPROC glTexBumpParameterivATI; +static glTexBumpParameterfvATIPROC glTexBumpParameterfvATI; -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglTexBumpParameterfvATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI - (JNIEnv * env, jclass clazz, jint pname, jobject pfParam, jint pfParam_offset) -{ - GLfloat *pfParam_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParam) + pfParam_offset; - glTexBumpParameterfvATI(pname, pfParam_ptr); +static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position) { + GLint *param_address = ((GLint *)(*env)->GetDirectBufferAddress(env, param)) + param_position; + glGetTexBumpParameterivATI(pname, param_address); } -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglTexBumpParameterivATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI - (JNIEnv * env, jclass clazz, jint pname, jobject piParam, jint piParam_offset) -{ - GLint *piParam_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParam) + piParam_offset; - glTexBumpParameterivATI(pname, piParam_ptr); +static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position) { + GLfloat *param_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, param)) + param_position; + glGetTexBumpParameterfvATI(pname, param_address); } -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglGetTexBumpParameterfvATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI - (JNIEnv * env, jclass clazz, jint pname, jobject pfParam, jint pfParam_offset) -{ - GLfloat *pfParam_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParam) + pfParam_offset; - glGetTexBumpParameterfvATI(pname, pfParam_ptr); +static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position) { + GLint *param_address = ((GLint *)(*env)->GetDirectBufferAddress(env, param)) + param_position; + glTexBumpParameterivATI(pname, param_address); } -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglGetTexBumpParameterivATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI - (JNIEnv * env, jclass clazz, jint pname, jobject piParam, jint piParam_offset) -{ - GLint *piParam_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParam) + piParam_offset; - glGetTexBumpParameterivATI(pname, piParam_ptr); +static void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position) { + GLfloat *param_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, param)) + param_position; + glTexBumpParameterfvATI(pname, param_address); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglTexBumpParameterfvATI", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI, "glTexBumpParameterfvATI", (void*)&glTexBumpParameterfvATI}, - {"nglTexBumpParameterivATI", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI, "glTexBumpParameterivATI", (void*)&glTexBumpParameterivATI}, - {"nglGetTexBumpParameterfvATI", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI, "glGetTexBumpParameterfvATI", (void*)&glGetTexBumpParameterfvATI}, - {"nglGetTexBumpParameterivATI", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI, "glGetTexBumpParameterivATI", (void*)&glGetTexBumpParameterivATI} + {"nglGetTexBumpParameterivATI", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI, "glGetTexBumpParameterivATI", (void *)&glGetTexBumpParameterivATI}, + {"nglGetTexBumpParameterfvATI", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI, "glGetTexBumpParameterfvATI", (void *)&glGetTexBumpParameterfvATI}, + {"nglTexBumpParameterivATI", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI, "glTexBumpParameterivATI", (void *)&glTexBumpParameterivATI}, + {"nglTexBumpParameterfvATI", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI, "glTexBumpParameterfvATI", (void *)&glTexBumpParameterfvATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ATIDrawBuffers.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATIDrawBuffers.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATIDrawBuffers.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,68 +1,21 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIDrawBuffers -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glDrawBuffersATIPROC) (GLsizei n, const GLenum *bufs); +typedef void (APIENTRY *glDrawBuffersATIPROC) (GLsizei size, const GLenum * buffers); static glDrawBuffersATIPROC glDrawBuffersATI; -/* - * Class: org.lwjgl.opengl.ATIDrawBuffers - * Method: nglDrawBuffersATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI - (JNIEnv * env, jclass clazz, jint size, jobject buffers, jint buffersOffset) -{ - GLuint *buffers_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, buffers) + buffersOffset; - glDrawBuffersATI(size, buffers_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI(JNIEnv *env, jclass clazz, jint size, jobject buffers, jint buffers_position) { + const GLenum *buffers_address = ((const GLenum *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position; + glDrawBuffersATI(size, buffers_address); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIDrawBuffers_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglDrawBuffersATI", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI, "glDrawBuffersATI", (void*)&glDrawBuffersATI} + {"nglDrawBuffersATI", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI, "glDrawBuffersATI", (void *)&glDrawBuffersATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ATIVertexAttribArrayObject.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATIVertexAttribArrayObject.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATIVertexAttribArrayObject.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,97 +1,36 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIVertexAttribArrayObject -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glVertexAttribArrayObjectATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRY * glGetVertexAttribArrayObjectfvATIPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glGetVertexAttribArrayObjectivATIPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRY *glGetVertexAttribArrayObjectivATIPROC) (GLuint index, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetVertexAttribArrayObjectfvATIPROC) (GLuint index, GLenum pname, GLfloat * params); +typedef void (APIENTRY *glVertexAttribArrayObjectATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -static glVertexAttribArrayObjectATIPROC glVertexAttribArrayObjectATI; -static glGetVertexAttribArrayObjectfvATIPROC glGetVertexAttribArrayObjectfvATI; static glGetVertexAttribArrayObjectivATIPROC glGetVertexAttribArrayObjectivATI; +static glGetVertexAttribArrayObjectfvATIPROC glGetVertexAttribArrayObjectfvATI; +static glVertexAttribArrayObjectATIPROC glVertexAttribArrayObjectATI; -/* - * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject - * Method: glVertexAttribArrayObjectATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI - (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer, jint offset) -{ - glVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVertexAttribArrayObjectivATI(index, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject - * Method: nglGetVertexAttribArrayObjectfvATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI - (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) -{ - GLfloat *params_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetVertexAttribArrayObjectfvATI(index, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVertexAttribArrayObjectfvATI(index, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject - * Method: nglGetVertexAttribArrayObjectivATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI - (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) -{ - GLint *params_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, params) + paramsOffset; - glGetVertexAttribArrayObjectivATI(index, pname, params_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer, jint offset) { + glVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glVertexAttribArrayObjectATI", "(IIIZIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI, "glVertexAttribArrayObjectATI", (void*)&glVertexAttribArrayObjectATI}, - {"nglGetVertexAttribArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI, "glGetVertexAttribArrayObjectfvATI", (void*)&glGetVertexAttribArrayObjectfvATI}, - {"nglGetVertexAttribArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI, "glGetVertexAttribArrayObjectivATI", (void*)&glGetVertexAttribArrayObjectivATI} + {"nglGetVertexAttribArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI, "glGetVertexAttribArrayObjectivATI", (void *)&glGetVertexAttribArrayObjectivATI}, + {"nglGetVertexAttribArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI, "glGetVertexAttribArrayObjectfvATI", (void *)&glGetVertexAttribArrayObjectfvATI}, + {"glVertexAttribArrayObjectATI", "(IIIZIII)V", (void *)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI, "glVertexAttribArrayObjectATI", (void *)&glVertexAttribArrayObjectATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ATIPnTriangles.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATIPnTriangles.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATIPnTriangles.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,79 +1,27 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIPnTriangles -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glPNTrianglesiATIPROC) (GLenum pname, GLint param); -typedef void (APIENTRY * glPNTrianglesfATIPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRY *glPNTrianglesiATIPROC) (GLenum pname, GLint param); +typedef void (APIENTRY *glPNTrianglesfATIPROC) (GLenum pname, GLfloat param); static glPNTrianglesiATIPROC glPNTrianglesiATI; static glPNTrianglesfATIPROC glPNTrianglesfATI; -/* - * Class: org.lwjgl.opengl.ATIPnTriangles - * Method: glPNTrianglesfATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI - (JNIEnv * env, jclass clazz, jint pname, jfloat param) -{ - glPNTrianglesfATI(pname, param); +static void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI(JNIEnv *env, jclass clazz, jint pname, jint param) { + glPNTrianglesiATI(pname, param); } -/* - * Class: org.lwjgl.opengl.ATIPnTriangles - * Method: glPNTrianglesiATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI - (JNIEnv * env, jclass clazz, jint pname, jint param) -{ - glPNTrianglesiATI(pname, param); +static void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI(JNIEnv *env, jclass clazz, jint pname, jfloat param) { + glPNTrianglesfATI(pname, param); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glPNTrianglesfATI", "(IF)V", (void*)&Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI, "glPNTrianglesfATI", (void*)&glPNTrianglesfATI}, - {"glPNTrianglesiATI", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI, "glPNTrianglesiATI", (void*)&glPNTrianglesiATI} + {"glPNTrianglesiATI", "(II)V", (void *)&Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI, "glPNTrianglesiATI", (void *)&glPNTrianglesiATI}, + {"glPNTrianglesfATI", "(IF)V", (void *)&Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI, "glPNTrianglesfATI", (void *)&glPNTrianglesfATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ATIMapObjectBuffer.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATIMapObjectBuffer.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATIMapObjectBuffer.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,88 +1,28 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIMapObjectBuffer -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -#include "common_tools.h" -typedef void * (APIENTRY * glMapObjectBufferATIPROC) (GLuint buffer); -typedef void (APIENTRY * glUnmapObjectBufferATIPROC) (GLuint buffer); +typedef void (APIENTRY *glUnmapObjectBufferATIPROC) (GLuint buffer); +typedef GLvoid * (APIENTRY *glMapObjectBufferATIPROC) (GLuint buffer); -static glMapObjectBufferATIPROC glMapObjectBufferATI; static glUnmapObjectBufferATIPROC glUnmapObjectBufferATI; +static glMapObjectBufferATIPROC glMapObjectBufferATI; -/* - * Class: org.lwjgl.opengl.ATIMapObjectBuffer - * Method: glMapObjectBufferATI - */ -static jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBufferATI - (JNIEnv * env, jclass clazz, jint buffer, jint size, jobject oldBuffer) -{ - void *buffer_address = glMapObjectBufferATI((GLenum)buffer); - - if (oldBuffer != NULL) { - void *old_buffer_address = (*env)->GetDirectBufferAddress(env, oldBuffer); - if (old_buffer_address == buffer_address) - return oldBuffer; - } - - return safeNewBuffer(env, buffer_address, size); +static void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer) { + glUnmapObjectBufferATI(buffer); } -/* - * Class: org.lwjgl.opengl.ATIMapObjectBuffer - * Method: glUnmapObjectBufferATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI - (JNIEnv * env, jclass clazz, jint buffer) -{ - glUnmapObjectBufferATI(buffer); - +static jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_nglMapObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jint result_size, jobject old_buffer) { + GLvoid * __result = glMapObjectBufferATI(buffer); + return safeNewBufferCached(env, __result, result_size, old_buffer); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glMapObjectBufferATI", "(IILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBufferATI, "glMapObjectBufferATI", (void*)&glMapObjectBufferATI}, - {"glUnmapObjectBufferATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI, "glUnmapObjectBufferATI", (void*)&glUnmapObjectBufferATI} + {"glUnmapObjectBufferATI", "(I)V", (void *)&Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI, "glUnmapObjectBufferATI", (void *)&glUnmapObjectBufferATI}, + {"nglMapObjectBufferATI", "(IILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void *)&Java_org_lwjgl_opengl_ATIMapObjectBuffer_nglMapObjectBufferATI, "glMapObjectBufferATI", (void *)&glMapObjectBufferATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif Index: org_lwjgl_opengl_ATISeparateStencil.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_ATISeparateStencil.c 10 Sep 2004 08:13:52 -0000 1.1 +++ org_lwjgl_opengl_ATISeparateStencil.c 15 Feb 2005 11:05:17 -0000 1.2 @@ -1,79 +1,27 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATISeparateStencil -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -typedef void (APIENTRY * glStencilOpSeparateATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -typedef void (APIENTRY * glStencilFuncSeparateATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +typedef void (APIENTRY *glStencilFuncSeparateATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +typedef void (APIENTRY *glStencilOpSeparateATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -static glStencilOpSeparateATIPROC glStencilOpSeparateATI; static glStencilFuncSeparateATIPROC glStencilFuncSeparateATI; +static glStencilOpSeparateATIPROC glStencilOpSeparateATI; -/* - * Class: org.lwjgl.opengl.ATISeparateStencil - * Method: glStencilOpSeparateATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI - (JNIEnv * env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass) -{ - glStencilOpSeparateATI(face, sfail, dpfail, dppass); +static void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI(JNIEnv *env, jclass clazz, jint frontfunc, jint backfunc, jint ref, jint mask) { + glStencilFuncSeparateATI(frontfunc, backfunc, ref, mask); } -/* - * Class: org.lwjgl.opengl.ATISeparateStencil - * Method: glStencilFuncSeparateATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI - (JNIEnv * env, jclass clazz, jint frontfunc, jint backfunc, jint ref, jint mask) -{ - glStencilFuncSeparateATI(frontfunc, backfunc, ref, mask); +static void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI(JNIEnv *env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass) { + glStencilOpSeparateATI(face, sfail, dpfail, dppass); } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"glStencilOpSeparateATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI, "glStencilOpSeparateATI", (void*)&glStencilOpSeparateATI}, - {"glStencilFuncSeparateATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI, "glStencilFuncSeparateATI", (void*)&glStencilFuncSeparateATI} + {"glStencilFuncSeparateATI", "(IIII)V", (void *)&Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI, "glStencilFuncSeparateATI", (void *)&glStencilFuncSeparateATI}, + {"glStencilOpSeparateATI", "(IIII)V", (void *)&Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI, "glStencilOpSeparateATI", (void *)&glStencilOpSeparateATI} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } -#ifdef __cplusplus -} -#endif - Index: org_lwjgl_opengl_ATIVertexArrayObject.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_opengl_ATIVertexArrayObject.c 9 Feb 2005 12:04:24 -0000 1.3 +++ org_lwjgl_opengl_ATIVertexArrayObject.c 15 Feb 2005 11:05:17 -0000 1.4 @@ -1,232 +1,107 @@ -/* - * Copyright (c) 2002-2004 LWJGL Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * 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 'LWJGL' 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. - */ - -// ---------------------------------- -// IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIVertexArrayObject -// ---------------------------------- +/* MACHINE GENERATED FILE, DO NOT EDIT */ +#include <jni.h> #include "extgl.h" -#include "common_tools.h" -typedef GLuint (APIENTRY * glNewObjectBufferATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage); -typedef GLboolean (APIENTRY * glIsObjectBufferATIPROC) (GLuint buffer); -typedef void (APIENTRY * glUpdateObjectBufferATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve); -typedef void (APIENTRY * glGetObjectBufferfvATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glGetObjectBufferivATIPROC) (GLuint buffer, GLenum pname, GLint *params); -typedef void (APIENTRY * glFreeObjectBufferATIPROC) (GLuint buffer); -typedef void (APIENTRY * glArrayObjectATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRY * glGetArrayObjectfvATIPROC) (GLenum array, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glGetArrayObjectivATIPROC) (GLenum array, GLenum pname, GLint *params); -typedef void (APIENTRY * glVariantArrayObjectATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRY * glGetVariantArrayObjectfvATIPROC) (GLuint id, GLenum pname, GLfloat *params); -typedef void (APIENTRY * glGetVariantArrayObjectivATIPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRY *glGetVariantArrayObjectivATIPROC) (GLuint id, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetVariantArrayObjectfvATIPROC) (GLuint id, GLenum pname, GLfloat * params); +typedef void (APIENTRY *glVariantArrayObjectATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRY *glGetArrayObjectivATIPROC) (GLenum array, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetArrayObjectfvATIPROC) (GLenum array, GLenum pname, GLfloat * params); +typedef void (APIENTRY *glArrayObjectATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRY *glFreeObjectBufferATIPROC) (GLuint buffer); +typedef void (APIENTRY *glGetObjectBufferivATIPROC) (GLuint buffer, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetObjectBufferfvATIPROC) (GLuint buffer, GLenum pname, GLfloat * params); +typedef void (APIENTRY *glUpdateObjectBufferATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid * pPointer, GLenum preserve); +typedef GLboolean (APIENTRY *glIsObjectBufferATIPROC) (GLuint buffer); +typedef GLuint (APIENTRY *glNewObjectBufferATIPROC) (GLsizei size, const GLvoid * pPointer, GLenum usage); -static glNewObjectBufferATIPROC glNewObjectBufferATI; -static glIsObjectBufferATIPROC glIsObjectBufferATI; -static glUpdateObjectBufferATIPROC glUpdateObjectBufferATI; -static glGetObjectBufferfvATIPROC glGetObjectBufferfvATI; -static glGetObjectBufferivATIPROC glGetObjectBufferivATI; -static glFreeObjectBufferATIPROC glFreeObjectBufferATI; -static glArrayObjectATIPROC glArrayObjectATI; -static glGetArrayObjectfvATIPROC glGetArrayObjectfvATI; -static glGetArrayObjectivATIPROC glGetArrayObjectivATI; -static glVariantArrayObjectATIPROC glVariantArrayObjectATI; -static glGetVariantArrayObjectfvATIPROC glGetVariantArrayObjectfvATI; static glGetVariantArrayObjectivATIPROC glGetVariantArrayObjectivATI; +static glGetVariantArrayObjectfvATIPROC glGetVariantArrayObjectfvATI; +static glVariantArrayObjectATIPROC glVariantArrayObjectATI; +static glGetArrayObjectivATIPROC glGetArrayObjectivATI; +static glGetArrayObjectfvATIPROC glGetArrayObjectfvATI; +static glArrayObjectATIPROC glArrayObjectATI; +static glFreeObjectBufferATIPROC glFreeObjectBufferATI; +static glGetObjectBufferivATIPROC glGetObjectBufferivATI; +static glGetObjectBufferfvATIPROC glGetObjectBufferfvATI; +static glUpdateObjectBufferATIPROC glUpdateObjectBufferATI; +static glIsObjectBufferATIPROC glIsObjectBufferATI; +static glNewObjectBufferATIPROC glNewObjectBufferATI; -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglNewObjectBufferATI - */ -static jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI - (JNIEnv * env, jclass clazz, jint size, jobject pPointer, jint pPointer_offset, jint usage) -{ - GLvoid *pPointer_ptr = (GLvoid *)((char *)safeGetBufferAddress(env, pPointer) + pPointer_offset); - GLuint result = glNewObjectBufferATI(size, pPointer_ptr, usage); - - return result; +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVariantArrayObjectivATI(id, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glIsObjectBufferATI - */ -static jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI - (JNIEnv * env, jclass clazz, jint buffer) -{ - GLboolean result = glIsObjectBufferATI(buffer); - - return result; +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVariantArrayObjectfvATI(id, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglUpdateObjectBufferATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI - (JNIEnv * env, jclass clazz, jint buffer, jint offset, jint size, jobject pPointer, jint pPointer_offset, jint preserve) -{ - GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pPointer) + pPointer_offset); - glUpdateObjectBufferATI(buffer, offset, size, pPointer_ptr, preserve); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI(JNIEnv *env, jclass clazz, jint id, jint type, jint stride, jint buffer, jint offset) { + glVariantArrayObjectATI(id, type, stride, buffer, offset); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetObjectBufferfvATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI - (JNIEnv * env, jclass clazz, jint buffer, jint pname, jobject pfParams, jint pfParams_offset) -{ - GLfloat *pfParams_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams) + pfParams_offset; - glGetObjectBufferfvATI(buffer, pname, pfParams_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI(JNIEnv *env, jclass clazz, jint array, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetArrayObjectivATI(array, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetObjectBufferivATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI - (JNIEnv * env, jclass clazz, jint buffer, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glGetObjectBufferivATI(buffer, pname, piParams_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI(JNIEnv *env, jclass clazz, jint array, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetArrayObjectfvATI(array, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glFreeObjectBufferATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI - (JNIEnv * env, jclass clazz, jint buffer) -{ - glFreeObjectBufferATI(buffer); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI(JNIEnv *env, jclass clazz, jint array, jint size, jint type, jint stride, jint buffer, jint offset) { + glArrayObjectATI(array, size, type, stride, buffer, offset); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glArrayObjectATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI - (JNIEnv * env, jclass clazz, jint array, jint size, jint type, jint stride, jint buffer, jint offset) -{ - glArrayObjectATI(array, size, type, stride, buffer, offset); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer) { + glFreeObjectBufferATI(buffer); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetArrayObjectfvATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI - (JNIEnv * env, jclass clazz, jint array, jint pname, jobject pfParams, jint pfParams_offset) -{ - GLfloat *pfParams_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams) + pfParams_offset; - glGetArrayObjectfvATI(array, pname, pfParams_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI(JNIEnv *env, jclass clazz, jint buffer, jint pname, jobject params, jint params_position) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetObjectBufferivATI(buffer, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetArrayObjectivATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI - (JNIEnv * env, jclass clazz, jint array, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glGetArrayObjectivATI(array, pname, piParams_ptr); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI(JNIEnv *env, jclass clazz, jint buffer, jint pname, jobject params, jint params_position) { + GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetObjectBufferfvATI(buffer, pname, params_address); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glVariantArrayObjectATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI - (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jint buffer, jint offset) -{ - glVariantArrayObjectATI(id, type, stride, buffer, offset); - +static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jint offset, jint size, jobject pPointer, jint pPointer_position, jint preserve) { + const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position)); + glUpdateObjectBufferATI(buffer, offset, size, pPointer_address, preserve); } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetVariantArrayObjectfvATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI - (JNIEnv * env, jclass clazz, jint id, jint pname, jobject pfParams, jint pfParams_offset_offset) -{ - GLfloat *pfParams_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams) + pfParams_offset_offset; - glGetVariantArrayObjectfvATI(id, pname, pfParams_ptr); - +static jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer) { + GLboolean __result = glIsObjectBufferATI(buffer); + return __result; } -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetVariantArrayObjectivATI - */ -static void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI - (JNIEnv * env, jclass clazz, jint id, jint pname, jobject piParams, jint piParams_offset) -{ - GLint *piParams_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piParams) + piParams_offset; - glGetVariantArrayObjectivATI(id, pname, piParams_ptr); - +static jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI(JNIEnv *env, jclass clazz, jint size, jobject pPointer, jint pPointer_position, jint usage) { + const GLvoid *pPointer_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, pPointer)) + pPointer_position)); + GLuint __result = glNewObjectBufferATI(size, pPointer_address, usage); + return __result; } -#ifdef __cplusplus -extern "C" { -#endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { - {"nglNewObjectBufferATI", "(ILjava/nio/Buffer;II)I", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI, "glNewObjectBufferATI", (void*)&glNewObjectBufferATI}, - {"glIsObjectBufferATI", "(I)Z", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI, "glIsObjectBufferATI", (void*)&glIsObjectBufferATI}, - {"nglUpdateObjectBufferATI", "(IIILjava/nio/Buffer;II)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI, "glUpdateObjectBufferATI", (void*)&glUpdateObjectBufferATI}, - {"nglGetObjectBufferfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI, "glGetObjectBufferfvATI", (void*)&glGetObjectBufferfvATI}, - {"nglGetObjectBufferivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI, "glGetObjectBufferivATI", (void*)&glGetObjectBufferivATI}, - {"glFreeObjectBufferATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI, "glFreeObjectBufferATI", (void*)&glFreeObjectBufferATI}, - {"glArrayObjectATI", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI, "glArrayObjectATI", (void*)&glArrayObjectATI}, - {"nglGetArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI, "glGetArrayObjectfvATI", (void*)&glGetArrayObjectfvATI}, - {"nglGetArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI, "glGetArrayObjectivATI", (void*)&glGetArrayObjectivATI}, - {"glVariantArrayObjectATI", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI, "glVariantArrayObjectATI", (void*)&glVariantArrayObjectATI}, - {"nglGetVariantArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI, "glGetVariantArrayObjectfvATI", (void*)&glGetVariantArrayObjectfvATI}, - {"nglGetVariantArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI, "glGetVariantArrayObjectivATI", (void*)&glGetVariantArrayObjectivATI} + {"nglGetVariantArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI, "glGetVariantArrayObjectivATI", (void *)&glGetVariantArrayObjectivATI}, + {"nglGetVariantArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI, "glGetVariantArrayObjectfvATI", (void *)&glGetVariantArrayObjectfvATI}, + {"glVariantArrayObjectATI", "(IIIII)V", (void *)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI, "glVariantArrayObjectATI", (void *)&glVariantArrayObjectATI}, + {"nglGetArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI, "glGetArrayObjectivATI", (void *)&glGetArrayObjectivATI}, + {"nglGetArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjec... [truncated message content] |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:05:56
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/java/org/lwjgl/util Modified Files: GL.java GLImpl.java IGL.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. Index: GLImpl.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util/GLImpl.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- GLImpl.java 29 Jan 2005 23:13:00 -0000 1.8 +++ GLImpl.java 15 Feb 2005 11:05:11 -0000 1.9 @@ -1567,8 +1567,8 @@ * @param pname * @param params */ - public void glConvolutionParameteriv(int target, int pname, IntBuffer params) { - GL.glConvolutionParameteriv(target, pname, params); + public void glConvolutionParameter(int target, int pname, IntBuffer params) { + GL.glConvolutionParameter(target, pname, params); } /** @@ -2992,16 +2992,16 @@ * @param map * @param values */ - public void glGetPixelMap(int map, IntBuffer values) { - GL.glGetPixelMap(map, values); + public void glGetPixelMapu(int map, IntBuffer values) { + GL.glGetPixelMapu(map, values); } /** * @param map * @param values */ - public void glGetPixelMap(int map, ShortBuffer values) { - GL.glGetPixelMap(map, values); + public void glGetPixelMapu(int map, ShortBuffer values) { + GL.glGetPixelMapu(map, values); } /** @@ -3010,8 +3010,8 @@ * * @return */ - public ByteBuffer glGetPointerv(int pname, int size) { - return GL.glGetPointerv(pname, size); + public ByteBuffer glGetPointer(int pname, int size) { + return GL.glGetPointer(pname, size); } /** @@ -3089,8 +3089,8 @@ * @param pname * @param params */ - public void glGetQueryObjectiARB(int id, int pname, IntBuffer params) { - GL.glGetQueryObjectiARB(id, pname, params); + public void glGetQueryObjectARB(int id, int pname, IntBuffer params) { + GL.glGetQueryObjectARB(id, pname, params); } /** @@ -3107,8 +3107,8 @@ * @param pname * @param params */ - public void glGetQueryObjectuiARB(int id, int pname, IntBuffer params) { - GL.glGetQueryObjectuiARB(id, pname, params); + public void glGetQueryObjectuARB(int id, int pname, IntBuffer params) { + GL.glGetQueryObjectuARB(id, pname, params); } /** @@ -3119,10 +3119,10 @@ * @param column * @param span */ - public void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span) { +/* public void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span) { GL.glGetSeparableFilter(target, format, type, row, column, span); } - +*/ /** * @param obj * @param length @@ -4021,8 +4021,8 @@ /** * @param pfMtx */ - public void glMultTransposeMatrixfARB(FloatBuffer pfMtx) { - GL.glMultTransposeMatrixfARB(pfMtx); + public void glMultTransposeMatrixARB(FloatBuffer pfMtx) { + GL.glMultTransposeMatrixARB(pfMtx); } /** @@ -4124,16 +4124,16 @@ * @param map * @param values */ - public void glPixelMap(int map, IntBuffer values) { - GL.glPixelMap(map, values); + public void glPixelMapu(int map, IntBuffer values) { + GL.glPixelMapu(map, values); } /** * @param map * @param values */ - public void glPixelMap(int map, ShortBuffer values) { - GL.glPixelMap(map, values); + public void glPixelMapu(int map, ShortBuffer values) { + GL.glPixelMapu(map, values); } /** @@ -4299,8 +4299,8 @@ * @param index * @param params */ - public void glProgramEnvParameterARB(int target, int index, FloatBuffer params) { - GL.glProgramEnvParameterARB(target, index, params); + public void glProgramEnvParameter4ARB(int target, int index, FloatBuffer params) { + GL.glProgramEnvParameter4ARB(target, index, params); } /** @@ -4320,8 +4320,8 @@ * @param index * @param params */ - public void glProgramLocalParameterARB(int target, int index, FloatBuffer params) { - GL.glProgramLocalParameterARB(target, index, params); + public void glProgramLocalParameter4ARB(int target, int index, FloatBuffer params) { + GL.glProgramLocalParameter4ARB(target, index, params); } /** @@ -4678,10 +4678,10 @@ * @param row * @param column */ - public void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column) { +/* public void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column) { GL.glSeparableFilter2D(target, internalformat, width, height, format, type, row, column); } - +*/ /** * @param id * @param unsigned @@ -4801,10 +4801,10 @@ * @param shaderObj * @param strings */ - public void glShaderSourceARB(int shaderObj, ByteBuffer[] strings) { +/* public void glShaderSourceARB(int shaderObj, ByteBuffer[] strings) { GL.glShaderSourceARB(shaderObj, strings); } - +*/ /** * @param func * @param ref @@ -6137,10 +6137,10 @@ * @param shader * @param strings */ - public void glShaderSource(int shader, ByteBuffer[] strings) { +/* public void glShaderSource(int shader, ByteBuffer[] strings) { GL.glShaderSource(shader, strings); } - +*/ /** * @param type * Index: GL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util/GL.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- GL.java 29 Jan 2005 23:13:00 -0000 1.8 +++ GL.java 15 Feb 2005 11:05:04 -0000 1.9 @@ -786,8 +786,8 @@ * @param map * @param values */ - public static void glGetPixelMap(int map, IntBuffer values) { - GL11.glGetPixelMap(map, values); + public static void glGetPixelMapu(int map, IntBuffer values) { + GL11.glGetPixelMapu(map, values); } /** @@ -802,8 +802,8 @@ * @param map * @param values */ - public static void glGetPixelMap(int map, ShortBuffer values) { - GL11.glGetPixelMap(map, values); + public static void glGetPixelMapu(int map, ShortBuffer values) { + GL11.glGetPixelMapu(map, values); } /** @@ -820,8 +820,8 @@ * * @return */ - public static ByteBuffer glGetPointerv(int pname, int size) { - return GL11.glGetPointerv(pname, size); + public static ByteBuffer glGetPointer(int pname, int size) { + return GL11.glGetPointer(pname, size); } /** @param mask */ @@ -1358,8 +1358,8 @@ * @param map * @param values */ - public static void glPixelMap(int map, IntBuffer values) { - GL11.glPixelMap(map, values); + public static void glPixelMapu(int map, IntBuffer values) { + GL11.glPixelMapu(map, values); } /** @@ -1375,8 +1375,8 @@ * @param map * @param values */ - public static void glPixelMap(int map, ShortBuffer values) { - GL11.glPixelMap(map, values); + public static void glPixelMapu(int map, ShortBuffer values) { + GL11.glPixelMapu(map, values); } /** @@ -3655,8 +3655,8 @@ * @param index * @param params */ - public static void glProgramEnvParameterARB(int target, int index, FloatBuffer params) { - ARBFragmentProgram.glProgramEnvParameterARB(target, index, params); + public static void glProgramEnvParameter4ARB(int target, int index, FloatBuffer params) { + ARBFragmentProgram.glProgramEnvParameter4ARB(target, index, params); } /** @@ -3676,8 +3676,8 @@ * @param index * @param params */ - public static void glProgramLocalParameterARB(int target, int index, FloatBuffer params) { - ARBFragmentProgram.glProgramLocalParameterARB(target, index, params); + public static void glProgramLocalParameter4ARB(int target, int index, FloatBuffer params) { + ARBFragmentProgram.glProgramLocalParameter4ARB(target, index, params); } /** @@ -3923,8 +3923,8 @@ * @param pname * @param params */ - public static void glConvolutionParameteriv(int target, int pname, IntBuffer params) { - ARBImaging.glConvolutionParameteriv(target, pname, params); + public static void glConvolutionParameter(int target, int pname, IntBuffer params) { + ARBImaging.glConvolutionParameter(target, pname, params); } /** @@ -4225,10 +4225,10 @@ * @param column * @param span */ - public static void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span) { +/* public static void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span) { ARBImaging.glGetSeparableFilter(target, format, type, row, column, span); } - +*/ /** * @param target * @param format @@ -4280,10 +4280,10 @@ * @param row * @param column */ - public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column) { +/* public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column) { ARBImaging.glSeparableFilter2D(target, internalformat, width, height, format, type, row, column); } - +*/ /** * @param target * @param internalformat @@ -4524,8 +4524,8 @@ * @param pname * @param params */ - public static void glGetQueryObjectiARB(int id, int pname, IntBuffer params) { - ARBOcclusionQuery.glGetQueryObjectiARB(id, pname, params); + public static void glGetQueryObjectARB(int id, int pname, IntBuffer params) { + ARBOcclusionQuery.glGetQueryObjectARB(id, pname, params); } /** @@ -4533,8 +4533,8 @@ * @param pname * @param params */ - public static void glGetQueryObjectuiARB(int id, int pname, IntBuffer params) { - ARBOcclusionQuery.glGetQueryObjectuiARB(id, pname, params); + public static void glGetQueryObjectuARB(int id, int pname, IntBuffer params) { + ARBOcclusionQuery.glGetQueryObjectuARB(id, pname, params); } /** @@ -4943,8 +4943,8 @@ } /** @param pfMtx */ - public static void glMultTransposeMatrixfARB(FloatBuffer pfMtx) { - ARBTransposeMatrix.glMultTransposeMatrixfARB(pfMtx); + public static void glMultTransposeMatrixARB(FloatBuffer pfMtx) { + ARBTransposeMatrix.glMultTransposeMatrixARB(pfMtx); } /** @param count */ @@ -5269,10 +5269,10 @@ * @param shaderObj * @param strings */ - public static void glShaderSourceARB(int shaderObj, ByteBuffer[] strings) { +/* public static void glShaderSourceARB(int shaderObj, ByteBuffer[] strings) { ARBShaderObjects.glShaderSourceARB(shaderObj, strings); } - +*/ /** * @param location * @param values @@ -6320,10 +6320,10 @@ * @param shader * @param strings */ - public static void glShaderSource(int shader, ByteBuffer[] strings) { +/* public static void glShaderSource(int shader, ByteBuffer[] strings) { GL20.glShaderSource(shader, strings); } - +*/ /** * @param type * @@ -6737,4 +6737,4 @@ GL20.glStencilOpSeparate(face, sfail, dpfail, dppass); } -} \ No newline at end of file +} Index: IGL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util/IGL.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- IGL.java 29 Jan 2005 23:13:00 -0000 1.7 +++ IGL.java 15 Feb 2005 11:05:12 -0000 1.8 @@ -653,7 +653,7 @@ * @param map * @param values */ - void glGetPixelMap(int map, IntBuffer values); + void glGetPixelMapu(int map, IntBuffer values); /** * @param map @@ -665,7 +665,7 @@ * @param map * @param values */ - void glGetPixelMap(int map, ShortBuffer values); + void glGetPixelMapu(int map, ShortBuffer values); /** * @param map @@ -679,7 +679,7 @@ * * @return */ - ByteBuffer glGetPointerv(int pname, int size); + ByteBuffer glGetPointer(int pname, int size); /** * @param mask @@ -1104,13 +1104,13 @@ * @param map * @param values */ - void glPixelMap(int map, IntBuffer values); + void glPixelMapu(int map, IntBuffer values); /** * @param map * @param values */ - void glPixelMap(int map, ShortBuffer values); + void glPixelMapu(int map, ShortBuffer values); /** * @@ -3045,7 +3045,7 @@ * @param index * @param params */ - void glProgramEnvParameterARB(int target, int index, FloatBuffer params); + void glProgramEnvParameter4ARB(int target, int index, FloatBuffer params); /** * @param target @@ -3063,7 +3063,7 @@ * @param index * @param params */ - void glProgramLocalParameterARB(int target, int index, FloatBuffer params); + void glProgramLocalParameter4ARB(int target, int index, FloatBuffer params); /** * @param target @@ -3267,7 +3267,7 @@ * @param pname * @param params */ - void glConvolutionParameteriv(int target, int pname, IntBuffer params); + void glConvolutionParameter(int target, int pname, IntBuffer params); /** * @param target @@ -3518,7 +3518,7 @@ * @param column * @param span */ - void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span); +// void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span); /** * @param target @@ -3565,7 +3565,7 @@ * @param row * @param column */ - void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column); +// void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column); /** * @param target @@ -3768,14 +3768,14 @@ * @param pname * @param params */ - void glGetQueryObjectiARB(int id, int pname, IntBuffer params); + void glGetQueryObjectARB(int id, int pname, IntBuffer params); /** * @param id * @param pname * @param params */ - void glGetQueryObjectuiARB(int id, int pname, IntBuffer params); + void glGetQueryObjectuARB(int id, int pname, IntBuffer params); /** * @param id @@ -4149,7 +4149,7 @@ /** * @param pfMtx */ - void glMultTransposeMatrixfARB(FloatBuffer pfMtx); + void glMultTransposeMatrixARB(FloatBuffer pfMtx); /** * @param count @@ -4419,7 +4419,7 @@ * @param shaderObj * @param strings */ - void glShaderSourceARB(int shaderObj, ByteBuffer[] strings); +// void glShaderSourceARB(int shaderObj, ByteBuffer[] strings); /** * @param location @@ -5266,7 +5266,7 @@ * @param shader * @param strings */ - void glShaderSource(int shader, ByteBuffer[] strings); +// void glShaderSource(int shader, ByteBuffer[] strings); /** * @param type @@ -5601,4 +5601,4 @@ */ void glStencilOpSeparate(int face, int sfail, int dpfail, int dppass); -} \ No newline at end of file +} |
Update of /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/templates/org/lwjgl/opengl Added Files: ARB_buffer_object.java ARB_color_buffer_float.java ARB_depth_texture.java ARB_draw_buffers.java ARB_fragment_program.java ARB_fragment_shader.java ARB_half_float_pixel.java ARB_imaging.java ARB_matrix_palette.java ARB_multisample.java ARB_multitexture.java ARB_occlusion_query.java ARB_pixel_buffer_object.java ARB_point_parameters.java ARB_point_sprite.java ARB_program.java ARB_shader_objects.java ARB_shading_language_100.java ARB_shadow.java ARB_shadow_ambient.java ARB_texture_border_clamp.java ARB_texture_compression.java ARB_texture_cube_map.java ARB_texture_env_combine.java ARB_texture_env_dot3.java ARB_texture_float.java ARB_texture_mirrored_repeat.java ARB_texture_rectangle.java ARB_transpose_matrix.java ARB_vertex_blend.java ARB_vertex_buffer_object.java ARB_vertex_program.java ARB_vertex_shader.java ARB_window_pos.java ATI_draw_buffers.java ATI_element_array.java ATI_envmap_bumpmap.java ATI_fragment_shader.java ATI_map_object_buffer.java ATI_pn_triangles.java ATI_separate_stencil.java ATI_texture_compression_3dc.java ATI_texture_float.java ATI_texture_mirror_once.java ATI_vertex_array_object.java ATI_vertex_attrib_array_object.java ATI_vertex_streams.java EXT_abgr.java EXT_bgra.java EXT_blend_equation_separate.java EXT_blend_func_separate.java EXT_blend_subtract.java EXT_cg_shader.java EXT_compiled_vertex_array.java EXT_depth_bounds_test.java EXT_draw_range_elements.java EXT_fog_coord.java EXT_framebuffer_object.java EXT_multi_draw_arrays.java EXT_packed_pixels.java EXT_paletted_texture.java EXT_pixel_buffer_object.java EXT_point_parameters.java EXT_rescale_normal.java EXT_secondary_color.java EXT_separate_specular_color.java EXT_shared_texture_palette.java EXT_stencil_two_side.java EXT_stencil_wrap.java EXT_texture_compression_s3tc.java EXT_texture_env_combine.java EXT_texture_env_dot3.java EXT_texture_filter_anisotropic.java EXT_texture_lod_bias.java EXT_texture_mirror_clamp.java EXT_texture_rectangle.java EXT_vertex_shader.java EXT_vertex_weighting.java GL11.java GL12.java GL13.java GL14.java GL15.java GL20.java NV_copy_depth_to_color.java NV_depth_clamp.java NV_evaluators.java NV_fence.java NV_float_buffer.java NV_fog_distance.java NV_fragment_program.java NV_fragment_program2.java NV_half_float.java NV_light_max_exponent.java NV_multisample_filter_hint.java NV_occlusion_query.java NV_packed_depth_stencil.java NV_pixel_data_range.java NV_point_sprite.java NV_primitive_restart.java NV_program.java NV_register_combiners.java NV_register_combiners2.java NV_texgen_reflection.java NV_texture_compression_vtc.java NV_texture_env_combine4.java NV_texture_expand_normal.java NV_texture_rectangle.java NV_texture_shader.java NV_texture_shader2.java NV_texture_shader3.java NV_vertex_array_range.java NV_vertex_array_range2.java NV_vertex_program.java NV_vertex_program2_option.java NV_vertex_program3.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. --- NEW FILE: NV_fence.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import java.nio.IntBuffer; import org.lwjgl.generator.*; public interface NV_fence { public static final int GL_ALL_COMPLETED_NV = 0x84F2; public static final int GL_FENCE_STATUS_NV = 0x84F3; public static final int GL_FENCE_CONDITION_NV = 0x84F4; public void glGenFencesNV(@AutoSize("piFences") @GLsizei int n, @GLuint IntBuffer piFences); public void glDeleteFencesNV(@AutoSize("piFences") @GLsizei int n, @Const @GLuint IntBuffer piFences); public void glSetFenceNV(@GLuint int fence, @GLenum int condition); public boolean glTestFenceNV(@GLuint int fence); public void glFinishFenceNV(@GLuint int fence); public boolean glIsFenceNV(@GLuint int fence); public void glGetFenceivNV(@GLuint int fence, @GLenum int pname, @Check("4") IntBuffer piParams); } --- NEW FILE: NV_texgen_reflection.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_texgen_reflection { public static final int GL_NORMAL_MAP_NV = 0x8511; public static final int GL_REFLECTION_MAP_NV = 0x8512; } --- NEW FILE: EXT_depth_bounds_test.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import org.lwjgl.generator.*; public interface EXT_depth_bounds_test { /* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev: */ public static final int DEPTH_BOUNDS_TEST_EXT = 0x8890; /* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev: */ public static final int DEPTH_BOUNDS_EXT = 0x8891; public void glDepthBoundsEXT(@GLclampd double zmin, @GLclampd double zmax); } --- NEW FILE: NV_primitive_restart.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import org.lwjgl.generator.*; public interface NV_primitive_restart { /* * Accepted by the <array> parameter of EnableClientState and * DisableClientState, by the <cap> parameter of IsEnabled, and by * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and * GetDoublev: */ public static final int GL_PRIMITIVE_RESTART_NV = 0x8558; /* * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, * GetFloatv, and GetDoublev: */ public static final int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; public void glPrimitiveRestartNV(); public void glPrimitiveRestartIndexNV(@GLuint int index); } --- NEW FILE: ARB_texture_env_combine.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_texture_env_combine { public static final int GL_COMBINE_ARB = 0x8570; public static final int GL_COMBINE_RGB_ARB = 0x8571; public static final int GL_COMBINE_ALPHA_ARB = 0x8572; public static final int GL_RGB_SCALE_ARB = 0x8573; public static final int GL_ADD_SIGNED_ARB = 0x8574; public static final int GL_INTERPOLATE_ARB = 0x8575; public static final int GL_CONSTANT_ARB = 0x8576; public static final int GL_PRIMARY_COLOR_ARB = 0x8577; public static final int GL_PREVIOUS_ARB = 0x8578; public static final int GL_SOURCE0_RGB_ARB = 0x8580; public static final int GL_SOURCE1_RGB_ARB = 0x8581; public static final int GL_SOURCE2_RGB_ARB = 0x8582; public static final int GL_SOURCE0_ALPHA_ARB = 0x8588; public static final int GL_SOURCE1_ALPHA_ARB = 0x8589; public static final int GL_SOURCE2_ALPHA_ARB = 0x858A; public static final int GL_OPERAND0_RGB_ARB = 0x8590; public static final int GL_OPERAND1_RGB_ARB = 0x8591; public static final int GL_OPERAND2_RGB_ARB = 0x8592; public static final int GL_OPERAND0_ALPHA_ARB = 0x8598; public static final int GL_OPERAND1_ALPHA_ARB = 0x8599; public static final int GL_OPERAND2_ALPHA_ARB = 0x859A; } --- NEW FILE: EXT_secondary_color.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.FloatBuffer; import org.lwjgl.generator.*; public interface EXT_secondary_color { public static final int GL_COLOR_SUM_EXT = 0x8458; public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459; public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A; public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B; public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C; public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; public void glSecondaryColor3bEXT(byte red, byte green, byte blue); public void glSecondaryColor3fEXT(float red, float green, float blue); public void glSecondaryColor3ubEXT(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue); public void glSecondaryColorPointerEXT(int size, @AutoType("pPointer") @GLenum int type, @GLsizei int stride, @BufferObject(BufferKind.ArrayVBO) @Check @GLbyte @GLubyte @GLfloat Buffer pPointer); } --- NEW FILE: NV_register_combiners2.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import java.nio.FloatBuffer; import org.lwjgl.generator.*; public interface NV_register_combiners2 { public static final int GL_PER_STAGE_CONSTANTS_NV = 0x8535; @StripPostfix("params") public void glCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Const @Check("4") FloatBuffer params); @StripPostfix("params") public void glGetCombinerStageParameterfvNV(@GLenum int stage, @GLenum int pname, @Check("4") FloatBuffer params); } --- NEW FILE: EXT_multi_draw_arrays.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import java.nio.IntBuffer; import org.lwjgl.generator.*; public interface EXT_multi_draw_arrays { @Code( " if (piFirst.remaining() != piCount.remaining()) {\n" + " throw new IllegalArgumentException(\"piFirst.remaining() != piCount.remaining()\");\n" + " }") public void glMultiDrawArraysEXT(@GLenum int mode, IntBuffer piFirst, @Check @GLsizei IntBuffer piCount, @AutoSize("piFirst") int primcount); } --- NEW FILE: ARB_shading_language_100.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_shading_language_100 { /** * Accepted by the <name> parameter of GetString: */ public static final int GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C; } --- NEW FILE: GL13.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.ShortBuffer; import org.lwjgl.generator.*; import org.lwjgl.LWJGLException; import org.lwjgl.BufferChecks; /** * $Id: GL13.java,v 1.1 2005/02/15 11:05:36 elias_naur Exp $ * <p/> * The core OpenGL1.3 API. * * @author cix_foo <ci...@us...> * @version $Revision: 1.1 $ */ public interface GL13 { public static final int GL_TEXTURE0 = 0x84C0; public static final int GL_TEXTURE1 = 0x84C1; public static final int GL_TEXTURE2 = 0x84C2; public static final int GL_TEXTURE3 = 0x84C3; public static final int GL_TEXTURE4 = 0x84C4; public static final int GL_TEXTURE5 = 0x84C5; public static final int GL_TEXTURE6 = 0x84C6; public static final int GL_TEXTURE7 = 0x84C7; public static final int GL_TEXTURE8 = 0x84C8; public static final int GL_TEXTURE9 = 0x84C9; public static final int GL_TEXTURE10 = 0x84CA; public static final int GL_TEXTURE11 = 0x84CB; public static final int GL_TEXTURE12 = 0x84CC; public static final int GL_TEXTURE13 = 0x84CD; public static final int GL_TEXTURE14 = 0x84CE; public static final int GL_TEXTURE15 = 0x84CF; public static final int GL_TEXTURE16 = 0x84D0; public static final int GL_TEXTURE17 = 0x84D1; public static final int GL_TEXTURE18 = 0x84D2; public static final int GL_TEXTURE19 = 0x84D3; public static final int GL_TEXTURE20 = 0x84D4; public static final int GL_TEXTURE21 = 0x84D5; public static final int GL_TEXTURE22 = 0x84D6; public static final int GL_TEXTURE23 = 0x84D7; public static final int GL_TEXTURE24 = 0x84D8; public static final int GL_TEXTURE25 = 0x84D9; public static final int GL_TEXTURE26 = 0x84DA; public static final int GL_TEXTURE27 = 0x84DB; public static final int GL_TEXTURE28 = 0x84DC; public static final int GL_TEXTURE29 = 0x84DD; public static final int GL_TEXTURE30 = 0x84DE; public static final int GL_TEXTURE31 = 0x84DF; public static final int GL_ACTIVE_TEXTURE = 0x84E0; public static final int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1; public static final int GL_MAX_TEXTURE_UNITS = 0x84E2; public static final int GL_NORMAL_MAP = 0x8511; public static final int GL_REFLECTION_MAP = 0x8512; public static final int GL_TEXTURE_CUBE_MAP = 0x8513; public static final int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; public static final int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; public static final int GL_COMPRESSED_ALPHA = 0x84E9; public static final int GL_COMPRESSED_LUMINANCE = 0x84EA; public static final int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB; public static final int GL_COMPRESSED_INTENSITY = 0x84EC; public static final int GL_COMPRESSED_RGB = 0x84ED; public static final int GL_COMPRESSED_RGBA = 0x84EE; public static final int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; public static final int GL_TEXTURE_COMPRESSED = 0x86A1; public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; public static final int GL_MULTISAMPLE = 0x809D; public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; public static final int GL_SAMPLE_COVERAGE = 0x80A0; public static final int GL_SAMPLE_BUFFERS = 0x80A8; public static final int GL_SAMPLES = 0x80A9; public static final int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; public static final int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; public static final int GL_MULTISAMPLE_BIT = 0x20000000; public static final int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; public static final int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4; public static final int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5; public static final int GL_TRANSPOSE_COLOR_MATRIX = 0x84E6; public static final int GL_COMBINE = 0x8570; public static final int GL_COMBINE_RGB = 0x8571; public static final int GL_COMBINE_ALPHA = 0x8572; public static final int GL_SOURCE0_RGB = 0x8580; public static final int GL_SOURCE1_RGB = 0x8581; public static final int GL_SOURCE2_RGB = 0x8582; public static final int GL_SOURCE0_ALPHA = 0x8588; public static final int GL_SOURCE1_ALPHA = 0x8589; public static final int GL_SOURCE2_ALPHA = 0x858A; public static final int GL_OPERAND0_RGB = 0x8590; public static final int GL_OPERAND1_RGB = 0x8591; public static final int GL_OPERAND2_RGB = 0x8592; public static final int GL_OPERAND0_ALPHA = 0x8598; public static final int GL_OPERAND1_ALPHA = 0x8599; public static final int GL_OPERAND2_ALPHA = 0x859A; public static final int GL_RGB_SCALE = 0x8573; public static final int GL_ADD_SIGNED = 0x8574; public static final int GL_INTERPOLATE = 0x8575; public static final int GL_SUBTRACT = 0x84E7; public static final int GL_CONSTANT = 0x8576; public static final int GL_PRIMARY_COLOR = 0x8577; public static final int GL_PREVIOUS = 0x8578; public static final int GL_DOT3_RGB = 0x86AE; public static final int GL_DOT3_RGBA = 0x86AF; public static final int GL_CLAMP_TO_BORDER = 0x812D; public void glActiveTexture(@GLenum int texture); public void glClientActiveTexture(@GLenum int texture); public void glCompressedTexImage1D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); public void glCompressedTexImage2D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); public void glCompressedTexImage3D(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); public void glCompressedTexSubImage1D(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); public void glCompressedTexSubImage2D(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); public void glCompressedTexSubImage3D(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @GLsizei int imageSize, @BufferObject(BufferKind.UnpackPBO) @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); // TODO: check buffer size valid public void glGetCompressedTexImage(@GLenum int target, int lod, @BufferObject(BufferKind.PackPBO) @Check @GLbyte @GLshort @GLint Buffer img); public void glMultiTexCoord1f(@GLenum int target, float s); public void glMultiTexCoord2f(@GLenum int target, float s, float t); public void glMultiTexCoord3f(@GLenum int target, float s, float t, float r); public void glMultiTexCoord4f(@GLenum int target, float s, float t, float r, float q); @StripPostfix("m") public void glLoadTransposeMatrixf(@Check("16") @Const FloatBuffer m); @StripPostfix("m") public void glMultTransposeMatrixf(@Check("16") @Const FloatBuffer m); public void glSampleCoverage(@GLclampf float value, boolean invert); } --- NEW FILE: ARB_window_pos.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import org.lwjgl.LWJGLException; public interface ARB_window_pos { public void glWindowPos2fARB(float x, float y); public void glWindowPos2iARB(int x, int y); public void glWindowPos2sARB(short x, short y); public void glWindowPos3fARB(float x, float y, float z); public void glWindowPos3iARB(int x, int y, int z); public void glWindowPos3sARB(short x, short y, short z); } --- NEW FILE: ARB_shadow_ambient.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_shadow_ambient { public static final int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF; } --- NEW FILE: ARB_multitexture.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import org.lwjgl.LWJGLException; import org.lwjgl.generator.*; public interface ARB_multitexture { public static final int GL_TEXTURE0_ARB = 0x84C0; public static final int GL_TEXTURE1_ARB = 0x84C1; public static final int GL_TEXTURE2_ARB = 0x84C2; public static final int GL_TEXTURE3_ARB = 0x84C3; public static final int GL_TEXTURE4_ARB = 0x84C4; public static final int GL_TEXTURE5_ARB = 0x84C5; public static final int GL_TEXTURE6_ARB = 0x84C6; public static final int GL_TEXTURE7_ARB = 0x84C7; public static final int GL_TEXTURE8_ARB = 0x84C8; public static final int GL_TEXTURE9_ARB = 0x84C9; public static final int GL_TEXTURE10_ARB = 0x84CA; public static final int GL_TEXTURE11_ARB = 0x84CB; public static final int GL_TEXTURE12_ARB = 0x84CC; public static final int GL_TEXTURE13_ARB = 0x84CD; public static final int GL_TEXTURE14_ARB = 0x84CE; public static final int GL_TEXTURE15_ARB = 0x84CF; public static final int GL_TEXTURE16_ARB = 0x84D0; public static final int GL_TEXTURE17_ARB = 0x84D1; public static final int GL_TEXTURE18_ARB = 0x84D2; public static final int GL_TEXTURE19_ARB = 0x84D3; public static final int GL_TEXTURE20_ARB = 0x84D4; public static final int GL_TEXTURE21_ARB = 0x84D5; public static final int GL_TEXTURE22_ARB = 0x84D6; public static final int GL_TEXTURE23_ARB = 0x84D7; public static final int GL_TEXTURE24_ARB = 0x84D8; public static final int GL_TEXTURE25_ARB = 0x84D9; public static final int GL_TEXTURE26_ARB = 0x84DA; public static final int GL_TEXTURE27_ARB = 0x84DB; public static final int GL_TEXTURE28_ARB = 0x84DC; public static final int GL_TEXTURE29_ARB = 0x84DD; public static final int GL_TEXTURE30_ARB = 0x84DE; public static final int GL_TEXTURE31_ARB = 0x84DF; public static final int GL_ACTIVE_TEXTURE_ARB = 0x84E0; public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; public void glClientActiveTextureARB(@GLenum int texture); public void glActiveTextureARB(@GLenum int texture); public void glMultiTexCoord1fARB(@GLenum int target, float s); public void glMultiTexCoord1iARB(@GLenum int target, int s); public void glMultiTexCoord1sARB(@GLenum int target, short s); public void glMultiTexCoord2fARB(@GLenum int target, float s, float t); public void glMultiTexCoord2iARB(@GLenum int target, int s, int t); public void glMultiTexCoord2sARB(@GLenum int target, short s, short t); public void glMultiTexCoord3fARB(@GLenum int target, float s, float t, float r); public void glMultiTexCoord3iARB(@GLenum int target, int s, int t, int r); public void glMultiTexCoord3sARB(@GLenum int target, short s, short t, short r); public void glMultiTexCoord4fARB(@GLenum int target, float s, float t, float r, float q); public void glMultiTexCoord4iARB(@GLenum int target, int s, int t, int r, int q); public void glMultiTexCoord4sARB(@GLenum int target, short s, short t, short r, short q); } --- NEW FILE: ARB_texture_cube_map.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface ARB_texture_cube_map { public static final int GL_NORMAL_MAP_ARB = 0x8511; public static final int GL_REFLECTION_MAP_ARB = 0x8512; public static final int GL_TEXTURE_CUBE_MAP_ARB = 0x8513; public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514; public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515; public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516; public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517; public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518; public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519; public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A; public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B; public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C; } --- NEW FILE: ARB_buffer_object.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import org.lwjgl.BufferChecks; import org.lwjgl.LWJGLException; import org.lwjgl.generator.*; import java.nio.*; @Extension(postfix="ARB", isFinal=false) public interface ARB_buffer_object { /* * Accepted by the <usage> parameter of BufferDataARB: */ public static final int GL_STREAM_DRAW_ARB = 0x88E0; public static final int GL_STREAM_READ_ARB = 0x88E1; public static final int GL_STREAM_COPY_ARB = 0x88E2; public static final int GL_STATIC_DRAW_ARB = 0x88E4; public static final int GL_STATIC_READ_ARB = 0x88E5; public static final int GL_STATIC_COPY_ARB = 0x88E6; public static final int GL_DYNAMIC_DRAW_ARB = 0x88E8; public static final int GL_DYNAMIC_READ_ARB = 0x88E9; public static final int GL_DYNAMIC_COPY_ARB = 0x88EA; /* * Accepted by the <access> parameter of MapBufferARB: */ public static final int GL_READ_ONLY_ARB = 0x88B8; public static final int GL_WRITE_ONLY_ARB = 0x88B9; public static final int GL_READ_WRITE_ARB = 0x88BA; /* * Accepted by the <pname> parameter of GetBufferParameterivARB: */ public static final int GL_BUFFER_SIZE_ARB = 0x8764; public static final int GL_BUFFER_USAGE_ARB = 0x8765; public static final int GL_BUFFER_ACCESS_ARB = 0x88BB; public static final int GL_BUFFER_MAPPED_ARB = 0x88BC; public static final int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; @Code( " BufferObjectTracker.bindBuffer(target, buffer);") public void glBindBufferARB(@GLenum int target, @GLuint int buffer); @Code( " BufferObjectTracker.deleteBuffers(buffers);") public void glDeleteBuffersARB(@AutoSize("buffers") @GLsizei int n, @Const @GLuint IntBuffer buffers); public void glGenBuffersARB(@AutoSize("buffers") int n, @GLuint IntBuffer buffers); public boolean glIsBufferARB(@GLuint int buffer); @GenerateAutos public void glBufferDataARB(@GLenum int target, @AutoSize("data") @GLsizeiptrARB int size, @Const @GLbyte @GLshort @GLint @GLfloat Buffer data, @GLenum int usage); public void glBufferSubDataARB(@GLenum int target, @GLintptrARB int offset, @AutoSize("data") @GLsizeiptrARB int size, @Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data); public void glGetBufferSubDataARB(@GLenum int target, @GLintptrARB int offset, @AutoSize("data") @GLsizeiptrARB int size, @Check @GLbyte @GLshort @GLint @GLfloat 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: * <p/> * 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. */ @CachedResult public @GLvoid ByteBuffer glMapBufferARB(@GLenum int target, @GLenum int access); public boolean glUnmapBufferARB(@GLenum int target); @StripPostfix("params") public void glGetBufferParameterivARB(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params); @StripPostfix("pointer") public void glGetBufferPointervARB(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer); } --- NEW FILE: NV_light_max_exponent.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_light_max_exponent { public static final int GL_MAX_SHININESS_NV = 0x8504; public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8505; } --- NEW FILE: NV_evaluators.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import java.nio.Buffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import org.lwjgl.generator.*; public interface NV_evaluators { public static final int GL_EVAL_2D_NV = 0x86C0; public static final int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; public static final int GL_MAP_TESSELLATION_NV = 0x86C2; public static final int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3; public static final int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4; public static final int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5; public static final int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6; public static final int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7; public static final int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8; public static final int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9; public static final int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA; public static final int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB; public static final int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC; public static final int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD; public static final int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE; public static final int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF; public static final int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0; public static final int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1; public static final int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2; public static final int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3; public static final int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4; public static final int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5; public static final int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; public static final int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; public void glGetMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, boolean packed, @Check @Const @GLfloat Buffer pPoints); public void glMapControlPointsNV(@GLenum int target, @GLuint int index, @GLenum int type, @GLsizei int ustride, @GLsizei int vstride, int uorder, int vorder, boolean packed, @Check @Const @GLfloat Buffer pPoints); @StripPostfix("params") public void glMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params); @StripPostfix("params") public void glMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params); @StripPostfix("params") public void glGetMapParameterfvNV(@GLenum int target, @GLenum int pname, @Check("4") @Const FloatBuffer params); @StripPostfix("params") public void glGetMapParameterivNV(@GLenum int target, @GLenum int pname, @Check("4") @Const IntBuffer params); @StripPostfix("params") public void glGetMapAttribParameterfvNV(@GLenum int target, @GLuint int index, @GLenum int pname, @Check("4") FloatBuffer params); @StripPostfix("params") public void glGetMapAttribParameterivNV(@GLenum int target, @GLuint int index, @GLenum int pname, @Check("4") IntBuffer params); public void glEvalMapsNV(@GLenum int target, @GLenum int mode); } --- NEW FILE: NV_fog_distance.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; public interface NV_fog_distance { public static final int GL_FOG_DISTANCE_MODE_NV = 0x855A; public static final int GL_EYE_RADIAL_NV = 0x855B; public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C; } --- NEW FILE: GL15.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.opengl; import org.lwjgl.generator.*; import org.lwjgl.BufferChecks; import org.lwjgl.LWJGLException; import java.nio.*; public interface GL15 { // ---------------------------------------------------------------------- // ---------------------- ARB_vertex_buffer_object ---------------------- // ---------------------------------------------------------------------- public static final int GL_ARRAY_BUFFER = 0x8892; public static final int GL_ELEMENT_ARRAY_BUFFER = 0x8893; public static final int GL_ARRAY_BUFFER_BINDING = 0x8894; public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; public static final int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896; public static final int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897; public static final int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898; public static final int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899; public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A; public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B; public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C; public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D; public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E; public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; public static final int GL_STREAM_DRAW = 0x88E0; public static... [truncated message content] |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:05:30
|
Update of /cvsroot/java-game-lib/LWJGL/src/templates/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/templates/org/lwjgl/openal Added Files: AL10.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. --- NEW FILE: AL10.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * [...1168 lines suppressed...] * <p> * There are two API calls global to the current context that provide control of the two * related parameters. * </p> * <p> * AL_DOPPLER_VELOCITY allows the application to change the reference (propagation) * velocity used in the Doppler Effect calculation. This permits the application to use a * velocity scale appropriate to its purposes. * </p> * <p> * A negative or zero value will result in an AL_INVALID_VALUE error, the command is * then ignored. The default value is 1. The current setting can be queried using * GetFloatv and AL_DOPPLER_VELOCITY. * </p> * * @param value Doppler velocity value to set */ @ALvoid public void alDopplerVelocity(float value); } |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/src/java/org/lwjgl/generator Added Files: ALTypeMap.java ALboolean.java ALbyte.java ALenum.java ALfloat.java ALint.java ALshort.java ALsizei.java ALubyte.java ALuint.java ALvoid.java Auto.java AutoSize.java AutoType.java BufferKind.java BufferObject.java CachedResult.java Check.java Code.java Const.java Constant.java Extension.java FieldsGenerator.java GLTypeMap.java GLbitfield.java GLboolean.java GLbyte.java GLchar.java GLcharARB.java GLclampd.java GLclampf.java GLdouble.java GLenum.java GLfloat.java GLhalf.java GLhandleARB.java GLint.java GLintptr.java GLintptrARB.java GLshort.java GLsizei.java GLsizeiptr.java GLsizeiptrARB.java GLubyte.java GLuint.java GLushort.java GLvoid.java GenerateAutos.java GeneratorProcessorFactory.java GeneratorVisitor.java Indirect.java JNITypeTranslator.java JavaMethodsGenerator.java JavaTypeTranslator.java Mode.java NativeMethodStubsGenerator.java NativeType.java NativeTypeTranslator.java NoErrorCheck.java NullTerminated.java Platform.java PlatformDependent.java PostfixTranslator.java RegisterStubsGenerator.java Result.java SignatureTranslator.java Signedness.java StripPostfix.java TypeInfo.java TypeMap.java TypedefsGenerator.java Utils.java Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. --- NEW FILE: Utils.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: Utils.java,v 1.1 2005/02/15 11:05:00 elias_naur Exp $ * * Various utility methods to the generator. * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import com.sun.mirror.type.*; import java.nio.Buffer; import java.io.*; import java.util.*; import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; public class Utils { public final static String BUFFER_OBJECT_METHOD_POSTFIX = "BO"; public final static String BUFFER_OBJECT_PARAMETER_POSTFIX = "_buffer_offset"; public final static String RESULT_SIZE_NAME = "result_size"; public final static String RESULT_VAR_NAME = "__result"; public final static String CACHED_BUFFER_NAME = "old_buffer"; private final static String OVERLOADED_METHOD_PREFIX = "n"; private static class AnnotationMirrorComparator implements Comparator<AnnotationMirror> { public int compare(AnnotationMirror a1, AnnotationMirror a2) { String n1 = a1.getAnnotationType().getDeclaration().getQualifiedName(); String n2 = a2.getAnnotationType().getDeclaration().getQualifiedName(); int result = n1.compareTo(n2); return result; } public boolean equals(AnnotationMirror a1, AnnotationMirror a2) { return compare(a1, a2) == 0; } } public static Collection<AnnotationMirror> getSortedAnnotations(Collection<AnnotationMirror> annotations) { List<AnnotationMirror> annotation_list = new ArrayList<AnnotationMirror>(annotations); Collections.sort(annotation_list, new AnnotationMirrorComparator()); return annotation_list; } public static boolean isAddressableType(TypeMirror type) { return isAddressableType(getJavaType(type)); } public static boolean isAddressableType(Class type) { return Buffer.class.isAssignableFrom(type) || String.class.equals(type); } public static Class getJavaType(TypeMirror type_mirror) { JavaTypeTranslator translator = new JavaTypeTranslator(); type_mirror.accept(translator); return translator.getType(); } private static boolean hasParameterMultipleTypes(ParameterDeclaration param) { int num_native_annotations = 0; for (AnnotationMirror annotation : param.getAnnotationMirrors()) if (NativeTypeTranslator.getAnnotation(annotation, NativeType.class) != null) num_native_annotations++; return num_native_annotations > 1; } public static boolean isParameterMultiTyped(ParameterDeclaration param) { boolean result = Buffer.class.equals(Utils.getJavaType(param.getType())); if (!result && hasParameterMultipleTypes(param)) throw new RuntimeException(param + " not defined as java.nio.Buffer but has multiple types"); return result; } public static ParameterDeclaration findParameter(MethodDeclaration method, String name) { for (ParameterDeclaration param : method.getParameters()) if (param.getSimpleName().equals(name)) return param; throw new RuntimeException("Parameter " + name + " not found"); } public static void printDocComment(PrintWriter writer, Declaration decl) { String doc_comment = decl.getDocComment(); if (doc_comment != null) { writer.println("\t/**"); StringTokenizer doc_lines = new StringTokenizer(doc_comment, "\n"); while (doc_lines.hasMoreTokens()) writer.println("\t *" + doc_lines.nextToken()); writer.println("\t */"); } } public static AnnotationMirror getParameterAutoAnnotation(ParameterDeclaration param) { for (AnnotationMirror annotation : param.getAnnotationMirrors()) if (NativeTypeTranslator.getAnnotation(annotation, Auto.class) != null) return annotation; return null; } public static boolean isMethodIndirect(boolean generate_error_checks, MethodDeclaration method) { for (ParameterDeclaration param : method.getParameters()) { if (isAddressableType(param.getType()) || getParameterAutoAnnotation(param) != null || param.getAnnotation(Constant.class) != null) return true; } return hasMethodBufferObjectParameter(method) || method.getAnnotation(Code.class) != null || method.getAnnotation(CachedResult.class) != null || (generate_error_checks && method.getAnnotation(NoErrorCheck.class) == null); } public static String getNativeQualifiedName(String qualified_name) { return qualified_name.replaceAll("\\.", "_"); } public static String getQualifiedNativeMethodName(String qualified_class_name, String method_name) { return "Java_" + getNativeQualifiedName(qualified_class_name) + "_" + method_name; } public static String getQualifiedNativeMethodName(String qualified_class_name, MethodDeclaration method, boolean generate_error_checks) { String method_name = getSimpleNativeMethodName(method, generate_error_checks); return getQualifiedNativeMethodName(qualified_class_name, method_name); } public static ParameterDeclaration getResultParameter(MethodDeclaration method) { ParameterDeclaration result_param = null; for (ParameterDeclaration param : method.getParameters()) { if (param.getAnnotation(Result.class) != null) { if (result_param != null) throw new RuntimeException("Multiple parameters annotated with Result in method " + method); result_param = param; } } return result_param; } public static TypeMirror getMethodReturnType(MethodDeclaration method) { TypeMirror result_type; ParameterDeclaration result_param = getResultParameter(method); if (result_param != null) { result_type = result_param.getType(); } else result_type = method.getReturnType(); return result_type; } public static void printExtraCallArguments(PrintWriter writer, MethodDeclaration method) { writer.print(", " + RESULT_SIZE_NAME); if (method.getAnnotation(CachedResult.class) != null) { writer.print(", " + CACHED_BUFFER_NAME); } } private static String getClassName(InterfaceDeclaration interface_decl, String opengl_name) { Extension extension_annotation = interface_decl.getAnnotation(Extension.class); if (extension_annotation != null && !extension_annotation.className().equals("")) { return extension_annotation.className(); } StringBuilder result = new StringBuilder(); for (int i = 0; i < opengl_name.length(); i++) { int ch = opengl_name.codePointAt(i); if (ch == '_') { i++; result.appendCodePoint(Character.toUpperCase(opengl_name.codePointAt(i))); } else result.appendCodePoint(ch); } return result.toString(); } public static boolean hasMethodBufferObjectParameter(MethodDeclaration method) { for (ParameterDeclaration param : method.getParameters()) { if (param.getAnnotation(BufferObject.class) != null) { return true; } } return false; } public static String getQualifiedClassName(InterfaceDeclaration interface_decl) { return interface_decl.getPackage().getQualifiedName() + "." + getSimpleClassName(interface_decl); } public static String getSimpleClassName(InterfaceDeclaration interface_decl) { return getClassName(interface_decl, interface_decl.getSimpleName()); } public static Class<?> getNIOBufferType(TypeMirror t) { Class<?> param_type = getJavaType(t); if (Buffer.class.isAssignableFrom(param_type)) return param_type; else return null; } public static String getSimpleNativeMethodName(MethodDeclaration method, boolean generate_error_checks) { String method_name = method.getSimpleName(); if (isMethodIndirect(generate_error_checks, method)) method_name = OVERLOADED_METHOD_PREFIX + method_name; return method_name; } } --- NEW FILE: GLubyte.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: GLubyte.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface GLubyte { } --- NEW FILE: GLsizei.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: GLsizei.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface GLsizei { } --- NEW FILE: GLsizeiptr.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: GLsizeiptr.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface GLsizeiptr { } --- NEW FILE: GLdouble.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: GLdouble.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface GLdouble { } --- NEW FILE: GLushort.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: GLushort.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface GLushort { } --- NEW FILE: GLint.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: GLint.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface GLint { } --- NEW FILE: JavaMethodsGenerator.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: JavaMethodsGenerator.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * This class generates the methods in the generated java source files. * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; import java.io.*; import java.util.*; import java.nio.*; public class JavaMethodsGenerator { public static void generateMethodsJava(AnnotationProcessorEnvironment env, TypeMap type_map, PrintWriter writer, InterfaceDeclaration interface_decl, boolean generate_error_checks) { for (MethodDeclaration method : interface_decl.getMethods()) generateMethodJava(env, type_map, writer, interface_decl, method, generate_error_checks); } private static void generateMethodJava(AnnotationProcessorEnvironment env, TypeMap type_map, PrintWriter writer, InterfaceDeclaration interface_decl, MethodDeclaration method, boolean generate_error_checks) { writer.println(); if (Utils.isMethodIndirect(generate_error_checks, method)) { if (method.getAnnotation(GenerateAutos.class) != null) { printMethodWithMultiType(env, type_map, writer, interface_decl, method, TypeInfo.getDefaultTypeInfoMap(method), Mode.AUTOS, generate_error_checks); } Collection<Map<ParameterDeclaration, TypeInfo>> cross_product = TypeInfo.getTypeInfoCrossProduct(type_map, method); for (Map<ParameterDeclaration, TypeInfo> typeinfos_instance : cross_product) { printMethodWithMultiType(env, type_map, writer, interface_decl, method, typeinfos_instance, Mode.NORMAL, generate_error_checks); } } printJavaNativeStub(writer, method, Mode.NORMAL, generate_error_checks); if (Utils.hasMethodBufferObjectParameter(method)) { printMethodWithMultiType(env, type_map, writer, interface_decl, method, TypeInfo.getDefaultTypeInfoMap(method), Mode.BUFFEROBJECT, generate_error_checks); printJavaNativeStub(writer, method, Mode.BUFFEROBJECT, generate_error_checks); } } private static void printJavaNativeStub(PrintWriter writer, MethodDeclaration method, Mode mode, boolean generate_error_checks) { if (Utils.isMethodIndirect(generate_error_checks, method)) { writer.print("\tprivate static native "); } else { Utils.printDocComment(writer, method); writer.print("\tpublic static native "); } printResultType(writer, method); writer.print(" " + Utils.getSimpleNativeMethodName(method, generate_error_checks)); if (mode == Mode.BUFFEROBJECT) writer.print(Utils.BUFFER_OBJECT_METHOD_POSTFIX); writer.print("("); generateParametersJava(writer, method, TypeInfo.getDefaultTypeInfoMap(method), true, mode); writer.println(");"); } private static void generateParametersJava(PrintWriter writer, MethodDeclaration method, Map<ParameterDeclaration, TypeInfo> typeinfos_instance, boolean native_stub, Mode mode) { boolean first_parameter = true; for (ParameterDeclaration param : method.getParameters()) { AnnotationMirror auto_annotation_mirror = Utils.getParameterAutoAnnotation(param); boolean hide_auto_parameter = mode == Mode.NORMAL && !native_stub && auto_annotation_mirror != null; if (hide_auto_parameter) { AutoType auto_type_annotation = param.getAnnotation(AutoType.class); if (auto_type_annotation != null) { ParameterDeclaration auto_parameter = Utils.findParameter(method, auto_type_annotation.value()); TypeInfo auto_param_type_info = typeinfos_instance.get(auto_parameter); if (auto_param_type_info.getSignedness() == Signedness.BOTH) { if (!first_parameter) writer.print(", "); writer.print("boolean " + TypeInfo.UNSIGNED_PARAMETER_NAME); } } } else if (param.getAnnotation(Result.class) == null && (native_stub || param.getAnnotation(Constant.class) == null) && (getAutoTypeParameter(method, param) == null || mode != Mode.AUTOS)) { TypeInfo type_info = typeinfos_instance.get(param); first_parameter = generateParameterJava(writer, param, type_info, native_stub, first_parameter, mode); } } TypeMirror result_type = Utils.getMethodReturnType(method); if (Utils.getNIOBufferType(result_type) != null) { writer.print(", int " + Utils.RESULT_SIZE_NAME); if (method.getAnnotation(CachedResult.class) != null) { writer.print(", "); printResultType(writer, method); writer.print(" " + Utils.CACHED_BUFFER_NAME); } } } private static boolean generateParameterJava(PrintWriter writer, ParameterDeclaration param, TypeInfo type_info, boolean native_stub, boolean first_parameter, Mode mode) { Class buffer_type = Utils.getNIOBufferType(param.getType()); if (!first_parameter) writer.print(", "); BufferObject bo_annotation = param.getAnnotation(BufferObject.class); if (bo_annotation != null && mode == Mode.BUFFEROBJECT) { if (buffer_type == null) throw new RuntimeException("type of " + param + " is not a nio Buffer parameter but is annotated as buffer object"); writer.print("int " + param.getSimpleName() + Utils.BUFFER_OBJECT_PARAMETER_POSTFIX); } else { writer.print(type_info.getType().getSimpleName()); writer.print(" " + param.getSimpleName()); if (buffer_type != null && native_stub) writer.print(", int " + param.getSimpleName() + NativeMethodStubsGenerator.BUFFER_POSITION_POSTFIX); } return false; } private static void printBufferObjectCheck(PrintWriter writer, BufferKind kind, Mode mode) { String bo_check_method_name = kind.toString(); writer.print("\t\tGLBufferChecks.ensure" + bo_check_method_name); if (mode == Mode.BUFFEROBJECT) writer.print("enabled"); else writer.print("disabled"); writer.println("();"); } private static void printBufferObjectChecks(PrintWriter writer, MethodDeclaration method, Mode mode) { EnumSet<BufferKind> check_set = EnumSet.noneOf(BufferKind.class); for (ParameterDeclaration param : method.getParameters()) { BufferObject bo_annotation = param.getAnnotation(BufferObject.class); if (bo_annotation != null) check_set.add(bo_annotation.value()); } for (BufferKind kind : check_set) printBufferObjectCheck(writer, kind, mode); } private static void printMethodWithMultiType(AnnotationProcessorEnvironment env, TypeMap type_map, PrintWriter writer, InterfaceDeclaration interface_decl, MethodDeclaration method, Map<ParameterDeclaration, TypeInfo> typeinfos_instance, Mode mode, boolean generate_error_checks) { Utils.printDocComment(writer, method); writer.print("\tpublic static "); printResultType(writer, method); StripPostfix strip_annotation = method.getAnnotation(StripPostfix.class); String method_name = method.getSimpleName(); if (strip_annotation != null) { ParameterDeclaration postfix_parameter = Utils.findParameter(method, strip_annotation.value()); if (mode == Mode.NORMAL) method_name = getPostfixStrippedName(type_map, interface_decl, method); } writer.print(" " + method_name + "("); generateParametersJava(writer, method, typeinfos_instance, false, mode); TypeMirror result_type = Utils.getMethodReturnType(method); writer.println(") {"); printBufferObjectChecks(writer, method, mode); printParameterChecks(writer, method, mode); Code code_annotation = method.getAnnotation(Code.class); if (code_annotation != null) writer.println(code_annotation.value()); writer.print("\t\t"); boolean has_result = !result_type.equals(env.getTypeUtils().getVoidType()); if (has_result) { printResultType(writer, method); writer.print(" " + Utils.RESULT_VAR_NAME + " = "); } writer.print(Utils.getSimpleNativeMethodName(method, generate_error_checks)); if (mode == Mode.BUFFEROBJECT) writer.print(Utils.BUFFER_OBJECT_METHOD_POSTFIX); writer.print("("); printMethodCallArguments(writer, method, typeinfos_instance, mode); writer.println(");"); if (generate_error_checks && method.getAnnotation(NoErrorCheck.class) == null) writer.println("\t\t" + type_map.getErrorCheckMethodName() + ";"); if (has_result) writer.println("\t\treturn " + Utils.RESULT_VAR_NAME + ";"); writer.println("\t}"); } private static String getExtensionPostfix(InterfaceDeclaration interface_decl) { String interface_simple_name = interface_decl.getSimpleName(); Extension extension_annotation = interface_decl.getAnnotation(Extension.class); if (extension_annotation == null) { int underscore_index = interface_simple_name.indexOf("_"); if (underscore_index != -1) return interface_simple_name.substring(0, underscore_index); else return ""; } else return extension_annotation.postfix(); } private static ParameterDeclaration getAutoTypeParameter(MethodDeclaration method, ParameterDeclaration target_parameter) { for (ParameterDeclaration param : method.getParameters()) { AnnotationMirror auto_annotation = Utils.getParameterAutoAnnotation(param); if (auto_annotation != null) { Class annotation_type = NativeTypeTranslator.getClassFromType(auto_annotation.getAnnotationType()); String parameter_name; if (annotation_type.equals(AutoType.class)) parameter_name = param.getAnnotation(AutoType.class).value(); else if (annotation_type.equals(AutoSize.class)) parameter_name = param.getAnnotation(AutoSize.class).value(); else throw new RuntimeException("Unkown annotation type " + annotation_type); if (target_parameter.getSimpleName().equals(parameter_name)) return param; } } return null; } private static boolean hasAnyParameterAutoTypeAnnotation(MethodDeclaration method, ParameterDeclaration target_param) { for (ParameterDeclaration param : method.getParameters()) { AutoType auto_type_annotation = param.getAnnotation(AutoType.class); if (auto_type_annotation != null) { ParameterDeclaration type_target_param = Utils.findParameter(method, auto_type_annotation.value()); if (target_param.equals(type_target_param)) return true; } } return false; } private static String getPostfixStrippedName(TypeMap type_map, InterfaceDeclaration interface_decl, MethodDeclaration method) { StripPostfix strip_annotation = method.getAnnotation(StripPostfix.class); ParameterDeclaration postfix_parameter = Utils.findParameter(method, strip_annotation.value()); PostfixTranslator translator = new PostfixTranslator(type_map, postfix_parameter); postfix_parameter.getType().accept(translator); String postfix = translator.getSignature(); String method_name = method.getSimpleName(); String extension_postfix = getExtensionPostfix(interface_decl); String result; if (method_name.endsWith(postfix + "v" + extension_postfix)) result = method_name.substring(0, method_name.length() - (postfix.length() + 1 + extension_postfix.length())); else if (method_name.endsWith(postfix + extension_postfix)) result = method_name.substring(0, method_name.length() - (postfix.length() + extension_postfix.length())); else if (method_name.endsWith("v" + extension_postfix)) result = method_name.substring(0, method_name.length() - (1 + extension_postfix.length())); else throw new RuntimeException(method + " is specified as being postfix stripped on parameter " + postfix_parameter + ", but it's postfix is not '" + postfix + "' nor 'v'"); return result + extension_postfix; } private static int getBufferElementSizeExponent(Class c) { if (IntBuffer.class.equals(c)) return 2; else if (LongBuffer.class.equals(c)) return 3; else if (DoubleBuffer.class.equals(c)) return 3; else if (ShortBuffer.class.equals(c)) return 1; else if (ByteBuffer.class.equals(c)) return 0; else if (FloatBuffer.class.equals(c)) return 2; else throw new RuntimeException(c + " is not allowed"); } private static boolean printMethodCallArgument(PrintWriter writer, MethodDeclaration method, ParameterDeclaration param, Map<ParameterDeclaration, TypeInfo> typeinfos_instance, Mode mode, boolean first_parameter) { if (!first_parameter) writer.print(", "); AnnotationMirror auto_annotation = Utils.getParameterAutoAnnotation(param); Constant constant_annotation = param.getAnnotation(Constant.class); if (constant_annotation != null) { writer.print(constant_annotation.value()); } else if (auto_annotation != null && mode == Mode.NORMAL) { Class param_type = NativeTypeTranslator.getClassFromType(auto_annotation.getAnnotationType()); if (AutoType.class.equals(param_type)) { AutoType auto_type_annotation = param.getAnnotation(AutoType.class); String auto_parameter_name = auto_type_annotation.value(); ParameterDeclaration auto_parameter = Utils.findParameter(method, auto_parameter_name); String auto_type = typeinfos_instance.get(auto_parameter).getAutoType(); if (auto_type == null) throw new RuntimeException("No auto type for parameter " + param.getSimpleName() + " in method " + method); writer.print(auto_type); } else if (AutoSize.class.equals(param_type)) { AutoSize auto_type_annotation = param.getAnnotation(AutoSize.class); String auto_parameter_name = auto_type_annotation.value(); ParameterDeclaration auto_target_param = Utils.findParameter(method, auto_parameter_name); TypeInfo auto_target_type_info = typeinfos_instance.get(auto_target_param); writer.print("(" + auto_parameter_name + ".remaining()"); // Shift the remaining if the target parameter is multityped and there's no AutoType to track type boolean shift_remaining = !hasAnyParameterAutoTypeAnnotation(method, auto_target_param) && Utils.isParameterMultiTyped(auto_target_param); if (shift_remaining) { int shifting = getBufferElementSizeExponent(auto_target_type_info.getType()); if (shifting > 0) writer.print(" << " + shifting); } writer.print(")"); writer.print(auto_type_annotation.expression()); } else throw new RuntimeException("Unknown auto annotation " + param_type); } else { if (mode == Mode.BUFFEROBJECT && param.getAnnotation(BufferObject.class) != null) { writer.print(param.getSimpleName() + Utils.BUFFER_OBJECT_PARAMETER_POSTFIX); } else { boolean hide_buffer = mode == Mode.AUTOS && getAutoTypeParameter(method, param) != null; if (hide_buffer) writer.print("null"); else writer.print(param.getSimpleName()); Class buffer_type = Utils.getNIOBufferType(param.getType()); if (buffer_type != null) { writer.print(", "); if (!hide_buffer) { TypeInfo type_info = typeinfos_instance.get(param); Check check_annotation = param.getAnnotation(Check.class); int shifting; if (Utils.getNIOBufferType(param.getType()).equals(Buffer.class)) shifting = getBufferElementSizeExponent(type_info.getType()); else shifting = 0; writer.print(param.getSimpleName()); if (check_annotation != null && check_annotation.canBeNull()) writer.print(" != null ? " + param.getSimpleName()); writer.print(".position()"); if (shifting > 0) writer.print(" << " + shifting); if (check_annotation != null && check_annotation.canBeNull()) writer.print(" : 0"); } else writer.print("0"); } } } return false; } private static void printMethodCallArguments(PrintWriter writer, MethodDeclaration method, Map<ParameterDeclaration, TypeInfo> typeinfos_instance, Mode mode) { Collection<ParameterDeclaration> params = method.getParameters(); boolean first_parameter = true; for (ParameterDeclaration param : method.getParameters()) if (param.getAnnotation(Result.class) == null) { first_parameter = printMethodCallArgument(writer, method, param, typeinfos_instance, mode, first_parameter); } TypeMirror result_type = Utils.getMethodReturnType(method); if (Utils.getNIOBufferType(result_type) != null) { Utils.printExtraCallArguments(writer, method); } } private static void printParameterChecks(PrintWriter writer, MethodDeclaration method, Mode mode) { for (ParameterDeclaration param : method.getParameters()) { Class java_type = Utils.getJavaType(param.getType()); if (Utils.isAddressableType(java_type) && (mode != Mode.BUFFEROBJECT || param.getAnnotation(BufferObject.class) == null) && (mode != Mode.AUTOS || getAutoTypeParameter(method, param) == null) && param.getAnnotation(Result.class) == null) { String check_value = null; boolean can_be_null = false; Check check_annotation = param.getAnnotation(Check.class); if (check_annotation != null) { check_value = check_annotation.value(); can_be_null = check_annotation.canBeNull(); } boolean null_terminated = param.getAnnotation(NullTerminated.class) != null; if (Buffer.class.isAssignableFrom(java_type)) { printParameterCheck(writer, param.getSimpleName(), check_value, can_be_null, null_terminated); } else if (String.class.equals(java_type)) { if (!can_be_null) writer.println("\t\tBufferChecks.checkNotNull(" + param.getSimpleName() + ");"); } } } if (method.getAnnotation(CachedResult.class) != null) printParameterCheck(writer, Utils.CACHED_BUFFER_NAME, null, true, false); } private static void printParameterCheck(PrintWriter writer, String name, String check_value, boolean can_be_null, boolean null_terminated) { if (can_be_null) { writer.println("\t\tif (" + name + " != null)"); writer.print("\t"); } writer.print("\t\tBufferChecks.check"); if (check_value != null && !check_value.equals("")) { writer.print("Buffer(" + name + ", " + check_value); } else { writer.print("Direct"); writer.print("(" + name); } writer.println(");"); if (null_terminated) writer.println("\t\tBufferChecks.checkNullTerminated(" + name + ");"); } private static void printResultType(PrintWriter writer, MethodDeclaration method) { writer.print(Utils.getMethodReturnType(method).toString()); } } --- NEW FILE: GeneratorProcessorFactory.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; import java.util.Collection; import java.util.Set; import java.util.Iterator; import java.util.Map; import java.util.Arrays; import java.io.PrintWriter; import java.io.IOException; import java.io.File; import static java.util.Collections.*; import static com.sun.mirror.util.DeclarationVisitors.*; /** * $Id: GeneratorProcessorFactory.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * Generator tool for creating the java classes and native code * from an annotated template java interface. * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ public class GeneratorProcessorFactory implements AnnotationProcessorFactory, RoundCompleteListener { private static boolean first_round = true; // Process any set of annotations private static final Collection<String> supportedAnnotations = unmodifiableCollection(Arrays.asList("*")); // No supported options private static final Collection<String> supportedOptions = unmodifiableCollection(Arrays.asList("-Anativeoutdir")); public Collection<String> supportedAnnotationTypes() { return supportedAnnotations; } public Collection<String> supportedOptions() { return supportedOptions; } public void roundComplete(RoundCompleteEvent event) { first_round = false; } public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, AnnotationProcessorEnvironment env) { // Only process the initial types, not the generated ones if (first_round) { env.addListener(this); return new GeneratorProcessor(env); } return AnnotationProcessors.NO_OP; } private static class GeneratorProcessor implements AnnotationProcessor { private final AnnotationProcessorEnvironment env; GeneratorProcessor(AnnotationProcessorEnvironment env) { this.env = env; } public void process() { Map<String, String> options = env.getOptions(); String typemap_classname = null; boolean generate_error_checks = false; for (String k : options.keySet()) { int delimiter = k.indexOf('='); if (delimiter != -1) { if (k.startsWith("-Atypemap")) { typemap_classname = k.substring(delimiter + 1); } } else if (k.equals("-Ageneratechecks")) { generate_error_checks = true; } } if (typemap_classname == null) throw new RuntimeException("No TypeMap class name specified with -Atypemap=<class-name>"); try { TypeMap type_map = (TypeMap)(Class.forName(typemap_classname).newInstance()); for (TypeDeclaration typedecl : env.getSpecifiedTypeDeclarations()) { typedecl.accept(getDeclarationScanner(new GeneratorVisitor(env, type_map, generate_error_checks), NO_OP)); } } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } } } --- NEW FILE: StripPostfix.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: StripPostfix.java,v 1.1 2005/02/15 11:05:00 elias_naur Exp $ * * This annotation implies that a method have its postfix stripped * according to a specified Buffer parameter. * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; @Target(ElementType.METHOD) public @interface StripPostfix { String value(); // The parameter to deduce the postfix from } --- NEW FILE: Constant.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: Constant.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; @Target(ElementType.PARAMETER) public @interface Constant { String value(); } --- NEW FILE: ALboolean.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; /** * $Id: ALboolean.java,v 1.1 2005/02/15 11:04:58 elias_naur Exp $ * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import com.sun.mirror.type.PrimitiveType; @NativeType @Target({ElementType.PARAMETER, ElementType.METHOD}) public @interface ALboolean { } --- NEW FILE: GeneratorVisitor.java --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * 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 'LWJGL' 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. */ package org.lwjgl.generator; import com.sun.mirror.apt.*; import com.sun.mirror.declaration.*; import com.sun.mirror.type.*; import com.sun.mirror.util.*; import java.util.*; import java.io.PrintWriter; import java.io.IOException; import java.io.File; import java.nio.*; import java.lang.annotation.Annotation; /** * $Id: GeneratorVisitor.java,v 1.1 2005/02/15 11:04:59 elias_naur Exp $ * * Generator visitor for the generator tool * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ public class GeneratorVisitor extends SimpleDeclarationVisitor { private final static String STUB_INITIALIZER_NAME = "initNativeStubs"; private final AnnotationProcessorEnvironment env; private final TypeMap type_map; private final boolean generate_error_checks; public GeneratorVisitor(AnnotationProcessorEnvironment env, TypeMap type_map, boolean generate_error_checks) { this.env = env; this.type_map = type_map; this.generate_error_checks = generate_error_checks; } private void validateMethods(InterfaceDeclaration d) { for (MethodDeclaration method : d.getMethods()) validateMethod(method); } private void validateMethod(MethodDeclaration method) { if (method.isVarArgs()) throw new RuntimeException("Method " + method.getSimpleName() + " is variadic"); Collection<Modifier> modifiers = method.getModifiers(); if (!modifiers.contains(Modifier.PUBLIC)) throw new RuntimeException("Method " + method.getSimpleName() + " is not public"); if (method.getThrownTypes().size() > 0) throw new RuntimeException("Method " + method.getSimpleName() + " throws checked exceptions"); validateParameters(method); StripPostfix strip_annotation = method.getAnnotation(StripPostfix.class); if (strip_annotation != null) { String postfix_param_name = strip_annotation.value(); ParameterDeclaration postfix_param = Utils.findParameter(method, postfix_param_name); if (Utils.isParameterMultiTyped(postfix_param)) throw new RuntimeException("Postfix parameter can't be the same as a multityped parameter in method " + method); if (Utils.getNIOBufferType(postfix_param.getType()) == null) throw new RuntimeException("Postfix parameter type must be a nio Buffer"); } if (Utils.getResultParameter(method) != null && !method.getReturnType().equals(env.getTypeUtils().getVoidType())) throw new RuntimeException(method + " return type is not void but a parameter is annotated with Result"); if (method.getAnnotation(CachedResult.class) != null && Utils.getNIOBufferType(Utils.getMethodReturnType(method)) == null) throw new RuntimeException(method + " return type is not a Buffer, but is annotated with CachedResult"); validateTypes(method, method.getAnnotationMirrors(), method.getReturnType()); } private void validateType(MethodDeclaration method, Class annotation_type, Class type) { Class[] valid_types = type_map.getValidAnnotationTypes(type); for (int i = 0; i < valid_types.length; i++) if (valid_types[i].equals(annotation_type)) return; throw new RuntimeException(type + " is annotated with invalid native type " + annotation_type + " in method " + method); } private void validateTypes(MethodDeclaration method, Collection<AnnotationMirror> annotations, TypeMirror type_mirror) { for (AnnotationMirror annotation : annotations) { NativeType native_type_annotation = NativeTypeTranslator.getAnnotation(annotation, NativeType.class); if (native_type_annotation != null) { Class annotation_type = NativeTypeTranslator.getClassFromType(annotation.getAnnotationType()); Class type = Utils.getJavaType(type_mirror); if (Buffer.class.equals(type)) continue; validateType(method, annotation_type, type); } } } private void validateParameters(MethodDeclaration method) { for (ParameterDeclaration param : method.getParameters()) { validateTypes(method, param.getAnnotationMirrors(), param.getType()); if (Utils.getNIOBufferType(param.getType()) != null) { Check parameter_check_annotation = param.getAnnotation(Check.class); NullTerminated null_terminated_annotation = param.getAnnotation(NullTerminated.class); if (parameter_check_annotation == null && null_terminated_annotation == null) { boolean found_auto_size_param = false; for (ParameterDeclaration inner_param : method.getParameters()) { AutoSize auto_size_annotation = inner_param.getAnnotation(AutoSize.class); if (auto_size_annotation != null && auto_size_annotation.value().equals(param.getSimpleName())) { found_auto_size_param = true; break; } } if (!found_auto_size_param && param.getAnnotation(Result.class) == null) throw new RuntimeException(param + " has no Check, Result nor Constant annotation and no other parameters has" + " an @AutoSize annotation on it in method " + method); } if (param.getAnnotation(BufferObject.class) != null && param.getAnnotation(Result.class) != null) throw new RuntimeException(param + " can't be annotated with both BufferObject and Result"); if (param.getAnnotation(Constant.class) != null) throw new RuntimeException("Buffer parameter " + param + " cannot be Constant"); } else { if (param.getAnnotation(BufferObject.class) != null) throw new RuntimeException(param + " type is not a buffer, but annotated as a BufferObject"); } } } private void generateMethodsNativePointers(PrintWriter writer, Collection<? extends MethodDeclaration> methods) { for (MethodDeclaration method : methods) generateMethodNativePointers(writer, method); } private static void generateMethodNativePointers(PrintWriter writer, MethodDeclaration method) { writer.println("static " + method.getSimpleName() + TypedefsGenerator.TYPEDEF_POSTFIX + " " + method.getSimpleName() + ";"); } private void generateJavaSource(InterfaceDeclaration d) throws IOException { validateMethods(d); PrintWriter java_writer = env.getFiler().createSourceFile(Ut... [truncated message content] |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:05:12
|
Update of /cvsroot/java-game-lib/LWJGL/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv473/doc Added Files: generator.txt Log Message: The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. --- NEW FILE: generator.txt --- The binding generator -------------------------------------------------------------------- OpenGL and OpenAL binding methods are now generated by the generator tool located in org.lwjgl.generator.*. This includes the OpenGL java source files in org.lwjgl.opengl.* and the OpenAL source files in org.lwjgl.openal.*. The generator itself is based on the Annotation Processing Tool, 'apt', bundled with the 1.5 JDK. The initial implementation is designed to completely replace the manually generated java and native source, but not introduce any new functionality. The user-visible bindings API will not change. Later, having the source generated will make it much easier to implement additional binding features. Examples include: 1. Support for multiple contexts and consequently multiple function pointer sets. This feature along with support for an AWT compatible OpenGL Canvas is my primary motivation for the generator. 2. Support for java native arrays. 3. More extensive debugging and checking. 4. Changes in the naming convention (e.g., removing the 'gl' prefix). Note that all additional features can be enabled/disabled at build time, according the performance and conformance requirements. You're invited to browse the generator source, the templates and the generated source to get a feel of how the generator works. Requirements ------------ The generator needs a JDK 1.5, since template files depend on annotations and the generator itself works as an annotation processor in the APT framework. Since we support Mac OS X which does not include java 1.5 yet, the generated files are still in CVS and the generator is not invoked in a default build. How to use it ------------- The generator is invoked from ant with 'ant generate-openal', 'ant generate-opengl' or simply 'ant generate-all'. How it works ------------ The generator reads template files from src/templates. Template files are regular java interfaces containing zero or more constant fields and zero or more annotated methods. Each interface will generate a java source file in src/java and, if needed, a native source file in src/native/common. Template file format -------------------- A template file is a regular java interface with annotations describing the information that cannot be represented in a regular java source file. An example template file is listed here: package org.lwjgl.opengl; import org.lwjgl.generator.*; public interface EXT_blend_equation_separate { /* * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, * GetFloatv, and GetDoublev: */ public static final int GL_BLEND_EQUATION_RGB_EXT = 0x8009; public static final int GL_BLEND_EQUATION_ALPHA_EXT = 0x883D; public void glBlendEquationSeparateEXT(@GLenum int modeRGB, @GLenum int modeAlpha); } The template file is named after the extension name or GL*/AL*, and there is exactly one method for each function symbol in the extension. The method name will be used to look up the symbol in the driver, so make sure it is correct. Apart from the naming convention of the interface, the most notable annotation group is the native types. As can be seen from the example, the modeRGB and modeAlpha parameters is annotated with @GLenum to tell the generator which native type the parameter has. If the native type is not specified the native type is defaulted to the corresponding native type. For example, the corresponding native type for 'int' is GLint when generating OpenGL source and ALint when generating OpenAL source. Another important feature is the multityped methods. An example: public void glVertexPointer(int size, @AutoType("pointer") @GLenum int type, @GLsizei int stride, @BufferObject(BufferKind.ArrayVBO) @Check @Const @GLint @GLfloat Buffer pointer); Note that the parameter 'pointer' is annotated with multiple native types and is a java.nio.Buffer. This tells generator to generate multiple versions of glVertexPointer, one for each native type. Additionally, the @AutoType annotation tells the generator to automatically generate a type from the Buffer type. The generated source looks like this: public static void glVertexPointer(int size, int stride, IntBuffer pointer) { GLBufferChecks.ensureArrayVBOdisabled(); BufferChecks.checkDirect(pointer); nglVertexPointer(size, GL11.GL_INT, stride, pointer, pointer.position() << 2); } public static void glVertexPointer(int size, int stride, FloatBuffer pointer) { GLBufferChecks.ensureArrayVBOdisabled(); BufferChecks.checkDirect(pointer); nglVertexPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2); } private static native void nglVertexPointer(int size, int type, int stride, Buffer pointer, int pointer_position); Notice how the type parameter is not included in the public method and that its value is pre-computed by the generator. @AutoSize specifies that the remaining() of a Buffer argument should be inserted (In this case, a @Check is not necessary). A more complex case is when both the signed and unsigned native type mapping to one java type is specified. In that case the generator creates an 'unsigned' boolean parameter that selects the desired type. See GL11.glColorPointer for an example of this. The @BufferObject annotation is used to specify VBO or PBO support. It tells the generator that the parameter can take an integer offset and a separate buffer object method version should be created. The generated code looks like this: public static void glVertexPointer(int size, int type, int stride, int pointer_buffer_offset) { GLBufferChecks.ensureArrayVBOenabled(); nglVertexPointerBO(size, type, stride, pointer_buffer_offset); } private static native void nglVertexPointerBO(int size, int type, int stride, int pointer_buffer_offset); The @Check annotation specify how a buffer argument is to be checked. @Check with no value implies a simple BufferChecks.checkDirect() check, while a non-empty value indicates a BufferChecks.checkBuffer() check. Additionally, canBeNull can be specified to allow null arguments. The default value for canBeNull is false. The @StripPostfix annotation is specified to strip the method of its postfix, according the a specified parameter type. For example, @StripPostfix("values") public void glGetPixelMapfv(@GLenum int map, @Check("256") @BufferObject(BufferKind.PackPBO) FloatBuffer values); Becomes: public static void glGetPixelMap(int map, FloatBuffer values) { GLBufferChecks.ensurePackPBOdisabled(); BufferChecks.checkBuffer(values, 256); nglGetPixelMapfv(map, values, values.position()); } private static native void nglGetPixelMapfv(int map, FloatBuffer values, int values_position); public static void glGetPixelMapfv(int map, int values_buffer_offset) { GLBufferChecks.ensurePackPBOenabled(); nglGetPixelMapfvBO(map, values_buffer_offset); } private static native void nglGetPixelMapfvBO(int map, int values_buffer_offset); - elias |
|
From: Elias N. <eli...@us...> - 2005-02-15 11:03:12
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32662/src/java/org/lwjgl/generator Log Message: Directory /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/generator added to the repository |