ComplexTriangles is a complex form, made out of triangles.
| 112 | |
| 113 | // ComplexTriangles is a complex form, made out of triangles. |
| 114 | type 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. |
| 127 | func (ComplexTriangles) Texture() *gl.Texture { return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected