(rectCount int)
| 984 | } |
| 985 | |
| 986 | func NewShape(rectCount int) *Shape { |
| 987 | shape := &Shape{} |
| 988 | for i := 0; i < rectCount; i++ { |
| 989 | shape.Rects = append(shape.Rects, &sdl.FRect{}) |
| 990 | } |
| 991 | return shape |
| 992 | } |
| 993 | |
| 994 | func (shape *Shape) SetSizes(xywh ...float32) { |
| 995 | for i := 0; i < len(xywh); i += 4 { |