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

RenderSurfaceSelector QML Type

Provides a way of specifying the render surface.

This type was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

RenderSurfaceSelector QML Type

  • Import Statement: import Qt3D.Render 2.4

  • Since:: Qt 5.7

  • Inherits:: FrameGraphNode

  • Instantiates:: QRenderSurfaceSelector

Detailed Description

The RenderSurfaceSelector can be used to select the surface, where Qt3D renders the content. The surface can either be window surface or offscreen surface. The externalRenderTargetSize is used to specify the actual size of the render target when offscreen surface is used.

When DPI scaling is used by the system, the logical surface size, which is used by mouse events, and the actual 'physical' size of the surface can differ. The surfacePixelRatio is the factor to convert the logical size to the physical size.

Property Documentation

 

externalRenderTargetSize : size

Holds the size of the external render target.

surface : QSurface

Holds the surface.

surfacePixelRatio : real

Holds the surfacePixelRatio of the surface.

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