Class Info |
|---|
public class Texture implements Resource 纹理资源。 |
Method |
|---|
public Resource.Builder<Texture> builder() 获取纹理资源建造者实例。 |
Returns
Type | Description |
|---|---|
纹理资源建造者实例。 |
Method |
|---|
public static Texture createOES(int width, int height) 创建OpenGL OES纹理。 |
Parameters
Name | Description |
|---|---|
width | 纹理宽度,大于0,单位pixel。 |
height | 纹理高度,大于0,单位pixel。 |
Returns
Type | Description |
|---|---|
纹理实例。 |
Method |
|---|
public static Texture createOES(String name, int width, int height) 创建带名字的OpenGL OES纹理。 |
Parameters
Name | Description |
|---|---|
name | 纹理名。 |
width | 纹理宽度,单位pixel。 |
height | 纹理高度,单位pixel。 |
Returns
Type | Description |
|---|---|
纹理实例。 |
Method |
|---|
public static void destroy(Texture texture) 销毁纹理资源。 |
Parameters
Name | Description |
|---|---|
texture | 需要销毁的纹理资源。 |