Documentation
¶
Index ¶
- func LoadErrorMaterial()
- func LoadMaterialList(fs *filesystem.FileSystem, materialList []string)
- func LoadMaterials(fs *filesystem.FileSystem, stringData *lumps.TexDataStringData, ...) *stringtableLib.StringTable
- func LoadSingleMaterial(filePath string, fs *filesystem.FileSystem) material.IMaterial
- func LoadSingleTexture(filePath string, fs *filesystem.FileSystem) texture.ITexture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadErrorMaterial ¶
func LoadErrorMaterial()
LoadErrorMaterial ensures that the error material has been loaded
func LoadMaterialList ¶
func LoadMaterialList(fs *filesystem.FileSystem, materialList []string)
LoadMaterialList GetFile all materials referenced in the map NOTE: There is a priority: 1. BSP pakfile 2. Game directory 3. Game VPK 4. Other game shared VPK
func LoadMaterials ¶
func LoadMaterials(fs *filesystem.FileSystem, stringData *lumps.TexDataStringData, stringTable *lumps.TexDataStringTable, texInfos *[]texinfo.TexInfo) *stringtableLib.StringTable
LoadMaterials is the base bsp material loader function. All bsp materials should be loaded by this function. Note that this covers bsp referenced materials only, model & entity materials are loaded mostly ad-hoc.
func LoadSingleMaterial ¶
func LoadSingleMaterial(filePath string, fs *filesystem.FileSystem) material.IMaterial
LoadSingleMaterial loads a single material with known file path
func LoadSingleTexture ¶
func LoadSingleTexture(filePath string, fs *filesystem.FileSystem) texture.ITexture
LoadSingleTexture
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.