跳到主要内容

Camera_kernel

Ploy3DDocs


Ploy3D / Camera_kernel

Class: Camera_kernel

相机组件内核实现。

Extends

Constructors

new Camera_kernel()

new Camera_kernel(_global): Camera_kernel

构造函数。

Parameters

_global: Ploy3D

引擎实例。

Returns

Camera_kernel

Overrides

Miaoverse.Base_kernel<Camera, typeof Camera_member_index>.constructor

Methods

Create()

Create(object3d): Promise<Camera>

创建相机组件实例。

Parameters

object3d: Object3D

Returns

Promise<Camera>

返回相机组件实例。


Get()

Get<N>(ptr, key): N

获取资源内核实例属性值。

Type Parameters

N

Parameters

ptr: never

资源内核实例指针。

key: "object" | "type" | "id" | "height" | "width" | "target" | "next" | "distance" | "depth" | "updated" | "magic" | "version" | "byteSize" | "refCount" | "uuid" | "writeTS" | "readTS" | "last" | "vfgMat" | "gfvMat" | "cfvMat" | "vfcMat" | "cfgMat" | "gfcMat" | "gfwMat" | "wfgMat" | "uvfvMat" | "last_uvfvMat" | "lastcfwMat" | "cullingMat" | "cullingFilter" | "pitch" | "yaw" | "roll" | "fov" | "nearZ" | "farZ" | "flags" | "lastSib" | "nextSib" | "wPos" | "wDir"

资源内核实现的数据结构成员名称。

Returns

N

返回对应属性值。

Inherited from

Base_kernel.Get


GetInstanceByID()

GetInstanceByID(id): Camera

根据资源实例ID获取资源实例。

Parameters

id: number

资源实例ID。

Returns

Camera

返回资源实例。

Inherited from

Base_kernel.GetInstanceByID


GetInstanceByPtr()

GetInstanceByPtr(ptr): Camera

资源内核实例指针获取资源实例。

Parameters

ptr: never

资源内核实例指针。

Returns

Camera

返回资源实例。

Inherited from

Base_kernel.GetInstanceByPtr


Set()

Set(ptr, key, value): void

设置资源内核实例属性值。

Parameters

ptr: never

资源内核实例指针。

key: "object" | "type" | "id" | "height" | "width" | "target" | "next" | "distance" | "depth" | "updated" | "magic" | "version" | "byteSize" | "refCount" | "uuid" | "writeTS" | "readTS" | "last" | "vfgMat" | "gfvMat" | "cfvMat" | "vfcMat" | "cfgMat" | "gfcMat" | "gfwMat" | "wfgMat" | "uvfvMat" | "last_uvfvMat" | "lastcfwMat" | "cullingMat" | "cullingFilter" | "pitch" | "yaw" | "roll" | "fov" | "nearZ" | "farZ" | "flags" | "lastSib" | "nextSib" | "wPos" | "wDir"

资源内核实现的数据结构成员名称。

value: any

属性值。

Returns

void

Inherited from

Base_kernel.Set