fckeuspy-go/vendor/fyne.io/fyne/v2/internal/cache/texture_desktop.go

22 lines
475 B
Go

//go:build !android && !ios && !mobile && !wasm && !test_web_driver
package cache
// TextureType represents an uploaded GL texture
type TextureType = uint32
// NoTexture used when there is no valid texture
var NoTexture = TextureType(0)
type textureInfo struct {
textureCacheBase
texture TextureType
textFree func()
}
// IsValid will return true if the passed texture is potentially a texture
func IsValid(texture TextureType) bool {
return texture != NoTexture
}