Frame Buffer

template<IsSpectral TSpectral>
class FrameBuffer

Public Types

using SensorT = std::conditional_t<std::is_same_v<TSpectral, RGB>, Vec3<float>, float>

Public Functions

FrameBuffer() = delete
inline Resolution resolution() const
inline int width() const
inline int height() const
inline void enable_depth(bool enable = true)
inline Image<float> &depth()
inline bool has_depth() const
inline void enable_mesh_ids(bool enable = true)
inline Image<uint64_t> &mesh_ids()
inline bool has_mesh_ids() const
inline void enable_camera_normals(bool enable = true)
inline Image<Vec3<float>> &camera_normals()
inline bool has_camera_normals() const
inline void enable_world_normals(bool enable = true)
inline Image<Vec3<float>> &world_normals()
inline bool has_world_normals() const
inline void enable_received_power(bool enable = true)
inline Image<TSpectral> &received_power()
inline bool has_received_power() const
inline void enable_sensor_response(bool enable = true)
inline Image<SensorT> &sensor_response()
inline bool has_sensor_response() const
inline void clear()