mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-03 12:04:31 +01:00
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:
parent
eaed716958
commit
1f70418d2d
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue