public static class ETC1Util.ETC1Texture
extends Object
java.lang.Object | |
android.opengl.ETC1Util.ETC1Texture |
压缩ETC1纹理的实用程序类。
Public constructors |
|
---|---|
ETC1Util.ETC1Texture(int width, int height, ByteBuffer data) |
公共方法(Public methods) |
|
---|---|
ByteBuffer |
getData() 获取纹理的压缩数据。 |
int |
getHeight() 以像素为单位获取纹理的高度。 |
int |
getWidth() 以像素为单位获取纹理的宽度。 |
继承方法(Inherited methods) |
|
---|---|
![]() java.lang.Object
|
ETC1Util.ETC1Texture (int width, int height, ByteBuffer data)
参数(Parameters) | |
---|---|
width |
int
|
height |
int
|
data |
ByteBuffer
|
ByteBuffer getData ()
获取纹理的压缩数据。
返回(Returns) | |
---|---|
ByteBuffer |
the texture data. |
int getHeight ()
以像素为单位获取纹理的高度。
返回(Returns) | |
---|---|
int |
the width of the texture in pixels. |
int getWidth ()
以像素为单位获取纹理的宽度。
返回(Returns) | |
---|---|
int |
the width of the texture in pixels. |