testpattern.h 497 B

123456789101112131415161718192021222324252627
  1. /*
  2. * DoRayMe - a quick and dirty Raytracer
  3. * Strip Pattern header
  4. *
  5. * Created by Manoël Trapier
  6. * Copyright (c) 2020 986-Studio.
  7. *
  8. */
  9. #ifndef DORAYME_TESTPATTERN_H
  10. #define DORAYME_TESTPATTERN_H
  11. #include <pattern.h>
  12. #include <stdio.h>
  13. class TestPattern : public Pattern
  14. {
  15. public:
  16. TestPattern() : Pattern(Colour(0, 0, 0), Colour(1, 1, 1)) { };
  17. Colour patternAt(Tuple point)
  18. {
  19. return Colour(point.x, point.y, point.z);
  20. }
  21. };
  22. #endif /* DORAYME_TESTPATTERN_H */