IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

OpenGLInfo QML Type

Provides information about the used OpenGL version.

This type was introduced in Qt 5.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

OpenGLInfo QML Type

  • Import Statement: import QtQuick 2.12

  • Since: Qt 5.4

  • Group: OpenGLInfo is part of qtquick-effects

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.

This type is deprecated. Use GraphicsInfo instead.

See Also

See also ShaderEffect

Property Documentation

 

[read-only] majorVersion : int

This property holds the major OpenGL version.

The default version is 2.0.

See Also

See also minorVersion, profile

[read-only] minorVersion : int

This property holds the minor OpenGL version.

The default version is 2.0.

See Also

See also majorVersion, profile

[read-only] 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

[read-only] 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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+