// // CCSpriteWithHue::draw from 0x306c70 to 0x306d8a (282 bytes) // // 0 xrefs: // // 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 CCSpriteWithHue::draw(CCSpriteWithHue *a1) { GLint m_bDontDraw; // r5 cocos2d::CCGLProgram *v3; // r0 cocos2d::CCGLProgram *v4; // r0 unsigned int v5; // r0 cocos2d::CCGLProgram *v6; // r0 cocos2d::CCGLProgram *v7; // r0 int m_uAlphaLoc; // r6 cocos2d::CCGLProgram *v9; // r7 float Alpha; // r0 cocos2d::CCGLProgram *v11; // 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); v6 = a1->getShaderProgram(a1); cocos2d::CCGLProgram::setUniformLocationWithMatrix3fv(v6, a1->m_uHueLoc, (float *)&a1->m_colorMatrix, 1u); v7 = a1->getShaderProgram(a1); m_uAlphaLoc = a1->m_uAlphaLoc; v9 = v7; Alpha = CCSpriteWithHue::getAlpha(a1); cocos2d::CCGLProgram::setUniformLocationWith1f(v9, m_uAlphaLoc, Alpha); v11 = a1->getShaderProgram(a1); cocos2d::CCGLProgram::setUniformLocationWith3f( v11, a1->m_uLumLoc, a1->m_luminance.__elems_[0], a1->m_luminance.__elems_[1], a1->m_luminance.__elems_[2]); glVertexAttribPointer(); glVertexAttribPointer(); glVertexAttribPointer(); glDrawArrays(5u, m_bDontDraw, 4); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source