From 9542b173b10d2bb0eb492230025bdede638631b0 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 19 Feb 2010 01:02:42 +0100 Subject: fixed CLImage2d methods, range/offset buffers have now correct values for the third element. javadoc fixes and two more factory methods for CLGLBuffer. --- src/com/mbien/opencl/CLGLContext.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/mbien/opencl/CLGLContext.java') diff --git a/src/com/mbien/opencl/CLGLContext.java b/src/com/mbien/opencl/CLGLContext.java index a96891c0..6fb0251f 100644 --- a/src/com/mbien/opencl/CLGLContext.java +++ b/src/com/mbien/opencl/CLGLContext.java @@ -143,6 +143,14 @@ public final class CLGLContext extends CLContext { } + public final CLGLBuffer createFromGLBuffer(int glBuffer, Mem... flags) { + return createFromGLBuffer(null, glBuffer, Mem.flagsToInt(flags)); + } + + public final CLGLBuffer createFromGLBuffer(int glBuffer, int flags) { + return createFromGLBuffer(null, glBuffer, flags); + } + public final CLGLBuffer createFromGLBuffer(B directBuffer, int glBuffer, Mem... flags) { return createFromGLBuffer(directBuffer, glBuffer, Mem.flagsToInt(flags)); } -- cgit v1.2.3