material

package
v0.5.1-0...-f3d9953 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProperties

func NewProperties() *vmt.Properties

Types

type IMaterial

type IMaterial interface {
	//Bind()
	Width() int
	Height() int
	FilePath() string
}

type Material

type Material struct {
	Props *vmt.Properties

	Textures struct {
		// Albedo
		Albedo texture.ITexture
		// Normal
		Normal texture.ITexture
	}
	// contains filtered or unexported fields
}

Material

func NewMaterial

func NewMaterial(filePath string, props *vmt.Properties) *Material

func (*Material) EvictTextures

func (mat *Material) EvictTextures()

func (*Material) FilePath

func (mat *Material) FilePath() string

FilePath returns this materials location in whatever filesystem it was found

func (*Material) Height

func (mat *Material) Height() int

Height returns this materials height. Albedo is used to determine material height where possible

func (*Material) Width

func (mat *Material) Width() int

Width returns this materials width. Albedo is used to determine material width where possible

Jump to

Keyboard shortcuts

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