|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QGLFormat.OpenGLVersionFlag>
com.trolltech.qt.opengl.QGLFormat.OpenGLVersionFlag
public static enum QGLFormat.OpenGLVersionFlag
This enum describes the various OpenGL versions that are recognized by Qt. Use the QGLFormat::openGLVersionFlags() function to identify which versions that are supported at runtime.
See also http://www.opengl.org for more information about the different revisions of OpenGL.
Enum Constant Summary | |
---|---|
OpenGL_ES_Common_Version_1_0
OpenGL ES version 1.0 Common or higher is present. |
|
OpenGL_ES_Common_Version_1_1
OpenGL ES version 1.1 Common or higher is present. |
|
OpenGL_ES_CommonLite_Version_1_0
OpenGL ES version 1.0 Common Lite or higher is present. |
|
OpenGL_ES_CommonLite_Version_1_1
OpenGL ES version 1.1 Common Lite or higher is present. |
|
OpenGL_ES_Version_2_0
OpenGL ES version 2.0 or higher is present. |
|
OpenGL_Version_1_1
OpenGL version 1.1 or higher is present. |
|
OpenGL_Version_1_2
OpenGL version 1.2 or higher is present. |
|
OpenGL_Version_1_3
OpenGL version 1.3 or higher is present. |
|
OpenGL_Version_1_4
OpenGL version 1.4 or higher is present. |
|
OpenGL_Version_1_5
OpenGL version 1.5 or higher is present. |
|
OpenGL_Version_2_0
OpenGL version 2.0 or higher is present. |
|
OpenGL_Version_2_1
OpenGL version 2.1 or higher is present. |
|
OpenGL_Version_None
If no OpenGL is present or if no OpenGL context is current. |
Method Summary | |
---|---|
static QGLFormat.OpenGLVersionFlags |
createQFlags(QGLFormat.OpenGLVersionFlag... values)
|
static QGLFormat.OpenGLVersionFlag |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QGLFormat.OpenGLVersionFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QGLFormat.OpenGLVersionFlag[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_None
If no OpenGL is present or if no OpenGL context is current.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_1
OpenGL version 1.1 or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_2
OpenGL version 1.2 or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_3
OpenGL version 1.3 or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_4
OpenGL version 1.4 or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_5
OpenGL version 1.5 or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_2_0
OpenGL version 2.0 or higher is present. Note that version 2.0 supports all the functionality of version 1.5.
public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_2_1
OpenGL version 2.1 or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_Common_Version_1_0
OpenGL ES version 1.0 Common or higher is present. The Common profile supports all the features of Common Lite.
public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_CommonLite_Version_1_0
OpenGL ES version 1.0 Common Lite or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_Common_Version_1_1
OpenGL ES version 1.1 Common or higher is present. The Common profile supports all the features of Common Lite.
public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_CommonLite_Version_1_1
OpenGL ES version 1.1 Common Lite or higher is present.
public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_Version_2_0
OpenGL ES version 2.0 or higher is present. Note that OpenGL ES version 2.0 does not support all the features of OpenGL ES 1.x. So if OpenGL_ES_Version_2_0 is returned, none of the ES 1.x flags are returned.
Method Detail |
---|
public static QGLFormat.OpenGLVersionFlag[] values()
for (QGLFormat.OpenGLVersionFlag c : QGLFormat.OpenGLVersionFlag.values()) System.out.println(c);
public static QGLFormat.OpenGLVersionFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int value()
QtEnumerator
value
in interface QtEnumerator
public static QGLFormat.OpenGLVersionFlags createQFlags(QGLFormat.OpenGLVersionFlag... values)
public static QGLFormat.OpenGLVersionFlag resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |