blob: efd2eedd13f1418cf7033da11a548ae9df03631a (
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
/*
* 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 GL3 profile.
* The GL3 profile reflects OpenGL versions greater or equal 3.1
* @return whether this GL object conforms to the GL3 profile
*/
public boolean isGL3();
/**
* Indicates whether this GL object conforms to the GL2 profile.
* The GL2 profile reflects OpenGL versions greater or equal 1.5
* @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 compatible 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 compatible profile.
* @return whether this GL object conforms to the GL2ES1 profile
*/
public boolean isGL2ES1();
/**
* Indicates whether this GL object conforms to the GL2ES2 compatible profile.
* @return whether this GL object conforms to the GL2ES2 profile
*/
public boolean isGL2ES2();
/** Indicates whether this GL object supports GLSL. */
public boolean hasGLSL();
/**
* 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 GL3 interface.
* @return this object cast to the GL3 interface
* @throws GLException if this GLObject is not a GL3 implementation
*/
public GL3 getGL3() 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();
/**
* Returns the GLProfile with which this GL object is associated.
* @return the GLProfile with which this GL object is associated
*/
public GLProfile getGLProfile();
}
|