scene

package
v0.0.0-...-d4a0833 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(fileName string, fs *filesystem.FileSystem)

Types

type Scene

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

func Get

func Get() *Scene

func (*Scene) AddCamera

func (s *Scene) AddCamera(camera *entity.Camera)

func (*Scene) AddEntity

func (s *Scene) AddEntity(ent entity.IEntity)

func (*Scene) CurrentCamera

func (s *Scene) CurrentCamera() *entity.Camera

func (*Scene) FindEntitiesByKey

func (s *Scene) FindEntitiesByKey(key string, value string) []entity.IEntity

func (*Scene) GetAllEntities

func (s *Scene) GetAllEntities() *[]entity.IEntity

func (*Scene) GetEntity

func (s *Scene) GetEntity(idx int) entity.IEntity

func (*Scene) GetSky

func (s *Scene) GetSky() *texture.Cubemap

func (*Scene) GetWorld

func (s *Scene) GetWorld() *world.World

func (*Scene) IsLoaded

func (s *Scene) IsLoaded() bool

func (*Scene) NumEntities

func (s *Scene) NumEntities() int

func (*Scene) Reset

func (s *Scene) Reset()

Empty the current scene

func (*Scene) SetWorld

func (s *Scene) SetWorld(world *world.World)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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