// Renderer (https://wiki.libsdl.org/SDL_RenderSetScale) func (renderer *Renderer) SetScale(scaleX, scaleY float32) error { _scaleX := C.float(scaleX) _scaleY := C.float(scaleY) _ret := C.SDL_RenderSetScale(renderer.cptr(), _scaleX, _scaleY) if _ret < 0 { return GetError() } return nil }
func (renderer *Renderer) SetScale(scaleX, scaleY float32) int { _renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer)) _scaleX := (C.float)(scaleX) _scaleY := (C.float)(scaleY) return (int)(C.SDL_RenderSetScale(_renderer, _scaleX, _scaleY)) }
func (renderer *Renderer) SetScale(scaleX, scaleY float32) int { _scaleX := C.float(scaleX) _scaleY := C.float(scaleY) return int(C.SDL_RenderSetScale(renderer.cptr(), _scaleX, _scaleY)) }