we3d
Preparing search index...
core/camera/cameraPositionAndinvertVP
CameraPositionAndInvertVP
Class CameraPositionAndInvertVP
Index
Constructors
constructor
Properties
cameras
Data
device
gpubuffer
Size
parent
Methods
add
destroy
get
GPU
Buffer
remove
update
Constructors
constructor
new
CameraPositionAndInvertVP
(
parent
:
any
,
device
:
GPUDevice
,
)
:
CameraPositionAndInvertVP
Parameters
parent
:
any
device
:
GPUDevice
Returns
CameraPositionAndInvertVP
Properties
cameras
Data
camerasData
:
{
[
uuid
:
string
]:
{
camera
:
BaseCamera
;
cpubuffer
:
ArrayBuffer
;
cpuBufferView
:
{
invertvp
:
Float32Array
;
position
:
Float32Array
;
resolution
:
Uint32Array
;
}
;
gpuBuffer
:
GPUBuffer
;
}
;
}
= {}
device
device
:
GPUDevice
gpubuffer
Size
gpubufferSize
:
number
= 96
parent
parent
:
any
Methods
add
add
(
camera
:
BaseCamera
)
:
void
添加相机
Parameters
camera
:
BaseCamera
相机
Returns
void
destroy
destroy
()
:
void
Returns
void
get
GPU
Buffer
getGPUBuffer
(
uuid
:
string
)
:
undefined
|
GPUBuffer
获取相机的GPU缓冲区 (调用者负责判断有效性,即是否为undefined)
Parameters
uuid
:
string
相机UUID
Returns
undefined
|
GPUBuffer
GPU缓冲区或undefined
remove
remove
(
camera
:
BaseCamera
)
:
void
删除摄像机
Parameters
camera
:
BaseCamera
相机
Returns
void
update
update
()
:
void
更新相机位置和逆VP
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cameras
Data
device
gpubuffer
Size
parent
Methods
add
destroy
get
GPU
Buffer
remove
update
we3d
Loading...
添加相机