mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Removes virtual destructor from Camera
Removes the virtual destructor from the Camera class as it is not required, as the class does not act as a base class. This simplifies the class definition and avoids potential vtable overhead.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace omath::projection
|
||||
class Camera final
|
||||
{
|
||||
public:
|
||||
virtual ~Camera() = default;
|
||||
~Camera() = default;
|
||||
Camera(const Vector3<float>& position, const ViewAnglesType& view_angles, const ViewPort& view_port,
|
||||
const FieldOfView& fov, const float near, const float far) noexcept
|
||||
: m_view_port(view_port), m_field_of_view(fov), m_far_plane_distance(far), m_near_plane_distance(near),
|
||||
|
||||
Reference in New Issue
Block a user