Exemple #1
0
func (a *Rect) Union(b, result *Rect) {
	_a := (*C.SDL_Rect)(unsafe.Pointer(a))
	_b := (*C.SDL_Rect)(unsafe.Pointer(b))
	_result := (*C.SDL_Rect)(unsafe.Pointer(result))
	C.SDL_UnionRect(_a, _b, _result)
}
Exemple #2
0
func (a *Rect) Union(b *Rect) *Rect {
	var ret Rect
	C.SDL_UnionRect((*C.SDL_Rect)(unsafe.Pointer(a)), (*C.SDL_Rect)(unsafe.Pointer(b)), (*C.SDL_Rect)(unsafe.Pointer(&ret)))
	return &ret
}
Exemple #3
0
func (r *Rect) UnionRect(r2 *Rect) *Rect {
	var rect Rect
	C.SDL_UnionRect(r.c(), r2.c(), rect.c())

	return &rect
}
Exemple #4
0
// Rect (https://wiki.libsdl.org/SDL_UnionRect)
func (a *Rect) Union(b *Rect) (result Rect) {
	C.SDL_UnionRect(a.cptr(), b.cptr(), result.cptr())
	return
}
Exemple #5
0
func (a *Rect) Union(b, result *Rect) {
	C.SDL_UnionRect(a.cptr(), b.cptr(), result.cptr())
}