SDL_VideoInfo(3)

SDL_VideoInfo3

Video target information

Structure definition

typedef struct{
  Uint32 hw_available:1;
  Uint32 wm_available:1;
  Uint32 blit_hw:1;
  Uint32 blit_hw_CC:1;
  Uint32 blit_hw_A:1;
  Uint32 blit_sw:1;
  Uint32 blit_sw_CC:1;
  Uint32 blit_sw_A:1;
  Uint32 blit_fill;
  Uint32 video_mem;
  SDL_PixelFormat *vfmt;
} SDL_VideoInfo;

Structure data

hw_available

Is it possible to create hardware surfaces?

wm_available

Is there a window manager available

blit_hw

Are hardware to hardware blits accelerated?

blit_hw_CC

Are hardware to hardware colorkey blits accelerated?

blit_hw_A

Are hardware to hardware alpha blits accelerated?

blit_sw

Are software to hardware blits accelerated?

blit_sw_CC

Are software to hardware colorkey blits accelerated?

blit_sw_A

Are software to hardware alpha blits accelerated?

blit_fill

Are color fills accelerated?

video_mem

Total amount of video memory in Kilobytes

vfmt

Pixel format of the video device

Overview

This (read-only) structure is returned by SDL_GetVideoInfo. It contains information on either the 'best' available mode (if called before SDL_SetVideoMode) or the current video mode.

Releases

11 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0–5.0
  2. 6.0–12

From libsdl1.2-dev 1.2.15+dfsg2-8 in Debian 12 (Bookworm). Parsed by carta from the page's man source.