world

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sky

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

func NewSky

func NewSky(bsp *model.Bsp, clusterLeafs []*model.ClusterLeaf, position mgl32.Vec3, scale float32, skyCube *model.Model) *Sky

func (*Sky) GetClusterLeafs

func (sky *Sky) GetClusterLeafs() []*model.ClusterLeaf

func (*Sky) GetCubemap

func (sky *Sky) GetCubemap() *model.Model

func (*Sky) GetVisibleBsp

func (sky *Sky) GetVisibleBsp() *model.Bsp

func (*Sky) Transform

func (sky *Sky) Transform() *entity.Transform

type World

type World struct {
	entity.Base

	LeafCache *visibility.Cache
	// contains filtered or unexported fields
}

func NewWorld

func NewWorld(world model.Bsp, staticProps []model.StaticProp, visData *visibility.Vis) *World

func (*World) AsyncRebuildVisibleWorld

func (entity *World) AsyncRebuildVisibleWorld()

Launches rebuilding the visible world in a separate thread Note: This *could* cause rendering issues if the rebuild is slower than travelling between clusters

func (*World) Bsp

func (entity *World) Bsp() *model.Bsp

func (*World) BuildSkybox

func (entity *World) BuildSkybox(sky *model.Model, position mgl32.Vec3, scale float32)

Build skybox from tree

func (*World) Sky

func (entity *World) Sky() *Sky

func (*World) TestVisibility

func (entity *World) TestVisibility(position mgl32.Vec3)

Rebuild the current facelist to render, by first recalculating using vvis data

func (*World) VisibleClusters

func (entity *World) VisibleClusters() []*model.ClusterLeaf

Jump to

Keyboard shortcuts

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