update ark graphics 3d api

Change-Id: I615217a919e3464324c83cf855287472a3ccb9e4
Signed-off-by: huxiaoming5@huawei.com <huxiaoming5@huawei.com>
This commit is contained in:
huxiaoming5@huawei.com 2024-04-16 16:37:01 +08:00
parent 3fcdcef983
commit 8974b8065c
6 changed files with 17 additions and 17 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023-2023 Huawei Device Co., Ltd.
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at

View File

@ -23,14 +23,14 @@
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export { TonemapType, TonemapSettings, PostProcessSettings } from './graphics3d/scenePostProcessSettings';
export { TonemapType, TonemapSettings, PostProcessSettings } from './graphics3d/ScenePostProcessSettings';
/**
* Export scene types
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3 } from './graphics3d/sceneTypes';
export { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3 } from './graphics3d/SceneTypes';
/**
* Export scene resources
@ -38,19 +38,19 @@ export { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3,
* @since 12
*/
export { SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image } from './graphics3d/sceneResources';
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image } from './graphics3d/SceneResources';
/**
* Export scene nodes
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export { Layermask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight,
Camera } from './graphics3d/sceneNodes';
export { LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight,
Camera } from './graphics3d/SceneNodes';
/**
* Export scene
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export { SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from './graphics3d/scene';
export { SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from './graphics3d/Scene';

View File

@ -18,8 +18,8 @@
* @kit ArkGraphics3D
*/
import { Shader, MaterialType, Material, Animation, Environment, Image } from './sceneResources'
import { Camera, LightType, Light, Node, NodeType } from './sceneNodes'
import { Shader, MaterialType, Material, Animation, Environment, Image } from './SceneResources'
import { Camera, LightType, Light, Node, NodeType } from './SceneNodes'
import { Resource } from 'GlobalResource';
/**
@ -167,7 +167,7 @@ export class Scene {
/**
* Create a new scene from a Resource.
*
* @param { ?Resource } uri - the resource of creating a scene
* @param { Resource } uri - the resource of creating a scene
* @returns { Promise<Scene> } promise a scene
* @static
* @syscap SystemCapability.ArkUi.Graphics3D
@ -208,7 +208,7 @@ export class Scene {
* Get a node by path.
*
* @param { string } path - the path of the node
* @param { ?NodeType } type - verify the type of node, if it does not match, return null
* @param { NodeType } type - verify the type of node, if it does not match, return null
* @returns { Node | null } if the node is found by it's path
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12

View File

@ -18,9 +18,9 @@
* @kit ArkGraphics3D
*/
import { SceneResource, Mesh } from './sceneResources';
import { Position3, Quaternion, Scale3, Color } from './sceneTypes';
import { PostProcessSettings } from './scenePostProcessSettings';
import { SceneResource, Mesh } from './SceneResources';
import { Position3, Quaternion, Scale3, Color } from './SceneTypes';
import { PostProcessSettings } from './ScenePostProcessSettings';
/**
* Defines the layer mask of the node.

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import { Vec2, Vec3, Vec4, Aabb } from './sceneTypes';
import { Vec2, Vec3, Vec4, Aabb } from './SceneTypes';
import { Resource } from 'GlobalResource';
/**

View File

@ -22,12 +22,12 @@ import { TonemapType, TonemapSettings, PostProcessSettings,
Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3,
SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image,
Layermask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from '@ohos.graphics.scene';
export { TonemapType, TonemapSettings, PostProcessSettings,
Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3,
SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image,
Layermask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene };