object.h 406 B

123456789101112131415161718192021222324
  1. /*
  2. * DoRayMe - a quick and dirty Raytracer
  3. * Object header
  4. *
  5. * Created by Manoël Trapier
  6. * Copyright (c) 2020 986-Studio.
  7. *
  8. */
  9. #ifndef DORAYME_OBJECT_H
  10. #define DORAYME_OBJECT_H
  11. class Object;
  12. #include <ray.h>
  13. #include <intersect.h>
  14. /* Base class for all object that can be presented in the world */
  15. class Object
  16. {
  17. public:
  18. virtual Intersect intersect(Ray r);
  19. };
  20. #endif //DORAYME_OBJECT_H