// // cocos2d::CCRenderTexture::beginWithClear from 0x180061820 to 0x18006196d (333 bytes) // // 7 xrefs: // > cocos2d::CCRenderTexture::beginWithClear @ 0x180061999 // > cocos2d::CCRenderTexture::beginWithClear @ 0x1800619dc // > cocos2d::CCRenderTexture::beginWithClear @ 0x180061a1f // > cocos2d::CCRenderTexture::clear @ 0x180061a62 // > @ 0x18014cf68 // > @ 0x1801bd648 // > @ 0x1801bd654 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:21:51 +0000 // void __fastcall cocos2d::CCRenderTexture::beginWithClear( cocos2d::CCRenderTexture *this, GLclampf a2, GLclampf a3, GLclampf a4, GLclampf alpha, float a6, GLint s, GLbitfield mask) { GLfloat v8; // [rsp+20h] [rbp-78h] BYREF GLint v9; // [rsp+24h] [rbp-74h] BYREF GLfloat params[4]; // [rsp+28h] [rbp-70h] BYREF cocos2d::CCRenderTexture::begin(this); v8 = 0.0; v9 = 0; *(_OWORD *)params = 0; if ( (mask & 0x4000) != 0 ) { glGetFloatv(0xC22u, params); glClearColor(a2, a3, a4, alpha); } if ( (mask & 0x100) != 0 ) { glGetFloatv(0xB73u, &v8); glClearDepth(a6); } if ( (mask & 0x400) != 0 ) { glGetIntegerv(0xB91u, &v9); glClearStencil(s); } glClear(mask); if ( (mask & 0x4000) != 0 ) glClearColor(params[0], params[1], params[2], params[3]); if ( (mask & 0x100) != 0 ) glClearDepth(v8); if ( (mask & 0x400) != 0 ) glClearStencil(v9); }