texture_gomobile.go 459 B

123456789101112131415161718192021
  1. //go:build android || ios || mobile
  2. // +build android ios mobile
  3. package cache
  4. import "fyne.io/fyne/v2/internal/driver/mobile/gl"
  5. // TextureType represents an uploaded GL texture
  6. type TextureType = gl.Texture
  7. var NoTexture = gl.Texture{0}
  8. type textureInfo struct {
  9. textureCacheBase
  10. texture TextureType
  11. }
  12. // IsValid will return true if the passed texture is potentially a texture
  13. func IsValid(texture TextureType) bool {
  14. return texture != NoTexture
  15. }