2
0

CameraComponent.h 619 B

123456789101112131415161718192021
  1. // ----------------------------------------------------------------
  2. // From Game Programming in C++ by Sanjay Madhav
  3. // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
  4. //
  5. // Released under the BSD License
  6. // See LICENSE in root directory for full details.
  7. // ----------------------------------------------------------------
  8. #pragma once
  9. #include "Component.h"
  10. #include "Math.h"
  11. class CameraComponent : public Component
  12. {
  13. public:
  14. CameraComponent(class Actor* owner, int updateOrder = 200);
  15. TypeID GetType() const override { return TCameraComponent; }
  16. protected:
  17. void SetViewMatrix(const Matrix4& view);
  18. };