camera.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. } camera_t;
  20. /***********************************************************************************************************************
  21. * Global variable
  22. **********************************************************************************************************************/
  23. extern camera_t camera;
  24. /***********************************************************************************************************************
  25. * Prototypes
  26. **********************************************************************************************************************/
  27. #endif /* THREEDENGINE_SOURCE_INCLUDE_CAMERA_H */