summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/gl/CLGLBuffer.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-05-27 03:00:12 +0200
committerMichael Bien <[email protected]>2011-05-27 03:00:12 +0200
commita444a384b808e423f2e8377ff14c69b0c4be043a (patch)
tree56050afad314344ee8c99aa57698969da97b3d97 /src/com/jogamp/opencl/gl/CLGLBuffer.java
parent08a479b22d4ba9da9ee79fc938ac4de7fb83dc5a (diff)
LLB refactoring.
- split up CL into multiple sub interfaces - seperation is now feature wise - introdused llb package for low level classes
Diffstat (limited to 'src/com/jogamp/opencl/gl/CLGLBuffer.java')
-rw-r--r--src/com/jogamp/opencl/gl/CLGLBuffer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/gl/CLGLBuffer.java b/src/com/jogamp/opencl/gl/CLGLBuffer.java
index 148aa83d..55cede88 100644
--- a/src/com/jogamp/opencl/gl/CLGLBuffer.java
+++ b/src/com/jogamp/opencl/gl/CLGLBuffer.java
@@ -32,6 +32,7 @@ import com.jogamp.opencl.CLBuffer;
import com.jogamp.opencl.CLCommandQueue;
import com.jogamp.opencl.CLContext;
import com.jogamp.opencl.CLException;
+import com.jogamp.opencl.llb.gl.CLGL;
import java.nio.Buffer;
import javax.media.opengl.GLContext;
@@ -58,7 +59,7 @@ public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements C
static <B extends Buffer> CLGLBuffer<B> create(CLContext context, B directBuffer, long size, int flags, int glObject) {
checkBuffer(directBuffer, flags);
- CLGLI clgli = (CLGLI)getCL(context);
+ CLGL clgli = (CLGL)getCL(context);
int[] result = new int[1];
long id = clgli.clCreateFromGLBuffer(context.ID, flags, glObject, result, 0);
@@ -86,10 +87,12 @@ public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements C
initCLCapacity();
}
+ @Override
public int getGLObjectID() {
return GLID;
}
+ @Override
public GLObjectType getGLObjectType() {
return GLObjectType.GL_OBJECT_BUFFER;
}
@@ -99,6 +102,7 @@ public final class CLGLBuffer<B extends Buffer> extends CLBuffer<B> implements C
return (CLGLContext) super.getContext();
}
+ @Override
public GLContext getGLContext() {
return getContext().getGLContext();
}