banthar / Go-SDL

Go bindings for SDL
218 stars 68 forks source link

Add Surface rotozoom Support #62

Open jasonmf opened 11 years ago

jasonmf commented 11 years ago

// 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))) }