| 635 | } |
| 636 | |
| 637 | csmBool LAppModel::HitTest(const csmChar* hitAreaName, csmFloat32 x, csmFloat32 y) |
| 638 | { |
| 639 | // 透明時は当たり判定なし。 |
| 640 | if (_opacity < 1) |
| 641 | { |
| 642 | return false; |
| 643 | } |
| 644 | const csmInt32 count = _modelSetting->GetHitAreasCount(); |
| 645 | for (csmInt32 i = 0; i < count; i++) |
| 646 | { |
| 647 | if (strcmp(_modelSetting->GetHitAreaName(i), hitAreaName) == 0) |
| 648 | { |
| 649 | const CubismIdHandle drawID = _modelSetting->GetHitAreaId(i); |
| 650 | return IsHit(drawID, x, y); |
| 651 | } |
| 652 | } |
| 653 | return false; // 存在しない場合はfalse |
| 654 | } |
| 655 | |
| 656 | void LAppModel::SetExpression(const csmChar* expressionID) |
| 657 | { |
no test coverage detected