texture_desktop.go 522 B

1234567891011121314151617181920
  1. //go:build !android && !ios && !mobile && !js && !wasm && !test_web_driver
  2. // +build !android,!ios,!mobile,!js,!wasm,!test_web_driver
  3. package cache
  4. // TextureType represents an uploaded GL texture
  5. type TextureType = uint32
  6. // NoTexture used when there is no valid texture
  7. var NoTexture = TextureType(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. }