From 661fec76c5ccd030016d66675024ec604752ccda Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 6 Aug 2003 04:58:31 +0000 Subject: Changed behavior of ManuallyImplement to not emit GLEmitter's dispatch routine, but to still emit entry in proc address table. Added first implementation of glMapBufferARB; may need to reimplement due to creation of finalizable direct ByteBuffer objects each time this routine is called (which will be every frame). git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@45 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/util/BufferUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/net/java/games/jogl/util/BufferUtils.java') diff --git a/src/net/java/games/jogl/util/BufferUtils.java b/src/net/java/games/jogl/util/BufferUtils.java index aa4653693..05125b75e 100644 --- a/src/net/java/games/jogl/util/BufferUtils.java +++ b/src/net/java/games/jogl/util/BufferUtils.java @@ -69,4 +69,13 @@ public class BufferUtils { dest.put(orig); return dest; } + + /** Creates an "offset buffer" for use with the + ARB_vertex_buffer_object extension. The resulting Buffers are + suitable for use with routines such as glVertexPointer when + used in conjunction with that extension. They have no + capacity and are not suitable for passing to OpenGL routines + that do not support buffer offsets, or to non-OpenGL + routines. */ + public static native ByteBuffer bufferOffset(int offset); } -- cgit v1.2.3