// // ShaderLayer::visit from 0x54f0a0 to 0x54f254 (436 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 ShaderLayer::visit(ShaderLayer *a1) { cocos2d::CCDirector *v2; // r0 float v3; // r8 cocos2d::CCDirector *v4; // r0 int v5; // r0 cocos2d::CCGridBase *m_pGrid; // r0 cocos2d::CCGLProgram *v7; // r0 cocos2d::CCGLProgram *v8; // r0 unsigned int v9; // r6 cocos2d::CCPoint v10; // r1 cocos2d::ccArray *data; // r10 cocos2d::CCSprite *v12; // r0 cocos2d::CCSprite *m_sprite; // r10 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r11 cocos2d::CCGridBase *v15; // r0 cocos2d::CCDirector *v16; // r0 cocos2d::CCPoint v17; // [sp+Ch] [bp-38h] BYREF cocos2d::CCPoint v18; // [sp+14h] [bp-30h] BYREF cocos2d::CCPoint v19; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v20; // [sp+24h] [bp-20h] BYREF cocos2d::CCRect v21; // [sp+2Ch] [bp-18h] BYREF if ( a1->m_bVisible ) { v2 = cocos2d::CCDirector::sharedDirector(); v3 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v2)); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setContentScaleFactor(v4, a1->m_scaleFactor); ShaderLayer::prepareTargetContainer(&v17, a1); cocos2d::CCPoint::CCPoint( &v21.origin, a1->m_targetTextureSizeExtra.width * 0.5, a1->m_targetTextureSizeExtra.height * 0.5); v5 = cocos2d::CCPoint::operator+(&v18, &v17, &v21); kmGLPushMatrix(v5); m_pGrid = a1->m_pGrid; if ( m_pGrid && m_pGrid->m_bActive ) cocos2d::CCGridBase::beforeDraw(m_pGrid); cocos2d::CCNode::transform(a1); v7 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::use(v7); v8 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::setUniformsForBuiltins(v8); v9 = 0; cocos2d::CCPoint::CCPoint(&v21.origin, &v18); LODWORD(v10.x) = &v21; ShaderLayer::updateEffectOffsets(a1, v10); ShaderLayer::preSplitScreenShader(a1); cocos2d::CCRenderTexture::beginWithClear(a1->m_renderTexture, 0.0, 0.0, 0.0, 0.0); data = a1->m_pChildren->data; while ( v9 < data->num ) { v12 = (cocos2d::CCSprite *)data->arr[v9]; if ( v12 != a1->m_sprite ) v12->visit(v12); ++v9; } cocos2d::CCRenderTexture::end(a1->m_renderTexture); cocos2d::CCRect::CCRect(&v21, &a1->m_sprite->m_obRect); m_sprite = a1->m_sprite; setPosition = m_sprite->setPosition; cocos2d::CCPoint::CCPoint( &v20, v21.origin.x / a1->m_state.m_textureScaleX, v21.origin.y / a1->m_state.m_textureScaleY); cocos2d::CCPoint::operator+(&v19, &v17, &v20); setPosition(m_sprite, &v19); a1->m_sprite->visit(a1->m_sprite); v15 = a1->m_pGrid; a1->m_uOrderOfArrival = 0; if ( v15 && v15->m_bActive ) cocos2d::CCGridBase::afterDraw(v15, a1); kmGLPopMatrix(); ShaderLayer::resetTargetContainer(a1); v16 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setContentScaleFactor(v16, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source