world.h 530 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * DoRayMe - a quick and dirty Raytracer
  3. * World header
  4. *
  5. * Created by Manoël Trapier
  6. * Copyright (c) 2020 986-Studio.
  7. *
  8. */
  9. #ifndef DORAYME_WORLD_H
  10. #define DORAYME_WORLD_H
  11. #include <stdint.h>
  12. #include <light.h>
  13. #include <shape.h>
  14. class World
  15. {
  16. public:
  17. uint32_t objectCount;
  18. uint32_t lightCount;
  19. private:
  20. uint32_t allocatedObjectCount;
  21. uint32_t allocatedLightCount;
  22. Light *lightList;
  23. Shape *shapeList;
  24. public:
  25. World() : objectCount(0), lightCount(0) { };
  26. };
  27. #endif //DORAYME_WORLD_H