View.h 424 B

123456789101112131415161718192021
  1. #ifndef CORE_VIEW_H
  2. #define CORE_VIEW_H
  3. #include "core/Matrix.h"
  4. typedef struct {
  5. Matrix view;
  6. Vector3 back;
  7. Vector3 down;
  8. Vector3 front;
  9. Vector3 left;
  10. Vector3 right;
  11. Vector3 up;
  12. } View;
  13. void initView(View* v);
  14. void updateDirections(View* v, float lengthAngle, float widthAngle);
  15. void updateDirectionsQ(View* v, const Quaternion* q);
  16. Matrix* updateMatrix(View* v, const Vector3* pos);
  17. #endif