2018-06-06 10:16:09 +08:00

10 lines
180 B
Go

package rect
import (
"github.com/veandco/go-sdl2/sdl"
)
func Rect(top ,left, width,height int) sdl.Rect {
return sdl.Rect{int32(top),int32(left),int32(width),int32(height)}
}