class SceneTexture
SceneTexture(getDrawable(R.drawable.myDrawable)) // Creating a SceneTexture from drawable in resources SceneTexture(Color.valueOf(Color.BLACK)) // Creating a plain black SceneTexture
| Name | Summary |
|---|---|
SceneTexture | constructor(width: Int, height: Int, numberOfMips: Int, samplerConfig: SamplerConfig = SamplerConfig())constructor(image: <Error class: unknown class>, samplerConfig: SamplerConfig = SamplerConfig())constructor(bitmap: <Error class: unknown class>, samplerConfig: SamplerConfig = SamplerConfig())constructor(drawable: <Error class: unknown class>?)constructor(color: <Error class: unknown class>, samplerConfig: SamplerConfig = SamplerConfig()) |
| Name | Summary |
|---|---|
Companion | object Companion |
| Name | Summary |
|---|---|
handle | var handle: Long |
| Name | Summary |
|---|---|
destroy | fun destroy() |
nativeHandle | fun nativeHandle(): Long |
update | fun update(buffer: ByteBuffer, width: Int, height: Int, strideInBytes: Int) Updates the texture with new data. |
object Companion
| Name | Summary |
|---|---|
calculateMips | fun calculateMips(w: Int, h: Int): Int Calculates the number of mipmap levels for a texture of the given dimensions. |
createFromPlatformImage | fun createFromPlatformImage(w: Int, h: Int, mips: Int, platformImage: Long, samplerConfig: SamplerConfig = SamplerConfig()): SceneTexture |