From 36a289538cdb9373d8eb7700e616f019231ab591 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 16 Mar 2010 22:55:32 +0100 Subject: get(GL)Context() and getCL() getters. fix in isGLMemorySharingSupported() on mac. javadoc fixes. --- src/com/mbien/opencl/gl/CLGLTexture3d.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/com/mbien/opencl/gl/CLGLTexture3d.java') diff --git a/src/com/mbien/opencl/gl/CLGLTexture3d.java b/src/com/mbien/opencl/gl/CLGLTexture3d.java index e1fef3a9..0a25c890 100644 --- a/src/com/mbien/opencl/gl/CLGLTexture3d.java +++ b/src/com/mbien/opencl/gl/CLGLTexture3d.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.*; @@ -70,4 +71,17 @@ public class CLGLTexture3d extends CLImage3d implements CLG return GLObjectType.GL_OBJECT_TEXTURE3D; } + /** + * Returns the shared CLGLContext. + */ + @Override + public CLGLContext getContext() { + return (CLGLContext) super.getContext(); + } + + @Override + public GLContext getGLContext() { + return getContext().getGLContext(); + } + } -- cgit v1.2.3