Skip to content
Snippets Groups Projects
Group.h 521 B
Newer Older
Postea's avatar
Postea committed
#pragma once
Yoel's avatar
Yoel committed
#include <vector>

#include "../tools/Mat4.h"
#include "../tools/Transformation.h"
Postea's avatar
Postea committed
#include "Shape.h"

namespace shapes {
class Group : public Shape {
Yoel's avatar
Yoel committed
   public:
	Group(const util::Transformation& trans);
	Group(const util::Mat4& matrix);
Postea's avatar
Postea committed

	std::shared_ptr<cam::Hit> intersect(const cam::Ray& r) const override;
Yoel's avatar
Yoel committed
	// protected:TODO
	void add(const std::shared_ptr<shapes::Shape>& shape);
Postea's avatar
Postea committed

Yoel's avatar
Yoel committed
   private:
	std::vector<std::shared_ptr<Shape>> shapeList;
	util::Transformation transform;
Yoel's avatar
Yoel committed
}  // namespace shapes