jvmCommonMain.earth.worldwind.render.image.ImageTile.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwind-jvm Show documentation
Show all versions of worldwind-jvm Show documentation
The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.
The newest version!
package earth.worldwind.render.image
import earth.worldwind.geom.Sector
import earth.worldwind.util.Level
import earth.worldwind.util.ResourcePostprocessor
import earth.worldwind.util.Tile
actual open class ImageTile actual constructor(
sector: Sector, level: Level, row: Int, column: Int
): Tile(sector, level, row, column), ResourcePostprocessor {
actual var imageSource: ImageSource? = null
actual var cacheSource: ImageSource? = null
override suspend fun process(resource: Resource): Resource {
val source = cacheSource?.asUnrecognized()
return if (source is ResourcePostprocessor) source.process(resource) else resource
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy