Ejemplo n.º 1
0
// Renderer (https://wiki.libsdl.org/SDL_GetRenderTarget)
func (renderer *Renderer) GetRenderTarget() *Texture {
	return (*Texture)(unsafe.Pointer(C.SDL_GetRenderTarget(renderer.cptr())))
}
Ejemplo n.º 2
0
func (renderer *Renderer) GetRenderTarget() *Texture {
	_renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer))
	return (*Texture)(unsafe.Pointer(C.SDL_GetRenderTarget(_renderer)))
}