diff options
Diffstat (limited to 'mazescene.h')
-rw-r--r-- | mazescene.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mazescene.h b/mazescene.h index b0621cf..cfcabe4 100644 --- a/mazescene.h +++ b/mazescene.h @@ -113,13 +113,16 @@ private: class ProjectedItem : public QGraphicsItem { public: - ProjectedItem(const QRectF &bounds, bool shadow = true); + ProjectedItem(const QRectF &bounds, bool shadow = true, bool opaque = true); QPointF a() const { return m_a; } QPointF b() const { return m_b; } virtual void updateTransform(const Camera &camera); + void setOpaque(bool opaque); + bool isOpaque() const; + QRectF boundingRect() const; void setPosition(const QPointF &a, const QPointF &b); @@ -130,6 +133,9 @@ public: void setLightingEnabled(bool enabled); + void setObscured(bool obscured); + bool isObscured() const; + private: QPointF m_a; QPointF m_b; @@ -137,6 +143,9 @@ private: QRectF m_targetRect; QImage m_image; QGraphicsRectItem *m_shadowItem; + + bool m_opaque; + bool m_obscured; }; class WallItem : public ProjectedItem |