From 68391b118e93170c568edc21edad7f6b0c1f97a3 Mon Sep 17 00:00:00 2001
From: Sven Gothel
Date: Wed, 11 Mar 2015 15:33:10 +0100
Subject: Bug 1135: Complete GLBufferObjectTracker for GL 4.5 using GlueGen's
DelegateImplementation/ReturnsOpaque (Bug 1144)
Using GlueGen's new DelegateImplementation/ReturnsOpaque feature (Bug 1144)
allows us to drop manually C implementation stubs, while simply delegating
into the renamed private generated variant using the manual stub.
Completed glBufferStorage and glNamedBufferStorage for GL 4.4
while subsuming DSA's of GL 4.5 and GL_EXT_direct_state_access
(only the single functions, otherwise extension is not compatible).
---
src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
(limited to 'src/jogl/classes/com/jogamp/opengl')
diff --git a/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java b/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java
index 5db97d42f..35ecf8799 100644
--- a/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java
+++ b/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java
@@ -27,6 +27,7 @@
*/
package com.jogamp.opengl;
+import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@@ -40,9 +41,10 @@ import java.nio.IntBuffer;
*
* Buffer storage is created via:
*
- * glBufferStorage
- storage creation with target
- * - {@link GL#glBufferData(int, long, java.nio.Buffer, int)} - storage recreation with target
- * - {@link GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL#glBufferData(int, long, java.nio.Buffer, int)} - storage creation via target
+ * - {@link GL2#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage creation, direct
+ * - {@link GL4#glBufferStorage(int, long, Buffer, int)} - storage creation via target
+ * - {@link GL4#glNamedBufferStorage(int, long, Buffer, int)} - storage creation, direct
*
* Note that storage recreation as mentioned above also invalidate a previous storage instance,
* i.e. disposed the buffer's current storage if exist and attaches a new storage instance.
@@ -52,7 +54,9 @@ import java.nio.IntBuffer;
*
* - {@link GL#glDeleteBuffers(int, IntBuffer)} - explicit, direct, via {@link #notifyBuffersDeleted(int, IntBuffer)} or {@link #notifyBuffersDeleted(int, int[], int)}
* - {@link GL#glBufferData(int, long, java.nio.Buffer, int)} - storage recreation via target
- * - {@link GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL2#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL4#glBufferStorage(int, long, Buffer, int)} - storage recreation via target
+ * - {@link GL4#glNamedBufferStorage(int, long, Buffer, int)} - storage recreation, direct
*
*
*
@@ -112,7 +116,7 @@ public abstract class GLBufferStorage {
* created via {@link GL#glBufferData(int, long, java.nio.Buffer, int)}.
*
* Returns false
if buffer's storage is immutable, i.e.
- * created via glBufferStorage
. FIXME: Add GL 4.4 support!
+ * created via {@link GL4#glBufferStorage(int, long, Buffer, int)}.
*
* @return
*/
--
cgit v1.2.3