载入中...
搜索中...
未找到
eve::camera::PcgCarCameraSetup类 参考

Caller-owned Pcg vehicle orbit-camera setup and input adapter. 更多...

#include <PcgCarCameraSetup.h>

Public 成员函数

Result< void > configure (const PcgCarCameraProfile &profile)
 Validate and copy a complete profile without partial mutation.
 
Result< void > apply (CameraController *controller, graphics::Camera3D *camera, scene::SceneNodeRef *focus, float initialYaw, float initialPitch)
 Apply the profile to a live native controller and its stable target.
 
Result< void > update (CameraController *controller, float mouseX, float mouseY, float scroll, float dt, bool targetIsMoving, float targetYaw)
 Apply one device-independent mouse/scroll frame.
 
const PcgCarCameraProfile & getProfile () const noexcept
 Return the copied profile.
 
float getYaw () const noexcept
 Return current orbit yaw.
 
float getPitch () const noexcept
 Return current orbit pitch.
 

详细描述

Caller-owned Pcg vehicle orbit-camera setup and input adapter.

在文件 PcgCarCameraSetup.h 第 35 行定义.

成员函数说明

◆ apply()

◆ configure()

Result< void > eve::camera::PcgCarCameraSetup::configure ( const PcgCarCameraProfile &  profile)

Validate and copy a complete profile without partial mutation.

在文件 PcgCarCameraSetup.cpp 第 23 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), finite, eve::InvalidArgument, p , 以及 eve::Result< T >::success().

被这些函数引用 apply() , 以及 eve::camera::exposePcgCarCameraSetupBindings().

◆ getPitch()

float eve::camera::PcgCarCameraSetup::getPitch ( ) const
inlinenoexcept

Return current orbit pitch.

在文件 PcgCarCameraSetup.h 第 48 行定义.

被这些函数引用 eve::camera::exposePcgCarCameraSetupBindings().

◆ getProfile()

const PcgCarCameraProfile & eve::camera::PcgCarCameraSetup::getProfile ( ) const
inlinenoexcept

Return the copied profile.

在文件 PcgCarCameraSetup.h 第 46 行定义.

◆ getYaw()

float eve::camera::PcgCarCameraSetup::getYaw ( ) const
inlinenoexcept

Return current orbit yaw.

在文件 PcgCarCameraSetup.h 第 47 行定义.

被这些函数引用 eve::camera::exposePcgCarCameraSetupBindings().

◆ update()


该类的文档由以下文件生成: