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!