material

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Unlicense Imports: 12 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 LoadMaterialFromFilesystem added in v1.1.1

func LoadMaterialFromFilesystem(fs *filesystem.FileSystem, filePath string) (material.IMaterial, error)

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 LoadVmtFromFilesystem added in v1.1.1

func LoadVmtFromFilesystem(fs *filesystem.FileSystem, filePath string) (*vmt.Properties, error)

func LoadVtfFromFilesystem added in v1.1.1

func LoadVtfFromFilesystem(fs *filesystem.FileSystem, filePath string) (texture.ITexture, error)

LoadVtfFromFilesystem

Types

This section is empty.

Jump to

Keyboard shortcuts

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