// // cocos2d::CCRenderTexture::beginWithClear from 0x1003c094c to 0x1003c0a74 (296 bytes) // // 1 xrefs: // > cocos2d::CCRenderTexture::beginWithClear_1 @ 0x1003c0948 // // 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 __fastcall cocos2d::CCRenderTexture::beginWithClear( cocos2d::CCRenderTexture *a1, float a2, float a3, float a4, float a5, float a6, int a7, unsigned int a8) { GLint s[2]; // [xsp+0h] [xbp-60h] BYREF GLfloat params[2]; // [xsp+8h] [xbp-58h] BYREF __int64 v17; // [xsp+10h] [xbp-50h] cocos2d::CCRenderTexture::begin(a1); *(_QWORD *)params = 0; v17 = 0; *(_QWORD *)s = 0; if ( (a8 & 0x4000) != 0 ) { glGetFloatv(0xC22u, params); glClearColor(a2, a3, a4, a5); if ( (a8 & 0x100) == 0 ) { LABEL_3: if ( (a8 & 0x400) == 0 ) goto LABEL_5; goto LABEL_4; } } else if ( (a8 & 0x100) == 0 ) { goto LABEL_3; } glGetFloatv(0xB73u, (GLfloat *)&s[1]); glClearDepthf(a6); if ( (a8 & 0x400) != 0 ) { LABEL_4: glGetIntegerv(0xB91u, s); glClearStencil(a7); } LABEL_5: glClear(a8); if ( (a8 & 0x4000) != 0 ) { glClearColor(params[0], params[1], *(GLfloat *)&v17, *((GLfloat *)&v17 + 1)); if ( (a8 & 0x100) == 0 ) { LABEL_7: if ( (a8 & 0x400) == 0 ) return; goto LABEL_8; } } else if ( (a8 & 0x100) == 0 ) { goto LABEL_7; } glClearDepthf(*(GLclampf *)&s[1]); if ( (a8 & 0x400) == 0 ) return; LABEL_8: glClearStencil(s[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source