SDL_WM_SetIcon

Name

SDL_WM_SetIcon -- Sets the icon for the display window.

Synopsis

uses
SDL;

procedure SDL_WM_SetIcon( icon : PSDL_Surface; mask : UInt8 );

Description

Sets the icon for the display window.

This function must be called before the first call to SDL_SetVideoMode.

It takes an icon surface, and a mask in MSB format.

If mask is NULL , the entire icon surface will be used as the icon.

Example

SDL_WM_SetIcon( SDL_LoadBMP( 'icon.bmp' ), nil );

See Also

SDL_SetVideoMode , SDL_WM_SetCaption