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.

This commit is contained in:
Elias Naur 2006-12-20 19:21:35 +00:00
parent eaed716958
commit 1f70418d2d
3 changed files with 6 additions and 1 deletions

View file

@ -116,6 +116,7 @@ public interface ARB_buffer_object {
*/
@CachedResult
@GLvoid
@AutoResultSize("GLChecks.getBufferObjectSizeARB(caps, target)")
ByteBuffer glMapBufferARB(@GLenum int target, @GLenum int access);
boolean glUnmapBufferARB(@GLenum int target);
@ -124,5 +125,6 @@ public interface ARB_buffer_object {
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);
}

View file

@ -123,6 +123,7 @@ public interface GL15 {
*/
@CachedResult
@GLvoid
@AutoResultSize("GLChecks.getBufferObjectSize(caps, target)")
ByteBuffer glMapBuffer(@GLenum int target, @GLenum int access);
boolean glUnmapBuffer(@GLenum int target);
@ -131,6 +132,7 @@ public interface GL15 {
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);
// -----------------------------------------------------------------

View file

@ -54,7 +54,8 @@ public interface NV_vertex_array_range {
@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);