Documentation
¶
Index ¶
Constants ¶
View Source
const DVIS_PAS = 1
View Source
const DVIS_PVS = 0
View Source
const MAX_CLUSTER_SIZE_PER_VIS = 8
View Source
const MAX_MAP_VISIBILITY = 0x1000000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vis ¶
type Vis struct {
NumClusters int32
ByteOffset [][2]int32 // Slice length = NumClusters [0]=offset to PVS bit array for cluster
BitVectors []byte // Compressed bit vectors, contains run-length compression PVS data
}
Visibility data for clusters Includes both PVS (Potential Visible Set) and PAS (Potential Audible Set)
func (*Vis) GetPVSForCluster ¶
Decompress vis data for a given cluster see https://developer.valvesoftware.com/wiki/Source_BSP_File_Format#Visibility for more
func (*Vis) GetVisibleClusters ¶
Get all visible clusters ids for a given cluster
Click to show internal directories.
Click to hide internal directories.