adam-gui/vendor/fyne.io/fyne/v2/internal/cache/texture_desktop.go
2024-04-29 19:13:50 +02:00

21 lines
522 B
Go

//go:build !android && !ios && !mobile && !js && !wasm && !test_web_driver
// +build !android,!ios,!mobile,!js,!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
}
// IsValid will return true if the passed texture is potentially a texture
func IsValid(texture TextureType) bool {
return texture != NoTexture
}