Stay organized with collections
Save and categorize content based on your preferences.
ETC1Texture
open class ETC1Texture
A utility class encapsulating a compressed ETC1 texture.
Summary
Public methods |
open ByteBuffer! |
Get the compressed data of the texture.
|
open Int |
Get the height of the texture in pixels.
|
open Int |
Get the width of the texture in pixels.
|
Public constructors
Public methods
getData
open fun getData(): ByteBuffer!
Get the compressed data of the texture.
getHeight
open fun getHeight(): Int
Get the height of the texture in pixels.
Return |
Int |
the width of the texture in pixels. |
getWidth
open fun getWidth(): Int
Get the width of the texture in pixels.
Return |
Int |
the width of the texture in pixels. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ETC1Util.ETC1Texture\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nETC1Texture\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/opengl/ETC1Util.ETC1Texture \"View this page in Java\") \n\n```\nopen class ETC1Texture\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.opengl.ETC1Util.ETC1Texture](#) |\n\nA utility class encapsulating a compressed ETC1 texture.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ETC1Texture](#ETC1Texture(kotlin.Int,%20kotlin.Int,%20java.nio.ByteBuffer))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `height:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `data:` `[ByteBuffer](../../java/nio/ByteBuffer.html#)!`)` \u003cbr /\u003e |\n\n| Public methods ||\n|---------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| open [ByteBuffer](../../java/nio/ByteBuffer.html#)! | [getData](#getData())`()` Get the compressed data of the texture. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getHeight](#getHeight())`()` Get the height of the texture in pixels. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getWidth](#getWidth())`()` Get the width of the texture in pixels. |\n\nPublic constructors\n-------------------\n\n### ETC1Texture\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nETC1Texture(\n width: Int, \n height: Int, \n data: ByteBuffer!)\n```\n\nPublic methods\n--------------\n\n### getData\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getData(): ByteBuffer!\n```\n\nGet the compressed data of the texture.\n\n| Return ||\n|------------------------------------------------|-------------------|\n| [ByteBuffer](../../java/nio/ByteBuffer.html#)! | the texture data. |\n\n### getHeight\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getHeight(): Int\n```\n\nGet the height of the texture in pixels.\n\n| Return ||\n|----------------------------------------------------------------------------|-------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the width of the texture in pixels. |\n\n### getWidth\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getWidth(): Int\n```\n\nGet the width of the texture in pixels.\n\n| Return ||\n|----------------------------------------------------------------------------|-------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the width of the texture in pixels. |"]]