SDL 3.0
SDL_GPUViewport Struct Reference

#include <SDL_gpu.h>

Data Fields

float x
 
float y
 
float w
 
float h
 
float min_depth
 
float max_depth
 

Detailed Description

A structure specifying a viewport.

Since
This struct is available since SDL 3.2.0.
See also
SDL_SetGPUViewport

Definition at line 1299 of file SDL_gpu.h.

Field Documentation

◆ h

float SDL_GPUViewport::h

The height of the viewport.

Definition at line 1304 of file SDL_gpu.h.

◆ max_depth

float SDL_GPUViewport::max_depth

The maximum depth of the viewport.

Definition at line 1306 of file SDL_gpu.h.

◆ min_depth

float SDL_GPUViewport::min_depth

The minimum depth of the viewport.

Definition at line 1305 of file SDL_gpu.h.

◆ w

float SDL_GPUViewport::w

The width of the viewport.

Definition at line 1303 of file SDL_gpu.h.

◆ x

float SDL_GPUViewport::x

The left offset of the viewport.

Definition at line 1301 of file SDL_gpu.h.

◆ y

float SDL_GPUViewport::y

The top offset of the viewport.

Definition at line 1302 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: