1SDL_WM_SetIcon(3)              SDL API Reference             SDL_WM_SetIcon(3)
2
3
4

NAME

6       SDL_WM_SetIcon - Sets the icon for the display window.
7

SYNOPSIS

9       #include "SDL.h"
10
11       void SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask);
12

DESCRIPTION

14       Sets the icon for the display window. Win32 icons must be 32x32.
15
16       This function must be called before the first call to SDL_SetVideoMode.
17
18       It takes an icon surface, and a mask in MSB format.
19
20       If mask is NULL, the entire icon surface will be used as the icon.
21

EXAMPLE

23       SDL_WM_SetIcon(SDL_LoadBMP("icon.bmp"), NULL);
24

SEE ALSO

26       SDL_SetVideoMode, SDL_WM_SetCaption
27
28
29
30SDL                         Tue 11 Sep 2001, 23:02           SDL_WM_SetIcon(3)
Impressum