// // cocos2d::CCSprite::draw from 0x18008b960 to 0x18008ba8d (301 bytes) // // 8 xrefs: // > cocos2d::CCTextFieldTTF::draw @ 0x1800b55b3 // > cocos2d::CCTextFieldTTF::draw @ 0x1800b55f5 // > @ 0x1800ebb50 // > @ 0x1800ec028 // > @ 0x1800ecba8 // > @ 0x180103a60 // > @ 0x1801438a8 // > @ 0x1801b5b74 // // 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::CCSprite::draw(cocos2d::CCSprite *this, float a2) { cocos2d::CCGLProgram *v3; // rax unsigned int v4; // edx cocos2d::CCGLProgram *v5; // rax unsigned int v6; // eax if ( !this->m_bDontDraw ) { if ( this->_realOpacity ) { cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)(unsigned int)this->m_eGLServerState, a2); ((void (__fastcall *)(cocos2d::CCSprite *))this->getShaderProgram)(this); v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))this->getShaderProgram)(this); cocos2d::CCGLProgram::use(v3, v4); v5 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))this->getShaderProgram)(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v5); cocos2d::ccGLBlendFunc(this->m_sBlendFunc.src, this->m_sBlendFunc.dst); v6 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))this->m_pobTexture->getName)(this->m_pobTexture); cocos2d::ccGLBindTexture2D((cocos2d *)v6); cocos2d::ccGLEnableVertexAttribs((cocos2d *)7); _glewVertexAttribPointer(0, 3, 5126); _glewVertexAttribPointer(2, 2, 5126); _glewVertexAttribPointer(1, 4, 5121); glDrawArrays(5u, 0, 4); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source