aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/gl/CLGLObject.java
blob: 84c3ecef4d82acc16a5acfa84e036d3e8d3234bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Created on Friday, February 26 2010
 */
package com.mbien.opencl.gl;

import com.mbien.opencl.CLMemory.GLObjectType;
import javax.media.opengl.GLContext;

/**
 *
 * @author Michael Bien
 */
interface CLGLObject {

    /**
     * Returns the OpenGL object id of this shared object.
     */
    public int getGLObjectID();

    /**
     * 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();

}