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)
| 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. |
| 129 | func (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 |
| 135 | func (r *RenderComponent) SetMinFilter(z ZoomFilter) { |