banthar/Go-SDL — pull request #62 by troffgopher (2013-08-02 02:47:00+00:00)
Title: Add Surface rotozoom Support

// rotozoom.go
package sdl

// #cgo pkg-config: sdl SDL_gfx
// #include
// #include
import "C"

func (s *Surface) RotoZoom(angle, zoom float64, smooth int32) *Surface {
s.mutex.Lock()
defer s.mutex.Unlock()
return wrap(C.rotozoomSurface(s.cSurface, C.double(angle), C.double(zoom), C.int(smooth)))
}