// // cocos2d::ccGLEnableVertexAttribs from 0x10018e8e4 to 0x10018e9ac (200 bytes) // // 11 xrefs: // > cocos2d::CCLayerColor::draw @ 0x100149cfc // > cocos2d::CCMotionStreak::draw @ 0x10017756c // > CCSpriteWithHue::draw @ 0x1001a3cb4 // > cocos2d::CCSprite::draw @ 0x1002385d4 // > cocos2d::ccDrawLines @ 0x10024c278 // > cocos2d::ccDrawLine @ 0x10024c384 // > cocos2d::ccDrawSolidPoly @ 0x10024c514 // > cocos2d::ccDrawCircle @ 0x10024c68c // > cocos2d::ccDrawCircleSegment @ 0x10024c824 // > cocos2d::ccDrawFilledCircle @ 0x10024c984 // > cocos2d::CCProgressTimer::draw @ 0x1003fe454 // // 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::ccGLEnableVertexAttribs(unsigned int a1) { char v1; // w19 unsigned int v2; // w19 v1 = a1; if ( dword_10086BC44 ) { dword_10086BC44 = 0; glBindVertexArrayOES(0); } if ( (v1 & 1) != byte_10086BC40 ) { if ( (v1 & 1) != 0 ) glEnableVertexAttribArray(0); else glDisableVertexAttribArray(0); byte_10086BC40 = v1 & 1; } if ( byte_10086BC41 != (unsigned __int8)(v1 & 2) >> 1 ) { if ( (v1 & 2) != 0 ) glEnableVertexAttribArray(1u); else glDisableVertexAttribArray(1u); byte_10086BC41 = (unsigned __int8)(v1 & 2) >> 1; } v2 = v1 & 4; if ( (unsigned __int8)byte_10086BC42 != v2 >> 2 ) { if ( v2 ) glEnableVertexAttribArray(2u); else glDisableVertexAttribArray(2u); byte_10086BC42 = v2 >> 2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source