camera

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FreeCamera

type FreeCamera struct {
	// contains filtered or unexported fields
}

func NewFreeCamera

func NewFreeCamera(winW, winH float64, worldW, worldH float64) *FreeCamera

func (*FreeCamera) CameraCenter

func (c *FreeCamera) CameraCenter() *math32.Vector2

func (*FreeCamera) GetPos

func (c *FreeCamera) GetPos() *math32.Vector2

func (*FreeCamera) IsWorldRange

func (c *FreeCamera) IsWorldRange(pos *math32.Vector2) bool

func (*FreeCamera) Move

func (c *FreeCamera) Move(x, y float64)

func (*FreeCamera) MoveTo

func (c *FreeCamera) MoveTo(x, y float64)

func (*FreeCamera) Render

func (c *FreeCamera) Render(world, screen *ebiten.Image) error

func (*FreeCamera) Reset

func (c *FreeCamera) Reset()

func (*FreeCamera) Rotate

func (c *FreeCamera) Rotate(theta float64)

func (*FreeCamera) ScreenToWorld

func (c *FreeCamera) ScreenToWorld(point *math32.Vector2) *math32.Vector2

func (*FreeCamera) SetViewPort

func (c *FreeCamera) SetViewPort(width, height float64)

func (*FreeCamera) String

func (c *FreeCamera) String() string

func (*FreeCamera) WorldToScreen

func (c *FreeCamera) WorldToScreen(point *math32.Vector2) *math32.Vector2

func (*FreeCamera) Zoom

func (c *FreeCamera) Zoom(m float64)

Jump to

Keyboard shortcuts

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