summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/gl/CLGLObject.java
blob: 6e2aa9d2fced36b57f11fb2d69428cb3e29c5bf5 (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.jogamp.opencl.gl;

import com.jogamp.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();

}