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

Struct Rectangle

common/render_shapes.go:45–48  ·  view source on GitHub ↗

Rectangle is a basic rectangular form; the dimensions are controlled via the `SpaceComponent`.

Source from the content-addressed store, hash-verified

43
44// Rectangle is a basic rectangular form; the dimensions are controlled via the `SpaceComponent`.
45type Rectangle struct {
46 BorderWidth float32
47 BorderColor color.Color
48}
49
50// Texture always returns nil. Rectangle is drawable without a Texture. This implements the Drawable interface.
51func (Rectangle) Texture() *gl.Texture { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected