Documentation ¶
Index ¶
- type Background
- type BackgroundPart
- type Renderer
- func (r *Renderer) Background(background Background, dstImg *ebiten.Image, playerY float64)
- func (r *Renderer) Clear()
- func (r *Renderer) DebugImage() *ebiten.Image
- func (r *Renderer) DebugPrintAt(msg string, xpos, ypos int)
- func (r *Renderer) Image() *ebiten.Image
- func (r *Renderer) Polygon(x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, y3 float64, ...)
- func (r *Renderer) ResetDebug()
- func (r *Renderer) Segment(width, lanes int, x1, y1, w1, x2, y2, w2 float64, color SegmentColor)
- type SegmentColor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Background ¶
type Background struct { Image *ebiten.Image Parts []*BackgroundPart }
type BackgroundPart ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func (*Renderer) Background ¶
func (r *Renderer) Background(background Background, dstImg *ebiten.Image, playerY float64)
func (*Renderer) DebugImage ¶
func (r *Renderer) DebugImage() *ebiten.Image
func (*Renderer) DebugPrintAt ¶
func (*Renderer) ResetDebug ¶
func (r *Renderer) ResetDebug()
Click to show internal directories.
Click to hide internal directories.