// // cocos2d::CCDrawNode::is_segment_on_screen from 0xad9b18 to 0xad9be8 (208 bytes) // // 2 xrefs: // > cocos2d::CCDrawNode::drawSegmentEx @ 0xad9c50 // > @ 0xb13f0 // // 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; // s0 float v5; // s2 float y; // s1 float v7; // s3 float m_fMaxAreaY; // s0 float m_fMaxAreaX; // s1 x = a3->x; v5 = a4->x; y = a3->y; v7 = a4->y; if ( vabds_f32(a3->x, a4->x) >= vabds_f32(y, v7) ) { 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; return x >= a1->m_fMinAreaX || v5 >= a1->m_fMinAreaX; } else { if ( x < a1->m_fMinAreaX ) return 0; if ( x > a1->m_fMaxAreaX ) return 0; m_fMaxAreaY = a1->m_fMaxAreaY; if ( y > m_fMaxAreaY && v7 > m_fMaxAreaY ) return 0; return y >= a1->m_fMinAreaY || v7 >= a1->m_fMinAreaY; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source