LightShape.h 341 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "../quadtree/QuadtreeOccupant.h"
  3. namespace ltbl {
  4. class LightShape : public QuadtreeOccupant {
  5. public:
  6. bool _renderLightOverShape;
  7. sf::ConvexShape _shape;
  8. LightShape()
  9. : _renderLightOverShape(true)
  10. {}
  11. sf::FloatRect getAABB() const {
  12. return _shape.getGlobalBounds();
  13. }
  14. };
  15. }