aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/gl/CLGLObject.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-16 22:55:32 +0100
committerMichael Bien <[email protected]>2010-03-16 22:55:32 +0100
commit36a289538cdb9373d8eb7700e616f019231ab591 (patch)
tree6310f16df3195b3d7553dde34ef52bca84270461 /src/com/mbien/opencl/gl/CLGLObject.java
parent919d8e9f992c07ab18ddd6d192d6747e8d7aa40b (diff)
get(GL)Context() and getCL() getters.
fix in isGLMemorySharingSupported() on mac. javadoc fixes.
Diffstat (limited to 'src/com/mbien/opencl/gl/CLGLObject.java')
-rw-r--r--src/com/mbien/opencl/gl/CLGLObject.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/gl/CLGLObject.java b/src/com/mbien/opencl/gl/CLGLObject.java
index 51a730ed..84c3ecef 100644
--- a/src/com/mbien/opencl/gl/CLGLObject.java
+++ b/src/com/mbien/opencl/gl/CLGLObject.java
@@ -4,6 +4,7 @@
package com.mbien.opencl.gl;
import com.mbien.opencl.CLMemory.GLObjectType;
+import javax.media.opengl.GLContext;
/**
*
@@ -20,5 +21,15 @@ interface CLGLObject {
* Returns the OpenGL buffer type of this shared object.
*/
public GLObjectType getGLObjectType();
+
+ /**
+ * Returns the OpenCL context of this shared object.
+ */
+ public CLGLContext getContext();
+
+ /**
+ * Returns the OpenGL context of this shared object.
+ */
+ public GLContext getGLContext();
}