diff options
Diffstat (limited to 'src/com/mbien/opencl/gl/CLGLObject.java')
-rw-r--r-- | src/com/mbien/opencl/gl/CLGLObject.java | 11 |
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(); } |