// // cocos2d::CCGLProgram::initWithVertexShaderByteArray from 0xd824b4 to 0xd82584 (208 bytes) // // 10 xrefs: // > CCSpriteWithHue::initShader @ 0x6dd9a0 // > ShaderLayer::setupShader @ 0xb2dff8 // > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0xd112e4 // > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0xd82650 // > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83dd4 // > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83e48 // > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83eec // > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83f20 // > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83f84 // > @ 0x6f808 // // This function is hookable on this platform (idp: arm, 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 13:08:10 +0000 // __int64 __fastcall cocos2d::CCGLProgram::initWithVertexShaderByteArray( cocos2d::CCGLProgram *this, const char *a2, const char *a3) { int Program; // w0 Program = glCreateProgram(); *((_DWORD *)this + 16) = 0; *((_DWORD *)this + 14) = Program; *((_DWORD *)this + 15) = 0; if ( a2 ) { if ( !cocos2d::CCGLProgram::compileShader(this, (unsigned int *)this + 15, 0x8B31u, a2) ) return 0; if ( !a3 ) goto LABEL_5; } else if ( !a3 ) { goto LABEL_7; } if ( cocos2d::CCGLProgram::compileShader(this, (unsigned int *)this + 16, 0x8B30u, a3) ) { LABEL_5: if ( *((_DWORD *)this + 15) ) { glAttachShader(); if ( !*((_DWORD *)this + 16) ) goto LABEL_7; } else if ( !*((_DWORD *)this + 16) ) { LABEL_7: *((_QWORD *)this + 13) = 0; return 1; } glAttachShader(); goto LABEL_7; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source