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

Method SetZIndex

common/render.go:129–132  ·  view source on GitHub ↗

SetZIndex sets the order that the RenderComponent is drawn to the screen. Higher z-indices are drawn on top of lower ones if they overlap.

(index float32)

Source from the content-addressed store, hash-verified

127// SetZIndex sets the order that the RenderComponent is drawn to the screen. Higher z-indices are drawn on top of
128// lower ones if they overlap.
129func (r *RenderComponent) SetZIndex(index float32) {
130 r.zIndex = index
131 engo.Mailbox.Dispatch(&renderChangeMessage{})
132}
133
134// SetMinFilter sets the ZoomFilter used for minimizing the RenderComponent
135func (r *RenderComponent) SetMinFilter(z ZoomFilter) {

Callers 5

NewMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80

Calls 1

DispatchMethod · 0.80

Tested by

no test coverage detected