Documentation
¶
Index ¶
- type Sky
- type World
- func (entity *World) AsyncRebuildVisibleWorld()
- func (entity *World) Bsp() *model.Bsp
- func (entity *World) BuildSkybox(sky *model.Model, position mgl32.Vec3, scale float32)
- func (entity *World) Sky() *Sky
- func (entity *World) TestVisibility(position mgl32.Vec3)
- func (entity *World) VisibleClusters() []*model.ClusterLeaf
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 (*Sky) GetClusterLeafs ¶
func (sky *Sky) GetClusterLeafs() []*model.ClusterLeaf
func (*Sky) GetCubemap ¶
func (*Sky) GetVisibleBsp ¶
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) BuildSkybox ¶
Build skybox from tree
func (*World) TestVisibility ¶
Rebuild the current facelist to render, by first recalculating using vvis data
func (*World) VisibleClusters ¶
func (entity *World) VisibleClusters() []*model.ClusterLeaf
Click to show internal directories.
Click to hide internal directories.