// // cocos2d::CCDrawNode::is_segment_on_screen from 0x5c5774 to 0x5c5840 (204 bytes) // // 1 xrefs: // > cocos2d::CCDrawNode::drawSegmentEx @ 0x5c5864 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool cocos2d::CCDrawNode::is_segment_on_screen( cocos2d::CCDrawNode *a1, const cocos2d::CCRect *a2, const cocos2d::CCPoint *a3, const cocos2d::CCPoint *a4) { float x; // s15 float v5; // s13 float y; // s14 float v7; // s12 float m_fMaxAreaY; // s15 float m_fMinAreaY; // s15 bool v10; // fnf float m_fMaxAreaX; // s14 float m_fMinAreaX; // s14 x = a3->x; v5 = a4->x; y = a3->y; v7 = a4->y; if ( fabsf(a3->x - a4->x) < fabsf(y - v7) ) { if ( x >= a1->m_fMinAreaX && x <= a1->m_fMaxAreaX ) { m_fMaxAreaY = a1->m_fMaxAreaY; if ( y <= m_fMaxAreaY || v7 <= m_fMaxAreaY ) { m_fMinAreaY = a1->m_fMinAreaY; if ( y < m_fMinAreaY ) { v10 = v7 < m_fMinAreaY; return !v10; } return 1; } } return 0; } if ( y < a1->m_fMinAreaY ) return 0; if ( y > a1->m_fMaxAreaY ) return 0; m_fMaxAreaX = a1->m_fMaxAreaX; if ( x > m_fMaxAreaX && v5 > m_fMaxAreaX ) return 0; m_fMinAreaX = a1->m_fMinAreaX; if ( x >= m_fMinAreaX ) return 1; v10 = v5 < m_fMinAreaX; return !v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source