Esempio n. 1
0
// GetWindowFromID (https://wiki.libsdl.org/SDL_GetWindowFromID)
func GetWindowFromID(id uint32) (*Window, error) {
	_window := C.SDL_GetWindowFromID(C.Uint32(id))
	if _window == nil {
		return nil, GetError()
	}
	return (*Window)(unsafe.Pointer((_window))), nil
}
Esempio n. 2
0
func GetWindowFromID(id uint32) (*Window, error) {
	win := C.SDL_GetWindowFromID(C.Uint32(id))
	if win == nil {
		return nil, getError()
	}

	return &Window{win}, nil
}
Esempio n. 3
0
func GetWindowFromID(id uint32) *Window {
	_id := (C.Uint32)(id)
	return (*Window)(unsafe.Pointer((C.SDL_GetWindowFromID(_id))))
}
Esempio n. 4
0
func GetWindowFromID(id uint32) *Window {
	return (*Window)(unsafe.Pointer((C.SDL_GetWindowFromID(C.Uint32(id)))))
}