// // cocos2d::CCRenderTexture::draw from 0x5d87d8 to 0x5d88fe (294 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 cocos2d::CCRenderTexture::draw(cocos2d::CCRenderTexture *a1) { GLbitfield m_uClearFlags; // r6 cocos2d::CCArray *m_pChildren; // r3 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r6 cocos2d::CCObject **v6; // r5 cocos2d::CCSprite *v7; // r0 cocos2d::CCSprite *v8; // t1 GLfloat params; // [sp+4h] [bp-20h] BYREF GLint s; // [sp+8h] [bp-1Ch] BYREF GLclampf red[4]; // [sp+Ch] [bp-18h] BYREF if ( a1->m_bAutoDraw ) { cocos2d::CCRenderTexture::begin(a1); m_uClearFlags = a1->m_uClearFlags; if ( m_uClearFlags ) { memset(red, 0, sizeof(red)); params = 0.0; s = 0; if ( (m_uClearFlags & 0x4000) != 0 ) { glGetFloatv(0xC22u, red); glClearColor(a1->m_sClearColor.r, a1->m_sClearColor.g, a1->m_sClearColor.b, a1->m_sClearColor.a); } if ( (a1->m_uClearFlags & 0x100) != 0 ) { glGetFloatv(0xB73u, ¶ms); glClearDepthf(); } if ( (a1->m_uClearFlags & 0x400) != 0 ) { glGetIntegerv(0xB91u, &s); glClearStencil(a1->m_nClearStencil); } glClear(a1->m_uClearFlags); if ( (a1->m_uClearFlags & 0x4000) != 0 ) glClearColor(red[0], red[1], red[2], red[3]); if ( (a1->m_uClearFlags & 0x100) != 0 ) glClearDepthf(); if ( (a1->m_uClearFlags & 0x400) != 0 ) glClearStencil(s); } a1->sortAllChildren(a1); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = data->arr; v6 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v6 ) { v8 = (cocos2d::CCSprite *)*arr++; v7 = v8; if ( !v8 ) break; if ( v7 != a1->m_pSprite ) v7->visit(v7); } } } cocos2d::CCRenderTexture::end(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source