示例#1
0
文件: sdl.go 项目: gnanderson/Go-SDL
// Sets the icon for the display window.
func WM_SetIcon(icon *Surface, mask *uint8) {
	C.SDL_WM_SetIcon((*C.SDL_Surface)(cast(icon)), (*C.Uint8)(mask))
}
示例#2
0
文件: sdl.go 项目: kearsley/Go-SDL
// Sets the icon for the display window.
func WM_SetIcon(icon *Surface, mask *uint8) {
	GlobalMutex.Lock()
	C.SDL_WM_SetIcon(icon.cSurface, (*C.Uint8)(mask))
	GlobalMutex.Unlock()
}
示例#3
0
文件: video.go 项目: beoran/fungo
// 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.
// TODO: support mask
func wm_SetIcon(icon *C.SDL_Surface) {
	C.SDL_WM_SetIcon(icon, nil)
}