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

21 lines
522 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
//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
}