fonction CD3D11_VIEWPORT ::CD3D11_VIEWPORT(FLOAT,FLOAT,FLOAT,FLOAT,FLOAT) (d3d11.h)

Instancie une nouvelle instance d’une structure CD3D11_VIEWPORT initialisée avec des valeurs D3D11_VIEWPORT.

Syntaxe

void CD3D11_VIEWPORT(
  FLOAT topLeftX,
  FLOAT topLeftY,
  FLOAT width,
  FLOAT height,
  FLOAT minDepth,
  FLOAT maxDepth
);

Paramètres

topLeftX

Type : FLOAT

Position X du côté gauche de la fenêtre d’affichage. Varie entre D3D11_VIEWPORT_BOUNDS_MIN et D3D11_VIEWPORT_BOUNDS_MAX.

topLeftY

Type : FLOAT

Position Y du haut de la fenêtre d’affichage. Varie entre D3D11_VIEWPORT_BOUNDS_MIN et D3D11_VIEWPORT_BOUNDS_MAX.

width

Type : FLOAT

Largeur de la fenêtre d’affichage.

height

Type : FLOAT

Hauteur de la fenêtre d’affichage.

minDepth

Type : FLOAT

Profondeur minimale de la fenêtre d’affichage. Varie entre 0 et 1.

maxDepth

Type : FLOAT

Profondeur maximale de la fenêtre d’affichage. Varie entre 0 et 1.

Valeur de retour

None

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête d3d11.h
Bibliothèque D3D11.lib

Voir aussi

CD3D11_VIEWPORT