MCPcopy Index your code
hub / github.com/EngoEngine/engo / ComplexTriangles

Struct ComplexTriangles

common/render_shapes.go:114–124  ·  view source on GitHub ↗

ComplexTriangles is a complex form, made out of triangles.

Source from the content-addressed store, hash-verified

112
113// ComplexTriangles is a complex form, made out of triangles.
114type ComplexTriangles struct {
115 // Points are the points the form is made of. They should be defined on a scale from 0 to 1, where (0, 0) starts
116 // at the top-left of the area (as defined by the `SpaceComponent`.
117 // You should use a multitude of 3 points, because each triangle is defined by defining 3 points.
118 Points []engo.Point
119
120 // BorderWidth indicates the width of the border, around EACH of the Triangles it is made out of
121 BorderWidth float32
122 // BorderColor indicates the color of the border, around EACH of the Triangles it is made out of
123 BorderColor color.Color
124}
125
126// Texture always returns nil. ComplexTriangles is drawable without a Texture. This implements the Drawable interface.
127func (ComplexTriangles) Texture() *gl.Texture { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected