// // cocos2d::ccGLEnableVertexAttribs from 0x100221af4 to 0x100221bbc (200 bytes) // // 11 xrefs: // > cocos2d::CCLayerColor::draw @ 0x1001c85f0 // > cocos2d::CCMotionStreak::draw @ 0x100208c34 // > CCSpriteWithHue::draw @ 0x100238ae4 // > cocos2d::CCSprite::draw @ 0x1002d4fe4 // > cocos2d::ccDrawLines @ 0x1002e93e8 // > cocos2d::ccDrawLine @ 0x1002e94f4 // > cocos2d::ccDrawSolidPoly @ 0x1002e9758 // > cocos2d::ccDrawCircle @ 0x1002e98d0 // > cocos2d::ccDrawCircleSegment @ 0x1002e9a68 // > cocos2d::ccDrawFilledCircle @ 0x1002e9bc8 // > cocos2d::CCProgressTimer::draw @ 0x10047edd0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:01:08 +0000 // void __fastcall cocos2d::ccGLEnableVertexAttribs(char a1) { unsigned int v2; // w19 if ( dword_1009F4AC4 ) { dword_1009F4AC4 = 0; glBindVertexArrayOES(0); } if ( (a1 & 1) != byte_1009F4AC0 ) { if ( (a1 & 1) != 0 ) glEnableVertexAttribArray(0); else glDisableVertexAttribArray(0); byte_1009F4AC0 = a1 & 1; } if ( byte_1009F4AC1 != (unsigned __int8)(a1 & 2) >> 1 ) { if ( (a1 & 2) != 0 ) glEnableVertexAttribArray(1u); else glDisableVertexAttribArray(1u); byte_1009F4AC1 = (unsigned __int8)(a1 & 2) >> 1; } v2 = a1 & 4; if ( (unsigned __int8)byte_1009F4AC2 != v2 >> 2 ) { if ( v2 ) glEnableVertexAttribArray(2u); else glDisableVertexAttribArray(2u); byte_1009F4AC2 = v2 >> 2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source