// // cocos2d::CCTextureAtlas::drawNumberOfQuads from 0x1800a9e70 to 0x1800a9ff2 (386 bytes) // // 5 xrefs: // > cocos2d::CCAtlasNode::draw @ 0x180001b3b // > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a9e63 // > cocos2d::CCTextureAtlas::drawQuads @ 0x1800aa006 // > @ 0x18014cf68 // > @ 0x1801c1fbc // // 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 11:22:17 +0000 // void __fastcall cocos2d::CCTextureAtlas::drawNumberOfQuads( cocos2d::CCTextureAtlas *this, unsigned int a2, unsigned int a3) { __int64 v4; // rsi __int64 v5; // rdi unsigned int v6; // eax __int64 v7; // r9 if ( a2 ) { v4 = a3; v5 = a2; v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 11) + 96LL))(*((_QWORD *)this + 11)); cocos2d::ccGLBindTexture2D((cocos2d *)v6); _glewBindBuffer(34962, *((unsigned int *)this + 16)); if ( *((_BYTE *)this + 72) ) { _glewBufferSubData(34962, 96 * v4, 96 * v5, 96 * v4 + *((_QWORD *)this + 12)); *((_BYTE *)this + 72) = 0; } cocos2d::ccGLEnableVertexAttribs((cocos2d *)7); _glewVertexAttribPointer(0, 3, 5126, 0, 24, 0); LOBYTE(v7) = 1; _glewVertexAttribPointer(1, 4, 5121, v7, 24, 12); _glewVertexAttribPointer(2, 2, 5126, 0, 24, 16); _glewBindBuffer(34963, *((unsigned int *)this + 17)); glDrawElements(4u, 6 * v5, 0x1403u, (const GLvoid *)(2LL * (unsigned int)(6 * v4))); _glewBindBuffer(34962, 0); _glewBindBuffer(34963, 0); ++g_uNumberOfDraws; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source