// // cocos2d::ccGLEnableVertexAttribs from 0x100346e20 to 0x100346eda (186 bytes) // // 22 xrefs: // > cocos2d::ccDrawPoint @ 0x1001eb642 // > cocos2d::ccDrawPoints @ 0x1001eb74c // > cocos2d::ccDrawLines @ 0x1001eb85c // > cocos2d::ccDrawLine @ 0x1001eb9c1 // > cocos2d::ccDrawSolidPoly @ 0x1001ebc7a // > cocos2d::ccDrawPoly @ 0x1001ebd78 // > cocos2d::ccDrawCircle @ 0x1001ebfc0 // > cocos2d::ccDrawCircleSegment @ 0x1001ec42d // > cocos2d::ccDrawFilledCircle @ 0x1001ec82e // > cocos2d::ccDrawQuadBezier @ 0x1001ecbed // > cocos2d::ccDrawCardinalSpline @ 0x1001ecd52 // > cocos2d::ccDrawCubicBezier @ 0x1001ed128 // > cocos2d::CCSprite::draw @ 0x100274e1e // > sub_1003918F0 @ 0x10039193d // > cocos2d::CCTexture2D::drawAtPoint @ 0x10046dabf // > cocos2d::CCTexture2D::drawInRect @ 0x10046dbb7 // > cocos2d::CCLayerColor::draw @ 0x1004ac40d // > cocos2d::CCGrid3D::blit @ 0x1004dee5e // > cocos2d::CCTiledGrid3D::blit @ 0x1004df9a0 // > cocos2d::CCMotionStreak::draw @ 0x1005a46ec // > CCSpriteWithHue::draw @ 0x1006c3aae // > cocos2d::CCProgressTimer::draw @ 0x1006de16b // // This function is hookable on this platform (idp: pc, 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 12:28:45 +0000 // void __fastcall cocos2d::ccGLEnableVertexAttribs(char a1) { if ( dword_100BE2EE4 ) { dword_100BE2EE4 = 0; glBindVertexArrayAPPLE(0); } if ( (a1 & 1) != byte_100BE2EE0 ) { if ( (a1 & 1) != 0 ) glEnableVertexAttribArray(0); else glDisableVertexAttribArray(0); byte_100BE2EE0 = a1 & 1; } if ( (unsigned __int8)(a1 & 2) >> 1 != byte_100BE2EE1 ) { if ( (a1 & 2) != 0 ) glEnableVertexAttribArray(1u); else glDisableVertexAttribArray(1u); byte_100BE2EE1 = (unsigned __int8)(a1 & 2) >> 1; } if ( (unsigned __int8)(a1 & 4) >> 2 != byte_100BE2EE2 ) { if ( (a1 & 4) != 0 ) glEnableVertexAttribArray(2u); else glDisableVertexAttribArray(2u); byte_100BE2EE2 = (unsigned __int8)(a1 & 4) >> 2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source