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

Struct Triangle

common/render_shapes.go:22–27  ·  view source on GitHub ↗

Triangle is a basic triangular form; the "point" of the triangle is pointing to the top. The dimensions are controlled by the SpaceComponent.

Source from the content-addressed store, hash-verified

20// Triangle is a basic triangular form; the "point" of the triangle is pointing to the top. The dimensions are controlled
21// by the SpaceComponent.
22type Triangle struct {
23 TriangleType TriangleType
24
25 BorderWidth float32
26 BorderColor color.Color
27}
28
29// Texture always returns nil. Triangle is drawable without a Texture. This implements the Drawable interface.
30func (Triangle) Texture() *gl.Texture { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected