// // cocos2d::CCDrawNode::is_segment_on_screen from 0x1000428b4 to 0x100042950 (156 bytes) // // 1 xrefs: // > cocos2d::CCDrawNode::drawSegmentEx @ 0x100042530 // // 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 __fastcall 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 y; // s1 float v6; // s2 float v7; // s3 float m_fMaxAreaY; // s0 float m_fMinAreaY; // s0 bool v11; // w8 bool v12; // nf float m_fMaxAreaX; // s1 float m_fMinAreaX; // s1 x = a3->x; y = a3->y; v6 = a4->x; v7 = a4->y; if ( vabds_f32(a3->x, a4->x) >= vabds_f32(y, v7) ) { if ( y < a1->m_fMinAreaY || y > a1->m_fMaxAreaY ) return 0; m_fMaxAreaX = a1->m_fMaxAreaX; if ( x > m_fMaxAreaX && v6 > m_fMaxAreaX ) return 0; m_fMinAreaX = a1->m_fMinAreaX; v11 = x >= m_fMinAreaX; v12 = v6 < m_fMinAreaX; } else { if ( x < a1->m_fMinAreaX || x > a1->m_fMaxAreaX ) return 0; m_fMaxAreaY = a1->m_fMaxAreaY; if ( y > m_fMaxAreaY && v7 > m_fMaxAreaY ) return 0; m_fMinAreaY = a1->m_fMinAreaY; v11 = y >= m_fMinAreaY; v12 = v7 < m_fMinAreaY; } return !v12 || v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source