예제 #1
0
파일: surface.go 프로젝트: JalfResi/go-sdl2
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)
}