matrix.hpp 574 B

1234567891011121314151617181920
  1. //
  2. // matrix.hpp
  3. // graphics
  4. //
  5. // Created by Sam Jaffe on 5/24/19.
  6. // Copyright © 2019 Sam Jaffe. All rights reserved.
  7. //
  8. #pragma once
  9. #include "game/math/math_fwd.hpp"
  10. namespace graphics {
  11. math::matr4 orthogonal_view(float left, float right, float bottom, float top,
  12. float near, float far);
  13. math::matr4 frustum_view(float left, float right, float bottom, float top,
  14. float near, float far);
  15. math::matr4 perspective(math::degree fovY, float aspect, float front,
  16. float back);
  17. }