Renderables
hlg
allows you to create create objects (e.g. textures, sprites, shapes) and render them to the screen.
These objects implement the Renderable
interface.
1type Renderable interface {
2 Render() // add the Renderable to the render queue
3 Dispose() // remove the Renderable from the render queue and destroy the Renderable
4 Hide() // keep the Renderable in memory but don't render it to the screen
5}
Renderables are rendered in the order in which Render()
was called and are retained until Dispose()
is called.