Documentation ¶
Index ¶
Constants ¶
View Source
const MaxMapVisibility = 0x1000000
MaxMapVisibility is the maximum size of visibility data in bytes
View Source
const VisPAS = 1
VisPAS index
View Source
const VisPVS = 0
VisPVS index
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vis ¶
type Vis struct { // NumClusters is number of computed cluster NumClusters int32 // ByteOffset contains offsets for cluster pvs and pas // Slice length = NumClusters [0]=offset to PVS bit array for cluster ByteOffset [][2]int32 // BitVectors are compressed bit vectors, contains run-length compression PVS data BitVectors []byte }
Vis contains visibility data for clusters Includes both PVS (Potential Visible Set) and PAS (Potential Audible Set)
func (*Vis) GetPVSForCluster ¶
GetPVSForCluster decompresses vis data for a given cluster see https://developer.valvesoftware.com/wiki/Source_BSP_File_Format#Visibility for more
func (*Vis) GetVisibleClusters ¶
GetVisibleClusters returns all visible clusters ids for a given cluster
Click to show internal directories.
Click to hide internal directories.