mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[cpp] Fix ambiguities with Carbon on macOS
This commit is contained in:
parent
b37ee6fb6f
commit
b5d6f1e427
@ -46,7 +46,7 @@
|
||||
|
||||
using namespace spine;
|
||||
|
||||
void dummyOnAnimationEventFunc(AnimationState *state, EventType type, TrackEntry *entry, Event *event, void *userData) {
|
||||
void dummyOnAnimationEventFunc(AnimationState *state, spine::EventType type, TrackEntry *entry, Event *event, void *userData) {
|
||||
SP_UNUSED(state);
|
||||
SP_UNUSED(type);
|
||||
SP_UNUSED(entry);
|
||||
|
||||
@ -178,17 +178,17 @@ bool SkeletonBounds::intersectsSegment(Polygon &polygon, float x1, float y1, flo
|
||||
return false;
|
||||
}
|
||||
|
||||
Polygon *SkeletonBounds::getPolygon(BoundingBoxAttachment *attachment) {
|
||||
spine::Polygon *SkeletonBounds::getPolygon(BoundingBoxAttachment *attachment) {
|
||||
int index = _boundingBoxes.indexOf(attachment);
|
||||
return index == -1 ? NULL : _polygons[index];
|
||||
}
|
||||
|
||||
BoundingBoxAttachment *SkeletonBounds::getBoundingBox(Polygon *polygon) {
|
||||
BoundingBoxAttachment *SkeletonBounds::getBoundingBox(spine::Polygon *polygon) {
|
||||
int index = _polygons.indexOf(polygon);
|
||||
return index == -1 ? NULL : _boundingBoxes[index];
|
||||
}
|
||||
|
||||
Array<Polygon *> &SkeletonBounds::getPolygons() {
|
||||
Array<spine::Polygon *> &SkeletonBounds::getPolygons() {
|
||||
return _polygons;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user