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)

Since: API Level 8

Public Methods

public ByteBuffer getData ()

Since: API Level 8

Get the compressed data of the texture.

Returns
  • the texture data.

public int getHeight ()

Since: API Level 8

Get the height of the texture in pixels.

Returns
  • the width of the texture in pixels.

public int getWidth ()

Since: API Level 8

Get the width of the texture in pixels.

Returns
  • the width of the texture in pixels.