summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/util
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-08-06 04:58:31 +0000
committerKenneth Russel <[email protected]>2003-08-06 04:58:31 +0000
commit661fec76c5ccd030016d66675024ec604752ccda (patch)
treeeeb61fdea2164d358809eed4d73b6654815c01d8 /src/net/java/games/jogl/util
parentd224c85aa7c2e420ffec62ce77f2ca02430f6c76 (diff)
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
Diffstat (limited to 'src/net/java/games/jogl/util')
-rw-r--r--src/net/java/games/jogl/util/BufferUtils.java9
1 files changed, 9 insertions, 0 deletions
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 <em>when
+ used in conjunction with that extension</em>. 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);
}