examples

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartProfiling

func StartProfiling()

Types

type BasicFreeCam

type BasicFreeCam struct {
	*tetra3d.Camera
	Scene             *tetra3d.Scene
	CameraTilt        float64
	CameraRotate      float64
	PrevMousePosition tetra3d.Vector
	Locked            bool
}

BasicFreeCam represents a basic freely moving camera, which allows you to easily explore a scene.

func NewBasicFreeCam

func NewBasicFreeCam(scene *tetra3d.Scene) BasicFreeCam

NewBasicFreeCam creates a new BasicFreeCam struct.

func (*BasicFreeCam) Update

func (cc *BasicFreeCam) Update()

Update updates the free cam.

type BasicSystemHandler

type BasicSystemHandler struct {
	DrawDebugText      bool
	DrawDebugDepth     bool
	DrawDebugWireframe bool
	DrawDebugCenters   bool

	Game              GameI
	UsingBasicFreeCam bool
}

func NewBasicSystemHandler

func NewBasicSystemHandler(game GameI) BasicSystemHandler

func (*BasicSystemHandler) Draw

func (system *BasicSystemHandler) Draw(screen *ebiten.Image, camera *tetra3d.Camera)

func (*BasicSystemHandler) Update

func (system *BasicSystemHandler) Update() error

type GameI

type GameI interface {
	Init()
}

Jump to

Keyboard shortcuts

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