Ejemplo n.º 1
0
// 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))
}
Ejemplo n.º 2
0
// 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()
}
Ejemplo n.º 3
0
// 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)
}