Ejemplo n.º 1
0
// Renderer (https://wiki.libsdl.org/SDL_RenderGetClipRect)
func (renderer *Renderer) GetClipRect(rect *Rect) {
	C.SDL_RenderGetClipRect(renderer.cptr(), rect.cptr())
}
Ejemplo n.º 2
0
func (renderer *Renderer) GetClipRect(rect *Rect) {
	_renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer))
	_rect := (*C.SDL_Rect)(unsafe.Pointer(rect))
	C.SDL_RenderGetClipRect(_renderer, _rect)
}