Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly
SDL_GetVideoInfo(3) SDL API Reference SDL_GetVideoInfo(3)

NAME

SDL_GetVideoInfo - returns a pointer to information about the video hardware

SYNOPSIS

#include "SDL.h"
 
SDL_VideoInfo *SDL_GetVideoInfo(void);

DESCRIPTION

This function returns a read-only pointer to information about the video hardware. If this is called before SDL_SetVideoMode, the vfmt member of the returned structure will contain the pixel format of the "best" video mode.

SEE ALSO

SDL_SetVideoMode, SDL_VideoInfo
Tue 11 Sep 2001, 23:01 SDL
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org