// // cocos2d::CCSprite::draw from 0x5e6940 to 0x5e6a00 (192 bytes) // // 2 xrefs: // > cocos2d::CCTextFieldTTF::draw @ 0x5f35f2 // > cocos2d::CCTextFieldTTF::draw @ 0x5f361e // // 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 cocos2d::CCSprite::draw(cocos2d::CCSprite *a1) { GLint m_bDontDraw; // r5 cocos2d::CCGLProgram *v3; // r0 cocos2d::CCGLProgram *v4; // r0 unsigned int v5; // r0 m_bDontDraw = a1->m_bDontDraw; if ( !a1->m_bDontDraw ) { if ( a1->_realOpacity ) { cocos2d::ccGLEnable(a1->m_eGLServerState); a1->getShaderProgram(a1); v3 = a1->getShaderProgram(a1); cocos2d::CCGLProgram::use(v3); v4 = a1->getShaderProgram(a1); cocos2d::CCGLProgram::setUniformsForBuiltins(v4); cocos2d::ccGLBlendFunc(a1->m_sBlendFunc.src, a1->m_sBlendFunc.dst); v5 = a1->m_pobTexture->getName(a1->m_pobTexture); cocos2d::ccGLBindTexture2D(v5); cocos2d::ccGLEnableVertexAttribs((unsigned int)&byte_7); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(5u, m_bDontDraw, 4); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source