material

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Unlicense Imports: 14 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(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(stringData *lumps.TexdataStringData, stringTable *lumps.TexDataStringTable, texInfos *[]texinfo.TexInfo) *texdatastringtable.TexDataStringTable

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) material.IMaterial

LoadSingleMaterial loads a single material with known file path

func LoadSingleTexture

func LoadSingleTexture(filePath string) 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