diff options
author | Michael Bien <[email protected]> | 2010-03-16 22:55:32 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-16 22:55:32 +0100 |
commit | 36a289538cdb9373d8eb7700e616f019231ab591 (patch) | |
tree | 6310f16df3195b3d7553dde34ef52bca84270461 /src/com/mbien/opencl/gl/CLGLImage2d.java | |
parent | 919d8e9f992c07ab18ddd6d192d6747e8d7aa40b (diff) |
get(GL)Context() and getCL() getters.
fix in isGLMemorySharingSupported() on mac.
javadoc fixes.
Diffstat (limited to 'src/com/mbien/opencl/gl/CLGLImage2d.java')
-rw-r--r-- | src/com/mbien/opencl/gl/CLGLImage2d.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/gl/CLGLImage2d.java b/src/com/mbien/opencl/gl/CLGLImage2d.java index 0561e757..853c057e 100644 --- a/src/com/mbien/opencl/gl/CLGLImage2d.java +++ b/src/com/mbien/opencl/gl/CLGLImage2d.java @@ -7,6 +7,7 @@ import com.mbien.opencl.CLImageFormat; import com.mbien.opencl.CLMemory.GLObjectType; import com.mbien.opencl.impl.CLImageFormatImpl; import java.nio.Buffer; +import javax.media.opengl.GLContext; import static com.mbien.opencl.CL.*; @@ -61,4 +62,13 @@ public class CLGLImage2d<B extends Buffer> extends CLImage2d<B> implements CLGLO return GLID; } + @Override + public CLGLContext getContext() { + return (CLGLContext) super.getContext(); + } + + public GLContext getGLContext() { + return getContext().getGLContext(); + } + } |