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

Parameters
width int
height int
data ByteBuffer

Public Methods

public ByteBuffer getData ()

Added in API level 8

Get the compressed data of the texture.

Returns
ByteBuffer the texture data.

public int getHeight ()

Added in API level 8

Get the height of the texture in pixels.

Returns
int the width of the texture in pixels.

public int getWidth ()

Added in API level 8

Get the width of the texture in pixels.

Returns
int the width of the texture in pixels.