|
From: <eli...@us...> - 2006-12-20 19:21:36
|
Revision: 2698
http://svn.sourceforge.net/java-game-lib/?rev=2698&view=rev
Author: elias_naur
Date: 2006-12-20 11:21:35 -0800 (Wed, 20 Dec 2006)
Log Message:
-----------
Make glGetBufferPointer and glMapBuffer in GL15 and ARB_buffer_object compute result_size automatically. Change NV_vertes_array_range to use the new AutoResultSize syntax.
Modified Paths:
--------------
trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_buffer_object.java
trunk/LWJGL/src/templates/org/lwjgl/opengl/GL15.java
trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_array_range.java
Modified: trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_buffer_object.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_buffer_object.java 2006-12-20 19:19:56 UTC (rev 2697)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_buffer_object.java 2006-12-20 19:21:35 UTC (rev 2698)
@@ -116,6 +116,7 @@
*/
@CachedResult
@GLvoid
+ @AutoResultSize("GLChecks.getBufferObjectSizeARB(caps, target)")
ByteBuffer glMapBufferARB(@GLenum int target, @GLenum int access);
boolean glUnmapBufferARB(@GLenum int target);
@@ -124,5 +125,6 @@
void glGetBufferParameterivARB(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params);
@StripPostfix("pointer")
+ @AutoResultSize("GLChecks.getBufferObjectSizeARB(caps, target)")
void glGetBufferPointervARB(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer);
}
Modified: trunk/LWJGL/src/templates/org/lwjgl/opengl/GL15.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/GL15.java 2006-12-20 19:19:56 UTC (rev 2697)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/GL15.java 2006-12-20 19:21:35 UTC (rev 2698)
@@ -123,6 +123,7 @@
*/
@CachedResult
@GLvoid
+ @AutoResultSize("GLChecks.getBufferObjectSize(caps, target)")
ByteBuffer glMapBuffer(@GLenum int target, @GLenum int access);
boolean glUnmapBuffer(@GLenum int target);
@@ -131,6 +132,7 @@
void glGetBufferParameteriv(@GLenum int target, @GLenum int pname, @Check("4") IntBuffer params);
@StripPostfix("pointer")
+ @AutoResultSize("GLChecks.getBufferObjectSize(caps, target)")
void glGetBufferPointerv(@GLenum int target, @GLenum int pname, @Result @GLvoid ByteBuffer pointer);
// -----------------------------------------------------------------
Modified: trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_array_range.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_array_range.java 2006-12-20 19:19:56 UTC (rev 2697)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_array_range.java 2006-12-20 19:21:35 UTC (rev 2698)
@@ -54,7 +54,8 @@
@PlatformDependent({Platform.WGL, Platform.GLX})
@GLvoid
- ByteBuffer glAllocateMemoryNV(@AutoResultSize int size, float readFrequency, float writeFrequency, float priority);
+ @AutoResultSize("size")
+ ByteBuffer glAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority);
@PlatformDependent({Platform.WGL, Platform.GLX})
void glFreeMemoryNV(@Check @GLbyte Buffer pointer);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|