Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static class

ETC1Util.ETC1Texture

extends Object
java.lang.Object
   ↳ android.opengl.ETC1Util.ETC1Texture

Class Overview

A utility class encapsulating a compressed ETC1 texture.

Summary

Public Constructors
ETC1Util.ETC1Texture (int width, int height, ByteBuffer data)
Public Methods
ByteBuffer getData ()
Get the compressed data of the texture.
int getHeight ()
Get the height of the texture in pixels.
int getWidth ()
Get the width of the texture in pixels.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ETC1Util.ETC1Texture (int width, int height, ByteBuffer data)

Added in API level 8

Public Methods

public ByteBuffer getData ()

Added in API level 8

Get the compressed data of the texture.

Returns
  • the texture data.

public int getHeight ()

Added in API level 8

Get the height of the texture in pixels.

Returns
  • the width of the texture in pixels.

public int getWidth ()

Added in API level 8

Get the width of the texture in pixels.

Returns
  • the width of the texture in pixels.