Esempio n. 1
0
func (w *Window) SetIcon(s *Surface) {
	C.SDL_SetWindowIcon(w.cWindow, s.cSurface)
}
Esempio n. 2
0
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)
}
Esempio n. 3
0
// Window (https://wiki.libsdl.org/SDL_SetWindowIcon)
func (window *Window) SetIcon(icon *Surface) {
	C.SDL_SetWindowIcon(window.cptr(), icon.cptr())
}
Esempio n. 4
0
func (win *Window) SetIcon(icon *Surface) {
	C.SDL_SetWindowIcon(win.c, icon.c())
}
Esempio n. 5
0
func (w *Window) SetIcon(s *Surface) {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	C.SDL_SetWindowIcon(w.cWindow, s.cSurface)
}