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
|
3
|
4
|
|
5
|
6
|
7
(1) |
8
|
9
(7) |
10
(4) |
11
|
|
12
|
13
(1) |
14
(3) |
15
(1) |
16
(1) |
17
(2) |
18
(7) |
|
19
(14) |
20
(6) |
21
|
22
|
23
|
24
(7) |
25
(1) |
|
26
|
27
(3) |
28
|
29
|
30
|
|
|
|
From: <eli...@us...> - 2006-11-19 23:02:27
|
Revision: 2669
http://svn.sourceforge.net/java-game-lib/?rev=2669&view=rev
Author: elias_naur
Date: 2006-11-19 15:02:25 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Windows: Make sure AWTInputAdapter is not reporting events twice after a grab change
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2006-11-19 22:06:46 UTC (rev 2668)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2006-11-19 23:02:25 UTC (rev 2669)
@@ -59,10 +59,14 @@
this.robot = AWTUtil.createRobot(canvas);
}
- protected synchronized MouseEventQueue getMouseEventQueue() {
+ protected MouseEventQueue getMouseEventQueue() {
return mouse_queue;
}
+ protected KeyboardEventQueue getKeyboardEventQueue() {
+ return keyboard_queue;
+ }
+
public synchronized void grabMouse(boolean grab) {
this.grab = grab;
if (mouse_queue != null)
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2006-11-19 22:06:46 UTC (rev 2668)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2006-11-19 23:02:25 UTC (rev 2669)
@@ -115,9 +115,15 @@
private void grab(boolean grab) {
if (has_grabbed != grab) {
cached_mouse.grab(grab);
+ cached_keyboard.grab(grab);
has_grabbed = grab;
- if (!grab)
+ cached_mouse.flush();
+ cached_keyboard.flush();
+ getMouseEventQueue().clearEvents();
+ getKeyboardEventQueue().clearEvents();
+ if (!grab) {
getCanvas().setCursor(cached_cursor);
+ }
}
}
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java 2006-11-19 22:06:46 UTC (rev 2668)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java 2006-11-19 23:02:25 UTC (rev 2669)
@@ -47,6 +47,7 @@
final class WindowsKeyboard {
private final static int BUFFER_SIZE = 50;
+ private final long hwnd;
private final WindowsDirectInput dinput;
private final WindowsDirectInputDevice keyboard;
private final IntBuffer temp_data_buffer;
@@ -55,14 +56,17 @@
private final CharBuffer unicode_buffer;
private final ByteBuffer ascii_buffer;
+ private boolean grabbed;
+
public WindowsKeyboard(WindowsDirectInput dinput, long hwnd) throws LWJGLException {
+ this.hwnd = hwnd;
this.dinput = dinput;
try {
keyboard = dinput.createDevice(WindowsDirectInput.KEYBOARD_TYPE);
try {
- keyboard.setCooperateLevel(hwnd, WindowsDirectInputDevice.DISCL_NONEXCLUSIVE | WindowsDirectInputDevice.DISCL_FOREGROUND);
keyboard.setDataFormat(WindowsDirectInput.KEYBOARD_TYPE);
keyboard.setBufferSize(BUFFER_SIZE);
+ acquireNonExclusive();
} catch (LWJGLException e) {
keyboard.release();
throw e;
@@ -84,15 +88,48 @@
ascii_buffer = BufferUtils.createByteBuffer(2);
}
}
-
private static native boolean isWindowsNT();
+ private boolean acquire(int flags) {
+ try {
+ keyboard.setCooperateLevel(hwnd, flags);
+ keyboard.acquire();
+ return true;
+ } catch (LWJGLException e) {
+ LWJGLUtil.log("Failed to acquire keyboard: " + e);
+ return false;
+ }
+ }
+
+ private boolean acquireNonExclusive() {
+ return acquire(WindowsDirectInputDevice.DISCL_NONEXCLUSIVE | WindowsDirectInputDevice.DISCL_FOREGROUND) ||
+ acquire(WindowsDirectInputDevice.DISCL_NONEXCLUSIVE | WindowsDirectInputDevice.DISCL_BACKGROUND);
+ }
+
public void destroy() {
keyboard.unacquire();
keyboard.release();
dinput.release();
}
+ public void grab(boolean grab) {
+ if(grab) {
+ if (!grabbed) {
+ flush();
+ grabbed = true;
+ keyboard.unacquire();
+ if (!acquire(WindowsDirectInputDevice.DISCL_EXCLUSIVE | WindowsDirectInputDevice.DISCL_FOREGROUND))
+ LWJGLUtil.log("Failed to reset cooperative mode");
+ }
+ } else {
+ if (grabbed) {
+ grabbed = false;
+ keyboard.unacquire();
+ acquireNonExclusive();
+ }
+ }
+ }
+
public void poll(ByteBuffer keyDownBuffer) {
int ret = keyboard.acquire();
if (ret != WindowsDirectInput.DI_OK && ret != WindowsDirectInput.DI_NOEFFECT)
@@ -181,7 +218,12 @@
private static native int ToAscii(int wVirtKey, int wScanCode, ByteBuffer lpKeyState, ByteBuffer lpChar, int flags);
private static native int GetKeyboardState(ByteBuffer lpKeyState);
- public void read(ByteBuffer buffer) {
+ public void flush() {
+ processEvents();
+ temp_data_buffer.clear();
+ }
+
+ private void processEvents() {
int ret = keyboard.acquire();
if (ret != WindowsDirectInput.DI_OK && ret != WindowsDirectInput.DI_NOEFFECT)
return;
@@ -202,6 +244,10 @@
LWJGLUtil.log("Failed to read keyboard (0x" + Integer.toHexString(ret) + ")");
break;
}
+ }
+
+ public void read(ByteBuffer buffer) {
+ processEvents();
temp_data_buffer.flip();
translateData(temp_data_buffer, buffer);
}
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java 2006-11-19 22:06:46 UTC (rev 2668)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java 2006-11-19 23:02:25 UTC (rev 2669)
@@ -246,32 +246,42 @@
temp_data_buffer.clear();
ret = mouse.getDeviceData(temp_data_buffer);
- if (ret == WindowsDirectInput.DI_OK) {
- if (mouse_grabbed) {
- temp_data_buffer.flip();
- copyDXEvents(temp_data_buffer);
- }
- } else if (ret == WindowsDirectInput.DI_BUFFEROVERFLOW) {
- LWJGLUtil.log("Mouse buffer overflowed");
- } else if (ret == WindowsDirectInput.DIERR_INPUTLOST) {
- LWJGLUtil.log("Mouse input lost");
- } else if (ret == WindowsDirectInput.DIERR_NOTACQUIRED) {
- LWJGLUtil.log("Mouse not acquired");
- } else {
- LWJGLUtil.log("unknown mouse error (" + Integer.toHexString(ret) + ")");
+ switch (ret) {
+ case WindowsDirectInput.DI_OK:
+ break;
+ case WindowsDirectInput.DI_BUFFEROVERFLOW:
+ LWJGLUtil.log("Mouse buffer overflowed");
+ break;
+ case WindowsDirectInput.DIERR_INPUTLOST:
+ LWJGLUtil.log("Mouse input lost");
+ break;
+ case WindowsDirectInput.DIERR_NOTACQUIRED:
+ LWJGLUtil.log("Mouse not acquired");
+ break;
+ default:
+ LWJGLUtil.log("unknown mouse error (" + Integer.toHexString(ret) + ")");
+ break;
}
}
+ public final void flush() {
+ readDXBuffer();
+ temp_data_buffer.clear();
+ }
+
public void read(ByteBuffer buffer) {
readDXBuffer();
+ if (mouse_grabbed) {
+ temp_data_buffer.flip();
+ copyDXEvents(temp_data_buffer);
+ }
event_queue.copyEvents(buffer);
}
public void grab(boolean grab) {
if(grab) {
if (!mouse_grabbed) {
- // flush DX event buffer
- readDXBuffer();
+ flush();
mouse_grabbed = true;
mouse.unacquire();
if (!acquire(WindowsDirectInputDevice.DISCL_EXCLUSIVE | WindowsDirectInputDevice.DISCL_FOREGROUND))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 22:06:48
|
Revision: 2668
http://svn.sourceforge.net/java-game-lib/?rev=2668&view=rev
Author: elias_naur
Date: 2006-11-19 14:06:46 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Autogen changes from previous commit
Modified Paths:
--------------
trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java
Added Paths:
-----------
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeedback.java
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeedback.c
Removed Paths:
-------------
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeeback.java
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java 2006-11-19 22:01:56 UTC (rev 2667)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java 2006-11-19 22:06:46 UTC (rev 2668)
@@ -160,7 +160,7 @@
public final boolean GL_NV_texture_shader;
public final boolean GL_NV_texture_shader2;
public final boolean GL_NV_texture_shader3;
- public final boolean GL_NV_transform_feeback;
+ public final boolean GL_NV_transform_feedback;
public final boolean GL_NV_vertex_array_range;
public final boolean GL_NV_vertex_array_range2;
public final boolean GL_NV_vertex_program;
@@ -1073,17 +1073,17 @@
long NV_register_combiners_glGetFinalCombinerInputParameterivNV_pointer;
long NV_register_combiners2_glCombinerStageParameterfvNV_pointer;
long NV_register_combiners2_glGetCombinerStageParameterfvNV_pointer;
- long NV_transform_feeback_glBindBufferRangeNV_pointer;
- long NV_transform_feeback_glBindBufferOffsetNV_pointer;
- long NV_transform_feeback_glBindBufferBaseNV_pointer;
- long NV_transform_feeback_glTransformFeedbackAttribsNV_pointer;
- long NV_transform_feeback_glTransformFeedbackVaryingsNV_pointer;
- long NV_transform_feeback_glBeginTransformFeedbackNV_pointer;
- long NV_transform_feeback_glEndTransformFeedbackNV_pointer;
- long NV_transform_feeback_glGetVaryingLocationNV_pointer;
- long NV_transform_feeback_glGetActiveVaryingNV_pointer;
- long NV_transform_feeback_glActiveVaryingNV_pointer;
- long NV_transform_feeback_glGetTransformFeedbackVaryingNV_pointer;
+ long NV_transform_feedback_glBindBufferRangeNV_pointer;
+ long NV_transform_feedback_glBindBufferOffsetNV_pointer;
+ long NV_transform_feedback_glBindBufferBaseNV_pointer;
+ long NV_transform_feedback_glTransformFeedbackAttribsNV_pointer;
+ long NV_transform_feedback_glTransformFeedbackVaryingsNV_pointer;
+ long NV_transform_feedback_glBeginTransformFeedbackNV_pointer;
+ long NV_transform_feedback_glEndTransformFeedbackNV_pointer;
+ long NV_transform_feedback_glGetVaryingLocationNV_pointer;
+ long NV_transform_feedback_glGetActiveVaryingNV_pointer;
+ long NV_transform_feedback_glActiveVaryingNV_pointer;
+ long NV_transform_feedback_glGetTransformFeedbackVaryingNV_pointer;
long NV_vertex_array_range_glVertexArrayRangeNV_pointer;
long NV_vertex_array_range_glFlushVertexArrayRangeNV_pointer;
long NV_vertex_array_range_glAllocateMemoryNV_pointer;
@@ -2344,19 +2344,19 @@
(NV_register_combiners2_glGetCombinerStageParameterfvNV_pointer = GLContext.getFunctionAddress("glGetCombinerStageParameterfvNV")) != 0;
}
- private boolean NV_transform_feeback_initNativeFunctionAddresses() {
+ private boolean NV_transform_feedback_initNativeFunctionAddresses() {
return
- (NV_transform_feeback_glBindBufferRangeNV_pointer = GLContext.getFunctionAddress("glBindBufferRangeNV")) != 0 &&
- (NV_transform_feeback_glBindBufferOffsetNV_pointer = GLContext.getFunctionAddress("glBindBufferOffsetNV")) != 0 &&
- (NV_transform_feeback_glBindBufferBaseNV_pointer = GLContext.getFunctionAddress("glBindBufferBaseNV")) != 0 &&
- (NV_transform_feeback_glTransformFeedbackAttribsNV_pointer = GLContext.getFunctionAddress("glTransformFeedbackAttribsNV")) != 0 &&
- (NV_transform_feeback_glTransformFeedbackVaryingsNV_pointer = GLContext.getFunctionAddress("glTransformFeedbackVaryingsNV")) != 0 &&
- (NV_transform_feeback_glBeginTransformFeedbackNV_pointer = GLContext.getFunctionAddress("glBeginTransformFeedbackNV")) != 0 &&
- (NV_transform_feeback_glEndTransformFeedbackNV_pointer = GLContext.getFunctionAddress("glEndTransformFeedbackNV")) != 0 &&
- (NV_transform_feeback_glGetVaryingLocationNV_pointer = GLContext.getFunctionAddress("glGetVaryingLocationNV")) != 0 &&
- (NV_transform_feeback_glGetActiveVaryingNV_pointer = GLContext.getFunctionAddress("glGetActiveVaryingNV")) != 0 &&
- (NV_transform_feeback_glActiveVaryingNV_pointer = GLContext.getFunctionAddress("glActiveVaryingNV")) != 0 &&
- (NV_transform_feeback_glGetTransformFeedbackVaryingNV_pointer = GLContext.getFunctionAddress("glGetTransformFeedbackVaryingNV")) != 0;
+ (NV_transform_feedback_glBindBufferRangeNV_pointer = GLContext.getFunctionAddress("glBindBufferRangeNV")) != 0 &&
+ (NV_transform_feedback_glBindBufferOffsetNV_pointer = GLContext.getFunctionAddress("glBindBufferOffsetNV")) != 0 &&
+ (NV_transform_feedback_glBindBufferBaseNV_pointer = GLContext.getFunctionAddress("glBindBufferBaseNV")) != 0 &&
+ (NV_transform_feedback_glTransformFeedbackAttribsNV_pointer = GLContext.getFunctionAddress("glTransformFeedbackAttribsNV")) != 0 &&
+ (NV_transform_feedback_glTransformFeedbackVaryingsNV_pointer = GLContext.getFunctionAddress("glTransformFeedbackVaryingsNV")) != 0 &&
+ (NV_transform_feedback_glBeginTransformFeedbackNV_pointer = GLContext.getFunctionAddress("glBeginTransformFeedbackNV")) != 0 &&
+ (NV_transform_feedback_glEndTransformFeedbackNV_pointer = GLContext.getFunctionAddress("glEndTransformFeedbackNV")) != 0 &&
+ (NV_transform_feedback_glGetVaryingLocationNV_pointer = GLContext.getFunctionAddress("glGetVaryingLocationNV")) != 0 &&
+ (NV_transform_feedback_glGetActiveVaryingNV_pointer = GLContext.getFunctionAddress("glGetActiveVaryingNV")) != 0 &&
+ (NV_transform_feedback_glActiveVaryingNV_pointer = GLContext.getFunctionAddress("glActiveVaryingNV")) != 0 &&
+ (NV_transform_feedback_glGetTransformFeedbackVaryingNV_pointer = GLContext.getFunctionAddress("glGetTransformFeedbackVaryingNV")) != 0;
}
private boolean NV_vertex_array_range_initNativeFunctionAddresses() {
@@ -2586,8 +2586,8 @@
supported_extensions.remove("GL_NV_register_combiners");
if (supported_extensions.contains("GL_NV_register_combiners2") && !NV_register_combiners2_initNativeFunctionAddresses())
supported_extensions.remove("GL_NV_register_combiners2");
- if (supported_extensions.contains("GL_NV_transform_feeback") && !NV_transform_feeback_initNativeFunctionAddresses())
- supported_extensions.remove("GL_NV_transform_feeback");
+ if (supported_extensions.contains("GL_NV_transform_feedback") && !NV_transform_feedback_initNativeFunctionAddresses())
+ supported_extensions.remove("GL_NV_transform_feedback");
if (supported_extensions.contains("GL_NV_vertex_array_range") && !NV_vertex_array_range_initNativeFunctionAddresses())
supported_extensions.remove("GL_NV_vertex_array_range");
if (supported_extensions.contains("GL_NV_vertex_program") && !NV_vertex_program_initNativeFunctionAddresses())
@@ -2756,7 +2756,7 @@
this.GL_NV_texture_shader = supported_extensions.contains("GL_NV_texture_shader");
this.GL_NV_texture_shader2 = supported_extensions.contains("GL_NV_texture_shader2");
this.GL_NV_texture_shader3 = supported_extensions.contains("GL_NV_texture_shader3");
- this.GL_NV_transform_feeback = supported_extensions.contains("GL_NV_transform_feeback");
+ this.GL_NV_transform_feedback = supported_extensions.contains("GL_NV_transform_feedback");
this.GL_NV_vertex_array_range = supported_extensions.contains("GL_NV_vertex_array_range");
this.GL_NV_vertex_array_range2 = supported_extensions.contains("GL_NV_vertex_array_range2");
this.GL_NV_vertex_program = supported_extensions.contains("GL_NV_vertex_program")
Deleted: trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeeback.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeeback.java 2006-11-19 22:01:56 UTC (rev 2667)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeeback.java 2006-11-19 22:06:46 UTC (rev 2668)
@@ -1,181 +0,0 @@
-/* MACHINE GENERATED FILE, DO NOT EDIT */
-
-package org.lwjgl.opengl;
-
-import org.lwjgl.LWJGLException;
-import org.lwjgl.BufferChecks;
-import java.nio.*;
-
-public final class NVTransformFeeback {
- /**
- * Accepted by the <target> parameters of BindBuffer, BufferData,
- * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
- * GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and
- * BindBufferBaseNV:
- */
- public static final int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e;
- /**
- * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
- * GetBooleanIndexedvEXT:
- */
- public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8c84;
- public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8c85;
- public static final int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8c86;
- /**
- * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
- * GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv,
- * GetDoublev, GetIntegerv, and GetFloatv:
- */
- public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f;
- /**
- * Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and
- * TransformFeedbackVaryingsNV:
- */
- public static final int GL_INTERLEAVED_ATTRIBS_NV = 0x8c8c;
- public static final int GL_SEPARATE_ATTRIBS_NV = 0x8c8d;
- /**
- * Accepted by the <target> parameter of BeginQuery, EndQuery, and
- * GetQueryiv:
- */
- public static final int GL_PRIMITIVES_GENERATED_NV = 0x8c87;
- public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8c88;
- /**
- * 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 GL_RASTERIZER_DISCARD_NV = 0x8c89;
- /**
- * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
- * and GetFloatv:
- */
- public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8c8a;
- public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8c8b;
- public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8c80;
- public static final int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8c7e;
- /**
- *Accepted by the <pname> parameter of GetProgramiv:
- */
- public static final int GL_ACTIVE_VARYINGS_NV = 0x8c81;
- public static final int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8c82;
- public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8c83;
- /**
- * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
- * GetFloatv, and GetProgramiv:
- */
- public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8c7f;
- /**
- *Accepted by the <attribs> parameter of TransformFeedbackAttribsNV:
- */
- public static final int GL_BACK_PRIMARY_COLOR_NV = 0x8c77;
- public static final int GL_BACK_SECONDARY_COLOR_NV = 0x8c78;
- public static final int GL_TEXTURE_COORD_NV = 0x8c79;
- public static final int GL_CLIP_DISTANCE_NV = 0x8c7a;
- public static final int GL_VERTEX_ID_NV = 0x8c7b;
- public static final int GL_PRIMITIVE_ID_NV = 0x8c7c;
- public static final int GL_GENERIC_ATTRIB_NV = 0x8c7d;
-
- private NVTransformFeeback() {
- }
-
-
- public static void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glBindBufferRangeNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- nglBindBufferRangeNV(target, index, buffer, offset, size, function_pointer);
- }
- private static native void nglBindBufferRangeNV(int target, int index, int buffer, long offset, long size, long function_pointer);
-
- public static void glBindBufferOffsetNV(int target, int index, int buffer, long offset) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glBindBufferOffsetNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- nglBindBufferOffsetNV(target, index, buffer, offset, function_pointer);
- }
- private static native void nglBindBufferOffsetNV(int target, int index, int buffer, long offset, long function_pointer);
-
- public static void glBindBufferBaseNV(int target, int index, int buffer) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glBindBufferBaseNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- nglBindBufferBaseNV(target, index, buffer, function_pointer);
- }
- private static native void nglBindBufferBaseNV(int target, int index, int buffer, long function_pointer);
-
- public static void glTransformFeedbackAttribsNV(IntBuffer attribs, int bufferMode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glTransformFeedbackAttribsNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkDirect(attribs);
- nglTransformFeedbackAttribsNV((attribs.remaining()), attribs, attribs.position(), bufferMode, function_pointer);
- }
- private static native void nglTransformFeedbackAttribsNV(int count, IntBuffer attribs, int attribs_position, int bufferMode, long function_pointer);
-
- public static void glTransformFeedbackVaryingsNV(int program, IntBuffer locations, int bufferMode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glTransformFeedbackVaryingsNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkDirect(locations);
- nglTransformFeedbackVaryingsNV(program, (locations.remaining()), locations, locations.position(), bufferMode, function_pointer);
- }
- private static native void nglTransformFeedbackVaryingsNV(int program, int count, IntBuffer locations, int locations_position, int bufferMode, long function_pointer);
-
- public static void glBeginTransformFeedbackNV(int primitiveMode) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glBeginTransformFeedbackNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- nglBeginTransformFeedbackNV(primitiveMode, function_pointer);
- }
- private static native void nglBeginTransformFeedbackNV(int primitiveMode, long function_pointer);
-
- public static void glEndTransformFeedbackNV() {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glEndTransformFeedbackNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- nglEndTransformFeedbackNV(function_pointer);
- }
- private static native void nglEndTransformFeedbackNV(long function_pointer);
-
- public static int glGetVaryingLocationNV(int program, ByteBuffer name) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glGetVaryingLocationNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkDirect(name);
- BufferChecks.checkNullTerminated(name);
- int __result = nglGetVaryingLocationNV(program, name, name.position(), function_pointer);
- return __result;
- }
- private static native int nglGetVaryingLocationNV(int program, ByteBuffer name, int name_position, long function_pointer);
-
- public static void glGetActiveVaryingNV(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glGetActiveVaryingNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkBuffer(length, 1);
- BufferChecks.checkBuffer(size, 1);
- BufferChecks.checkBuffer(type, 1);
- BufferChecks.checkDirect(name);
- nglGetActiveVaryingNV(program, index, (name.remaining()), length, length.position(), size, size.position(), type, type.position(), name, name.position(), function_pointer);
- }
- private static native void nglGetActiveVaryingNV(int program, int index, int bufSize, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer);
-
- public static void glActiveVaryingNV(int program, ByteBuffer name) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glActiveVaryingNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkDirect(name);
- BufferChecks.checkNullTerminated(name);
- nglActiveVaryingNV(program, name, name.position(), function_pointer);
- }
- private static native void nglActiveVaryingNV(int program, ByteBuffer name, int name_position, long function_pointer);
-
- public static void glGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location) {
- ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_transform_feeback_glGetTransformFeedbackVaryingNV_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkBuffer(location, 1);
- nglGetTransformFeedbackVaryingNV(program, index, location, location.position(), function_pointer);
- }
- private static native void nglGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location, int location_position, long function_pointer);
-}
Added: trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeedback.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeedback.java (rev 0)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeedback.java 2006-11-19 22:06:46 UTC (rev 2668)
@@ -0,0 +1,181 @@
+/* MACHINE GENERATED FILE, DO NOT EDIT */
+
+package org.lwjgl.opengl;
+
+import org.lwjgl.LWJGLException;
+import org.lwjgl.BufferChecks;
+import java.nio.*;
+
+public final class NVTransformFeedback {
+ /**
+ * Accepted by the <target> parameters of BindBuffer, BufferData,
+ * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
+ * GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and
+ * BindBufferBaseNV:
+ */
+ public static final int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e;
+ /**
+ * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
+ * GetBooleanIndexedvEXT:
+ */
+ public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8c84;
+ public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8c85;
+ public static final int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8c86;
+ /**
+ * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
+ * GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv,
+ * GetDoublev, GetIntegerv, and GetFloatv:
+ */
+ public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f;
+ /**
+ * Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and
+ * TransformFeedbackVaryingsNV:
+ */
+ public static final int GL_INTERLEAVED_ATTRIBS_NV = 0x8c8c;
+ public static final int GL_SEPARATE_ATTRIBS_NV = 0x8c8d;
+ /**
+ * Accepted by the <target> parameter of BeginQuery, EndQuery, and
+ * GetQueryiv:
+ */
+ public static final int GL_PRIMITIVES_GENERATED_NV = 0x8c87;
+ public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8c88;
+ /**
+ * 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 GL_RASTERIZER_DISCARD_NV = 0x8c89;
+ /**
+ * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
+ * and GetFloatv:
+ */
+ public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8c8a;
+ public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8c8b;
+ public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8c80;
+ public static final int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8c7e;
+ /**
+ *Accepted by the <pname> parameter of GetProgramiv:
+ */
+ public static final int GL_ACTIVE_VARYINGS_NV = 0x8c81;
+ public static final int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8c82;
+ public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8c83;
+ /**
+ * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
+ * GetFloatv, and GetProgramiv:
+ */
+ public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8c7f;
+ /**
+ *Accepted by the <attribs> parameter of TransformFeedbackAttribsNV:
+ */
+ public static final int GL_BACK_PRIMARY_COLOR_NV = 0x8c77;
+ public static final int GL_BACK_SECONDARY_COLOR_NV = 0x8c78;
+ public static final int GL_TEXTURE_COORD_NV = 0x8c79;
+ public static final int GL_CLIP_DISTANCE_NV = 0x8c7a;
+ public static final int GL_VERTEX_ID_NV = 0x8c7b;
+ public static final int GL_PRIMITIVE_ID_NV = 0x8c7c;
+ public static final int GL_GENERIC_ATTRIB_NV = 0x8c7d;
+
+ private NVTransformFeedback() {
+ }
+
+
+ public static void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glBindBufferRangeNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ nglBindBufferRangeNV(target, index, buffer, offset, size, function_pointer);
+ }
+ private static native void nglBindBufferRangeNV(int target, int index, int buffer, long offset, long size, long function_pointer);
+
+ public static void glBindBufferOffsetNV(int target, int index, int buffer, long offset) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glBindBufferOffsetNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ nglBindBufferOffsetNV(target, index, buffer, offset, function_pointer);
+ }
+ private static native void nglBindBufferOffsetNV(int target, int index, int buffer, long offset, long function_pointer);
+
+ public static void glBindBufferBaseNV(int target, int index, int buffer) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glBindBufferBaseNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ nglBindBufferBaseNV(target, index, buffer, function_pointer);
+ }
+ private static native void nglBindBufferBaseNV(int target, int index, int buffer, long function_pointer);
+
+ public static void glTransformFeedbackAttribsNV(IntBuffer attribs, int bufferMode) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glTransformFeedbackAttribsNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkDirect(attribs);
+ nglTransformFeedbackAttribsNV((attribs.remaining()), attribs, attribs.position(), bufferMode, function_pointer);
+ }
+ private static native void nglTransformFeedbackAttribsNV(int count, IntBuffer attribs, int attribs_position, int bufferMode, long function_pointer);
+
+ public static void glTransformFeedbackVaryingsNV(int program, IntBuffer locations, int bufferMode) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glTransformFeedbackVaryingsNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkDirect(locations);
+ nglTransformFeedbackVaryingsNV(program, (locations.remaining()), locations, locations.position(), bufferMode, function_pointer);
+ }
+ private static native void nglTransformFeedbackVaryingsNV(int program, int count, IntBuffer locations, int locations_position, int bufferMode, long function_pointer);
+
+ public static void glBeginTransformFeedbackNV(int primitiveMode) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glBeginTransformFeedbackNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ nglBeginTransformFeedbackNV(primitiveMode, function_pointer);
+ }
+ private static native void nglBeginTransformFeedbackNV(int primitiveMode, long function_pointer);
+
+ public static void glEndTransformFeedbackNV() {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glEndTransformFeedbackNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ nglEndTransformFeedbackNV(function_pointer);
+ }
+ private static native void nglEndTransformFeedbackNV(long function_pointer);
+
+ public static int glGetVaryingLocationNV(int program, ByteBuffer name) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glGetVaryingLocationNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkDirect(name);
+ BufferChecks.checkNullTerminated(name);
+ int __result = nglGetVaryingLocationNV(program, name, name.position(), function_pointer);
+ return __result;
+ }
+ private static native int nglGetVaryingLocationNV(int program, ByteBuffer name, int name_position, long function_pointer);
+
+ public static void glGetActiveVaryingNV(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glGetActiveVaryingNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkBuffer(length, 1);
+ BufferChecks.checkBuffer(size, 1);
+ BufferChecks.checkBuffer(type, 1);
+ BufferChecks.checkDirect(name);
+ nglGetActiveVaryingNV(program, index, (name.remaining()), length, length.position(), size, size.position(), type, type.position(), name, name.position(), function_pointer);
+ }
+ private static native void nglGetActiveVaryingNV(int program, int index, int bufSize, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer);
+
+ public static void glActiveVaryingNV(int program, ByteBuffer name) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glActiveVaryingNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkDirect(name);
+ BufferChecks.checkNullTerminated(name);
+ nglActiveVaryingNV(program, name, name.position(), function_pointer);
+ }
+ private static native void nglActiveVaryingNV(int program, ByteBuffer name, int name_position, long function_pointer);
+
+ public static void glGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location) {
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.NV_transform_feedback_glGetTransformFeedbackVaryingNV_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkBuffer(location, 1);
+ nglGetTransformFeedbackVaryingNV(program, index, location, location.position(), function_pointer);
+ }
+ private static native void nglGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location, int location_position, long function_pointer);
+}
Deleted: trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c
===================================================================
--- trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c 2006-11-19 22:01:56 UTC (rev 2667)
+++ trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c 2006-11-19 22:06:46 UTC (rev 2668)
@@ -1,82 +0,0 @@
-/* MACHINE GENERATED FILE, DO NOT EDIT */
-
-#include <jni.h>
-#include "extgl.h"
-
-typedef void (APIENTRY *glBindBufferRangeNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-typedef void (APIENTRY *glBindBufferOffsetNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
-typedef void (APIENTRY *glBindBufferBaseNVPROC) (GLenum target, GLuint index, GLuint buffer);
-typedef void (APIENTRY *glTransformFeedbackAttribsNVPROC) (GLsizei count, const GLint * attribs, GLenum bufferMode);
-typedef void (APIENTRY *glTransformFeedbackVaryingsNVPROC) (GLuint program, GLsizei count, const GLint * locations, GLenum bufferMode);
-typedef void (APIENTRY *glBeginTransformFeedbackNVPROC) (GLenum primitiveMode);
-typedef void (APIENTRY *glEndTransformFeedbackNVPROC) ();
-typedef GLint (APIENTRY *glGetVaryingLocationNVPROC) (GLuint program, const GLchar * name);
-typedef void (APIENTRY *glGetActiveVaryingNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
-typedef void (APIENTRY *glActiveVaryingNVPROC) (GLuint program, const GLchar * name);
-typedef void (APIENTRY *glGetTransformFeedbackVaryingNVPROC) (GLuint program, GLuint index, GLint * location);
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferRangeNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size, jlong function_pointer) {
- glBindBufferRangeNVPROC glBindBufferRangeNV = (glBindBufferRangeNVPROC)((intptr_t)function_pointer);
- glBindBufferRangeNV(target, index, buffer, offset, size);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferOffsetNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong function_pointer) {
- glBindBufferOffsetNVPROC glBindBufferOffsetNV = (glBindBufferOffsetNVPROC)((intptr_t)function_pointer);
- glBindBufferOffsetNV(target, index, buffer, offset);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferBaseNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong function_pointer) {
- glBindBufferBaseNVPROC glBindBufferBaseNV = (glBindBufferBaseNVPROC)((intptr_t)function_pointer);
- glBindBufferBaseNV(target, index, buffer);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglTransformFeedbackAttribsNV(JNIEnv *env, jclass clazz, jint count, jobject attribs, jint attribs_position, jint bufferMode, jlong function_pointer) {
- const GLint *attribs_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
- glTransformFeedbackAttribsNVPROC glTransformFeedbackAttribsNV = (glTransformFeedbackAttribsNVPROC)((intptr_t)function_pointer);
- glTransformFeedbackAttribsNV(count, attribs_address, bufferMode);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglTransformFeedbackVaryingsNV(JNIEnv *env, jclass clazz, jint program, jint count, jobject locations, jint locations_position, jint bufferMode, jlong function_pointer) {
- const GLint *locations_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, locations)) + locations_position;
- glTransformFeedbackVaryingsNVPROC glTransformFeedbackVaryingsNV = (glTransformFeedbackVaryingsNVPROC)((intptr_t)function_pointer);
- glTransformFeedbackVaryingsNV(program, count, locations_address, bufferMode);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBeginTransformFeedbackNV(JNIEnv *env, jclass clazz, jint primitiveMode, jlong function_pointer) {
- glBeginTransformFeedbackNVPROC glBeginTransformFeedbackNV = (glBeginTransformFeedbackNVPROC)((intptr_t)function_pointer);
- glBeginTransformFeedbackNV(primitiveMode);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglEndTransformFeedbackNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
- glEndTransformFeedbackNVPROC glEndTransformFeedbackNV = (glEndTransformFeedbackNVPROC)((intptr_t)function_pointer);
- glEndTransformFeedbackNV();
-}
-
-JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetVaryingLocationNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
- const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
- glGetVaryingLocationNVPROC glGetVaryingLocationNV = (glGetVaryingLocationNVPROC)((intptr_t)function_pointer);
- GLint __result = glGetVaryingLocationNV(program, name_address);
- return __result;
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jint bufSize, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
- GLsizei *length_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, length)) + length_position;
- GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
- GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
- GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
- glGetActiveVaryingNVPROC glGetActiveVaryingNV = (glGetActiveVaryingNVPROC)((intptr_t)function_pointer);
- glGetActiveVaryingNV(program, index, bufSize, length_address, size_address, type_address, name_address);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
- const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
- glActiveVaryingNVPROC glActiveVaryingNV = (glActiveVaryingNVPROC)((intptr_t)function_pointer);
- glActiveVaryingNV(program, name_address);
-}
-
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetTransformFeedbackVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jobject location, jint location_position, jlong function_pointer) {
- GLint *location_address = ((GLint *)(*env)->GetDirectBufferAddress(env, location)) + location_position;
- glGetTransformFeedbackVaryingNVPROC glGetTransformFeedbackVaryingNV = (glGetTransformFeedbackVaryingNVPROC)((intptr_t)function_pointer);
- glGetTransformFeedbackVaryingNV(program, index, location_address);
-}
-
Added: trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeedback.c
===================================================================
--- trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeedback.c (rev 0)
+++ trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeedback.c 2006-11-19 22:06:46 UTC (rev 2668)
@@ -0,0 +1,82 @@
+/* MACHINE GENERATED FILE, DO NOT EDIT */
+
+#include <jni.h>
+#include "extgl.h"
+
+typedef void (APIENTRY *glBindBufferRangeNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+typedef void (APIENTRY *glBindBufferOffsetNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
+typedef void (APIENTRY *glBindBufferBaseNVPROC) (GLenum target, GLuint index, GLuint buffer);
+typedef void (APIENTRY *glTransformFeedbackAttribsNVPROC) (GLsizei count, const GLint * attribs, GLenum bufferMode);
+typedef void (APIENTRY *glTransformFeedbackVaryingsNVPROC) (GLuint program, GLsizei count, const GLint * locations, GLenum bufferMode);
+typedef void (APIENTRY *glBeginTransformFeedbackNVPROC) (GLenum primitiveMode);
+typedef void (APIENTRY *glEndTransformFeedbackNVPROC) ();
+typedef GLint (APIENTRY *glGetVaryingLocationNVPROC) (GLuint program, const GLchar * name);
+typedef void (APIENTRY *glGetActiveVaryingNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
+typedef void (APIENTRY *glActiveVaryingNVPROC) (GLuint program, const GLchar * name);
+typedef void (APIENTRY *glGetTransformFeedbackVaryingNVPROC) (GLuint program, GLuint index, GLint * location);
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglBindBufferRangeNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size, jlong function_pointer) {
+ glBindBufferRangeNVPROC glBindBufferRangeNV = (glBindBufferRangeNVPROC)((intptr_t)function_pointer);
+ glBindBufferRangeNV(target, index, buffer, offset, size);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglBindBufferOffsetNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong function_pointer) {
+ glBindBufferOffsetNVPROC glBindBufferOffsetNV = (glBindBufferOffsetNVPROC)((intptr_t)function_pointer);
+ glBindBufferOffsetNV(target, index, buffer, offset);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglBindBufferBaseNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong function_pointer) {
+ glBindBufferBaseNVPROC glBindBufferBaseNV = (glBindBufferBaseNVPROC)((intptr_t)function_pointer);
+ glBindBufferBaseNV(target, index, buffer);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglTransformFeedbackAttribsNV(JNIEnv *env, jclass clazz, jint count, jobject attribs, jint attribs_position, jint bufferMode, jlong function_pointer) {
+ const GLint *attribs_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
+ glTransformFeedbackAttribsNVPROC glTransformFeedbackAttribsNV = (glTransformFeedbackAttribsNVPROC)((intptr_t)function_pointer);
+ glTransformFeedbackAttribsNV(count, attribs_address, bufferMode);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglTransformFeedbackVaryingsNV(JNIEnv *env, jclass clazz, jint program, jint count, jobject locations, jint locations_position, jint bufferMode, jlong function_pointer) {
+ const GLint *locations_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, locations)) + locations_position;
+ glTransformFeedbackVaryingsNVPROC glTransformFeedbackVaryingsNV = (glTransformFeedbackVaryingsNVPROC)((intptr_t)function_pointer);
+ glTransformFeedbackVaryingsNV(program, count, locations_address, bufferMode);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglBeginTransformFeedbackNV(JNIEnv *env, jclass clazz, jint primitiveMode, jlong function_pointer) {
+ glBeginTransformFeedbackNVPROC glBeginTransformFeedbackNV = (glBeginTransformFeedbackNVPROC)((intptr_t)function_pointer);
+ glBeginTransformFeedbackNV(primitiveMode);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglEndTransformFeedbackNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
+ glEndTransformFeedbackNVPROC glEndTransformFeedbackNV = (glEndTransformFeedbackNVPROC)((intptr_t)function_pointer);
+ glEndTransformFeedbackNV();
+}
+
+JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglGetVaryingLocationNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
+ const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
+ glGetVaryingLocationNVPROC glGetVaryingLocationNV = (glGetVaryingLocationNVPROC)((intptr_t)function_pointer);
+ GLint __result = glGetVaryingLocationNV(program, name_address);
+ return __result;
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglGetActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jint bufSize, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
+ GLsizei *length_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, length)) + length_position;
+ GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
+ GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
+ GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
+ glGetActiveVaryingNVPROC glGetActiveVaryingNV = (glGetActiveVaryingNVPROC)((intptr_t)function_pointer);
+ glGetActiveVaryingNV(program, index, bufSize, length_address, size_address, type_address, name_address);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
+ const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
+ glActiveVaryingNVPROC glActiveVaryingNV = (glActiveVaryingNVPROC)((intptr_t)function_pointer);
+ glActiveVaryingNV(program, name_address);
+}
+
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglGetTransformFeedbackVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jobject location, jint location_position, jlong function_pointer) {
+ GLint *location_address = ((GLint *)(*env)->GetDirectBufferAddress(env, location)) + location_position;
+ glGetTransformFeedbackVaryingNVPROC glGetTransformFeedbackVaryingNV = (glGetTransformFeedbackVaryingNVPROC)((intptr_t)function_pointer);
+ glGetTransformFeedbackVaryingNV(program, index, location_address);
+}
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 22:01:58
|
Revision: 2667
http://svn.sourceforge.net/java-game-lib/?rev=2667&view=rev
Author: elias_naur
Date: 2006-11-19 14:01:56 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Renamed NV_transform_feeback.java to NV_transform_feedback.java
Added Paths:
-----------
trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feedback.java
Removed Paths:
-------------
trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feeback.java
Deleted: trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feeback.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feeback.java 2006-11-19 21:49:10 UTC (rev 2666)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feeback.java 2006-11-19 22:01:56 UTC (rev 2667)
@@ -1,139 +0,0 @@
-/*
- * 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.util.generator.*;
-
-import java.nio.IntBuffer;
-import java.nio.ByteBuffer;
-
-public interface NV_transform_feeback {
-
- /**
- * Accepted by the <target> parameters of BindBuffer, BufferData,
- * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
- * GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and
- * BindBufferBaseNV:
- */
- int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E;
-
- /**
- * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
- * GetBooleanIndexedvEXT:
- */
- int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84;
- int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85;
- int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86;
-
- /**
- * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
- * GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv,
- * GetDoublev, GetIntegerv, and GetFloatv:
- */
- int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F;
-
- /**
- * Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and
- * TransformFeedbackVaryingsNV:
- */
- int GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C;
- int GL_SEPARATE_ATTRIBS_NV = 0x8C8D;
-
- /**
- * Accepted by the <target> parameter of BeginQuery, EndQuery, and
- * GetQueryiv:
- */
- int GL_PRIMITIVES_GENERATED_NV = 0x8C87;
- int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88;
-
- /**
- * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
- * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
- * GetDoublev:
- */
- int GL_RASTERIZER_DISCARD_NV = 0x8C89;
-
- /**
- * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
- * and GetFloatv:
- */
- int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A;
- int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B;
- int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80;
- int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E;
-
- /** Accepted by the <pname> parameter of GetProgramiv: */
- int GL_ACTIVE_VARYINGS_NV = 0x8C81;
- int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82;
- int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83;
-
- /**
- * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
- * GetFloatv, and GetProgramiv:
- */
- int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F;
-
- /** Accepted by the <attribs> parameter of TransformFeedbackAttribsNV: */
- int GL_BACK_PRIMARY_COLOR_NV = 0x8C77;
- int GL_BACK_SECONDARY_COLOR_NV = 0x8C78;
- int GL_TEXTURE_COORD_NV = 0x8C79;
- int GL_CLIP_DISTANCE_NV = 0x8C7A;
- int GL_VERTEX_ID_NV = 0x8C7B;
- int GL_PRIMITIVE_ID_NV = 0x8C7C;
- int GL_GENERIC_ATTRIB_NV = 0x8C7D;
-
- void glBindBufferRangeNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
-
- void glBindBufferOffsetNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset);
-
- void glBindBufferBaseNV(@GLenum int target, @GLuint int index, @GLuint int buffer);
-
- void glTransformFeedbackAttribsNV(@AutoSize("attribs") @GLsizei int count, @Const IntBuffer attribs, @GLenum int bufferMode);
-
- void glTransformFeedbackVaryingsNV(@GLuint int program, @AutoSize("locations") @GLsizei int count, @Const IntBuffer locations, @GLenum int bufferMode);
-
- void glBeginTransformFeedbackNV(@GLenum int primitiveMode);
-
- void glEndTransformFeedbackNV();
-
- int glGetVaryingLocationNV(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
-
- void glGetActiveVaryingNV(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufSize,
- @Check("1") @GLsizei IntBuffer length,
- @Check("1") @GLsizei IntBuffer size,
- @Check("1") @GLenum IntBuffer type, @GLchar ByteBuffer name);
-
- void glActiveVaryingNV(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
-
- void glGetTransformFeedbackVaryingNV(@GLuint int program, @GLuint int index, @Check("1") IntBuffer location);
-
-}
\ No newline at end of file
Copied: trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feedback.java (from rev 2666, trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feeback.java)
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feedback.java (rev 0)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_transform_feedback.java 2006-11-19 22:01:56 UTC (rev 2667)
@@ -0,0 +1,139 @@
+/*
+ * 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.util.generator.*;
+
+import java.nio.IntBuffer;
+import java.nio.ByteBuffer;
+
+public interface NV_transform_feedback {
+
+ /**
+ * Accepted by the <target> parameters of BindBuffer, BufferData,
+ * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
+ * GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and
+ * BindBufferBaseNV:
+ */
+ int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E;
+
+ /**
+ * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
+ * GetBooleanIndexedvEXT:
+ */
+ int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84;
+ int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85;
+ int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86;
+
+ /**
+ * Accepted by the <param> parameter of GetIntegerIndexedvEXT and
+ * GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv,
+ * GetDoublev, GetIntegerv, and GetFloatv:
+ */
+ int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F;
+
+ /**
+ * Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and
+ * TransformFeedbackVaryingsNV:
+ */
+ int GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C;
+ int GL_SEPARATE_ATTRIBS_NV = 0x8C8D;
+
+ /**
+ * Accepted by the <target> parameter of BeginQuery, EndQuery, and
+ * GetQueryiv:
+ */
+ int GL_PRIMITIVES_GENERATED_NV = 0x8C87;
+ int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88;
+
+ /**
+ * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by
+ * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
+ * GetDoublev:
+ */
+ int GL_RASTERIZER_DISCARD_NV = 0x8C89;
+
+ /**
+ * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
+ * and GetFloatv:
+ */
+ int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A;
+ int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B;
+ int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80;
+ int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E;
+
+ /** Accepted by the <pname> parameter of GetProgramiv: */
+ int GL_ACTIVE_VARYINGS_NV = 0x8C81;
+ int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82;
+ int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83;
+
+ /**
+ * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv,
+ * GetFloatv, and GetProgramiv:
+ */
+ int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F;
+
+ /** Accepted by the <attribs> parameter of TransformFeedbackAttribsNV: */
+ int GL_BACK_PRIMARY_COLOR_NV = 0x8C77;
+ int GL_BACK_SECONDARY_COLOR_NV = 0x8C78;
+ int GL_TEXTURE_COORD_NV = 0x8C79;
+ int GL_CLIP_DISTANCE_NV = 0x8C7A;
+ int GL_VERTEX_ID_NV = 0x8C7B;
+ int GL_PRIMITIVE_ID_NV = 0x8C7C;
+ int GL_GENERIC_ATTRIB_NV = 0x8C7D;
+
+ void glBindBufferRangeNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
+
+ void glBindBufferOffsetNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset);
+
+ void glBindBufferBaseNV(@GLenum int target, @GLuint int index, @GLuint int buffer);
+
+ void glTransformFeedbackAttribsNV(@AutoSize("attribs") @GLsizei int count, @Const IntBuffer attribs, @GLenum int bufferMode);
+
+ void glTransformFeedbackVaryingsNV(@GLuint int program, @AutoSize("locations") @GLsizei int count, @Const IntBuffer locations, @GLenum int bufferMode);
+
+ void glBeginTransformFeedbackNV(@GLenum int primitiveMode);
+
+ void glEndTransformFeedbackNV();
+
+ int glGetVaryingLocationNV(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
+
+ void glGetActiveVaryingNV(@GLuint int program, @GLuint int index, @AutoSize("name") @GLsizei int bufSize,
+ @Check("1") @GLsizei IntBuffer length,
+ @Check("1") @GLsizei IntBuffer size,
+ @Check("1") @GLenum IntBuffer type, @GLchar ByteBuffer name);
+
+ void glActiveVaryingNV(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
+
+ void glGetTransformFeedbackVaryingNV(@GLuint int program, @GLuint int index, @Check("1") IntBuffer location);
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 21:49:11
|
Revision: 2666
http://svn.sourceforge.net/java-game-lib/?rev=2666&view=rev
Author: elias_naur
Date: 2006-11-19 13:49:10 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
AWTInputAdapter: Destroy Keyboard/Mouse before destroying the adapter
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java 2006-11-19 21:41:34 UTC (rev 2665)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java 2006-11-19 21:49:10 UTC (rev 2666)
@@ -90,10 +90,10 @@
public static synchronized void destroy() {
if (awt_input != null) {
+ Mouse.destroy();
+ Keyboard.destroy();
awt_input.destroy();
awt_input = null;
- Mouse.destroy();
- Keyboard.destroy();
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 21:41:37
|
Revision: 2665
http://svn.sourceforge.net/java-game-lib/?rev=2665&view=rev
Author: elias_naur
Date: 2006-11-19 13:41:34 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Make sure that Mouse.destroy ungrabs the cursor
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java
trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java
trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java
Modified: trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -296,7 +296,7 @@
created = false;
buttons = null;
coord_buffer = null;
-
+
implementation.destroyMouse();
}
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -84,10 +84,6 @@
public synchronized void destroy() {
canvas.setInput(null);
canvas = null;
- if (mouse_queue != null)
- mouse_queue.unregister();
- if (keyboard_queue != null)
- keyboard_queue.unregister();
}
public final int getWidth() {
@@ -115,8 +111,11 @@
return new MouseEventQueue(getCanvas());
}
- public void destroyMouse() {
- mouse_queue.unregister();
+ public synchronized void destroyMouse() {
+ if (mouse_queue != null) {
+ mouse_queue.unregister();
+ mouse_queue = null;
+ }
}
public int getNativeCursorCapabilities() {
@@ -145,8 +144,10 @@
}
public synchronized void destroyKeyboard() {
- if (keyboard_queue != null)
+ if (keyboard_queue != null) {
keyboard_queue.unregister();
+ keyboard_queue = null;
+ }
}
public Object createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws LWJGLException {
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxAWTInput.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxAWTInput.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -137,6 +137,11 @@
LinuxDisplay.unlockAWT();
}
}
+
+ public void destroyMouse() {
+ ungrabInputLocked();
+ super.destroyMouse();
+ }
private void checkFocus() {
if (getCanvas().isFocusOwner()) {
@@ -148,7 +153,7 @@
}
private boolean shouldGrab() {
- return !input_released && isGrabbed();
+ return !input_released && isGrabbed() && getMouseEventQueue() != null;
}
private void update() {
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -348,7 +348,7 @@
}
private boolean shouldGrab() {
- return !input_released && grab;
+ return !input_released && grab && mouse != null;
}
private void updatePointerGrab() {
@@ -715,6 +715,7 @@
public void destroyMouse() {
mouse = null;
+ updateInputGrab();
}
public void pollMouse(IntBuffer coord_buffer, ByteBuffer buttons) {
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -194,7 +194,7 @@
private static native void nWarpCursor(long display, long window, int x, int y);
private void handlePointerMotion(boolean grab, boolean warp_pointer, long millis, long root_window, int x_root, int y_root, int x, int y) {
- doHandlePointerMotion(grab, warp_pointer, root_window, x_root, y_root, x, y, millis*1000000);
+ doHandlePointerMotion(grab, warp_pointer, root_window, x_root, y_root, x, y, millis*1000000);
}
private void handleButton(boolean grab, int button, byte state, long nanos) {
@@ -256,7 +256,7 @@
}
}
- private void resetCursor(int x, int y) {
+ private void resetCursor(int x, int y) {
last_x = x;
last_y = transformY(y);
}
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -60,4 +60,10 @@
((MacOSXMouseEventQueue)getMouseEventQueue()).warpCursor();
had_focus = has_focus;
}
+
+ public synchronized void destroyMouse() {
+ if (getMouseEventQueue() != null)
+ getMouseEventQueue().setGrabbed(false);
+ super.destroyMouse();
+ }
}
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -299,8 +299,10 @@
}
public void destroyMouse() {
- if (mouse_queue != null)
+ if (mouse_queue != null) {
+ mouse_queue.setGrabbed(false);
mouse_queue.unregister();
+ }
this.mouse_queue = null;
}
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2006-11-19 21:15:51 UTC (rev 2664)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2006-11-19 21:41:34 UTC (rev 2665)
@@ -64,12 +64,12 @@
blank_cursor = AWTUtil.createCursor(w, h, 0, 0, 1, BufferUtils.createIntBuffer(w*h), null);
}
- public synchronized void destroy() {
- super.destroy();
+ public synchronized void destroyMouse() {
if (cached_mouse != null) {
grab(false);
cached_mouse.destroy();
}
+ super.destroyMouse();
}
public synchronized void processInput(PeerInfo peer_info) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 21:16:02
|
Revision: 2664
http://svn.sourceforge.net/java-game-lib/?rev=2664&view=rev
Author: elias_naur
Date: 2006-11-19 13:15:51 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
AWTInputAdapter: unregister event listeners on destroy()
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2006-11-19 16:24:18 UTC (rev 2663)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2006-11-19 21:15:51 UTC (rev 2664)
@@ -84,6 +84,10 @@
public synchronized void destroy() {
canvas.setInput(null);
canvas = null;
+ if (mouse_queue != null)
+ mouse_queue.unregister();
+ if (keyboard_queue != null)
+ keyboard_queue.unregister();
}
public final int getWidth() {
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java 2006-11-19 16:24:18 UTC (rev 2663)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java 2006-11-19 21:15:51 UTC (rev 2664)
@@ -60,7 +60,4 @@
((MacOSXMouseEventQueue)getMouseEventQueue()).warpCursor();
had_focus = has_focus;
}
-
- public void destroy() {
- }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 16:24:21
|
Revision: 2663
http://svn.sourceforge.net/java-game-lib/?rev=2663&view=rev
Author: elias_naur
Date: 2006-11-19 08:24:18 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
AWTInputAdapter.destroy() now destroys the Keyboard and Mouse to mimic the behaviour of Display.destroy() more closely.
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java
trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTInputAdapterTest.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java 2006-11-19 13:33:45 UTC (rev 2662)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java 2006-11-19 16:24:18 UTC (rev 2663)
@@ -92,6 +92,8 @@
if (awt_input != null) {
awt_input.destroy();
awt_input = null;
+ Mouse.destroy();
+ Keyboard.destroy();
}
}
}
Modified: trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTInputAdapterTest.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTInputAdapterTest.java 2006-11-19 13:33:45 UTC (rev 2662)
+++ trunk/LWJGL/src/java/org/lwjgl/test/opengl/awt/AWTInputAdapterTest.java 2006-11-19 16:24:18 UTC (rev 2663)
@@ -140,18 +140,25 @@
+ (fps / (timeUsed / 1000f)));
fps = 0;
}
- Mouse.poll();
- while (Mouse.next()) {
- view_roty += Mouse.getEventDX()*.1;
- view_rotx -= Mouse.getEventDY()*.1;
+ if (Mouse.isCreated()) {
+ Mouse.poll();
+ while (Mouse.next()) {
+ view_roty += Mouse.getEventDX()*.1;
+ view_rotx -= Mouse.getEventDY()*.1;
+ }
}
- Keyboard.poll();
- while (Keyboard.next()) {
+ if (Keyboard.isCreated()) {
+ Keyboard.poll();
+ }
+ while (Keyboard.isCreated() && Keyboard.next()) {
if (Keyboard.getEventKeyState()) {
switch (Keyboard.getEventKey()) {
case Keyboard.KEY_ESCAPE:
System.exit(0);
break;
+ case Keyboard.KEY_H:
+ AWTInputAdapter.destroy();
+ break;
case Keyboard.KEY_G:
Mouse.setGrabbed(!Mouse.isGrabbed());
break;
@@ -162,14 +169,16 @@
if (Keyboard.getEventCharacter() != Keyboard.CHAR_NONE)
System.out.println("Typed: " + Keyboard.getEventCharacter());
}
- if (Keyboard.isKeyDown(Keyboard.KEY_UP))
- view_rotx -= .1;
- else if (Keyboard.isKeyDown(Keyboard.KEY_DOWN))
- view_rotx += .1;
- if (Keyboard.isKeyDown(Keyboard.KEY_LEFT))
- view_roty -= .1;
- else if (Keyboard.isKeyDown(Keyboard.KEY_RIGHT))
- view_roty += .1;
+ if (Keyboard.isCreated()) {
+ if (Keyboard.isKeyDown(Keyboard.KEY_UP))
+ view_rotx -= .1;
+ else if (Keyboard.isKeyDown(Keyboard.KEY_DOWN))
+ view_rotx += .1;
+ if (Keyboard.isKeyDown(Keyboard.KEY_LEFT))
+ view_roty -= .1;
+ else if (Keyboard.isKeyDown(Keyboard.KEY_RIGHT))
+ view_roty += .1;
+ }
}
});
addWindowListener(new WindowAdapter() {
@@ -225,7 +234,7 @@
GL11.glMatrixMode(GL11.GL_PROJECTION);
- System.err.println("Use the arrow keys and the mouse to rotate the gears. Press 'G' to toggle mouse grabbing.");
+ System.err.println("Use the arrow keys and the mouse to rotate the gears. Press 'G' to toggle mouse grabbing. Press 'H' to destroy the AWTInputAdapter.");
System.err.println("GL_VENDOR: " + GL11.glGetString(GL11.GL_VENDOR));
System.err.println("GL_RENDERER: " + GL11.glGetString(GL11.GL_RENDERER));
System.err.println("GL_VERSION: " + GL11.glGetString(GL11.GL_VERSION));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 13:33:49
|
Revision: 2662
http://svn.sourceforge.net/java-game-lib/?rev=2662&view=rev
Author: elias_naur
Date: 2006-11-19 05:33:45 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Made all GL functions only query ContextCapabilities.getCapabilities() once. Now all GLCheck checks will take the ContextCapabilities instance as an argument instead of querying for it. Inspired by MatthiasM, who just don't seem to be content with LWJGL performance, ever ;)
Modified Paths:
--------------
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBBufferObject.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBImaging.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBMatrixPalette.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBMultisample.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBMultitexture.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBOcclusionQuery.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBPointParameters.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBProgram.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBShaderObjects.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBTextureCompression.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBTransposeMatrix.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBVertexBlend.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBVertexProgram.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBVertexShader.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBWindowPos.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIDrawBuffers.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIElementArray.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIEnvmapBumpmap.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIFragmentShader.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIMapObjectBuffer.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIPnTriangles.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATISeparateStencil.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIVertexArrayObject.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIVertexAttribArrayObject.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/ATIVertexStreams.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTBindableUniform.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTBlendColor.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTBlendEquationSeparate.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTBlendFuncSeparate.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTBlendMinmax.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTCompiledVertexArray.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTDepthBoundsTest.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTDrawBuffers2.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTDrawInstanced.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTDrawRangeElements.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTFogCoord.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTFramebufferBlit.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTFramebufferMultisample.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTFramebufferObject.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTFramebufferSRGB.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTGeometryShader4.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTGpuProgramParameters.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTGpuShader4.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTMultiDrawArrays.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTPackedFloat.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTPalettedTexture.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTPointParameters.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTSecondaryColor.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTStencilClearTag.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTStencilTwoSide.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTextureArray.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTextureBufferObject.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTextureCompressionLATC.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTextureCompressionRGTC.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTextureInteger.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTextureSharedExponent.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTTimerQuery.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTVertexShader.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/EXTVertexWeighting.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL11.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL12.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL13.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL14.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL15.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL20.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/GL21.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVDepthBufferFloat.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVEvaluators.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFence.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFragmentProgram.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVGeometryProgram4.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVGpuProgram4.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVHalfFloat.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVOcclusionQuery.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVParameterBufferObject.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVPixelDataRange.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVPointSprite.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVPrimitiveRestart.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVProgram.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVRegisterCombiners.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVRegisterCombiners2.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVTransformFeeback.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVVertexArrayRange.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVVertexProgram.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/SGISTextureLOD.java
trunk/LWJGL/src/java/org/lwjgl/opengl/GLChecks.java
trunk/LWJGL/src/java/org/lwjgl/opengl/StateTracker.java
trunk/LWJGL/src/java/org/lwjgl/util/generator/JavaMethodsGenerator.java
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTBindableUniform.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTBlendColor.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTBlendMinmax.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTDrawBuffers2.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTDrawInstanced.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTGeometryShader4.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTGpuProgramParameters.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTGpuShader4.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTTextureArray.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTTextureBufferObject.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTTextureInteger.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_GL21.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVDepthBufferFloat.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVGeometryProgram4.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVGpuProgram4.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVParameterBufferObject.c
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c
trunk/LWJGL/src/templates/org/lwjgl/opengl/GL11.java
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBBufferObject.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBBufferObject.java 2006-11-19 12:48:57 UTC (rev 2661)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBBufferObject.java 2006-11-19 13:33:45 UTC (rev 2662)
@@ -36,14 +36,16 @@
public static void glBindBufferARB(int target, int buffer) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBindBufferARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBindBufferARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBindBufferARB(target, buffer, function_pointer);
}
private static native void nglBindBufferARB(int target, int buffer, long function_pointer);
public static void glDeleteBuffersARB(IntBuffer buffers) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glDeleteBuffersARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glDeleteBuffersARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(buffers);
nglDeleteBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
@@ -51,7 +53,8 @@
private static native void nglDeleteBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer);
public static void glGenBuffersARB(IntBuffer buffers) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGenBuffersARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGenBuffersARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(buffers);
nglGenBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
@@ -59,7 +62,8 @@
private static native void nglGenBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer);
public static boolean glIsBufferARB(int buffer) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glIsBufferARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glIsBufferARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
boolean __result = nglIsBufferARB(buffer, function_pointer);
return __result;
@@ -67,36 +71,42 @@
private static native boolean nglIsBufferARB(int buffer, long function_pointer);
public static void glBufferDataARB(int target, long size, int usage) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBufferDataARB(target, size, null, 0, usage, function_pointer);
}
public static void glBufferDataARB(int target, ByteBuffer data, int usage) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferDataARB(target, (data.remaining()), data, data.position(), usage, function_pointer);
}
public static void glBufferDataARB(int target, DoubleBuffer data, int usage) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferDataARB(target, (data.remaining() << 3), data, data.position() << 3, usage, function_pointer);
}
public static void glBufferDataARB(int target, FloatBuffer data, int usage) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferDataARB(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer);
}
public static void glBufferDataARB(int target, IntBuffer data, int usage) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferDataARB(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer);
}
public static void glBufferDataARB(int target, ShortBuffer data, int usage) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferDataARB(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer);
@@ -104,31 +114,36 @@
private static native void nglBufferDataARB(int target, long size, Buffer data, int data_position, int usage, long function_pointer);
public static void glBufferSubDataARB(int target, long offset, ByteBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
}
public static void glBufferSubDataARB(int target, long offset, DoubleBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferSubDataARB(target, offset, (data.remaining() << 3), data, data.position() << 3, function_pointer);
}
public static void glBufferSubDataARB(int target, long offset, FloatBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
}
public static void glBufferSubDataARB(int target, long offset, IntBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
}
public static void glBufferSubDataARB(int target, long offset, ShortBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
@@ -136,31 +151,36 @@
private static native void nglBufferSubDataARB(int target, long offset, long size, Buffer data, int data_position, long function_pointer);
public static void glGetBufferSubDataARB(int target, long offset, ByteBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglGetBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
}
public static void glGetBufferSubDataARB(int target, long offset, DoubleBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglGetBufferSubDataARB(target, offset, (data.remaining() << 3), data, data.position() << 3, function_pointer);
}
public static void glGetBufferSubDataARB(int target, long offset, FloatBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
}
public static void glGetBufferSubDataARB(int target, long offset, IntBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
}
public static void glGetBufferSubDataARB(int target, long offset, ShortBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(data);
nglGetBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
@@ -179,7 +199,8 @@
* @return A ByteBuffer representing the mapped buffer memory.
*/
public static java.nio.ByteBuffer glMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glMapBufferARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glMapBufferARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
if (old_buffer != null)
BufferChecks.checkDirect(old_buffer);
@@ -189,7 +210,8 @@
private static native java.nio.ByteBuffer nglMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer);
public static boolean glUnmapBufferARB(int target) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glUnmapBufferARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glUnmapBufferARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
boolean __result = nglUnmapBufferARB(target, function_pointer);
return __result;
@@ -197,7 +219,8 @@
private static native boolean nglUnmapBufferARB(int target, long function_pointer);
public static void glGetBufferParameterARB(int target, int pname, IntBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferParameterivARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferParameterivARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglGetBufferParameterivARB(target, pname, params, params.position(), function_pointer);
@@ -205,7 +228,8 @@
private static native void nglGetBufferParameterivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer);
public static java.nio.ByteBuffer glGetBufferPointerARB(int target, int pname, int result_size) {
- long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferPointervARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_buffer_object_glGetBufferPointervARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
java.nio.ByteBuffer __result = nglGetBufferPointervARB(target, pname, result_size, function_pointer);
return __result;
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java 2006-11-19 12:48:57 UTC (rev 2661)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java 2006-11-19 13:33:45 UTC (rev 2662)
@@ -32,7 +32,8 @@
* Accepted as a bit set in the GLX_RENDER_TYPE variable
*/
public static void glClampColorARB(int target, int clamp) {
- long function_pointer = GLContext.getCapabilities().ARB_color_buffer_float_glClampColorARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_color_buffer_float_glClampColorARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglClampColorARB(target, clamp, function_pointer);
}
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java 2006-11-19 12:48:57 UTC (rev 2661)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java 2006-11-19 13:33:45 UTC (rev 2662)
@@ -34,7 +34,8 @@
public static void glDrawBuffersARB(IntBuffer buffers) {
- long function_pointer = GLContext.getCapabilities().ARB_draw_buffers_glDrawBuffersARB_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_draw_buffers_glDrawBuffersARB_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkDirect(buffers);
nglDrawBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBImaging.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBImaging.java 2006-11-19 12:48:57 UTC (rev 2661)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/ARBImaging.java 2006-11-19 13:33:45 UTC (rev 2662)
@@ -88,67 +88,76 @@
public static void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(data, 256);
nglColorTable(target, internalFormat, width, format, type, data, data.position(), function_pointer);
}
public static void glColorTable(int target, int internalFormat, int width, int format, int type, DoubleBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(data, 256);
nglColorTable(target, internalFormat, width, format, type, data, data.position() << 3, function_pointer);
}
public static void glColorTable(int target, int internalFormat, int width, int format, int type, FloatBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(data, 256);
nglColorTable(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
}
private static native void nglColorTable(int target, int internalFormat, int width, int format, int type, Buffer data, int data_position, long function_pointer);
public static void glColorTable(int target, int internalFormat, int width, int format, int type, long data_buffer_offset) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOenabled();
+ GLChecks.ensureUnpackPBOenabled(caps);
nglColorTableBO(target, internalFormat, width, format, type, data_buffer_offset, function_pointer);
}
private static native void nglColorTableBO(int target, int internalFormat, int width, int format, int type, long data_buffer_offset, long function_pointer);
public static void glColorSubTable(int target, int start, int count, int format, int type, ByteBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorSubTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(data, 256);
nglColorSubTable(target, start, count, format, type, data, data.position(), function_pointer);
}
public static void glColorSubTable(int target, int start, int count, int format, int type, DoubleBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorSubTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(data, 256);
nglColorSubTable(target, start, count, format, type, data, data.position() << 3, function_pointer);
}
public static void glColorSubTable(int target, int start, int count, int format, int type, FloatBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorSubTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(data, 256);
nglColorSubTable(target, start, count, format, type, data, data.position() << 2, function_pointer);
}
private static native void nglColorSubTable(int target, int start, int count, int format, int type, Buffer data, int data_position, long function_pointer);
public static void glColorSubTable(int target, int start, int count, int format, int type, long data_buffer_offset) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorSubTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOenabled();
+ GLChecks.ensureUnpackPBOenabled(caps);
nglColorSubTableBO(target, start, count, format, type, data_buffer_offset, function_pointer);
}
private static native void nglColorSubTableBO(int target, int start, int count, int format, int type, long data_buffer_offset, long function_pointer);
public static void glColorTableParameter(int target, int pname, IntBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTableParameteriv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorTableParameteriv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglColorTableParameteriv(target, pname, params, params.position(), function_pointer);
@@ -156,7 +165,8 @@
private static native void nglColorTableParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
public static void glColorTableParameter(int target, int pname, FloatBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTableParameterfv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glColorTableParameterfv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglColorTableParameterfv(target, pname, params, params.position(), function_pointer);
@@ -164,33 +174,38 @@
private static native void nglColorTableParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
public static void glCopyColorSubTable(int target, int start, int x, int y, int width) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyColorSubTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glCopyColorSubTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglCopyColorSubTable(target, start, x, y, width, function_pointer);
}
private static native void nglCopyColorSubTable(int target, int start, int x, int y, int width, long function_pointer);
public static void glCopyColorTable(int target, int internalformat, int x, int y, int width) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glCopyColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglCopyColorTable(target, internalformat, x, y, width, function_pointer);
}
private static native void nglCopyColorTable(int target, int internalformat, int x, int y, int width, long function_pointer);
public static void glGetColorTable(int target, int format, int type, ByteBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(data, 256);
nglGetColorTable(target, format, type, data, data.position(), function_pointer);
}
public static void glGetColorTable(int target, int format, int type, DoubleBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(data, 256);
nglGetColorTable(target, format, type, data, data.position() << 3, function_pointer);
}
public static void glGetColorTable(int target, int format, int type, FloatBuffer data) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTable_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetColorTable_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(data, 256);
nglGetColorTable(target, format, type, data, data.position() << 2, function_pointer);
@@ -198,7 +213,8 @@
private static native void nglGetColorTable(int target, int format, int type, Buffer data, int data_position, long function_pointer);
public static void glGetColorTableParameter(int target, int pname, IntBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTableParameteriv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetColorTableParameteriv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglGetColorTableParameteriv(target, pname, params, params.position(), function_pointer);
@@ -206,7 +222,8 @@
private static native void nglGetColorTableParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
public static void glGetColorTableParameter(int target, int pname, FloatBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTableParameterfv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetColorTableParameterfv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglGetColorTableParameterfv(target, pname, params, params.position(), function_pointer);
@@ -214,79 +231,90 @@
private static native void nglGetColorTableParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
public static void glBlendEquation(int mode) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glBlendEquation_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glBlendEquation_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBlendEquation(mode, function_pointer);
}
private static native void nglBlendEquation(int mode, long function_pointer);
public static void glBlendColor(float red, float green, float blue, float alpha) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glBlendColor_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glBlendColor_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBlendColor(red, green, blue, alpha, function_pointer);
}
private static native void nglBlendColor(float red, float green, float blue, float alpha, long function_pointer);
public static void glHistogram(int target, int width, int internalformat, boolean sink) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglHistogram(target, width, internalformat, sink, function_pointer);
}
private static native void nglHistogram(int target, int width, int internalformat, boolean sink, long function_pointer);
public static void glResetHistogram(int target) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glResetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glResetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglResetHistogram(target, function_pointer);
}
private static native void nglResetHistogram(int target, long function_pointer);
public static void glGetHistogram(int target, boolean reset, int format, int type, ByteBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 256);
nglGetHistogram(target, reset, format, type, values, values.position(), function_pointer);
}
public static void glGetHistogram(int target, boolean reset, int format, int type, DoubleBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 256);
nglGetHistogram(target, reset, format, type, values, values.position() << 3, function_pointer);
}
public static void glGetHistogram(int target, boolean reset, int format, int type, FloatBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 256);
nglGetHistogram(target, reset, format, type, values, values.position() << 2, function_pointer);
}
public static void glGetHistogram(int target, boolean reset, int format, int type, IntBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 256);
nglGetHistogram(target, reset, format, type, values, values.position() << 2, function_pointer);
}
public static void glGetHistogram(int target, boolean reset, int format, int type, ShortBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 256);
nglGetHistogram(target, reset, format, type, values, values.position() << 1, function_pointer);
}
private static native void nglGetHistogram(int target, boolean reset, int format, int type, Buffer values, int values_position, long function_pointer);
public static void glGetHistogram(int target, boolean reset, int format, int type, long values_buffer_offset) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogram_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOenabled();
+ GLChecks.ensurePackPBOenabled(caps);
nglGetHistogramBO(target, reset, format, type, values_buffer_offset, function_pointer);
}
private static native void nglGetHistogramBO(int target, boolean reset, int format, int type, long values_buffer_offset, long function_pointer);
public static void glGetHistogramParameter(int target, int pname, FloatBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogramParameterfv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogramParameterfv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 256);
nglGetHistogramParameterfv(target, pname, params, params.position(), function_pointer);
@@ -294,7 +322,8 @@
private static native void nglGetHistogramParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
public static void glGetHistogramParameter(int target, int pname, IntBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogramParameteriv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetHistogramParameteriv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 256);
nglGetHistogramParameteriv(target, pname, params, params.position(), function_pointer);
@@ -302,65 +331,74 @@
private static native void nglGetHistogramParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
public static void glMinmax(int target, int internalformat, boolean sink) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglMinmax(target, internalformat, sink, function_pointer);
}
private static native void nglMinmax(int target, int internalformat, boolean sink, long function_pointer);
public static void glResetMinmax(int target) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glResetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glResetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglResetMinmax(target, function_pointer);
}
private static native void nglResetMinmax(int target, long function_pointer);
public static void glGetMinmax(int target, boolean reset, int format, int types, ByteBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 4);
nglGetMinmax(target, reset, format, types, values, values.position(), function_pointer);
}
public static void glGetMinmax(int target, boolean reset, int format, int types, DoubleBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 4);
nglGetMinmax(target, reset, format, types, values, values.position() << 3, function_pointer);
}
public static void glGetMinmax(int target, boolean reset, int format, int types, FloatBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 4);
nglGetMinmax(target, reset, format, types, values, values.position() << 2, function_pointer);
}
public static void glGetMinmax(int target, boolean reset, int format, int types, IntBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 4);
nglGetMinmax(target, reset, format, types, values, values.position() << 2, function_pointer);
}
public static void glGetMinmax(int target, boolean reset, int format, int types, ShortBuffer values) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
BufferChecks.checkBuffer(values, 4);
nglGetMinmax(target, reset, format, types, values, values.position() << 1, function_pointer);
}
private static native void nglGetMinmax(int target, boolean reset, int format, int types, Buffer values, int values_position, long function_pointer);
public static void glGetMinmax(int target, boolean reset, int format, int types, long values_buffer_offset) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmax_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOenabled();
+ GLChecks.ensurePackPBOenabled(caps);
nglGetMinmaxBO(target, reset, format, types, values_buffer_offset, function_pointer);
}
private static native void nglGetMinmaxBO(int target, boolean reset, int format, int types, long values_buffer_offset, long function_pointer);
public static void glGetMinmaxParameter(int target, int pname, FloatBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmaxParameterfv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmaxParameterfv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglGetMinmaxParameterfv(target, pname, params, params.position(), function_pointer);
@@ -368,7 +406,8 @@
private static native void nglGetMinmaxParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
public static void glGetMinmaxParameter(int target, int pname, IntBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmaxParameteriv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetMinmaxParameteriv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglGetMinmaxParameteriv(target, pname, params, params.position(), function_pointer);
@@ -376,88 +415,100 @@
private static native void nglGetMinmaxParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ByteBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1));
nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position(), function_pointer);
}
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, DoubleBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1));
nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 3, function_pointer);
}
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, FloatBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1));
nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 2, function_pointer);
}
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, IntBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1));
nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 2, function_pointer);
}
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ShortBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1));
nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 1, function_pointer);
}
private static native void nglConvolutionFilter1D(int target, int internalformat, int width, int format, int type, Buffer image, int image_position, long function_pointer);
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, long image_buffer_offset) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOenabled();
+ GLChecks.ensureUnpackPBOenabled(caps);
nglConvolutionFilter1DBO(target, internalformat, width, format, type, image_buffer_offset, function_pointer);
}
private static native void nglConvolutionFilter1DBO(int target, int internalformat, int width, int format, int type, long image_buffer_offset, long function_pointer);
public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, height, 1));
nglConvolutionFilter2D(target, internalformat, width, height, format, type, image, image.position(), function_pointer);
}
public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, height, 1));
nglConvolutionFilter2D(target, internalformat, width, height, format, type, image, image.position() << 2, function_pointer);
}
public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOdisabled();
+ GLChecks.ensureUnpackPBOdisabled(caps);
BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, height, 1));
nglConvolutionFilter2D(target, internalformat, width, height, format, type, image, image.position() << 1, function_pointer);
}
private static native void nglConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer image, int image_position, long function_pointer);
public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, long image_buffer_offset) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensureUnpackPBOenabled();
+ GLChecks.ensureUnpackPBOenabled(caps);
nglConvolutionFilter2DBO(target, internalformat, width, height, format, type, image_buffer_offset, function_pointer);
}
private static native void nglConvolutionFilter2DBO(int target, int internalformat, int width, int height, int format, int type, long image_buffer_offset, long function_pointer);
public static void glConvolutionParameterf(int target, int pname, float params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameterf_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionParameterf_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglConvolutionParameterf(target, pname, params, function_pointer);
}
private static native void nglConvolutionParameterf(int target, int pname, float params, long function_pointer);
public static void glConvolutionParameter(int target, int pname, FloatBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameterfv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionParameterfv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglConvolutionParameterfv(target, pname, params, params.position(), function_pointer);
@@ -465,14 +516,16 @@
private static native void nglConvolutionParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
public static void glConvolutionParameteri(int target, int pname, int params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameteri_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionParameteri_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglConvolutionParameteri(target, pname, params, function_pointer);
}
private static native void nglConvolutionParameteri(int target, int pname, int params, long function_pointer);
public static void glConvolutionParameter(int target, int pname, IntBuffer params) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameteriv_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glConvolutionParameteriv_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
BufferChecks.checkBuffer(params, 4);
nglConvolutionParameteriv(target, pname, params, params.position(), function_pointer);
@@ -480,65 +533,74 @@
private static native void nglConvolutionParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
public static void glCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyConvolutionFilter1D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glCopyConvolutionFilter1D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglCopyConvolutionFilter1D(target, internalformat, x, y, width, function_pointer);
}
private static native void nglCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width, long function_pointer);
public static void glCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyConvolutionFilter2D_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glCopyConvolutionFilter2D_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglCopyConvolutionFilter2D(target, internalformat, x, y, width, height, function_pointer);
}
private static native void nglCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height, long function_pointer);
public static void glGetConvolutionFilter(int target, int format, int type, ByteBuffer image) {
- long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer;
+ ContextCapabilities caps = GLContext.getCapabilities();
+ long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- GLChecks.ensurePackPBOdisabled();
+ GLChecks.ensurePackPBOdisabled(caps);
Buffe...
[truncated message content] |
|
From: <eli...@us...> - 2006-11-19 12:48:59
|
Revision: 2661
http://svn.sourceforge.net/java-game-lib/?rev=2661&view=rev
Author: elias_naur
Date: 2006-11-19 04:48:57 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Shave off one ThreadLocal access in StateTracker.push/popAttrib()
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/StateTracker.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/StateTracker.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/StateTracker.java 2006-11-19 11:43:00 UTC (rev 2660)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/StateTracker.java 2006-11-19 12:48:57 UTC (rev 2661)
@@ -33,7 +33,6 @@
final class StateTracker {
private final ReferencesStack references_stack;
-
private final StateStack attrib_stack;
StateTracker() {
@@ -42,25 +41,32 @@
}
static void popAttrib() {
- if ((getClientAttribStack().popState() & GL11.GL_CLIENT_VERTEX_ARRAY_BIT) != 0) {
- getReferencesStack().popState();
+ getTracker().doPopAttrib();
+ }
+
+ private void doPopAttrib() {
+ if ((attrib_stack.popState() & GL11.GL_CLIENT_VERTEX_ARRAY_BIT) != 0) {
+ references_stack.popState();
}
}
static void pushAttrib(int mask) {
- StateStack attrib_stack = getClientAttribStack();
+ getTracker().doPushAttrib(mask);
+ }
+
+ private void doPushAttrib(int mask) {
attrib_stack.pushState();
attrib_stack.setState(mask);
if ((mask & GL11.GL_CLIENT_VERTEX_ARRAY_BIT) != 0) {
- getReferencesStack().pushState();
+ references_stack.pushState();
}
}
+ private static StateTracker getTracker() {
+ return GLContext.getCapabilities().tracker;
+ }
+
static ReferencesStack getReferencesStack() {
return GLContext.getCapabilities().tracker.references_stack;
}
-
- private static StateStack getClientAttribStack() {
- return GLContext.getCapabilities().tracker.attrib_stack;
- }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2006-11-19 11:43:03
|
Revision: 2660
http://svn.sourceforge.net/java-game-lib/?rev=2660&view=rev
Author: elias_naur
Date: 2006-11-19 03:43:00 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
Display: Don't add the shutdown hook twice when a previous create() call has failed
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2006-11-19 09:08:26 UTC (rev 2659)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2006-11-19 11:43:00 UTC (rev 2660)
@@ -657,6 +657,24 @@
create(pixel_format, null);
}
+ private static void removeShutdownHook() {
+ AccessController.doPrivileged(new PrivilegedAction() {
+ public Object run() {
+ Runtime.getRuntime().removeShutdownHook(shutdown_hook);
+ return null;
+ }
+ });
+ }
+
+ private static void registerShutdownHook() {
+ AccessController.doPrivileged(new PrivilegedAction() {
+ public Object run() {
+ Runtime.getRuntime().addShutdownHook(shutdown_hook);
+ return null;
+ }
+ });
+ }
+
/**
* Create the OpenGL context with the given minimum parameters. If isFullscreen() is true or if windowed
* context are not supported on the platform, the display mode will be switched to the mode returned by
@@ -675,12 +693,8 @@
throw new IllegalStateException("Only one LWJGL context may be instantiated at any one time.");
if (pixel_format == null)
throw new NullPointerException("pixel_format cannot be null");
- AccessController.doPrivileged(new PrivilegedAction() {
- public Object run() {
- Runtime.getRuntime().addShutdownHook(shutdown_hook);
- return null;
- }
- });
+ removeShutdownHook();
+ registerShutdownHook();
if (fullscreen)
switchDisplayMode();
try {
@@ -781,12 +795,7 @@
x = y = -1;
cached_icons = null;
reset();
- AccessController.doPrivileged(new PrivilegedAction() {
- public Object run() {
- Runtime.getRuntime().removeShutdownHook(shutdown_hook);
- return null;
- }
- });
+ removeShutdownHook();
}
private static void destroyPeerInfo() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2006-11-19 09:08:29
|
Revision: 2659
http://svn.sourceforge.net/java-game-lib/?rev=2659&view=rev
Author: matzon
Date: 2006-11-19 01:08:26 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
updating to actual b4
Added Paths:
-----------
tags/lwjgl1.0beta4/build.xml
Copied: tags/lwjgl1.0beta4/build.xml (from rev 2658, trunk/LWJGL/build.xml)
===================================================================
--- tags/lwjgl1.0beta4/build.xml (rev 0)
+++ tags/lwjgl1.0beta4/build.xml 2006-11-19 09:08:26 UTC (rev 2659)
@@ -0,0 +1,866 @@
+<project name="LWJGL" default="all" basedir=".">
+
+ <!-- ================================================================== -->
+ <!-- Global properties for build -->
+ <!-- ================================================================== -->
+ <property name="lwjgl.src" location="src" />
+ <property name="lwjgl.src.native" location="${lwjgl.src}/native" />
+ <property name="lwjgl.src.headers" location="${lwjgl.src.native}/common" />
+ <property name="lwjgl.src.templates" location="${lwjgl.src}/templates" />
+ <property name="lwjgl.bin" location="bin" />
+ <property name="lwjgl.lib" location="libs" />
+ <property name="lwjgl.dist" location="dist" />
+ <property name="lwjgl.docs" location="doc" />
+ <property name="lwjgl.temp" location="temp" />
+ <property name="lwjgl.res" location="res" />
+ <property name="lwjgl.version" value="1.0beta4" />
+
+ <property name="opengl-template-pattern" value="org/lwjgl/opengl/GL*.java,org/lwjgl/opengl/ARB*.java,org/lwjgl/opengl/ATI*.java,org/lwjgl/opengl/EXT*.java,org/lwjgl/opengl/NV*.java,org/lwjgl/opengl/HP*.java,org/lwjgl/opengl/IBM*.java,org/lwjgl/opengl/SUN*.java,org/lwjgl/opengl/SGIS*.java"/>
+ <!-- ================================================================== -->
+ <!-- Filesets used for targets -->
+ <!-- ================================================================== -->
+
+ <!-- Files to include in the lwjgl.jar file -->
+ <fileset id="lwjgl.fileset" dir="${lwjgl.bin}">
+ <include name="org/**/*" />
+ <exclude name="org/lwjgl/fmod3/**" />
+ <exclude name="org/lwjgl/test/**" />
+ <exclude name="org/lwjgl/util/**" />
+ <exclude name="org/lwjgl/devil/**" />
+ <exclude name="org/lwjgl/examples/**" />
+ </fileset>
+
+ <fileset id="lwjgl_util_applet.fileset" dir="${lwjgl.bin}">
+ <exclude name="**.*"/>
+ <include name="org/lwjgl/util/applet/**"/>
+ </fileset>
+
+ <!-- Files to include in the lwjgl_test.jar file -->
+ <fileset id="lwjgl_test.fileset" dir="${lwjgl.bin}">
+ <exclude name="**.*" />
+ <include name="org/lwjgl/test/**" />
+ <include name="org/lwjgl/examples/**" />
+ </fileset>
+
+ <!-- More files to include in the lwjgl_test.jar file -->
+ <fileset id="lwjgl_test_extra.fileset" dir="${lwjgl.src}/java">
+ <exclude name="**.*" />
+ <include name="org/lwjgl/test/opengl/shaders/shaderFP.fp" />
+ <include name="org/lwjgl/test/opengl/shaders/shaderFP.vp" />
+ <include name="org/lwjgl/test/opengl/shaders/shaderFSH.fsh" />
+ <include name="org/lwjgl/test/opengl/shaders/shaderFSH.vsh" />
+ <include name="org/lwjgl/test/opengl/shaders/shaderVP.vp" />
+ <include name="org/lwjgl/test/opengl/shaders/shaderVSH.vsh" />
+ </fileset>
+
+ <!-- Files to include in the lwjgl_util.jar file -->
+ <fileset id="lwjgl_util.fileset" dir="${lwjgl.bin}">
+ <exclude name="**.*" />
+ <exclude name="org/lwjgl/util/generator/**" />
+ <exclude name="org/lwjgl/util/applet/**" />
+ <include name="org/lwjgl/util/**" />
+ </fileset>
+
+ <!-- Files to include in the lwjgl_fmod3.jar file -->
+ <fileset id="lwjgl_fmod3.fileset" dir="${lwjgl.bin}">
+ <exclude name="**.*" />
+ <include name="org/lwjgl/fmod3/**" />
+ </fileset>
+
+ <!-- Files to include in the lwjgl_devil.jar file -->
+ <fileset id="lwjgl_devil.fileset" dir="${lwjgl.bin}">
+ <exclude name="**.*"/>
+ <include name="org/lwjgl/devil/**"/>
+ </fileset>
+
+ <!-- Files to include in the lwjgl_applet.jar file -->
+ <fileset id="lwjgl_applet.fileset" dir="${lwjgl.bin}">
+ <exclude name="**.*"/>
+ <include name="org/lwjgl/test/applet/**"/>
+ </fileset>
+
+ <!-- Files to make Javadoc from -->
+ <fileset id="lwjgl.javadoc.fileset" dir="${lwjgl.src}">
+ <include name="**/*.java" />
+ <exclude name="native/**" />
+ <exclude name="templates/**" />
+ <exclude name="java/org/lwjgl/test/**" />
+ <exclude name="java/org/lwjgl/examples/**" />
+ <exclude name="java/org/lwjgl/util/generator/**" />
+ </fileset>
+
+ <!-- Files to include in doc package -->
+ <patternset id="lwjgl-docs.fileset">
+ <include name="CREDITS" />
+ <include name="LICENSE" />
+ <include name="README" />
+ <include name="lwjgl_hidden_switches.text" />
+ <include name="3rdparty/*" />
+ </patternset>
+
+ <!-- Files to include in win32 package -->
+ <patternset id="lwjgl-win32.fileset">
+ <include name="lwjgl.dll" />
+ <include name="OpenAL32.dll" />
+ <include name="jinput-dx8.dll" />
+ <include name="jinput-raw.dll" />
+ </patternset>
+
+ <!-- Files to include in win32 optional package -->
+ <patternset id="lwjgl-win32_optional.fileset">
+ <include name="lwjgl-fmod3.dll" />
+ <include name="lwjgl-devil.dll" />
+ <include name="DevIL.dll" />
+ <include name="ILU.dll" />
+ <include name="ILUT.dll" />
+ </patternset>
+
+ <!-- Files to include in linux, glibc2.3 package -->
+ <patternset id="lwjgl-linux.fileset">
+ <include name="liblwjgl*.so" />
+ <include name="libopenal.so" />
+ <include name="libjinput-linux.so" />
+ </patternset>
+
+ <!-- Files to include in linux optional, glibc2.3 package -->
+ <patternset id="lwjgl-linux_optional.fileset">
+ <include name="liblwjgl-fmod3.so" />
+ <include name="liblwjgl-devil.so" />
+ <include name="libIL.so" />
+ <include name="libILU.so" />
+ <include name="libILUT.so" />
+ </patternset>
+
+ <!-- Files to include in mac os x package -->
+ <patternset id="lwjgl-macosx.fileset">
+ <include name="liblwjgl.jnilib" />
+ <include name="openal.dylib" />
+ <include name="libjinput-osx.jnilib" />
+ <include name="libjinput-osx-legacy.jnilib" />
+ </patternset>
+
+ <!-- Files to include in mac os x optional package -->
+ <patternset id="lwjgl-macosx_optional.fileset">
+ <include name="liblwjgl-fmod3.jnilib" />
+ <include name="liblwjgl-devil.jnilib" />
+ <include name="libIL.dylib" />
+ <include name="libILU.dylib" />
+ <include name="libILUT.dylib" />
+ </patternset>
+
+ <!-- Files to include in source distribution -->
+ <fileset id="lwjgl.source.fileset" dir=".">
+ <include name="build.xml" />
+ <include name="src/**" />
+ <include name="platform_build/**/*" />
+ </fileset>
+
+ <!-- files in the base package -->
+ <patternset id="lwjgl_base">
+ <include name="**" />
+ <exclude name="jar/lwjgl_fmod3.jar" />
+ <exclude name="jar/lwjgl_devil.jar" />
+ <exclude name="native/win32/lwjgl-*.dll" />
+ <exclude name="native/win32/DevIL.dll" />
+ <exclude name="native/win32/ILU.dll" />
+ <exclude name="native/win32/ILUT.dll" />
+ <exclude name="native/linux/libIL*.so" />
+ <exclude name="native/linux/liblwjgl-*.so" />
+ <exclude name="native/macosx/libIL*.dylib" />
+ <exclude name="native/macosx/liblwjgl-*.jnilib" />
+ <exclude name="res/ILtest.*" />
+ <exclude name="res/Missing_you.mod" />
+ <exclude name="res/phero*.*" />
+ <exclude name="doc/3rdparty/openil_license.txt" />
+ </patternset>
+
+ <!-- files in the optional package -->
+ <patternset id="lwjgl_optional">
+ <include name="jar/lwjgl_fmod3.jar" />
+ <include name="jar/lwjgl_devil.jar" />
+ <include name="native/win32/lwjgl-*.dll" />
+ <include name="native/win32/DevIL.dll" />
+ <include name="native/win32/ILU.dll" />
+ <include name="native/win32/ILUT.dll" />
+ <include name="native/linux/libIL*.so" />
+ <include name="native/linux/liblwjgl-*.so" />
+ <include name="native/macosx/libIL*.dylib" />
+ <include name="native/macosx/liblwjgl-*.jnilib" />
+ <include name="res/**" />
+ <exclude name="res/logo/**" />
+ <exclude name="res/spaceinvaders/**" />
+ <exclude name="res/*.wav" />
+ <exclude name="res/*.xpm" />
+ <include name="doc/3rdparty/openil_license.txt" />
+ <include name="doc/CREDITS" />
+ <include name="doc/LICENSE" />
+ <include name="doc/README" />
+ </patternset>
+
+ <!-- files in the lwjgl_applet package -->
+ <patternset id="lwjgl_applet">
+ <include name="applet/**" />
+ <exclude name="applet/appletviewer.policy" />
+ <exclude name="applet/lwjglkeystore" />
+ </patternset>
+
+ <uptodate property="lwjgl.main.built" targetfile="${lwjgl.lib}/win32/lwjgl.dll" >
+ <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c*"/>
+ <srcfiles dir= "${lwjgl.src.native}/generated" includes="*.c"/>
+ <srcfiles dir= "${lwjgl.src.native}/windows" includes="*.c"/>
+ </uptodate>
+
+ <uptodate property="lwjgl.fmod.built" targetfile="${lwjgl.lib}/win32/lwjgl-fmod3.dll" >
+ <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c"/>
+ <srcfiles dir= "${lwjgl.src.native}/common/fmod3" includes="*.c"/>
+ </uptodate>
+
+ <uptodate property="lwjgl.devil.built" targetfile="${lwjgl.lib}/win32/lwjgl-devil.dll" >
+ <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c"/>
+ <srcfiles dir= "${lwjgl.src.native}/common/devil" includes="*.c"/>
+ </uptodate>
+
+ <!-- ================================================================== -->
+ <!-- Everything below this line is targets. -->
+ <!-- Do not modify, unless you know what you're doing -->
+ <!-- ================================================================== -->
+
+ <!-- ================================================================== -->
+ <!-- Initialize build -->
+ <!-- ================================================================== -->
+ <target name="-initialize">
+ <mkdir dir="${lwjgl.bin}" taskname="initialiazing bin folder" />
+ <mkdir dir="${lwjgl.bin}/lwjgl" taskname="initialiazing bin folder" />
+ <mkdir dir="${lwjgl.bin}/devil" taskname="initialiazing bin folder" />
+ <mkdir dir="${lwjgl.bin}/fmod3" taskname="initialiazing bin folder" />
+ <mkdir dir="${lwjgl.lib}" taskname="initialiazing lib folder" />
+ <mkdir dir="${lwjgl.dist}" taskname="initialiazing dist folder" />
+ <mkdir dir="${lwjgl.docs}/javadoc" taskname="initialiazing docs folder" />
+ <mkdir dir="${lwjgl.res}" taskname="initialiazing res folder" />
+ <mkdir dir="${lwjgl.temp}" taskname="initialiazing temp folder" />
+ <mkdir dir="${lwjgl.temp}/jar" taskname="initialiazing temp/jar folder" />
+ <mkdir dir="${lwjgl.temp}/doc" taskname="initialiazing temp/doc folder" />
+ <mkdir dir="${lwjgl.temp}/res" taskname="initialiazing temp/res folder" />
+ <mkdir dir="${lwjgl.temp}/native" taskname="initialiazing temp/native folder" />
+ <mkdir dir="${lwjgl.temp}/native/win32" taskname="initialiazing temp/win32 folder" />
+ <mkdir dir="${lwjgl.temp}/native/linux" taskname="initialiazing temp/linux folder" />
+ <mkdir dir="${lwjgl.temp}/native/macosx" taskname="initialiazing temp/macosx folder" />
+ </target>
+
+ <target name="clean-generated" description="Deletes the generated java and native source">
+ <delete quiet="true" failonerror="false">
+ <fileset dir="${lwjgl.src}/generated" includes="**"/>
+ <fileset dir="${lwjgl.src.native}/generated" includes="**"/>
+ </delete>
+ </target>
+
+ <!-- Cleans up any files created during the execution of this script -->
+ <target name="clean" description="Cleans the diectories controlled by this ant script">
+ <delete dir="${lwjgl.temp}" quiet="true" failonerror="false" taskname="cleaning temp folder" />
+ <delete dir="${lwjgl.docs}/javadoc" quiet="true" failonerror="false" taskname="cleaning javadoc folder" />
+ <delete dir="${lwjgl.bin}" quiet="true" failonerror="false" taskname="cleaning bin folder" />
+ </target>
+
+ <!-- Creates a distribution of LWJGL -->
+ <target name="release" description="Creates a distribution of LWJGL using supplied native binaries">
+ <!-- Warn user -->
+ <echo message="Before running the release target, please manually compile all platforms and place required files in ${lwjgl.lib}/win32, ${lwjgl.lib}/linux and ${lwjgl.lib}/macosx${line.separator}Missing files will result in a successfull built, but with incomplete release zips"/>
+ <input
+ message="All data in the ${lwjgl.dist} folder will be deleted. Continue? "
+ validargs="yes,no"
+ addproperty="do.delete"
+ />
+ <condition property="do.abort">
+ <equals arg1="no" arg2="${do.delete}"/>
+ </condition>
+ <fail if="do.abort">Build aborted by user.</fail>
+
+ <!-- prepare -->
+ <delete dir="${lwjgl.dist}" quiet="true" failonerror="false" />
+ <antcall target="clean" />
+ <antcall target="-initialize" />
+
+ <!-- compile and create jars -->
+ <antcall target="compile" />
+ <antcall target="javadoc" />
+ <antcall target="-createjars" />
+ <antcall target="applet-release" />
+
+ <!-- copy resources to res folder -->
+ <copy todir="${lwjgl.temp}/res">
+ <fileset dir="res"/>
+ </copy>
+
+ <!-- copy docs -->
+ <copy todir="${lwjgl.temp}/doc">
+ <fileset dir="${lwjgl.docs}">
+ <patternset refid="lwjgl-docs.fileset" />
+ </fileset>
+ </copy>
+
+ <!-- create distribution from files in libs/ and temp/ -->
+ <antcall target="-distribution_javadoc" />
+ <antcall target="-distribution_source" />
+ <antcall target="-distribute" />
+ </target>
+
+ <target name="all" description="Creates the Java archives and the natives for the current platform" depends="jars, compile_native"/>
+
+ <!-- Create ONLY the jar archives -->
+ <target name="jars" description="Creates the Java archives ONLY and places them in libs/" depends="-initialize, compile, -createjars">
+ <move todir="libs/">
+ <fileset dir="${lwjgl.temp}/jar">
+ <include name="*.jar"/>
+ </fileset>
+ </move>
+ </target>
+
+ <!-- Packages the java files -->
+ <target name="-createjars">
+ <!-- Create lwjgl.jar -->
+ <jar destfile="${lwjgl.temp}/jar/lwjgl.jar" taskname="lwjgl.jar">
+ <fileset refid="lwjgl.fileset" />
+ <manifest>
+ <attribute name="Sealed" value="true"/>
+ </manifest>
+ </jar>
+
+ <!-- Create lwjgl_util_applet.jar -->
+ <jar destfile="${lwjgl.temp}/jar/lwjgl_util_applet.jar" taskname="lwjgl_util_applet.jar">
+ <fileset refid="lwjgl_util_applet.fileset" />
+ <manifest>
+ <attribute name="Sealed" value="true"/>
+ </manifest>
+ </jar>
+
+ <!-- Create lwjgl_test.jar -->
+ <jar destfile="${lwjgl.temp}/jar/lwjgl_test.jar" taskname="lwjgl_test.jar">
+ <fileset refid="lwjgl_test.fileset" />
+ <fileset refid="lwjgl_test_extra.fileset" />
+ </jar>
+
+ <!-- Create lwjgl_util.jar -->
+ <jar destfile="${lwjgl.temp}/jar/lwjgl_util.jar" taskname="lwjgl_util.jar">
+ <fileset refid="lwjgl_util.fileset" />
+ </jar>
+
+ <!-- Create lwjgl_fmod.jar -->
+ <jar destfile="${lwjgl.temp}/jar/lwjgl_fmod3.jar" taskname="lwjgl_fmod3.jar">
+ <fileset refid="lwjgl_fmod3.fileset" />
+ <manifest>
+ <attribute name="Sealed" value="true"/>
+ </manifest>
+ </jar>
+
+ <!-- Create lwjgl_devil.jar -->
+ <jar destfile="${lwjgl.temp}/jar/lwjgl_devil.jar" taskname="lwjgl_devil.jar">
+ <fileset refid="lwjgl_devil.fileset" />
+ <manifest>
+ <attribute name="Sealed" value="false"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="applettest" depends="applet">
+ <exec executable="appletviewer">
+ <arg value="-J-Djava.security.policy=applet/appletviewer.policy"/>
+ <arg path="applet/applet.html"/>
+ </exec>
+ </target>
+
+ <target name="runtest" depends="all">
+ <fail message="test.mainclass is not set. Use 'ant -Dtest.mainclass=<main-class> runtest'" unless="test.mainclass"/>
+ <condition property="native_path" value="libs/win32">
+ <os family="windows" />
+ </condition>
+
+ <condition property="native_path" value="libs/linux">
+ <os name="Linux" />
+ </condition>
+
+ <condition property="native_path" value="libs/macosx">
+ <os name="Mac OS X" />
+ </condition>
+ <java classname="${test.mainclass}" classpath="res:${lwjgl.lib}/lwjgl.jar:${lwjgl.lib}/lwjgl_util.jar:${lwjgl.lib}/lwjgl_test.jar:${lwjgl.lib}/jinput.jar" fork="true">
+ <jvmarg value="-Dorg.lwjgl.util.Debug=true"/>
+ <jvmarg value="-Djava.library.path=${native_path}"/>
+ </java>
+ </target>
+
+ <target name="applet" depends="jars">
+ <antcall target="-applet">
+ <param name="keystore" value="applet/lwjglkeystore"/>
+ <param name="alias" value="lwjgl"/>
+ <param name="password" value="123456"/>
+ </antcall>
+ </target>
+
+ <target name="applet-release">
+ <input message="Please type the password for the keystore" addproperty="sign.pwd"/>
+
+ <antcall target="-applet">
+ <param name="keystore" value="signing/matzon_java_code_signing.keystore"/>
+ <param name="alias" value="oddlabs_java_code_signing"/>
+ <param name="password" value="${sign.pwd}"/>
+ </antcall>
+ </target>
+
+ <target name="-applet">
+
+ <!-- Create lwjgl_applet.jar -->
+ <jar destfile="applet/lwjgl_applet.jar" taskname="lwjgl_applet.jar">
+ <fileset refid="lwjgl_applet.fileset" />
+ </jar>
+
+ <!-- create each of the native jars -->
+ <jar destfile="applet/windows_natives.jar" taskname="windows_natives.jar">
+ <fileset dir="${lwjgl.lib}/win32">
+ <patternset refid="lwjgl-win32.fileset"/>
+ <patternset refid="lwjgl-win32_optional.fileset"/>
+ <include name="fmod.dll"/>
+ </fileset>
+ </jar>
+ <signjar jar="applet/windows_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+
+ <jar destfile="applet/linux_natives.jar" taskname="linux_natives.jar">
+ <fileset dir="${lwjgl.lib}/linux">
+ <patternset refid="lwjgl-linux.fileset"/>
+ <patternset refid="lwjgl-linux_optional.fileset"/>
+ <include name="libfmod.so"/>
+ </fileset>
+ </jar>
+ <signjar jar="applet/linux_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+
+ <jar destfile="applet/macosx_natives.jar" taskname="macosx_natives.jar">
+ <fileset dir="${lwjgl.lib}/macosx">
+ <patternset refid="lwjgl-macosx.fileset"/>
+ <patternset refid="lwjgl-macosx_optional.fileset"/>
+ <include name="libfmod.dylib"/>
+ </fileset>
+ </jar>
+ <signjar jar="applet/macosx_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+
+ <!-- add it to a natives jar -->
+ <jar destfile="applet/natives.jar" taskname="natives.jar">
+ <fileset dir="applet">
+ <include name="windows_natives.jar"/>
+ <include name="linux_natives.jar"/>
+ <include name="macosx_natives.jar"/>
+ </fileset>
+ </jar>
+ <delete file="applet/windows_natives.jar"/>
+ <delete file="applet/linux_natives.jar"/>
+ <delete file="applet/macosx_natives.jar"/>
+
+ <copy file="${lwjgl.lib}/lwjgl.jar" todir="applet"/>
+ <copy file="${lwjgl.lib}/lwjgl_util_applet.jar" todir="applet"/>
+ <copy file="${lwjgl.lib}/lwjgl_util.jar" todir="applet"/>
+ <copy file="${lwjgl.lib}/lwjgl_fmod3.jar" todir="applet"/>
+ <copy file="${lwjgl.lib}/lwjgl_devil.jar" todir="applet"/>
+ <copy file="${lwjgl.lib}/jinput.jar" todir="applet"/>
+ <zip destfile="applet/res.jar">
+ <zipfileset dir="${lwjgl.res}" includes="Footsteps.wav, ILtest.tga, Missing_you.mod"/>
+ </zip>
+ <signjar jar="applet/lwjgl.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="applet/jinput.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="applet/lwjgl_util_applet.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="applet/lwjgl_fmod3.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="applet/lwjgl_devil.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ </target>
+
+ <!-- Distributes files -->
+ <target name="-distribute">
+ <delete>
+ <fileset dir="${lwjgl.temp}/native/" includes="**/*"/>
+ </delete>
+
+ <copy file="${lwjgl.lib}/jinput.jar" todir="${lwjgl.temp}/jar"/>
+ <copy todir="${lwjgl.temp}/native/win32">
+ <fileset dir="${lwjgl.lib}/win32">
+ <patternset refid="lwjgl-win32.fileset" />
+ <patternset refid="lwjgl-win32_optional.fileset" />
+ </fileset>
+ </copy>
+ <copy todir="${lwjgl.temp}/native/linux">
+ <fileset dir="${lwjgl.lib}/linux">
+ <patternset refid="lwjgl-linux.fileset" />
+ <patternset refid="lwjgl-linux_optional.fileset" />
+ </fileset>
+ </copy>
+ <copy todir="${lwjgl.temp}/native/macosx">
+ <fileset dir="${lwjgl.lib}/macosx">
+ <patternset refid="lwjgl-macosx.fileset" />
+ <patternset refid="lwjgl-macosx_optional.fileset" />
+ </fileset>
+ </copy>
+
+ <!-- create base package -->
+ <zip destfile="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip">
+ <zipfileset dir="${lwjgl.temp}" prefix="lwjgl-${lwjgl.version}/">
+ <patternset refid="lwjgl_base"/>
+ </zipfileset>
+ </zip>
+
+ <!-- create optional package -->
+ <zip destfile="${lwjgl.dist}/lwjgl_optional-${lwjgl.version}.zip">
+ <zipfileset dir="${lwjgl.temp}" prefix="lwjgl_optional-${lwjgl.version}/">
+ <patternset refid="lwjgl_optional"/>
+ </zipfileset>
+ </zip>
+
+ <!-- create applet package -->
+ <zip destfile="${lwjgl.dist}/lwjgl_applet-${lwjgl.version}.zip">
+ <zipfileset dir="." prefix="lwjgl_applet-${lwjgl.version}/">
+ <patternset refid="lwjgl_applet"/>
+ </zipfileset>
+ </zip>
+ </target>
+
+ <!-- Creates a versioned distribution of javadocs -->
+ <target name="-distribution_javadoc">
+ <zip destfile="${lwjgl.dist}/lwjgl-docs-${lwjgl.version}.zip" basedir="${lwjgl.docs}" includes="javadoc/**" />
+ </target>
+
+ <!-- Creates a versioned distribution of the source code -->
+ <target name="-distribution_source">
+ <zip destfile="${lwjgl.dist}/lwjgl-source-${lwjgl.version}.zip">
+ <fileset refid="lwjgl.source.fileset" />
+ </zip>
+ </target>
+
+ <!-- Compiles the Java source code -->
+ <target name="compile" description="Compiles the java source code" depends="-initialize">
+ <javac debug="yes" destdir="${lwjgl.bin}" includes="org/lwjgl/opengl/**" source="1.4" target="1.4" classpath="${lwjgl.lib}/jinput.jar" taskname="core">
+ <src path="${lwjgl.src}/java/"/>
+ <src path="${lwjgl.src}/generated/"/>
+ <include name="org/lwjgl/*.java"/>
+ <include name="org/lwjgl/input/**"/>
+ <include name="org/lwjgl/opengl/**"/>
+ <include name="org/lwjgl/openal/**"/>
+ <include name="org/lwjgl/util/**"/>
+ <exclude name="org/lwjgl/util/generator/**"/>
+ </javac>
+ <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/test/**" source="1.4" target="1.4" taskname="test" />
+ <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/examples/**" source="1.4" target="1.4" taskname="examples" />
+ <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/fmod3/**" source="1.4" target="1.4" taskname="fmod" />
+ <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/devil/**" source="1.4" target="1.4" taskname="devil"/>
+ </target>
+
+ <!-- Generates the native headers from source files -->
+ <target name="headers" description="invokes javah on java classes" depends="compile">
+ <!-- platform specific classes -->
+ <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/linux" force="yes">
+ <class name="org.lwjgl.opengl.LinuxAWTInput" />
+ <class name="org.lwjgl.opengl.LinuxEvent" />
+ <class name="org.lwjgl.opengl.LinuxMouse" />
+ <class name="org.lwjgl.opengl.LinuxKeyboard" />
+ <class name="org.lwjgl.opengl.LinuxDisplay" />
+ <class name="org.lwjgl.opengl.LinuxPeerInfo" />
+ <class name="org.lwjgl.opengl.LinuxPbufferPeerInfo" />
+ <class name="org.lwjgl.opengl.LinuxDisplayPeerInfo" />
+ <class name="org.lwjgl.opengl.LinuxAWTGLCanvasPeerInfo" />
+ <class name="org.lwjgl.opengl.LinuxContextImplementation" />
+ <class name="org.lwjgl.opengl.LinuxCanvasImplementation" />
+ </javah>
+
+ <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/windows" force="yes">
+ <class name="org.lwjgl.opengl.WindowsAWTInput" />
+ <class name="org.lwjgl.opengl.WindowsKeyboard" />
+ <class name="org.lwjgl.opengl.WindowsDirectInput8" />
+ <class name="org.lwjgl.opengl.WindowsDirectInputDevice8" />
+ <class name="org.lwjgl.opengl.WindowsDirectInput3" />
+ <class name="org.lwjgl.opengl.WindowsDirectInputDevice3" />
+ <class name="org.lwjgl.opengl.WindowsPbufferPeerInfo" />
+ <class name="org.lwjgl.opengl.WindowsDisplay" />
+ <class name="org.lwjgl.opengl.WindowsRegistry" />
+ <class name="org.lwjgl.WindowsSysImplementation" />
+ <class name="org.lwjgl.opengl.WindowsAWTGLCanvasPeerInfo" />
+ <class name="org.lwjgl.opengl.WindowsPeerInfo" />
+ <class name="org.lwjgl.opengl.WindowsDisplayPeerInfo" />
+ <class name="org.lwjgl.opengl.WindowsContextImplementation" />
+ </javah>
+
+ <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
+ <class name="org.lwjgl.opengl.MacOSXMouseEventQueue" />
+ <class name="org.lwjgl.opengl.MacOSXCanvasPeerInfo" />
+ <class name="org.lwjgl.opengl.MacOSXPeerInfo" />
+ <class name="org.lwjgl.opengl.MacOSXPbufferPeerInfo" />
+ <class name="org.lwjgl.opengl.MacOSXDisplay" />
+ <class name="org.lwjgl.opengl.MacOSXContextImplementation" />
+ </javah>
+
+ <!-- lwjgl -->
+ <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}" force="yes">
+ <class name="org.lwjgl.opengl.AWTSurfaceLock" />
+ <class name="org.lwjgl.DefaultSysImplementation" />
+ <class name="org.lwjgl.input.Cursor" />
+ <class name="org.lwjgl.input.Keyboard" />
+ <class name="org.lwjgl.input.Mouse" />
+
+ <class name="org.lwjgl.openal.ALC" />
+ <class name="org.lwjgl.openal.AL" />
+
+ <class name="org.lwjgl.opengl.GLContext" />
+ <class name="org.lwjgl.opengl.Pbuffer" />
+ </javah>
+
+ <!-- fmod -->
+ <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/fmod3" force="yes">
+ <class name="org.lwjgl.fmod3.FMOD" />
+ <class name="org.lwjgl.fmod3.FMusic" />
+ <class name="org.lwjgl.fmod3.FSound" />
+ </javah>
+
+ <!-- DevIL -->
+ <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/devil" force="yes">
+ <class name="org.lwjgl.devil.ILNative" />
+ </javah>
+ </target>
+
+ <!-- Creates the Javadoc -->
+ <target name="javadoc" description="Creates javadoc from java source code">
+ <javadoc destdir="${lwjgl.docs}/javadoc" author="true" version="true" use="true" source="1.4" windowtitle="LWJGL API">
+ <fileset refid="lwjgl.javadoc.fileset" />
+ <doctitle><![CDATA[<h1>Lightweight Java Game Toolkit</h1>]]></doctitle>
+ <bottom><![CDATA[<i>Copyright © 2002-2006 lwjgl.org. All Rights Reserved.</i>]]></bottom>
+ </javadoc>
+ </target>
+
+ <!-- Compiles the Java source code -->
+ <target name="generators" description="Compiles the native method generators">
+ <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/util/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, generate-opengl-capabilities, generate-opengl-references" description="Generates java and native source"/>
+
+ <target name="generate-openal" depends="generators" 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.util.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}/generated"/>
+ <arg value="-d"/>
+ <arg path="${lwjgl.src.native}/generated"/>
+ <arg value="-Atypemap=org.lwjgl.util.generator.ALTypeMap"/>
+ <arg value="-Ageneratechecks"/>
+ <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/openal/AL10.java"/>
+ </apply>
+ </target>
+
+ <target name="generate-opengl" depends="generators" 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 -->
+ <apply executable="apt" parallel="true">
+ <arg value="-nocompile"/>
+ <arg value="-factory"/>
+ <arg value="org.lwjgl.util.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}/generated"/>
+ <arg value="-d"/>
+ <arg path="${lwjgl.src.native}/generated"/>
+ <!--<arg value="-Ageneratechecks"/>-->
+ <arg value="-Acontextspecific"/>
+ <arg value="-Atypemap=org.lwjgl.util.generator.GLTypeMap"/>
+ <fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
+ </apply>
+ </target>
+
+ <target name="generate-opengl-references" depends="generators" description="Generates java and native source for GL">
+ <!-- Generate context capabilities -->
+ <apply executable="apt" parallel="true">
+ <arg value="-nocompile"/>
+ <arg value="-factory"/>
+ <arg value="org.lwjgl.util.generator.ReferencesGeneratorProcessorFactory"/>
+ <arg value="-cp"/>
+ <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
+ <arg value="-s"/>
+ <arg path="${lwjgl.src}/generated"/>
+ <fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
+ </apply>
+ </target>
+
+ <target name="generate-opengl-capabilities" depends="generators" description="Generates java and native source for GL">
+ <!-- Generate context capabilities -->
+ <apply executable="apt" parallel="true">
+ <arg value="-nocompile"/>
+ <arg value="-factory"/>
+ <arg value="org.lwjgl.util.generator.ContextGeneratorProcessorFactory"/>
+ <arg value="-cp"/>
+ <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
+ <arg value="-s"/>
+ <arg path="${lwjgl.src}/generated"/>
+ <arg value="-Acontextspecific"/>
+ <fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
+ </apply>
+ </target>
+
+ <target name="compile_native_all" depends="compile_native, compile_native_optional" description="Compiles the native files"/>
+
+ <!-- Compiles the native files -->
+ <target name="compile_native" depends="headers" description="Compiles the native files">
+ <!-- check each platform, and run their build target -->
+ <condition property="lwjgl.platform.windows">
+ <os family="windows" />
+ </condition>
+ <antcall target="-compile_native_win32" />
+
+ <condition property="lwjgl.platform.linux">
+ <os name="Linux" />
+ </condition>
+ <antcall target="-compile_native_linux" />
+
+ <condition property="lwjgl.platform.macosx">
+ <os name="Mac OS X" />
+ </condition>
+ <antcall target="-compile_native_macosx" />
+ </target>
+
+ <target name="compile_native_optional" depends="headers" description="Compiles the native files">
+ <!-- check each platform, and run their build target -->
+ <condition property="lwjgl.platform.windows">
+ <os family="windows" />
+ </condition>
+ <antcall target="-compile_native_win32_optional" />
+
+ <condition property="lwjgl.platform.linux">
+ <os name="Linux" />
+ </condition>
+ <antcall target="-compile_native_linux_optional" />
+ <condition property="lwjgl.platform.macosx">
+ <os name="Mac OS X" />
+ </condition>
+ <antcall target="-compile_native_macosx_optional" />
+ </target>
+
+ <!-- Compiles LWJGL on Win32 platforms -->
+ <target name="-compile_native_win32" if="lwjgl.platform.windows">
+ <ant antfile="platform_build/windows_ant/build.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/lwjgl/lwjgl.dll" todir="${lwjgl.lib}/win32"/>
+ </target>
+
+ <target name="-compile_native_win32_optional" if="lwjgl.platform.windows">
+ <ant antfile="platform_build/windows_ant/build_fmod3.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/fmod3/lwjgl-fmod3.dll" todir="${lwjgl.lib}/win32"/>
+
+ <ant antfile="platform_build/windows_ant/build_devil.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/devil/lwjgl-devil.dll" todir="${lwjgl.lib}/win32"/>
+ </target>
+
+ <!-- Compiles LWJGL on Linux platforms -->
+ <target name="-compile_native_linux" if="lwjgl.platform.linux">
+ <ant antfile="platform_build/linux_ant/build.xml" inheritAll="false"/>
+ <copy todir="${lwjgl.lib}/linux">
+ <fileset dir="${lwjgl.bin}/lwjgl" includes="liblwjgl*.so"/>
+ </copy>
+ </target>
+
+ <target name="-compile_native_linux_optional" if="lwjgl.platform.linux">
+ <ant antfile="platform_build/linux_ant/build_fmod3.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/fmod3/liblwjgl-fmod3.so" todir="${lwjgl.lib}/linux"/>
+
+ <ant antfile="platform_build/linux_ant/build_devil.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/devil/liblwjgl-devil.so" todir="${lwjgl.lib}/linux"/>
+ </target>
+
+ <target name="-compile_native_macosx" if="lwjgl.platform.macosx">
+ <ant antfile="platform_build/macosx_ant/build.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/lwjgl/liblwjgl.jnilib" todir="${lwjgl.lib}/macosx"/>
+ </target>
+
+ <!-- Compiles LWJGL on Mac OS X platforms -->
+ <target name="-compile_native_macosx_optional" if="lwjgl.platform.macosx">
+
+ <!-- check for required properties -->
+ <property environment="env"/>
+ <fail message="Missing FMOD path environment property" unless="env.FMOD"/>
+ <ant antfile="platform_build/macosx_ant/build_fmod3.xml" inheritAll="false"/>
+ <ant antfile="platform_build/macosx_ant/build_devil.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/fmod3/liblwjgl-fmod3.jnilib" todir="${lwjgl.lib}/macosx"/>
+ <copy file="${lwjgl.bin}/devil/liblwjgl-devil.jnilib" todir="${lwjgl.lib}/macosx"/>
+ </target>
+
+
+ <target name="webstart_demo" depends="jars">
+ <antcall target="-webstart_demo">
+ <param name="keystore" value="applet/lwjglkeystore"/>
+ <param name="alias" value="lwjgl"/>
+ <param name="password" value="123456"/>
+ </antcall>
+ </target>
+
+ <target name="webstart_demo-release" depends="jars">
+ <input message="Please type the password for the keystore" addproperty="sign.pwd"/>
+
+ <antcall target="-webstart_demo">
+ <param name="keystore" value="signing/matzon_java_code_signing.keystore"/>
+ <param name="alias" value="oddlabs_java_code_signing"/>
+ <param name="password" value="${sign.pwd}"/>
+ </antcall>
+ </target>
+
+ <!-- -->
+ <target name="-webstart_demo" description="Using released files, creates the necessary files used for jnlp demos">
+
+ <!-- delete existing temp -->
+ <delete dir="${lwjgl.temp}"/>
+
+ <!-- unzip common files -->
+ <unzip src="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip" dest="${lwjgl.temp}/jnlp/temp" overwrite="true"/>
+ <unzip src="${lwjgl.dist}/lwjgl_optional-${lwjgl.version}.zip" dest="${lwjgl.temp}/jnlp/temp" overwrite="true"/>
+
+ <!-- move files to unified structure -->
+ <move todir="${lwjgl.temp}/jnlp/temp">
+ <fileset dir="${lwjgl.temp}/jnlp/temp/lwjgl-${lwjgl.version}/">
+ <include name="**"/>
+ </fileset>
+ <fileset dir="${lwjgl.temp}/jnlp/temp/lwjgl_optional-${lwjgl.version}/">
+ <include name="**"/>
+ </fileset>
+ </move>
+
+ <!-- copy fmod dependent files -->
+ <copy file="${lwjgl.lib}/win32/fmod.dll" tofile="${lwjgl.temp}/jnlp/temp/native/win32/fmod.dll"/>
+ <copy file="${lwjgl.lib}/linux/libfmod.so" tofile="${lwjgl.temp}/jnlp/temp/native/linux/libfmod.so"/>
+
+ <!-- move relevant files to root -->
+ <move todir="${lwjgl.temp}/jnlp/" flatten="true">
+ <fileset dir="${lwjgl.temp}/jnlp/temp">
+ <include name="**/**.jar"/>
+ </fileset>
+ </move>
+
+ <!-- create native jars -->
+ <jar destfile="${lwjgl.temp}/jnlp/native_win32.jar" basedir="${lwjgl.temp}/jnlp/temp/native/win32"/>
+ <jar destfile="${lwjgl.temp}/jnlp/native_linux.jar" basedir="${lwjgl.temp}/jnlp/temp/native/linux"/>
+ <jar destfile="${lwjgl.temp}/jnlp/native_macosx.jar" basedir="${lwjgl.temp}/jnlp/temp/native/macosx"/>
+
+ <!-- create media jar -->
+ <jar destfile="${lwjgl.temp}/jnlp/media.jar" basedir="${lwjgl.res}"/>
+
+ <!-- sign 'em -->
+ <signjar jar="${lwjgl.temp}/jnlp/lwjgl.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/lwjgl_devil.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/lwjgl_fmod3.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/lwjgl_util.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/native_linux.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/native_macosx.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/native_win32.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ <signjar jar="${lwjgl.temp}/jnlp/jinput.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
+ </target>
+
+ <target name="changelog">
+ <cvschangelog destfile="changelog.xml"/>
+ <style in="changelog.xml" out="changelog.html" style="${ant.home}/etc/changelog.xsl">
+ <param name="title" expression="LWJGL ChangeLog"/>
+ <param name="module" expression="LWJGL"/>
+ <param name="cvsweb" expression="http://cvs.sourceforge.net/viewcvs.py/java-game-lib/"/>
+ </style>
+ </target>
+</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2006-11-19 09:07:45
|
Revision: 2658
http://svn.sourceforge.net/java-game-lib/?rev=2658&view=rev
Author: matzon
Date: 2006-11-19 01:07:43 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
being updated
Removed Paths:
-------------
tags/lwjgl1.0beta4/build.xml
Deleted: tags/lwjgl1.0beta4/build.xml
===================================================================
--- tags/lwjgl1.0beta4/build.xml 2006-11-19 09:04:28 UTC (rev 2657)
+++ tags/lwjgl1.0beta4/build.xml 2006-11-19 09:07:43 UTC (rev 2658)
@@ -1,842 +0,0 @@
-<project name="LWJGL" default="all" basedir=".">
-
- <!-- ================================================================== -->
- <!-- Global properties for build -->
- <!-- ================================================================== -->
- <property name="lwjgl.src" location="src" />
- <property name="lwjgl.src.native" location="${lwjgl.src}/native" />
- <property name="lwjgl.src.headers" location="${lwjgl.src.native}/common" />
- <property name="lwjgl.src.templates" location="${lwjgl.src}/templates" />
- <property name="lwjgl.bin" location="bin" />
- <property name="lwjgl.lib" location="libs" />
- <property name="lwjgl.dist" location="dist" />
- <property name="lwjgl.docs" location="doc" />
- <property name="lwjgl.temp" location="temp" />
- <property name="lwjgl.res" location="res" />
- <property name="lwjgl.version" value="1.0beta4" />
-
- <property name="opengl-template-pattern" value="org/lwjgl/opengl/GL*.java,org/lwjgl/opengl/ARB*.java,org/lwjgl/opengl/ATI*.java,org/lwjgl/opengl/EXT*.java,org/lwjgl/opengl/NV*.java,org/lwjgl/opengl/HP*.java,org/lwjgl/opengl/IBM*.java,org/lwjgl/opengl/SUN*.java,org/lwjgl/opengl/SGIS*.java"/>
- <!-- ================================================================== -->
- <!-- Filesets used for targets -->
- <!-- ================================================================== -->
-
- <!-- Files to include in the lwjgl.jar file -->
- <fileset id="lwjgl.fileset" dir="${lwjgl.bin}">
- <include name="org/**/*" />
- <exclude name="org/lwjgl/fmod3/**" />
- <exclude name="org/lwjgl/test/**" />
- <exclude name="org/lwjgl/util/**" />
- <exclude name="org/lwjgl/devil/**" />
- <exclude name="org/lwjgl/examples/**" />
- </fileset>
-
- <fileset id="lwjgl_util_applet.fileset" dir="${lwjgl.bin}">
- <exclude name="**.*"/>
- <include name="org/lwjgl/util/applet/**"/>
- </fileset>
-
- <!-- Files to include in the lwjgl_test.jar file -->
- <fileset id="lwjgl_test.fileset" dir="${lwjgl.bin}">
- <exclude name="**.*" />
- <include name="org/lwjgl/test/**" />
- <include name="org/lwjgl/examples/**" />
- </fileset>
-
- <!-- More files to include in the lwjgl_test.jar file -->
- <fileset id="lwjgl_test_extra.fileset" dir="${lwjgl.src}/java">
- <exclude name="**.*" />
- <include name="org/lwjgl/test/opengl/shaders/shaderFP.fp" />
- <include name="org/lwjgl/test/opengl/shaders/shaderFP.vp" />
- <include name="org/lwjgl/test/opengl/shaders/shaderFSH.fsh" />
- <include name="org/lwjgl/test/opengl/shaders/shaderFSH.vsh" />
- <include name="org/lwjgl/test/opengl/shaders/shaderVP.vp" />
- <include name="org/lwjgl/test/opengl/shaders/shaderVSH.vsh" />
- </fileset>
-
- <!-- Files to include in the lwjgl_util.jar file -->
- <fileset id="lwjgl_util.fileset" dir="${lwjgl.bin}">
- <exclude name="**.*" />
- <exclude name="org/lwjgl/util/generator/**" />
- <exclude name="org/lwjgl/util/applet/**" />
- <include name="org/lwjgl/util/**" />
- </fileset>
-
- <!-- Files to include in the lwjgl_fmod3.jar file -->
- <fileset id="lwjgl_fmod3.fileset" dir="${lwjgl.bin}">
- <exclude name="**.*" />
- <include name="org/lwjgl/fmod3/**" />
- </fileset>
-
- <!-- Files to include in the lwjgl_devil.jar file -->
- <fileset id="lwjgl_devil.fileset" dir="${lwjgl.bin}">
- <exclude name="**.*"/>
- <include name="org/lwjgl/devil/**"/>
- </fileset>
-
- <!-- Files to include in the lwjgl_applet.jar file -->
- <fileset id="lwjgl_applet.fileset" dir="${lwjgl.bin}">
- <exclude name="**.*"/>
- <include name="org/lwjgl/test/applet/**"/>
- </fileset>
-
- <!-- Files to make Javadoc from -->
- <fileset id="lwjgl.javadoc.fileset" dir="${lwjgl.src}">
- <include name="**/*.java" />
- <exclude name="native/**" />
- <exclude name="templates/**" />
- <exclude name="java/org/lwjgl/test/**" />
- <exclude name="java/org/lwjgl/examples/**" />
- <exclude name="java/org/lwjgl/util/generator/**" />
- </fileset>
-
- <!-- Files to include in doc package -->
- <patternset id="lwjgl-docs.fileset">
- <include name="CREDITS" />
- <include name="LICENSE" />
- <include name="README" />
- <include name="lwjgl_hidden_switches.text" />
- <include name="3rdparty/*" />
- </patternset>
-
- <!-- Files to include in win32 package -->
- <patternset id="lwjgl-win32.fileset">
- <include name="lwjgl.dll" />
- <include name="OpenAL32.dll" />
- <include name="jinput-dx8.dll" />
- <include name="jinput-raw.dll" />
- </patternset>
-
- <!-- Files to include in win32 optional package -->
- <patternset id="lwjgl-win32_optional.fileset">
- <include name="lwjgl-fmod3.dll" />
- <include name="lwjgl-devil.dll" />
- <include name="DevIL.dll" />
- <include name="ILU.dll" />
- <include name="ILUT.dll" />
- </patternset>
-
- <!-- Files to include in linux, glibc2.3 package -->
- <patternset id="lwjgl-linux.fileset">
- <include name="liblwjgl*.so" />
- <include name="libopenal.so" />
- <include name="libjinput-linux.so" />
- </patternset>
-
- <!-- Files to include in linux optional, glibc2.3 package -->
- <patternset id="lwjgl-linux_optional.fileset">
- <include name="liblwjgl-fmod3.so" />
- <include name="liblwjgl-devil.so" />
- <include name="libIL.so" />
- <include name="libILU.so" />
- <include name="libILUT.so" />
- </patternset>
-
- <!-- Files to include in mac os x package -->
- <patternset id="lwjgl-macosx.fileset">
- <include name="liblwjgl.jnilib" />
- <include name="openal.dylib" />
- <include name="libjinput-osx.jnilib" />
- <include name="libjinput-osx-legacy.jnilib" />
- </patternset>
-
- <!-- Files to include in mac os x optional package -->
- <patternset id="lwjgl-macosx_optional.fileset">
- <include name="liblwjgl-fmod3.jnilib" />
- <include name="liblwjgl-devil.jnilib" />
- <include name="libIL.dylib" />
- <include name="libILU.dylib" />
- <include name="libILUT.dylib" />
- </patternset>
-
- <!-- files in the base package -->
- <patternset id="lwjgl_base">
- <include name="**" />
- <exclude name="jar/lwjgl_fmod3.jar" />
- <exclude name="jar/lwjgl_devil.jar" />
- <exclude name="native/win32/lwjgl-*.dll" />
- <exclude name="native/win32/DevIL.dll" />
- <exclude name="native/win32/ILU.dll" />
- <exclude name="native/win32/ILUT.dll" />
- <exclude name="native/linux/libIL*.so" />
- <exclude name="native/linux/liblwjgl-*.so" />
- <exclude name="native/macosx/libIL*.dylib" />
- <exclude name="native/macosx/liblwjgl-*.jnilib" />
- <exclude name="res/ILtest.*" />
- <exclude name="res/Missing_you.mod" />
- <exclude name="res/phero*.*" />
- <exclude name="doc/3rdparty/openil_license.txt" />
- </patternset>
-
- <!-- files in the optional package -->
- <patternset id="lwjgl_optional">
- <include name="jar/lwjgl_fmod3.jar" />
- <include name="jar/lwjgl_devil.jar" />
- <include name="native/win32/lwjgl-*.dll" />
- <include name="native/win32/DevIL.dll" />
- <include name="native/win32/ILU.dll" />
- <include name="native/win32/ILUT.dll" />
- <include name="native/linux/libIL*.so" />
- <include name="native/linux/liblwjgl-*.so" />
- <include name="native/macosx/libIL*.dylib" />
- <include name="native/macosx/liblwjgl-*.jnilib" />
- <include name="res/**" />
- <exclude name="res/logo/**" />
- <exclude name="res/spaceinvaders/**" />
- <exclude name="res/*.wav" />
- <exclude name="res/*.xpm" />
- <include name="doc/3rdparty/openil_license.txt" />
- <include name="doc/CREDITS" />
- <include name="doc/LICENSE" />
- <include name="doc/README" />
- </patternset>
-
- <uptodate property="lwjgl.main.built" targetfile="${lwjgl.lib}/win32/lwjgl.dll" >
- <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c*"/>
- <srcfiles dir= "${lwjgl.src.native}/generated" includes="*.c"/>
- <srcfiles dir= "${lwjgl.src.native}/windows" includes="*.c"/>
- </uptodate>
-
- <uptodate property="lwjgl.fmod.built" targetfile="${lwjgl.lib}/win32/lwjgl-fmod3.dll" >
- <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c"/>
- <srcfiles dir= "${lwjgl.src.native}/common/fmod3" includes="*.c"/>
- </uptodate>
-
- <uptodate property="lwjgl.devil.built" targetfile="${lwjgl.lib}/win32/lwjgl-devil.dll" >
- <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c"/>
- <srcfiles dir= "${lwjgl.src.native}/common/devil" includes="*.c"/>
- </uptodate>
-
- <!-- ================================================================== -->
- <!-- Everything below this line is targets. -->
- <!-- Do not modify, unless you know what you're doing -->
- <!-- ================================================================== -->
-
- <!-- ================================================================== -->
- <!-- Initialize build -->
- <!-- ================================================================== -->
- <target name="-initialize">
- <mkdir dir="${lwjgl.bin}" taskname="initialiazing bin folder" />
- <mkdir dir="${lwjgl.bin}/lwjgl" taskname="initialiazing bin folder" />
- <mkdir dir="${lwjgl.bin}/devil" taskname="initialiazing bin folder" />
- <mkdir dir="${lwjgl.bin}/fmod3" taskname="initialiazing bin folder" />
- <mkdir dir="${lwjgl.lib}" taskname="initialiazing lib folder" />
- <mkdir dir="${lwjgl.dist}" taskname="initialiazing dist folder" />
- <mkdir dir="${lwjgl.docs}/javadoc" taskname="initialiazing docs folder" />
- <mkdir dir="${lwjgl.res}" taskname="initialiazing res folder" />
- <mkdir dir="${lwjgl.temp}" taskname="initialiazing temp folder" />
- <mkdir dir="${lwjgl.temp}/jar" taskname="initialiazing temp/jar folder" />
- <mkdir dir="${lwjgl.temp}/doc" taskname="initialiazing temp/doc folder" />
- <mkdir dir="${lwjgl.temp}/res" taskname="initialiazing temp/res folder" />
- <mkdir dir="${lwjgl.temp}/native" taskname="initialiazing temp/native folder" />
- <mkdir dir="${lwjgl.temp}/native/win32" taskname="initialiazing temp/win32 folder" />
- <mkdir dir="${lwjgl.temp}/native/linux" taskname="initialiazing temp/linux folder" />
- <mkdir dir="${lwjgl.temp}/native/macosx" taskname="initialiazing temp/macosx folder" />
- </target>
-
- <target name="clean-generated" description="Deletes the generated java and native source">
- <delete quiet="true" failonerror="false">
- <fileset dir="${lwjgl.src}/generated" includes="**"/>
- <fileset dir="${lwjgl.src.native}/generated" includes="**"/>
- </delete>
- </target>
-
- <!-- Cleans up any files created during the execution of this script -->
- <target name="clean" description="Cleans the diectories controlled by this ant script">
- <delete dir="${lwjgl.temp}" quiet="true" failonerror="false" taskname="cleaning temp folder" />
- <delete dir="${lwjgl.docs}/javadoc" quiet="true" failonerror="false" taskname="cleaning javadoc folder" />
- <delete dir="${lwjgl.bin}" quiet="true" failonerror="false" taskname="cleaning bin folder" />
- </target>
-
- <!-- Creates a distribution of LWJGL -->
- <target name="release" description="Creates a distribution of LWJGL using supplied native binaries">
- <!-- Warn user -->
- <echo message="Before running the release target, please manually compile all platforms and place required files in ${lwjgl.lib}/win32, ${lwjgl.lib}/linux and ${lwjgl.lib}/macosx${line.separator}Missing files will result in a successfull built, but with incomplete release zips"/>
- <input
- message="All data in the ${lwjgl.dist} folder will be deleted. Continue? "
- validargs="yes,no"
- addproperty="do.delete"
- />
- <condition property="do.abort">
- <equals arg1="no" arg2="${do.delete}"/>
- </condition>
- <fail if="do.abort">Build aborted by user.</fail>
-
- <!-- prepare -->
- <delete dir="${lwjgl.dist}" quiet="true" failonerror="false" />
- <antcall target="clean" />
- <antcall target="-initialize" />
-
- <!-- compile and create jars -->
- <antcall target="compile" />
- <antcall target="javadoc" />
- <antcall target="-createjars" />
-
- <!-- copy resources to res folder -->
- <copy todir="${lwjgl.temp}/res">
- <fileset dir="res"/>
- </copy>
-
- <!-- copy docs -->
- <copy todir="${lwjgl.temp}/doc">
- <fileset dir="${lwjgl.docs}">
- <patternset refid="lwjgl-docs.fileset" />
- </fileset>
- </copy>
-
- <!-- create distribution from files in libs/ and temp/ -->
- <antcall target="-distribution_javadoc" />
- <antcall target="-distribute" />
- </target>
-
- <target name="all" description="Creates the Java archives and the natives for the current platform" depends="jars, compile_native"/>
-
- <!-- Create ONLY the jar archives -->
- <target name="jars" description="Creates the Java archives ONLY and places them in libs/" depends="-initialize, compile, -createjars">
- <move todir="libs/">
- <fileset dir="${lwjgl.temp}/jar">
- <include name="*.jar"/>
- </fileset>
- </move>
- </target>
-
- <!-- Packages the java files -->
- <target name="-createjars">
- <!-- Create lwjgl.jar -->
- <jar destfile="${lwjgl.temp}/jar/lwjgl.jar" taskname="lwjgl.jar">
- <fileset refid="lwjgl.fileset" />
- <manifest>
- <attribute name="Sealed" value="true"/>
- </manifest>
- </jar>
-
- <!-- Create lwjgl_util_applet.jar -->
- <jar destfile="${lwjgl.temp}/jar/lwjgl_util_applet.jar" taskname="lwjgl_util_applet.jar">
- <fileset refid="lwjgl_util_applet.fileset" />
- <manifest>
- <attribute name="Sealed" value="true"/>
- </manifest>
- </jar>
-
- <!-- Create lwjgl_test.jar -->
- <jar destfile="${lwjgl.temp}/jar/lwjgl_test.jar" taskname="lwjgl_test.jar">
- <fileset refid="lwjgl_test.fileset" />
- <fileset refid="lwjgl_test_extra.fileset" />
- </jar>
-
- <!-- Create lwjgl_util.jar -->
- <jar destfile="${lwjgl.temp}/jar/lwjgl_util.jar" taskname="lwjgl_util.jar">
- <fileset refid="lwjgl_util.fileset" />
- </jar>
-
- <!-- Create lwjgl_fmod.jar -->
- <jar destfile="${lwjgl.temp}/jar/lwjgl_fmod3.jar" taskname="lwjgl_fmod3.jar">
- <fileset refid="lwjgl_fmod3.fileset" />
- <manifest>
- <attribute name="Sealed" value="true"/>
- </manifest>
- </jar>
-
- <!-- Create lwjgl_devil.jar -->
- <jar destfile="${lwjgl.temp}/jar/lwjgl_devil.jar" taskname="lwjgl_devil.jar">
- <fileset refid="lwjgl_devil.fileset" />
- <manifest>
- <attribute name="Sealed" value="false"/>
- </manifest>
- </jar>
- </target>
-
- <target name="applettest" depends="applet">
- <exec executable="appletviewer">
- <arg value="-J-Djava.security.policy=applet/appletviewer.policy"/>
- <arg path="applet/applet.html"/>
- </exec>
- </target>
-
- <target name="runtest" depends="all">
- <fail message="test.mainclass is not set. Use 'ant -Dtest.mainclass=<main-class> runtest'" unless="test.mainclass"/>
- <condition property="native_path" value="libs/win32">
- <os family="windows" />
- </condition>
-
- <condition property="native_path" value="libs/linux">
- <os name="Linux" />
- </condition>
-
- <condition property="native_path" value="libs/macosx">
- <os name="Mac OS X" />
- </condition>
- <java classname="${test.mainclass}" classpath="res:${lwjgl.lib}/lwjgl.jar:${lwjgl.lib}/lwjgl_util.jar:${lwjgl.lib}/lwjgl_test.jar:${lwjgl.lib}/jinput.jar" fork="true">
- <jvmarg value="-Dorg.lwjgl.util.Debug=true"/>
- <jvmarg value="-Djava.library.path=${native_path}"/>
- </java>
- </target>
-
- <target name="applet" depends="jars">
- <antcall target="-applet">
- <param name="keystore" value="applet/lwjglkeystore"/>
- <param name="alias" value="lwjgl"/>
- <param name="password" value="123456"/>
- </antcall>
- </target>
-
- <target name="applet-release" depends="jars">
- <input message="Please type the password for the keystore" addproperty="sign.pwd"/>
-
- <antcall target="-applet">
- <param name="keystore" value="signing/matzon_java_code_signing.keystore"/>
- <param name="alias" value="oddlabs_java_code_signing"/>
- <param name="password" value="${sign.pwd}"/>
- </antcall>
- </target>
-
- <target name="-applet">
-
- <!-- Create lwjgl_applet.jar -->
- <jar destfile="applet/lwjgl_applet.jar" taskname="lwjgl_applet.jar">
- <fileset refid="lwjgl_applet.fileset" />
- </jar>
-
- <!-- create each of the native jars -->
- <jar destfile="applet/windows_natives.jar" taskname="windows_natives.jar">
- <fileset dir="${lwjgl.lib}/win32">
- <patternset refid="lwjgl-win32.fileset"/>
- <patternset refid="lwjgl-win32_optional.fileset"/>
- <include name="fmod.dll"/>
- </fileset>
- </jar>
- <signjar jar="applet/windows_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
-
- <jar destfile="applet/linux_natives.jar" taskname="linux_natives.jar">
- <fileset dir="${lwjgl.lib}/linux">
- <patternset refid="lwjgl-linux.fileset"/>
- <patternset refid="lwjgl-linux_optional.fileset"/>
- <include name="libfmod.so"/>
- </fileset>
- </jar>
- <signjar jar="applet/linux_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
-
- <jar destfile="applet/macosx_natives.jar" taskname="macosx_natives.jar">
- <fileset dir="${lwjgl.lib}/macosx">
- <patternset refid="lwjgl-macosx.fileset"/>
- <patternset refid="lwjgl-macosx_optional.fileset"/>
- <include name="libfmod.dylib"/>
- </fileset>
- </jar>
- <signjar jar="applet/macosx_natives.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
-
- <!-- add it to a natives jar -->
- <jar destfile="applet/natives.jar" taskname="natives.jar">
- <fileset dir="applet">
- <include name="windows_natives.jar"/>
- <include name="linux_natives.jar"/>
- <include name="macosx_natives.jar"/>
- </fileset>
- </jar>
- <delete file="applet/windows_natives.jar"/>
- <delete file="applet/linux_natives.jar"/>
- <delete file="applet/macosx_natives.jar"/>
-
- <copy file="${lwjgl.lib}/lwjgl.jar" todir="applet"/>
- <copy file="${lwjgl.lib}/lwjgl_util_applet.jar" todir="applet"/>
- <copy file="${lwjgl.lib}/lwjgl_util.jar" todir="applet"/>
- <copy file="${lwjgl.lib}/lwjgl_fmod3.jar" todir="applet"/>
- <copy file="${lwjgl.lib}/lwjgl_devil.jar" todir="applet"/>
- <copy file="${lwjgl.lib}/jinput.jar" todir="applet"/>
- <zip destfile="applet/res.jar">
- <zipfileset dir="${lwjgl.res}" includes="Footsteps.wav, ILtest.tga, Missing_you.mod"/>
- </zip>
- <signjar jar="applet/lwjgl.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="applet/jinput.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="applet/lwjgl_util_applet.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="applet/lwjgl_fmod3.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="applet/lwjgl_devil.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- </target>
-
- <!-- Distributes files -->
- <target name="-distribute">
- <delete>
- <fileset dir="${lwjgl.temp}/native/" includes="**/*"/>
- </delete>
- <copy file="${lwjgl.lib}/jinput.jar" todir="${lwjgl.temp}/jar"/>
- <copy todir="${lwjgl.temp}/native/win32">
- <fileset dir="${lwjgl.lib}/win32">
- <patternset refid="lwjgl-win32.fileset" />
- <patternset refid="lwjgl-win32_optional.fileset" />
- </fileset>
- </copy>
- <copy todir="${lwjgl.temp}/native/linux">
- <fileset dir="${lwjgl.lib}/linux">
- <patternset refid="lwjgl-linux.fileset" />
- <patternset refid="lwjgl-linux_optional.fileset" />
- </fileset>
- </copy>
- <copy todir="${lwjgl.temp}/native/macosx">
- <fileset dir="${lwjgl.lib}/macosx">
- <patternset refid="lwjgl-macosx.fileset" />
- <patternset refid="lwjgl-macosx_optional.fileset" />
- </fileset>
- </copy>
-
- <!-- create base package -->
- <zip destfile="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip">
- <zipfileset dir="${lwjgl.temp}" prefix="lwjgl-${lwjgl.version}/">
- <patternset refid="lwjgl_base"/>
- </zipfileset>
- </zip>
-
- <!-- create optional package -->
- <zip destfile="${lwjgl.dist}/lwjgl_optional-${lwjgl.version}.zip">
- <zipfileset dir="${lwjgl.temp}" prefix="lwjgl_optional-${lwjgl.version}/">
- <patternset refid="lwjgl_optional"/>
- </zipfileset>
- </zip>
- </target>
-
- <!-- Creates a versioned distribution of javadocs -->
- <target name="-distribution_javadoc">
- <zip destfile="${lwjgl.dist}/lwjgl-docs-${lwjgl.version}.zip" basedir="${lwjgl.docs}" includes="javadoc/**" />
- </target>
-
- <!-- Compiles the Java source code -->
- <target name="compile" description="Compiles the java source code" depends="-initialize">
- <javac debug="yes" destdir="${lwjgl.bin}" includes="org/lwjgl/opengl/**" source="1.4" target="1.4" classpath="${lwjgl.lib}/jinput.jar" taskname="core">
- <src path="${lwjgl.src}/java/"/>
- <src path="${lwjgl.src}/generated/"/>
- <include name="org/lwjgl/*.java"/>
- <include name="org/lwjgl/input/**"/>
- <include name="org/lwjgl/opengl/**"/>
- <include name="org/lwjgl/openal/**"/>
- <include name="org/lwjgl/util/**"/>
- <exclude name="org/lwjgl/util/generator/**"/>
- </javac>
- <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/test/**" source="1.4" target="1.4" taskname="test" />
- <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/examples/**" source="1.4" target="1.4" taskname="examples" />
- <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/fmod3/**" source="1.4" target="1.4" taskname="fmod" />
- <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/devil/**" source="1.4" target="1.4" taskname="devil"/>
- </target>
-
- <!-- Generates the native headers from source files -->
- <target name="headers" description="invokes javah on java classes" depends="compile">
- <!-- platform specific classes -->
- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/linux" force="yes">
- <class name="org.lwjgl.opengl.LinuxAWTInput" />
- <class name="org.lwjgl.opengl.LinuxEvent" />
- <class name="org.lwjgl.opengl.LinuxMouse" />
- <class name="org.lwjgl.opengl.LinuxKeyboard" />
- <class name="org.lwjgl.opengl.LinuxDisplay" />
- <class name="org.lwjgl.opengl.LinuxPeerInfo" />
- <class name="org.lwjgl.opengl.LinuxPbufferPeerInfo" />
- <class name="org.lwjgl.opengl.LinuxDisplayPeerInfo" />
- <class name="org.lwjgl.opengl.LinuxAWTGLCanvasPeerInfo" />
- <class name="org.lwjgl.opengl.LinuxContextImplementation" />
- <class name="org.lwjgl.opengl.LinuxCanvasImplementation" />
- </javah>
-
- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/windows" force="yes">
- <class name="org.lwjgl.opengl.WindowsAWTInput" />
- <class name="org.lwjgl.opengl.WindowsKeyboard" />
- <class name="org.lwjgl.opengl.WindowsDirectInput8" />
- <class name="org.lwjgl.opengl.WindowsDirectInputDevice8" />
- <class name="org.lwjgl.opengl.WindowsDirectInput3" />
- <class name="org.lwjgl.opengl.WindowsDirectInputDevice3" />
- <class name="org.lwjgl.opengl.WindowsPbufferPeerInfo" />
- <class name="org.lwjgl.opengl.WindowsDisplay" />
- <class name="org.lwjgl.opengl.WindowsRegistry" />
- <class name="org.lwjgl.WindowsSysImplementation" />
- <class name="org.lwjgl.opengl.WindowsAWTGLCanvasPeerInfo" />
- <class name="org.lwjgl.opengl.WindowsPeerInfo" />
- <class name="org.lwjgl.opengl.WindowsDisplayPeerInfo" />
- <class name="org.lwjgl.opengl.WindowsContextImplementation" />
- </javah>
-
- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
- <class name="org.lwjgl.opengl.MacOSXMouseEventQueue" />
- <class name="org.lwjgl.opengl.MacOSXCanvasPeerInfo" />
- <class name="org.lwjgl.opengl.MacOSXPeerInfo" />
- <class name="org.lwjgl.opengl.MacOSXPbufferPeerInfo" />
- <class name="org.lwjgl.opengl.MacOSXDisplay" />
- <class name="org.lwjgl.opengl.MacOSXContextImplementation" />
- </javah>
-
- <!-- lwjgl -->
- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}" force="yes">
- <class name="org.lwjgl.opengl.AWTSurfaceLock" />
- <class name="org.lwjgl.DefaultSysImplementation" />
- <class name="org.lwjgl.input.Cursor" />
- <class name="org.lwjgl.input.Keyboard" />
- <class name="org.lwjgl.input.Mouse" />
-
- <class name="org.lwjgl.openal.ALC" />
- <class name="org.lwjgl.openal.AL" />
-
- <class name="org.lwjgl.opengl.GLContext" />
- <class name="org.lwjgl.opengl.Pbuffer" />
- </javah>
-
- <!-- fmod -->
- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/fmod3" force="yes">
- <class name="org.lwjgl.fmod3.FMOD" />
- <class name="org.lwjgl.fmod3.FMusic" />
- <class name="org.lwjgl.fmod3.FSound" />
- </javah>
-
- <!-- DevIL -->
- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/devil" force="yes">
- <class name="org.lwjgl.devil.ILNative" />
- </javah>
- </target>
-
- <!-- Creates the Javadoc -->
- <target name="javadoc" description="Creates javadoc from java source code">
- <javadoc destdir="${lwjgl.docs}/javadoc" author="true" version="true" use="true" source="1.4" windowtitle="LWJGL API">
- <fileset refid="lwjgl.javadoc.fileset" />
- <doctitle><![CDATA[<h1>Lightweight Java Game Toolkit</h1>]]></doctitle>
- <bottom><![CDATA[<i>Copyright © 2002-2006 lwjgl.org. All Rights Reserved.</i>]]></bottom>
- </javadoc>
- </target>
-
- <!-- Compiles the Java source code -->
- <target name="generators" description="Compiles the native method generators">
- <javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/util/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, generate-opengl-capabilities, generate-opengl-references" description="Generates java and native source"/>
-
- <target name="generate-openal" depends="generators" 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.util.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}/generated"/>
- <arg value="-d"/>
- <arg path="${lwjgl.src.native}/generated"/>
- <arg value="-Atypemap=org.lwjgl.util.generator.ALTypeMap"/>
- <arg value="-Ageneratechecks"/>
- <fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/openal/AL10.java"/>
- </apply>
- </target>
-
- <target name="generate-opengl" depends="generators" 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 -->
- <apply executable="apt" parallel="true">
- <arg value="-nocompile"/>
- <arg value="-factory"/>
- <arg value="org.lwjgl.util.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}/generated"/>
- <arg value="-d"/>
- <arg path="${lwjgl.src.native}/generated"/>
- <!--<arg value="-Ageneratechecks"/>-->
- <arg value="-Acontextspecific"/>
- <arg value="-Atypemap=org.lwjgl.util.generator.GLTypeMap"/>
- <fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
- </apply>
- </target>
-
- <target name="generate-opengl-references" depends="generators" description="Generates java and native source for GL">
- <!-- Generate context capabilities -->
- <apply executable="apt" parallel="true">
- <arg value="-nocompile"/>
- <arg value="-factory"/>
- <arg value="org.lwjgl.util.generator.ReferencesGeneratorProcessorFactory"/>
- <arg value="-cp"/>
- <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
- <arg value="-s"/>
- <arg path="${lwjgl.src}/generated"/>
- <fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
- </apply>
- </target>
-
- <target name="generate-opengl-capabilities" depends="generators" description="Generates java and native source for GL">
- <!-- Generate context capabilities -->
- <apply executable="apt" parallel="true">
- <arg value="-nocompile"/>
- <arg value="-factory"/>
- <arg value="org.lwjgl.util.generator.ContextGeneratorProcessorFactory"/>
- <arg value="-cp"/>
- <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
- <arg value="-s"/>
- <arg path="${lwjgl.src}/generated"/>
- <arg value="-Acontextspecific"/>
- <fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
- </apply>
- </target>
-
- <target name="compile_native_all" depends="compile_native, compile_native_optional" description="Compiles the native files"/>
-
- <!-- Compiles the native files -->
- <target name="compile_native" depends="headers" description="Compiles the native files">
- <!-- check each platform, and run their build target -->
- <condition property="lwjgl.platform.windows">
- <os family="windows" />
- </condition>
- <antcall target="-compile_native_win32" />
-
- <condition property="lwjgl.platform.linux">
- <os name="Linux" />
- </condition>
- <antcall target="-compile_native_linux" />
-
- <condition property="lwjgl.platform.macosx">
- <os name="Mac OS X" />
- </condition>
- <antcall target="-compile_native_macosx" />
- </target>
-
- <target name="compile_native_optional" depends="headers" description="Compiles the native files">
- <!-- check each platform, and run their build target -->
- <condition property="lwjgl.platform.windows">
- <os family="windows" />
- </condition>
- <antcall target="-compile_native_win32_optional" />
-
- <condition property="lwjgl.platform.linux">
- <os name="Linux" />
- </condition>
- <antcall target="-compile_native_linux_optional" />
- <condition property="lwjgl.platform.macosx">
- <os name="Mac OS X" />
- </condition>
- <antcall target="-compile_native_macosx_optional" />
- </target>
-
- <!-- Compiles LWJGL on Win32 platforms -->
- <target name="-compile_native_win32" if="lwjgl.platform.windows">
- <ant antfile="platform_build/windows_ant/build.xml" inheritAll="false"/>
- <copy file="${lwjgl.bin}/lwjgl/lwjgl.dll" todir="${lwjgl.lib}/win32"/>
- </target>
-
- <target name="-compile_native_win32_optional" if="lwjgl.platform.windows">
- <ant antfile="platform_build/windows_ant/build_fmod3.xml" inheritAll="false"/>
- <copy file="${lwjgl.bin}/fmod3/lwjgl-fmod3.dll" todir="${lwjgl.lib}/win32"/>
-
- <ant antfile="platform_build/windows_ant/build_devil.xml" inheritAll="false"/>
- <copy file="${lwjgl.bin}/devil/lwjgl-devil.dll" todir="${lwjgl.lib}/win32"/>
- </target>
-
- <!-- Compiles LWJGL on Linux platforms -->
- <target name="-compile_native_linux" if="lwjgl.platform.linux">
- <ant antfile="platform_build/linux_ant/build.xml" inheritAll="false"/>
- <copy todir="${lwjgl.lib}/linux">
- <fileset dir="${lwjgl.bin}/lwjgl" includes="liblwjgl*.so"/>
- </copy>
- </target>
-
- <target name="-compile_native_linux_optional" if="lwjgl.platform.linux">
- <ant antfile="platform_build/linux_ant/build_fmod3.xml" inheritAll="false"/>
- <copy file="${lwjgl.bin}/fmod3/liblwjgl-fmod3.so" todir="${lwjgl.lib}/linux"/>
-
- <ant antfile="platform_build/linux_ant/build_devil.xml" inheritAll="false"/>
- <copy file="${lwjgl.bin}/devil/liblwjgl-devil.so" todir="${lwjgl.lib}/linux"/>
- </target>
-
- <target name="-compile_native_macosx" if="lwjgl.platform.macosx">
- <ant antfile="platform_build/macosx_ant/build.xml" inheritAll="false"/>
- <copy file="${lwjgl.bin}/lwjgl/liblwjgl.jnilib" todir="${lwjgl.lib}/macosx"/>
- </target>
-
- <!-- Compiles LWJGL on Mac OS X platforms -->
- <target name="-compile_native_macosx_optional" if="lwjgl.platform.macosx">
-
- <!-- check for required properties -->
- <property environment="env"/>
- <fail message="Missing FMOD path environment property" unless="env.FMOD"/>
-
- <exec executable="make" dir="${lwjgl.src.native}/common/devil">
- <arg line="-f Makefile.macosx"/>
- </exec>
- <exec executable="make" dir="${lwjgl.src.native}/common/fmod3">
- <arg line="-f Makefile.macosx"/>
- </exec>
- <move file="${lwjgl.src.native}/common/devil/liblwjgl-devil.jnilib" tofile="${lwjgl.lib}/macosx/liblwjgl-devil.jnilib" />
- <move file="${lwjgl.src.native}/common/fmod3/liblwjgl-fmod3.jnilib" tofile="${lwjgl.lib}/macosx/liblwjgl-fmod3.jnilib" />
- </target>
-
-
- <target name="webstart_demo" depends="jars">
- <antcall target="-webstart_demo">
- <param name="keystore" value="applet/lwjglkeystore"/>
- <param name="alias" value="lwjgl"/>
- <param name="password" value="123456"/>
- </antcall>
- </target>
-
- <target name="webstart_demo-release" depends="jars">
- <input message="Please type the password for the keystore" addproperty="sign.pwd"/>
-
- <antcall target="-webstart_demo">
- <param name="keystore" value="signing/matzon_java_code_signing.keystore"/>
- <param name="alias" value="oddlabs_java_code_signing"/>
- <param name="password" value="${sign.pwd}"/>
- </antcall>
- </target>
-
- <!-- -->
- <target name="-webstart_demo" description="Using released files, creates the necessary files used for jnlp demos">
-
- <!-- delete existing temp -->
- <delete dir="${lwjgl.temp}"/>
-
- <!-- unzip common files -->
- <unzip src="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip" dest="${lwjgl.temp}/jnlp/temp" overwrite="true"/>
- <unzip src="${lwjgl.dist}/lwjgl_optional-${lwjgl.version}.zip" dest="${lwjgl.temp}/jnlp/temp" overwrite="true"/>
-
- <!-- move files to unified structure -->
- <move todir="${lwjgl.temp}/jnlp/temp">
- <fileset dir="${lwjgl.temp}/jnlp/temp/lwjgl-${lwjgl.version}/">
- <include name="**"/>
- </fileset>
- <fileset dir="${lwjgl.temp}/jnlp/temp/lwjgl_optional-${lwjgl.version}/">
- <include name="**"/>
- </fileset>
- </move>
-
- <!-- copy fmod dependent files -->
- <copy file="${lwjgl.lib}/win32/fmod.dll" tofile="${lwjgl.temp}/jnlp/temp/native/win32/fmod.dll"/>
- <copy file="${lwjgl.lib}/linux/libfmod.so" tofile="${lwjgl.temp}/jnlp/temp/native/linux/libfmod.so"/>
-
- <!-- move relevant files to root -->
- <move todir="${lwjgl.temp}/jnlp/" flatten="true">
- <fileset dir="${lwjgl.temp}/jnlp/temp">
- <include name="**/**.jar"/>
- </fileset>
- </move>
-
- <!-- create native jars -->
- <jar destfile="${lwjgl.temp}/jnlp/native_win32.jar" basedir="${lwjgl.temp}/jnlp/temp/native/win32"/>
- <jar destfile="${lwjgl.temp}/jnlp/native_linux.jar" basedir="${lwjgl.temp}/jnlp/temp/native/linux"/>
- <jar destfile="${lwjgl.temp}/jnlp/native_macosx.jar" basedir="${lwjgl.temp}/jnlp/temp/native/macosx"/>
-
- <!-- create media jar -->
- <jar destfile="${lwjgl.temp}/jnlp/media.jar" basedir="${lwjgl.res}"/>
-
- <!-- sign 'em -->
- <signjar jar="${lwjgl.temp}/jnlp/lwjgl.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/lwjgl_devil.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/lwjgl_fmod3.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/lwjgl_test.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/lwjgl_util.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/media.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/native_linux.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/native_macosx.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/native_win32.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/jinput.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- </target>
-
- <target name="changelog">
- <cvschangelog destfile="changelog.xml"/>
- <style in="changelog.xml" out="changelog.html" style="${ant.home}/etc/changelog.xsl">
- <param name="title" expression="LWJGL ChangeLog"/>
- <param name="module" expression="LWJGL"/>
- <param name="cvsweb" expression="http://cvs.sourceforge.net/viewcvs.py/java-game-lib/"/>
- </style>
- </target>
-</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2006-11-19 09:04:29
|
Revision: 2657
http://svn.sourceforge.net/java-game-lib/?rev=2657&view=rev
Author: matzon
Date: 2006-11-19 01:04:28 -0800 (Sun, 19 Nov 2006)
Log Message:
-----------
signing jars in distribution
added source package
added applet package
macosx compile_native_optional now using ant build scripts instead of makefiles
cleanup
Modified Paths:
--------------
trunk/LWJGL/build.xml
Modified: trunk/LWJGL/build.xml
===================================================================
--- trunk/LWJGL/build.xml 2006-11-19 01:50:04 UTC (rev 2656)
+++ trunk/LWJGL/build.xml 2006-11-19 09:04:28 UTC (rev 2657)
@@ -3,17 +3,17 @@
<!-- ================================================================== -->
<!-- Global properties for build -->
<!-- ================================================================== -->
- <property name="lwjgl.src" location="src" />
- <property name="lwjgl.src.native" location="${lwjgl.src}/native" />
- <property name="lwjgl.src.headers" location="${lwjgl.src.native}/common" />
+ <property name="lwjgl.src" location="src" />
+ <property name="lwjgl.src.native" location="${lwjgl.src}/native" />
+ <property name="lwjgl.src.headers" location="${lwjgl.src.native}/common" />
<property name="lwjgl.src.templates" location="${lwjgl.src}/templates" />
- <property name="lwjgl.bin" location="bin" />
- <property name="lwjgl.lib" location="libs" />
+ <property name="lwjgl.bin" location="bin" />
+ <property name="lwjgl.lib" location="libs" />
<property name="lwjgl.dist" location="dist" />
<property name="lwjgl.docs" location="doc" />
<property name="lwjgl.temp" location="temp" />
- <property name="lwjgl.res" location="res" />
- <property name="lwjgl.version" value="1.0beta4" />
+ <property name="lwjgl.res" location="res" />
+ <property name="lwjgl.version" value="1.0beta4" />
<property name="opengl-template-pattern" value="org/lwjgl/opengl/GL*.java,org/lwjgl/opengl/ARB*.java,org/lwjgl/opengl/ATI*.java,org/lwjgl/opengl/EXT*.java,org/lwjgl/opengl/NV*.java,org/lwjgl/opengl/HP*.java,org/lwjgl/opengl/IBM*.java,org/lwjgl/opengl/SUN*.java,org/lwjgl/opengl/SGIS*.java"/>
<!-- ================================================================== -->
@@ -147,6 +147,13 @@
<include name="libILU.dylib" />
<include name="libILUT.dylib" />
</patternset>
+
+ <!-- Files to include in source distribution -->
+ <fileset id="lwjgl.source.fileset" dir=".">
+ <include name="build.xml" />
+ <include name="src/**" />
+ <include name="platform_build/**/*" />
+ </fileset>
<!-- files in the base package -->
<patternset id="lwjgl_base">
@@ -190,6 +197,13 @@
<include name="doc/README" />
</patternset>
+ <!-- files in the lwjgl_applet package -->
+ <patternset id="lwjgl_applet">
+ <include name="applet/**" />
+ <exclude name="applet/appletviewer.policy" />
+ <exclude name="applet/lwjglkeystore" />
+ </patternset>
+
<uptodate property="lwjgl.main.built" targetfile="${lwjgl.lib}/win32/lwjgl.dll" >
<srcfiles dir= "${lwjgl.src.native}/common" includes="*.c*"/>
<srcfiles dir= "${lwjgl.src.native}/generated" includes="*.c"/>
@@ -268,8 +282,9 @@
<!-- compile and create jars -->
<antcall target="compile" />
- <antcall target="javadoc" />
+ <antcall target="javadoc" />
<antcall target="-createjars" />
+ <antcall target="applet-release" />
<!-- copy resources to res folder -->
<copy todir="${lwjgl.temp}/res">
@@ -285,6 +300,7 @@
<!-- create distribution from files in libs/ and temp/ -->
<antcall target="-distribution_javadoc" />
+ <antcall target="-distribution_source" />
<antcall target="-distribute" />
</target>
@@ -344,7 +360,7 @@
</manifest>
</jar>
</target>
-
+
<target name="applettest" depends="applet">
<exec executable="appletviewer">
<arg value="-J-Djava.security.policy=applet/appletviewer.policy"/>
@@ -379,7 +395,7 @@
</antcall>
</target>
- <target name="applet-release" depends="jars">
+ <target name="applet-release">
<input message="Please type the password for the keystore" addproperty="sign.pwd"/>
<antcall target="-applet">
@@ -457,7 +473,8 @@
<delete>
<fileset dir="${lwjgl.temp}/native/" includes="**/*"/>
</delete>
- <copy file="${lwjgl.lib}/jinput.jar" todir="${lwjgl.temp}/jar"/>
+
+ <copy file="${lwjgl.lib}/jinput.jar" todir="${lwjgl.temp}/jar"/>
<copy todir="${lwjgl.temp}/native/win32">
<fileset dir="${lwjgl.lib}/win32">
<patternset refid="lwjgl-win32.fileset" />
@@ -489,13 +506,27 @@
<zipfileset dir="${lwjgl.temp}" prefix="lwjgl_optional-${lwjgl.version}/">
<patternset refid="lwjgl_optional"/>
</zipfileset>
- </zip>
+ </zip>
+
+ <!-- create applet package -->
+ <zip destfile="${lwjgl.dist}/lwjgl_applet-${lwjgl.version}.zip">
+ <zipfileset dir="." prefix="lwjgl_applet-${lwjgl.version}/">
+ <patternset refid="lwjgl_applet"/>
+ </zipfileset>
+ </zip>
</target>
<!-- Creates a versioned distribution of javadocs -->
<target name="-distribution_javadoc">
<zip destfile="${lwjgl.dist}/lwjgl-docs-${lwjgl.version}.zip" basedir="${lwjgl.docs}" includes="javadoc/**" />
</target>
+
+ <!-- Creates a versioned distribution of the source code -->
+ <target name="-distribution_source">
+ <zip destfile="${lwjgl.dist}/lwjgl-source-${lwjgl.version}.zip">
+ <fileset refid="lwjgl.source.fileset" />
+ </zip>
+ </target>
<!-- Compiles the Java source code -->
<target name="compile" description="Compiles the java source code" depends="-initialize">
@@ -748,16 +779,11 @@
<!-- check for required properties -->
<property environment="env"/>
- <fail message="Missing FMOD path environment property" unless="env.FMOD"/>
-
- <exec executable="make" dir="${lwjgl.src.native}/common/devil">
- <arg line="-f Makefile.macosx"/>
- </exec>
- <exec executable="make" dir="${lwjgl.src.native}/common/fmod3">
- <arg line="-f Makefile.macosx"/>
- </exec>
- <move file="${lwjgl.src.native}/common/devil/liblwjgl-devil.jnilib" tofile="${lwjgl.lib}/macosx/liblwjgl-devil.jnilib" />
- <move file="${lwjgl.src.native}/common/fmod3/liblwjgl-fmod3.jnilib" tofile="${lwjgl.lib}/macosx/liblwjgl-fmod3.jnilib" />
+ <fail message="Missing FMOD path environment property" unless="env.FMOD"/>
+ <ant antfile="platform_build/macosx_ant/build_fmod3.xml" inheritAll="false"/>
+ <ant antfile="platform_build/macosx_ant/build_devil.xml" inheritAll="false"/>
+ <copy file="${lwjgl.bin}/fmod3/liblwjgl-fmod3.jnilib" todir="${lwjgl.lib}/macosx"/>
+ <copy file="${lwjgl.bin}/devil/liblwjgl-devil.jnilib" todir="${lwjgl.lib}/macosx"/>
</target>
@@ -822,9 +848,7 @@
<signjar jar="${lwjgl.temp}/jnlp/lwjgl.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${lwjgl.temp}/jnlp/lwjgl_devil.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${lwjgl.temp}/jnlp/lwjgl_fmod3.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/lwjgl_test.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${lwjgl.temp}/jnlp/lwjgl_util.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
- <signjar jar="${lwjgl.temp}/jnlp/media.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${lwjgl.temp}/jnlp/native_linux.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${lwjgl.temp}/jnlp/native_macosx.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
<signjar jar="${lwjgl.temp}/jnlp/native_win32.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2006-11-19 01:50:06
|
Revision: 2656
http://svn.sourceforge.net/java-game-lib/?rev=2656&view=rev
Author: matzon
Date: 2006-11-18 17:50:04 -0800 (Sat, 18 Nov 2006)
Log Message:
-----------
Beta 4
Added Paths:
-----------
tags/lwjgl1.0beta4/
Copied: tags/lwjgl1.0beta4 (from rev 2655, trunk/LWJGL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|