xcal
基于 C++23 的现代图形渲染引擎
|
正交相机类 更多...
#include <orthocamera.hpp>
额外继承的成员函数 | |
![]() | |
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矩阵) | |
![]() | |
void | projection_has_changed () const |
标记投影矩阵已改变 | |