blob: 9d88bae58c92a8bac6f54512f844d6afe1ab397f (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/*
* Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
*/
package javax.media.opengl;
import java.nio.*;
/**
* The base interface from which all GL profiles derive, providing
* checked conversion down to concrete profiles, and access to the
* OpenGL context associated with the GL.
*/
public interface GLBase {
/**
* Indicates whether this GL object conforms to any of the common GL profiles.
* @return whether this GL object conforms to any of the common GL profiles
*/
public boolean isGL();
/**
* Indicates whether this GL object conforms to the GL2 profile.
* @return whether this GL object conforms to the GL2 profile
*/
public boolean isGL2();
/**
* Indicates whether this GL object conforms to the GLES1 profile.
* @return whether this GL object conforms to the GLES1 profile
*/
public boolean isGLES1();
/**
* Indicates whether this GL object conforms to the GLES2 profile.
* @return whether this GL object conforms to the GLES2 profile
*/
public boolean isGLES2();
/**
* Indicates whether this GL object conforms to one of the OpenGL ES profiles.
* @return whether this GL object conforms to one of the OpenGL ES profiles
*/
public boolean isGLES();
/**
* Indicates whether this GL object conforms to the GL2ES1 profile.
* @return whether this GL object conforms to the GL2ES1 profile
*/
public boolean isGL2ES1();
/**
* Indicates whether this GL object conforms to the GL2ES2 profile.
* @return whether this GL object conforms to the GL2ES2 profile
*/
public boolean isGL2ES2();
/**
* Casts this object to the GL interface.
* @return this object cast to the GL interface
* @throws GLException if this GLObject is not a GL implementation
*/
public GL getGL() throws GLException;
/**
* Casts this object to the GL2 interface.
* @return this object cast to the GL2 interface
* @throws GLException if this GLObject is not a GL2 implementation
*/
public GL2 getGL2() throws GLException;
/**
* Casts this object to the GLES1 interface.
* @return this object cast to the GLES1 interface
* @throws GLException if this GLObject is not a GLES1 implementation
*/
public GLES1 getGLES1() throws GLException;
/**
* Casts this object to the GLES2 interface.
* @return this object cast to the GLES2 interface
* @throws GLException if this GLObject is not a GLES2 implementation
*/
public GLES2 getGLES2() throws GLException;
/**
* Casts this object to the GL2ES1 interface.
* @return this object cast to the GL2ES1 interface
* @throws GLException if this GLObject is not a GL2ES1 implementation
*/
public GL2ES1 getGL2ES1() throws GLException;
/**
* Casts this object to the GL2ES2 interface.
* @return this object cast to the GL2ES2 interface
* @throws GLException if this GLObject is not a GL2ES2 implementation
*/
public GL2ES2 getGL2ES2() throws GLException;
/**
* Returns the GLContext with which this GL object is associated.
* @return the GLContext with which this GL object is associated
*/
public GLContext getContext();
}
|