logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GPUViewport - A structure specifying a viewport.

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;

See Also