material

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 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(fs filesystem.IFileSystem, 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

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

LoadSingleMaterial loads a single material with known file path

func LoadSingleTexture

func LoadSingleTexture(filePath string, fs filesystem.IFileSystem) 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