SDL_VideoInfo

Name

SDL_VideoInfo -- 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

Uint32 :1hw_availableIs it possible to create hardware surfaces?
Uint32 :1wm_availableIs there a window manager available
Uint32 :1blit_hwAre hardware to hardware blits accelerated?
Uint32 :1blit_hw_CCAre hardware to hardware colorkey blits accelerated?
Uint32 :1blit_hw_AAre hardware to hardware alpha blits accelerated?
Uint32 :1blit_swAre software to hardware blits accelerated?
Uint32 :1blit_sw_CCAre software to hardware colorkey blits accelerated?
Uint32 :1blit_sw_AAre software to hardware alpha blits accelerated?
Uint32 :1blit_fillAre color fills accelerated?
Uint32video_memTotal amount of video memory in Kilobytes
SDL_PixelFormat *vfmtPixel format of the video device

Description

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.

See Also

SDL_PixelFormat, SDL_GetVideoInfo