adam-gui/vendor/fyne.io/fyne/v2/internal/cache/texture_gomobile.go

22 lines
459 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
//go:build android || ios || mobile
// +build android ios mobile
package cache
import "fyne.io/fyne/v2/internal/driver/mobile/gl"
// TextureType represents an uploaded GL texture
type TextureType = gl.Texture
var NoTexture = gl.Texture{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
}