material

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2019 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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