Curve is a beizer curve defined by the points provided. These points are relative to the SpaceComponent provided, so moving that will move the Curve without adjusting the Points for the beizer curve. The first control point is the top-left corner of the space component, and the last control point is
| 91 | // top-left corner of the space component, and the last control point is the |
| 92 | // bottom-right corner. To do third and fourth order, add points to Points. |
| 93 | type Curve struct { |
| 94 | LineWidth float32 |
| 95 | Points []engo.Point |
| 96 | } |
| 97 | |
| 98 | // Texture always returns nil. Curve is drawable without a Texture. This implements the Drawable interface. |
| 99 | func (Curve) Texture() *gl.Texture { return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected