Serializable, Comparable<SceneComponent.BackgroundType>public static enum SceneComponent.BackgroundType extends Enum<SceneComponent.BackgroundType>
| 枚举常量 | 说明 |
|---|---|
CUBEMAP |
Indicates that the Skybox background is a cubic image set by
SceneComponent.setEnvMap(ohos.agp.render.render3d.resources.GpuResourceHandle). |
EQUIRECTANGULAR |
Indicates that the Skybox background is a 2D equirectangular image set by
SceneComponent.setEnvMap(ohos.agp.render.render3d.resources.GpuResourceHandle). |
IMAGE |
Indicates the background is a static 2D image set by
SceneComponent.setEnvMap(ohos.agp.render.render3d.resources.GpuResourceHandle). |
NONE |
Indicates that there is no background.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static SceneComponent.BackgroundType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static SceneComponent.BackgroundType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (SceneComponent.BackgroundType c : SceneComponent.BackgroundType.values()) System.out.println(c); |
public static final SceneComponent.BackgroundType NONE
public static final SceneComponent.BackgroundType IMAGE
SceneComponent.setEnvMap(ohos.agp.render.render3d.resources.GpuResourceHandle).public static final SceneComponent.BackgroundType CUBEMAP
SceneComponent.setEnvMap(ohos.agp.render.render3d.resources.GpuResourceHandle).public static final SceneComponent.BackgroundType EQUIRECTANGULAR
SceneComponent.setEnvMap(ohos.agp.render.render3d.resources.GpuResourceHandle).public static SceneComponent.BackgroundType[] values()
for (SceneComponent.BackgroundType c : SceneComponent.BackgroundType.values()) System.out.println(c);
public static SceneComponent.BackgroundType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值