mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cpp] Make Constraint and Posed pure
This commit is contained in:
parent
8b135f18bb
commit
60cc9f0e20
@ -52,9 +52,7 @@ namespace spine {
|
||||
|
||||
virtual void sort(Skeleton &skeleton) = 0;
|
||||
|
||||
virtual bool isSourceActive() {
|
||||
return true;
|
||||
}
|
||||
virtual bool isSourceActive() = 0;
|
||||
|
||||
// Inherited from Update
|
||||
virtual void update(Skeleton &skeleton, Physics physics) override = 0;
|
||||
@ -80,6 +78,10 @@ namespace spine {
|
||||
return PosedGeneric<D, P, P>::getData();
|
||||
}
|
||||
|
||||
virtual bool isSourceActive() override {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual void pose() override {
|
||||
PosedGeneric<D, P, P>::pose();
|
||||
|
||||
@ -44,7 +44,7 @@ namespace spine {
|
||||
|
||||
virtual void resetConstrained() = 0;
|
||||
|
||||
virtual bool isPoseEqualToApplied() const = 0;
|
||||
virtual bool isPoseEqualToApplied() = 0;
|
||||
|
||||
protected:
|
||||
virtual void setupPose() = 0;
|
||||
@ -115,7 +115,7 @@ namespace spine {
|
||||
_applied = &_constrained;
|
||||
}
|
||||
|
||||
virtual bool isPoseEqualToApplied() const override {
|
||||
virtual bool isPoseEqualToApplied() override {
|
||||
return _applied == &_pose;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user