Пример #1
0
func (s *Surface) LowerBlit(sr *Rect, dst *Surface, dr *Rect) error {
	if C.SDL_LowerBlit(s.c(), sr.c(), dst.c(), dr.c()) != 0 {
		return getError()
	}

	return nil
}
Пример #2
0
func (src *Surface) LowerBlit(srcrect *Rect, dst *Surface, dstrect *Rect) int {
	_src := (*C.SDL_Surface)(unsafe.Pointer(src))
	_srcrect := (*C.SDL_Rect)(unsafe.Pointer(srcrect))
	_dst := (*C.SDL_Surface)(unsafe.Pointer(dst))
	_dstrect := (*C.SDL_Rect)(unsafe.Pointer(dstrect))
	return (int)(C.SDL_LowerBlit(_src, _srcrect, _dst, _dstrect))
}
Пример #3
0
func (src *Surface) LowerBlit(srcRect *Rect, dst *Surface, dstRect *Rect) int {
	return int(C.SDL_LowerBlit(src.cptr(), srcRect.cptr(), dst.cptr(), dstRect.cptr()))
}
Пример #4
0
// Surface (https://wiki.libsdl.org/SDL_LowerBlit)
func (src *Surface) LowerBlit(srcRect *Rect, dst *Surface, dstRect *Rect) error {
	if C.SDL_LowerBlit(src.cptr(), srcRect.cptr(), dst.cptr(), dstRect.cptr()) != 0 {
		return GetError()
	}
	return nil
}