资料收集站

SDL

Thursday
Jan 08th
Text size
  • Increase font size
  • Default font size
  • Decrease font size

SDL_WM_SetIcon

SDL_WM_SetIcon

Name

SDL_WM_SetIcon -- Sets the icon for the display window.

Synopsis

#include "SDL.h"

void SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask);

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"), NULL);
Comments (0)Add Comment

Write comment

busy
 

Google 搜索

相关文章

在线用户

We have 60 guests online