Tech ENABLE_LEGACY_OPENGL_REMOVAL - Calculation of camera projection matrix

(cherry picked from commit prusa3d/PrusaSlicer@a0630420d9)
This commit is contained in:
enricoturri1966 2023-10-27 11:03:15 +08:00 committed by Noisyfox
parent 1e4f16bd39
commit 59b7c52862
4 changed files with 27 additions and 40 deletions

View file

@ -110,7 +110,6 @@ public:
double get_fov() const;
void apply_viewport(int x, int y, unsigned int w, unsigned int h);
void apply_view_matrix();
// Calculates and applies the projection matrix tighting the frustrum z range around the given box.
// If larger z span is needed, pass the desired values of near and far z (negative values are ignored)
void apply_projection(const BoundingBoxf3& box, double near_z = -1.0, double far_z = -1.0);