Skip to content

Commit 2bb29e8

Browse files
committed
Update libscratchcpp to latest master
1 parent f17c444 commit 2bb29e8

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

src/spritemodel.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ bool SpriteModel::touchingPoint(double x, double y) const
160160
return m_renderedTarget->containsScratchPoint(x, y);
161161
}
162162

163+
bool SpriteModel::touchingColor(const libscratchcpp::Value &color) const
164+
{
165+
return false;
166+
}
167+
163168
libscratchcpp::Sprite *SpriteModel::sprite() const
164169
{
165170
return m_sprite;

src/spritemodel.h

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class SpriteModel
5959

6060
bool touchingClones(const std::vector<libscratchcpp::Sprite *> &clones) const override;
6161
bool touchingPoint(double x, double y) const override;
62+
bool touchingColor(const libscratchcpp::Value &color) const override;
6263

6364
libscratchcpp::Sprite *sprite() const;
6465

src/stagemodel.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ bool StageModel::touchingPoint(double x, double y) const
9797
return m_renderedTarget->containsScratchPoint(x, y);
9898
}
9999

100+
bool StageModel::touchingColor(const libscratchcpp::Value &color) const
101+
{
102+
return false;
103+
}
104+
100105
void StageModel::loadCostume()
101106
{
102107
if (m_renderedTarget && m_stage)

src/stagemodel.h

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class StageModel
4545

4646
bool touchingClones(const std::vector<libscratchcpp::Sprite *> &clones) const override;
4747
bool touchingPoint(double x, double y) const override;
48+
bool touchingColor(const libscratchcpp::Value &color) const override;
4849

4950
Q_INVOKABLE void loadCostume();
5051

0 commit comments

Comments
 (0)