renderer

package
v0.0.0-...-4051f3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	Center     r2.Vec
	WorldWidth float64
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer() *Renderer

func (*Renderer) AddFrameMessage

func (rend *Renderer) AddFrameMessage(message string)

func (*Renderer) CellDirToWorld

func (rend *Renderer) CellDirToWorld(screen tcell.Screen, dir r2.Vec) r2.Vec

func (*Renderer) CellToWorld

func (rend *Renderer) CellToWorld(screen tcell.Screen, cell r2.Vec) r2.Vec

@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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL