update arkgraphics 3d api

Signed-off-by: huxiaoming5@huawei.com <huxiaoming5@huawei.com>
Change-Id: Ie2dd73ff97bce63c51745fb5b2ecb3bd70490ffd
Signed-off-by: huxiaoming5@huawei.com <huxiaoming5@huawei.com>
This commit is contained in:
huxiaoming5@huawei.com 2024-04-21 18:27:55 +08:00
parent 6b81cb5c6e
commit 2f47c43a87
4 changed files with 15 additions and 14 deletions

View File

@ -23,7 +23,7 @@
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export { TonemapType, TonemapSettings, PostProcessSettings } from './graphics3d/ScenePostProcessSettings';
export { ToneMappingType, ToneMappingSettings, PostProcessSettings } from './graphics3d/ScenePostProcessSettings';
/**
* Export scene types

View File

@ -25,7 +25,7 @@
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export enum TonemapType {
export enum ToneMappingType {
/**
* The tone mapping type is ACES.
*
@ -54,19 +54,19 @@ export enum TonemapType {
/**
* Defines tone mapping parameters.
*
* @typedef TonemapSettings
* @typedef ToneMappingSettings
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
export interface TonemapSettings {
export interface ToneMappingSettings {
/**
* Type of the tone mapping.
*
* @type { ?TonemapType }
* @type { ?ToneMappingType }
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
type?: TonemapType;
type?: ToneMappingType;
/**
* Exposure of the tone mapping.
@ -89,9 +89,9 @@ export interface PostProcessSettings {
/**
* Tone mapping settings of the post processing settings.
*
* @type { ?TonemapSettings }
* @type { ?ToneMappingSettings }
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
tonemap?: TonemapSettings;
toneMapping?: ToneMappingSettings;
}

View File

@ -15,6 +15,7 @@
import { Vec2, Vec3, Vec4, Aabb } from './SceneTypes';
import { Resource } from 'GlobalResource';
import { Callback } from '../@ohos.base'
/**
* @file
@ -339,20 +340,20 @@ export interface Animation extends SceneResource {
/**
* Register a callback when animation finished.
*
* @param { function } callback - the callback invoked when animation finished
* @param { Callback<void> } callback - the callback invoked when animation finished
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
onFinished(callback: () => void): void;
onFinished(callback: Callback<void>): void;
/**
* Register a callback when animation started.
*
* @param { function } callback - the callback invoked when animation started
* @param { Callback<void> } callback - the callback invoked when animation started
* @syscap SystemCapability.ArkUi.Graphics3D
* @since 12
*/
onStarted(callback: () => void): void;
onStarted(callback: Callback<void>): void;
/**
* Pause the animation.

View File

@ -18,14 +18,14 @@
* @kit ArkGraphics3D
*/
import { TonemapType, TonemapSettings, PostProcessSettings,
import { ToneMappingType, ToneMappingSettings, 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,
SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from '@ohos.graphics.scene';
export { TonemapType, TonemapSettings, PostProcessSettings,
export { ToneMappingType, ToneMappingmettings, PostProcessSettings,
Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3,
SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image,