camera.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * 3D Engine
  3. * camera.h:
  4. * Based on pikuma.com 3D software renderer in C
  5. * Copyright (c) 2021 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 11/03/2021.
  8. */
  9. #ifndef THREEDENGINE_SOURCE_INCLUDE_CAMERA_H
  10. #define THREEDENGINE_SOURCE_INCLUDE_CAMERA_H
  11. #include <vector.h>
  12. /***********************************************************************************************************************
  13. * Data types
  14. **********************************************************************************************************************/
  15. typedef struct camera_t
  16. {
  17. vec3_t position;
  18. vec3_t direction;
  19. vec3_t forwardVelocity;
  20. double yawAngle;
  21. } camera_t;
  22. /***********************************************************************************************************************
  23. * Global variables
  24. **********************************************************************************************************************/
  25. extern camera_t camera;
  26. /***********************************************************************************************************************
  27. * Prototypes
  28. **********************************************************************************************************************/
  29. #endif /* THREEDENGINE_SOURCE_INCLUDE_CAMERA_H */