MCPcopy
hub / github.com/EngoEngine/engo / Curve

Struct Curve

common/render_shapes.go:93–96  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.
93type 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.
99func (Curve) Texture() *gl.Texture { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected