Most visited

Recently visited

Added in API level 8

ETC1Util.ETC1Texture

public static class ETC1Util.ETC1Texture
extends Object

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


压缩ETC1纹理的实用程序类。

Summary

Public constructors

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

Public methods

ByteBuffer getData()

获取纹理的压缩数据。

int getHeight()

以像素为单位获取纹理的高度。

int getWidth()

以像素为单位获取纹理的宽度。

Inherited methods

From class java.lang.Object

Public constructors

ETC1Util.ETC1Texture

Added in API level 8
ETC1Util.ETC1Texture (int width, 
                int height, 
                ByteBuffer data)

Parameters
width int
height int
data ByteBuffer

Public methods

getData

Added in API level 8
ByteBuffer getData ()

获取纹理的压缩数据。

Returns
ByteBuffer the texture data.

getHeight

Added in API level 8
int getHeight ()

以像素为单位获取纹理的高度。

Returns
int the width of the texture in pixels.

getWidth

Added in API level 8
int getWidth ()

以像素为单位获取纹理的宽度。

Returns
int the width of the texture in pixels.

Hooray!