| 754 | } |
| 755 | |
| 756 | func ThickRect(x, y, w, h, thickness int32, color Color) { |
| 757 | |
| 758 | ThickLine(Vector{float32(x), float32(y)}, Vector{float32(x + w), float32(y)}, float32(thickness), color) |
| 759 | ThickLine(Vector{float32(x + w), float32(y)}, Vector{float32(x + w), float32(y + h)}, float32(thickness), color) |
| 760 | ThickLine(Vector{float32(x + w), float32(y + h)}, Vector{float32(x), float32(y + h)}, float32(thickness), color) |
| 761 | ThickLine(Vector{float32(x), float32(y + h)}, Vector{float32(x), float32(y)}, float32(thickness), color) |
| 762 | |
| 763 | } |
| 764 | |
| 765 | func RectTopLeft(rect sdl.FRect) Vector { |
| 766 | return Vector{rect.X, rect.Y} |