示例#1
0
func (surface *Surface) GetClipRect(rect *Rect) {
	C.SDL_GetClipRect(surface.cptr(), rect.cptr())
}
示例#2
0
文件: sdl.go 项目: kearsley/Go-SDL
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
	s.mutex.RLock()
	C.SDL_GetClipRect(s.cSurface, (*C.SDL_Rect)(cast(r)))
	s.mutex.RUnlock()
}
示例#3
0
文件: sdl.go 项目: gnanderson/Go-SDL
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
	C.SDL_GetClipRect((*C.SDL_Surface)(cast(s)), (*C.SDL_Rect)(cast(r)))
	return
}
示例#4
0
func (surface *Surface) GetClipRect(rect *Rect) {
	_surface := (*C.SDL_Surface)(unsafe.Pointer(surface))
	_rect := (*C.SDL_Rect)(unsafe.Pointer(rect))
	C.SDL_GetClipRect(_surface, _rect)
}
示例#5
0
文件: surface.go 项目: willemvds/sdl
func (s *Surface) GetClipRect() *Rect {
	var rect Rect
	C.SDL_GetClipRect(s.c(), rect.c())

	return &rect
}
示例#6
0
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
	C.SDL_GetClipRect(s.cSurface, (*C.SDL_Rect)(cast(r)))
}
示例#7
0
文件: video.go 项目: beoran/fungo
// Gets the clipping rectangle for the destination surface in a blit.
// 'rect' must be a pointer to a valid rectangle which will be filled
// with the correct values.
func getClipRect(surface *C.SDL_Surface, rect *C.SDL_Rect) {
	C.SDL_GetClipRect(surface, rect)
}