material

package
v0.0.0-...-d4a0833 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GLTextureFormatFromVtfFormat

func GLTextureFormatFromVtfFormat(vtfFormat uint32) gosigl.PixelFormat

getGLTextureFormat swap vtf format to openGL format

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *Cache

func (*Cache) DestroyTextureOnGPU

func (cache *Cache) DestroyTextureOnGPU(dispatched event.IMessage)

func (*Cache) FetchCachedTexture

func (cache *Cache) FetchCachedTexture(textureName string) gosigl.TextureBindingId

func (*Cache) SyncTextureToGpu

func (cache *Cache) SyncTextureToGpu(dispatched event.IMessage)

Jump to

Keyboard shortcuts

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