OpenGLInfo QML Type

Provides information about the used OpenGL version. More...

Import Statement: import QtQuick 2.15
Since: Qt 5.4

Properties

Detailed Description

The OpenGLInfo attached type provides information about the OpenGL version being used to render the surface of the attachee item.

If the attachee item is not currently associated with any graphical surface, the properties are set to the values of the default surface format. When it becomes associated with a surface, all properties will update.

Warning: This type is deprecated. Use GraphicsInfo instead.

See also ShaderEffect.

Property Documentation

majorVersion : int

This property holds the major OpenGL version.

The default version is 2.0.

See also minorVersion and profile.


minorVersion : int

This property holds the minor OpenGL version.

The default version is 2.0.

See also majorVersion and profile.


profile : enumeration

This property holds the configured OpenGL context profile.

The possible values are:

  • OpenGLInfo.NoProfile (default) - OpenGL version is lower than 3.2.
  • OpenGLInfo.CoreProfile - Functionality deprecated in OpenGL version 3.0 is not available.
  • OpenGLInfo.CompatibilityProfile - Functionality from earlier OpenGL versions is available.

Reusable QML components will typically use this property in bindings in order to choose between core and non core profile compatible shader sources.

See also majorVersion and minorVersion.


renderableType : enumeration

This property holds the renderable type.

The possible values are:

  • OpenGLInfo.Unspecified (default) - Unspecified rendering method
  • OpenGLInfo.OpenGL - Desktop OpenGL rendering
  • OpenGLInfo.OpenGLES - OpenGL ES rendering

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.