Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_ListModes(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_!ListModes !!!SDL_!ListModes NAME SYNOPSIS DESCRIPTION EXAMPLE SEE ALSO ---- !!NAME SDL_!ListModes- Returns a pointer to an array of available screen dimensions for the given format and video flags !!SYNOPSIS __#include __ __SDL_Rect **SDL_!ListModes__(__SDL_!PixelFormat *format, Uint32 flags__); !!DESCRIPTION Return a pointer to an array of available screen dimensions for the given format and video flags, sorted largest to smallest. Returns __NULL__ if there are no dimensions available for a particular format, or __-1__ if any dimension is okay for the given format. If __format__ is __NULL__, the mode list will be for the format returned by ''SDL_!GetVideoInfo()''-''vfmt__. The __flag__ parameter is an OR'd combination of ''surface'' flags. The flags are the same as those used __SDL_!SetVideoMode__ and they play a strong role in deciding what modes are valid. For instance, if you pass __SDL_HWSURFACE__ as a flag only modes that support hardware video surfaces will be returned. !!EXAMPLE SDL_Rect **modes; int i; . . . /* Get available fullscreen/hardware modes */ modes=SDL_!ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE); /* Check is there are any modes available */ if(modes == (SDL_Rect **)0){ printf( !!SEE ALSO __SDL_!SetVideoMode__, __SDL_!GetVideoInfo__, __SDL_Rect__, __SDL_!PixelFormat__ ----
One page links to
SDL_ListModes(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.