// // cocos2d::CCGLProgram::initWithVertexShaderByteArray from 0x5e4004 to 0x5e4068 (100 bytes) // // 13 xrefs: // > CCSpriteWithHue::initShader @ 0x306b9e // > ShaderLayer::setupShader @ 0x54ebc4 // > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0x5a473a // > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x5e40ca // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4df2 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4e24 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4e56 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4e7c // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4ea2 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4ec8 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4efa // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4f16 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x5e4f4a // // 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 // bool cocos2d::CCGLProgram::initWithVertexShaderByteArray(cocos2d::CCGLProgram *a1, const char *a2, const char *a3) { GLuint Program; // r0 Program = glCreateProgram(); a1->m_uFragShader = 0; a1->m_uVertShader = 0; a1->m_uProgram = Program; if ( a2 ) { if ( !cocos2d::CCGLProgram::compileShader(a1, &a1->m_uVertShader, 0x8B31u, a2) ) return 0; if ( !a3 ) goto LABEL_5; goto LABEL_8; } if ( a3 ) { LABEL_8: if ( !cocos2d::CCGLProgram::compileShader(a1, &a1->m_uFragShader, 0x8B30u, a3) ) return 0; LABEL_5: if ( a1->m_uVertShader ) glAttachShader(); } if ( a1->m_uFragShader ) glAttachShader(); a1->m_pHashForUniforms = nullptr; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source