func (w *Window) SetIcon(s *Surface) { C.SDL_SetWindowIcon(w.cWindow, s.cSurface) }
func (window *Window) SetIcon(icon *Surface) { _window := (*C.SDL_Window)(unsafe.Pointer(window)) _icon := (*C.SDL_Surface)(unsafe.Pointer(window)) C.SDL_SetWindowIcon(_window, _icon) }
// Window (https://wiki.libsdl.org/SDL_SetWindowIcon) func (window *Window) SetIcon(icon *Surface) { C.SDL_SetWindowIcon(window.cptr(), icon.cptr()) }
func (win *Window) SetIcon(icon *Surface) { C.SDL_SetWindowIcon(win.c, icon.c()) }
func (w *Window) SetIcon(s *Surface) { GlobalMutex.Lock() defer GlobalMutex.Unlock() C.SDL_SetWindowIcon(w.cWindow, s.cSurface) }