// // CCLightStrip::draw from 0x2fc580 to 0x2fc6c6 (326 bytes) // // 0 xrefs: // // 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 CCLightStrip::draw(CCLightStrip *a1) { float v2; // s16 int r; // r8 int g; // r7 int b; // r6 cocos2d::ccColor4F v6; // [sp+14h] [bp-34h] BYREF cocos2d::CCPoint v7; // [sp+24h] [bp-24h] BYREF cocos2d::CCPoint v8; // [sp+2Ch] [bp-1Ch] BYREF cocos2d::CCPoint v9; // [sp+34h] [bp-14h] BYREF cocos2d::CCPoint v10; // [sp+3Ch] [bp-Ch] BYREF if ( ((int (__fastcall *)(CCLightStrip *))a1->isVisible)(a1) ) { cocos2d::ccGLBlendFunc((unsigned int)&stru_2FC.st_value + 2, 1u); cocos2d::ccDrawColor4B(a1->m_color.r, a1->m_color.g, a1->m_color.b, (unsigned int)a1->m_opacity); v2 = a1->m_objectWidth + (float)((float)(a1->m_width - a1->m_objectWidth) * 0.25); cocos2d::CCPoint::CCPoint(&v7, -(float)(v2 * 0.5), 0.0); cocos2d::CCPoint::CCPoint(&v8, v2 * 0.5, 0.0); cocos2d::CCPoint::CCPoint(&v9, a1->m_width * 0.5, a1->m_height); cocos2d::CCPoint::CCPoint(&v10, -(float)(a1->m_width * 0.5), a1->m_height); r = a1->m_color.r; g = a1->m_color.g; b = a1->m_color.b; memset(&v6, 0, sizeof(v6)); v6.r = (float)r / 255.0; v6.g = (float)g / 255.0; v6.b = (float)b / 255.0; v6.a = a1->m_opacity / 255.0; cocos2d::ccDrawSolidPoly(&v7, 4u, v6); cocos2d::ccGLBlendFunc((unsigned int)&dword_0 + 1, 0x303u); } }