// // cocos2d::CCLightning::draw from 0x1005dde90 to 0x1005ddfd2 (322 bytes) // // 1 xrefs: // > @ 0x100975a48 // // 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 // void __fastcall cocos2d::CCLightning::draw(cocos2d::CCLightning *a1) { double v2; // [rsp+0h] [rbp-40h] BYREF double v3; // [rsp+8h] [rbp-38h] BYREF unsigned __int64 v4; // [rsp+10h] [rbp-30h] BYREF double v5[5]; // [rsp+18h] [rbp-28h] BYREF a1->m_numPoints = 0; cocos2d::ccDrawColor4B( a1->m_color.r, a1->m_color.g, a1->m_color.b, (int)(float)((float)a1->m_opacity * a1->m_opacityModify)); glLineWidth(a1->m_lineWidth); cocos2d::ccGLBlendFunc(0x302u, 1u); sub_10028CBE0((float *)&v4, 0.0, 0.0); sub_10028CC60(v5, (double *)&a1->m_strikePoint); sub_1005DD560( &v3, &v4, v5, a1->m_displacement, a1->m_minDisplacement, a1->m_seed, (__int64)a1->m_lightningPoints, &a1->m_numPoints); if ( a1->m_split ) { sub_10028CC60(&v4, &v3); sub_10028CC60(v5, (double *)&a1->m_strikePoint2); sub_1005DD560( &v2, &v4, v5, a1->m_displacement / 2, a1->m_minDisplacement, a1->m_seed, (__int64)a1->m_lightningPoints, &a1->m_numPoints); } cocos2d::ccDrawLines(a1->m_lightningPoints->__elems_, a1->m_numPoints); }
GD Web Decomp Icon

GD Web Decomp

Raw Source