com.trolltech.qt.opengl
Class QGLFormat.OpenGLVersionFlag

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.opengl.QGLFormat.OpenGLVersionFlag
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QGLFormat

public static final class QGLFormat.OpenGLVersionFlag
extends java.lang.Enum
implements QtEnumerator

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.

See also:
openGLVersionFlags().

See Also:
Serialized Form

Field Summary
static QGLFormat.OpenGLVersionFlag OpenGL_ES_Common_Version_1_0
          OpenGL ES version 1.0 Common or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_ES_Common_Version_1_1
          OpenGL ES version 1.1 Common or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_ES_CommonLite_Version_1_0
          OpenGL ES version 1.0 Common Lite or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_ES_CommonLite_Version_1_1
          OpenGL ES version 1.1 Common Lite or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_ES_Version_2_0
          OpenGL ES version 2.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_1_1
          OpenGL version 1.1 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_1_2
          OpenGL version 1.2 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_1_3
          OpenGL version 1.3 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_1_4
          OpenGL version 1.4 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_1_5
          OpenGL version 1.5 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_2_0
          OpenGL version 2.0 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_2_1
          OpenGL version 2.1 or higher is present.
static QGLFormat.OpenGLVersionFlag OpenGL_Version_None
          If no OpenGL is present or if no OpenGL context is current.
 
Method Summary
static QGLFormat.OpenGLVersionFlags createQFlags(QGLFormat.OpenGLVersionFlag[] values)
          This function creates a com.trolltech.qt.opengl.QGLFormat$OpenGLVersionFlags with the specified com.trolltech.qt.opengl.QGLFormat$OpenGLVersionFlag[] QGLFormat$OpenGLVersionFlag values set.
static QGLFormat.OpenGLVersionFlag resolve(int value)
          Returns the QGLFormat$OpenGLVersionFlag constant with the specified int.
 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)
           
static QGLFormat.OpenGLVersionFlag[] values()
           
 
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
 

Field Detail

OpenGL_Version_None

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_None
If no OpenGL is present or if no OpenGL context is current.


OpenGL_Version_1_1

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_1
OpenGL version 1.1 or higher is present.


OpenGL_Version_1_2

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_2
OpenGL version 1.2 or higher is present.


OpenGL_Version_1_3

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_3
OpenGL version 1.3 or higher is present.


OpenGL_Version_1_4

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_4
OpenGL version 1.4 or higher is present.


OpenGL_Version_1_5

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_1_5
OpenGL version 1.5 or higher is present.


OpenGL_Version_2_0

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.


OpenGL_Version_2_1

public static final QGLFormat.OpenGLVersionFlag OpenGL_Version_2_1
OpenGL version 2.1 or higher is present.


OpenGL_ES_Common_Version_1_0

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.


OpenGL_ES_CommonLite_Version_1_0

public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_CommonLite_Version_1_0
OpenGL ES version 1.0 Common Lite or higher is present.


OpenGL_ES_Common_Version_1_1

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.


OpenGL_ES_CommonLite_Version_1_1

public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_CommonLite_Version_1_1
OpenGL ES version 1.1 Common Lite or higher is present.


OpenGL_ES_Version_2_0

public static final QGLFormat.OpenGLVersionFlag OpenGL_ES_Version_2_0
OpenGL ES version 2. 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

values

public static QGLFormat.OpenGLVersionFlag[] values()

valueOf

public static QGLFormat.OpenGLVersionFlag valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

createQFlags

public static QGLFormat.OpenGLVersionFlags createQFlags(QGLFormat.OpenGLVersionFlag[] values)
This function creates a com.trolltech.qt.opengl.QGLFormat$OpenGLVersionFlags with the specified com.trolltech.qt.opengl.QGLFormat$OpenGLVersionFlag[] QGLFormat$OpenGLVersionFlag values set.


resolve

public static QGLFormat.OpenGLVersionFlag resolve(int value)
Returns the QGLFormat$OpenGLVersionFlag constant with the specified int.