From d9fe5c4aee7547bb89571c19c89ad173b63a4598 Mon Sep 17 00:00:00 2001
From: Sven Gothel
Date: Thu, 12 Mar 2015 13:18:02 +0100
Subject: Fix API Doc: GLBufferObjectTracker / GLBufferStorage
---
.../classes/com/jogamp/opengl/GLBufferStorage.java | 19 +++++++++++++------
.../classes/jogamp/opengl/GLBufferObjectTracker.java | 15 +++++++++------
2 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java b/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java
index 35ecf8799..d027e36d7 100644
--- a/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java
+++ b/src/jogl/classes/com/jogamp/opengl/GLBufferStorage.java
@@ -42,7 +42,8 @@ import java.nio.IntBuffer;
* Buffer storage is created via:
*
* - {@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 GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int)} - storage creation, direct
+ * - {@link GL4#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
*
@@ -54,7 +55,8 @@ 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#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL4#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
*
@@ -62,21 +64,26 @@ import java.nio.IntBuffer;
*
* GL buffer storage is mapped via
*
- *
* - {@link GL#mapBuffer(int, int)}
* - {@link GL#mapBufferRange(int, long, long, int)}
- * - {@link GL2#mapNamedBuffer(int, int)}
- * - {@link GL2#mapNamedBufferRange(int, long, long, int)}
+ * - {@link GL2#mapNamedBufferEXT(int, int)}
+ * - {@link GL2#mapNamedBufferRangeEXT(int, long, long, int)}
+ * - {@link GL4#mapNamedBuffer(int, int)}
+ * - {@link GL4#mapNamedBufferRange(int, long, long, int)}
*
*
*
* GL buffer storage is unmapped via
*
+ * - {@link GL#glDeleteBuffers(int, IntBuffer)} - buffer deletion
* - {@link GL#glUnmapBuffer(int)} - explicit via target
* - {@link GL2#glUnmapNamedBufferEXT(int)} - explicit direct
+ * - {@link GL4#glUnmapNamedBuffer(int)} - explicit direct
* - {@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 GL#glDeleteBuffers(int, IntBuffer)} - buffer deletion
+ * - {@link GL4#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL4#glBufferStorage(int, long, Buffer, int)} - storage creation via target
+ * - {@link GL4#glNamedBufferStorage(int, long, Buffer, int)} - storage creation, direct
*
*
*/
diff --git a/src/jogl/classes/jogamp/opengl/GLBufferObjectTracker.java b/src/jogl/classes/jogamp/opengl/GLBufferObjectTracker.java
index 89b23139f..717ee2cab 100644
--- a/src/jogl/classes/jogamp/opengl/GLBufferObjectTracker.java
+++ b/src/jogl/classes/jogamp/opengl/GLBufferObjectTracker.java
@@ -33,7 +33,6 @@ import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import com.jogamp.opengl.*;
-
import com.jogamp.common.ExceptionUtils;
import com.jogamp.common.nio.Buffers;
import com.jogamp.common.util.IntObjectHashMap;
@@ -48,7 +47,8 @@ import com.jogamp.common.util.PropertyAccess;
* Buffer storage is created via
*
* - {@link GL#glBufferData(int, long, java.nio.Buffer, int)} - storage recreation with target via {@link #createBufferStorage(GLBufferStateTracker, GL, int, long, Buffer, int, int, CreateStorageDispatch, long)}
- * - {@link GL2#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage recreation, direct, via {@link #createBufferStorage(GL, int, long, Buffer, int, CreateStorageDispatch, long)}
+ * - {@link GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int)} - storage recreation, direct, via {@link #createBufferStorage(GL, int, long, Buffer, int, CreateStorageDispatch, long)}
+ * - {@link GL4#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage recreation, direct, via {@link #createBufferStorage(GL, int, long, Buffer, int, CreateStorageDispatch, long)}
* - {@link GL4#glBufferStorage(int, long, Buffer, int)} - storage creation with target via {@link #createBufferStorage(GLBufferStateTracker, GL, int, long, Buffer, int, int, CreateStorageDispatch, long)}
* - {@link GL4#glNamedBufferStorage(int, long, Buffer, int)} - storage recreation, direct, via {@link #createBufferStorage(GL, int, long, Buffer, int, CreateStorageDispatch, long)}
*
@@ -60,7 +60,8 @@ import com.jogamp.common.util.PropertyAccess;
*
* - {@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#glNamedBufferData(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int)} - storage recreation, direct
+ * - {@link GL4#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
*
@@ -191,7 +192,9 @@ public class GLBufferObjectTracker {
}
/**
- * Must be called when [re]creating the GL buffer object via {@link GL2#glNamedBufferData(int, long, java.nio.Buffer, int)}
+ * Must be called when [re]creating the GL buffer object
+ * via {@link GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int) glNamedBufferDataEXT},
+ * {@link GL4#glNamedBufferData(int, long, java.nio.Buffer, int) glNamedBufferData},
* and {@link GL4#glNamedBufferStorage(int, long, Buffer, int)},
* i.e. implies destruction of the buffer.
*
@@ -318,7 +321,7 @@ public class GLBufferObjectTracker {
return this.mapBufferImpl(bufferStateTracker, caller, target, true /* useRange */, offset, length, access, dispatch);
}
/**
- * Must be called when mapping GL buffer objects via {@link GL2#mapNamedBuffer(int, int)}.
+ * Must be called when mapping GL buffer objects via {@link GL2#mapNamedBufferEXT(int, int)}.
* @throws GLException if buffer is not tracked
* @throws GLException if buffer is already mapped
* @throws GLException if buffer has invalid store size, i.e. less-than zero
@@ -327,7 +330,7 @@ public class GLBufferObjectTracker {
return this.mapBufferImpl(0 /* target */, bufferName, true /* isNamedBuffer */, false /* useRange */, 0 /* offset */, 0 /* length */, access, dispatch);
}
/**
- * Must be called when mapping GL buffer objects via {@link GL2#mapNamedBufferRange(int, long, long, int)}.
+ * Must be called when mapping GL buffer objects via {@link GL2#mapNamedBufferRangeEXT(int, long, long, int)}.
* @throws GLException if buffer is not tracked
* @throws GLException if buffer is already mapped
* @throws GLException if buffer has invalid store size, i.e. less-than zero
--
cgit v1.2.3