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.