SDL_VideoInfo structure
SDL_VideoInfo -- Video target information
Syntax
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:1;
Uint32 video_mem;
SDL_PixelFormat *vfmt;
int current_w;
int current_h;
} SDL_VideoInfo;
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 if called after SDL_SetVideoMode.
SDL_VideoInfo structure details |
|
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, should be accessed only if hw_available == 1, otherwise it is equal to 0 |
vfmt |
Pixel format of the video device |
current_w, current_h |
Width and height of the current video mode, or of the desktop mode if SDL_GetVideoInfo was called before SDL_SetVideoMode (available since SDL 1.2.10) |
See also
SDL_PixelFormat, SDL_GetVideoInfo
Example
See SDL_GetVideoInfo for an example of code
Requirements
Header |
SDL.h |
Version |
1.2.13 |
Shared object |
libSDL.so |
DLL |
SDL.dll |
