SDL_GPUViewport - A structure specifying a viewport.
Contents
Availability
This struct is available since SDL 3.2.0.
Header File
Defined in SDL3/SDL_gpu.h
Name
SDL_GPUViewport - A structure specifying a viewport.
See Also
•(3), SDL_SetGPUViewport(3) Simple Directmedia Layer SDL 3.2.10 SDL_GPUViewport(3type)
Synopsis
#include"SDL3/SDL.h"typedefstructSDL_GPUViewport{floatx;/**<Theleftoffsetoftheviewport.*/floaty;/**<Thetopoffsetoftheviewport.*/floatw;/**<Thewidthoftheviewport.*/floath;/**<Theheightoftheviewport.*/floatmin_depth;/**<Theminimumdepthoftheviewport.*/floatmax_depth;/**<Themaximumdepthoftheviewport.*/}SDL_GPUViewport;