// // cocos2d::CCRenderTexture::draw from 0x7e0c44 to 0x7e0d6a (294 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:49 +0000 // cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::draw(cocos2d::CCRenderTexture *this) { cocos2d::CCRenderTexture *v1; // r4 int v2; // r6 int v3; // r3 _DWORD *v4; // r2 int *v5; // r6 int *v6; // r5 int v7; // r0 int v8; // t1 GLfloat params; // [sp+4h] [bp-20h] BYREF GLint s; // [sp+8h] [bp-1Ch] BYREF GLclampf red[4]; // [sp+Ch] [bp-18h] BYREF v1 = this; if ( *((_BYTE *)this + 324) ) { cocos2d::CCRenderTexture::begin(this); v2 = *((_DWORD *)v1 + 74); if ( v2 ) { memset(red, 0, sizeof(red)); params = 0.0; s = 0; if ( (v2 & 0x4000) != 0 ) { glGetFloatv(0xC22u, red); glClearColor(*((GLclampf *)v1 + 75), *((GLclampf *)v1 + 76), *((GLclampf *)v1 + 77), *((GLclampf *)v1 + 78)); } if ( (*((_DWORD *)v1 + 74) & 0x100) != 0 ) { glGetFloatv(0xB73u, ¶ms); glClearDepthf(); } if ( (*((_DWORD *)v1 + 74) & 0x400) != 0 ) { glGetIntegerv(0xB91u, &s); glClearStencil(*((_DWORD *)v1 + 80)); } glClear(*((_DWORD *)v1 + 74)); if ( (*((_DWORD *)v1 + 74) & 0x4000) != 0 ) glClearColor(red[0], red[1], red[2], red[3]); if ( (*((_DWORD *)v1 + 74) & 0x100) != 0 ) glClearDepthf(); if ( (*((_DWORD *)v1 + 74) & 0x400) != 0 ) glClearStencil(s); } (*(void (__fastcall **)(cocos2d::CCRenderTexture *))(*(_DWORD *)v1 + 300))(v1); v3 = *((_DWORD *)v1 + 48); if ( v3 ) { v4 = *(_DWORD **)(v3 + 52); if ( *v4 ) { v5 = (int *)v4[3]; v6 = &v5[*v4 - 1]; while ( v5 <= v6 ) { v8 = *v5++; v7 = v8; if ( !v8 ) break; if ( v7 != *((_DWORD *)v1 + 66) ) (*(void (__fastcall **)(int))(*(_DWORD *)v7 + 376))(v7); } } } return (cocos2d::CCRenderTexture *)cocos2d::CCRenderTexture::end(v1); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source