|
property::Vec< float_t, 3 > & | position () |
| 获取相机位置(可修改)
|
|
const property::Vec< float_t, 3 > & | position () const |
| 获取相机位置(只读)
|
|
property::Vec< float_t, 3 > & | target () |
| 获取相机目标点(可修改)
|
|
const property::Vec< float_t, 3 > & | target () const |
| 获取相机目标点(只读)
|
|
property::Vec< float_t, 3 > & | up () |
| 获取相机上方向(可修改)
|
|
const property::Vec< float_t, 3 > & | up () const |
| 获取相机上方向(只读)
|
|
property::Color & | background_color () |
| 获取背景颜色(可修改)
|
|
const property::Color & | background_color () const |
| 获取背景颜色(只读)
|
|
CameraType | type () const |
|
template<typename... Args>
requires (std::is_constructible_v<vec, Args...>) |
AbsCamera * | set_position (Args &&... args) |
| 设置相机位置
|
|
template<typename... Args>
requires (std::is_constructible_v<vec, Args...>) |
AbsCamera * | set_target (Args &&... args) |
| 设置相机目标点
|
|
template<typename... Args>
requires (std::is_constructible_v<vec, Args...>) |
AbsCamera * | set_up (Args &&... args) |
| 设置相机上方向
|
|
template<typename... Args>
requires (std::is_constructible_v<property::Color::data_t, Args...>) |
AbsCamera * | set_background_color (Args &&... args) |
| 设置背景颜色
|
|
const xcmath::mat< float_t, 4, 4 > & | view_matrix () const |
| 获取视图矩阵
|
|
| AbsCamera () |
| 默认构造函数
|
|
virtual | ~AbsCamera ()=default |
| 虚析构函数
|
|
virtual const xcmath::mat< float_t, 4, 4 > & | projection_matrix () const =0 |
| 获取投影矩阵
|
|
virtual bool_t | projection_should_update () const =0 |
| 检查投影矩阵是否需要更新
|
|
bool_t | view_should_update () const |
| 检查视图矩阵是否需要更新
|
|
bool_t | should_update () const |
| 检查相机矩阵是否需要更新
|
|
const xcmath::mat< float_t, 4, 4 > & | pv_matrix () const |
| 获取投影视图矩阵(PV矩阵)
|
|
相机系统命名空间
包含相机相关的类和功能,提供视图和投影矩阵管理。
抽象相机基类
提供相机基础功能,包括视图矩阵、投影矩阵计算和缓存管理。 所有具体相机类(正交相机、透视相机)都应该继承自此类。
在文件 abs_camera.hpp 第 42 行定义.