to top
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

? Examples
ETC1Util.ETC1Texture(int width, int height, ByteBuffer data)
Public Methods

? Examples
ByteBuffer getData()
Get the compressed data of the texture.

? Examples
int getHeight()
Get the height of the texture in pixels.

? Examples
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.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.