Documentation ¶
Index ¶
- type Renderer
- func (rend *Renderer) AddFrameMessage(message string)
- func (rend *Renderer) CellDirToWorld(screen tcell.Screen, dir r2.Vec) r2.Vec
- func (rend *Renderer) CellToWorld(screen tcell.Screen, cell r2.Vec) r2.Vec
- func (rend *Renderer) Render(screen tcell.Screen, sim *simulation.Simulation)
- func (rend *Renderer) RenderForceField(screen tcell.Screen, sim *simulation.Simulation)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
func NewRenderer ¶
func NewRenderer() *Renderer
func (*Renderer) AddFrameMessage ¶
func (*Renderer) CellDirToWorld ¶
func (*Renderer) CellToWorld ¶
@TODO: combine that with computations we do in Render()? And maybe use matrix multiplications for that?
func (*Renderer) Render ¶
func (rend *Renderer) Render(screen tcell.Screen, sim *simulation.Simulation)
func (*Renderer) RenderForceField ¶
func (rend *Renderer) RenderForceField(screen tcell.Screen, sim *simulation.Simulation)
Click to show internal directories.
Click to hide internal directories.