// // cocos2d::CCGLProgram::compileShader from 0x180089a00 to 0x180089ae8 (232 bytes) // // 6 xrefs: // > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0x180089bc8 // > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0x180089bed // > @ 0x180145fb8 // > @ 0x180145fc8 // > @ 0x18014cf68 // > @ 0x1801bf9ac // // 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:22:05 +0000 // bool __fastcall cocos2d::CCGLProgram::compileShader( cocos2d::CCGLProgram *this, unsigned int *a2, unsigned int a3, const char *a4) { unsigned int Shader; // eax void *v7; // rbx int v8; // [rsp+20h] [rbp-28h] BYREF _QWORD v9[4]; // [rsp+28h] [rbp-20h] BYREF unsigned int v10; // [rsp+68h] [rbp+20h] BYREF if ( !a4 ) return 0; v9[1] = a4; v9[0] = "uniform mat4 CC_PMatrix;\n" "uniform mat4 CC_MVMatrix;\n" "uniform mat4 CC_MVPMatrix;\n" "uniform vec4 CC_Time;\n" "uniform vec4 CC_SinTime;\n" "uniform vec4 CC_CosTime;\n" "uniform vec4 CC_Random01;\n" "//CC INCLUDES END\n" "\n"; Shader = _glewCreateShader(a3); *a2 = Shader; _glewShaderSource(Shader, 2, v9, 0); _glewCompileShader(*a2); _glewGetShaderiv(*a2, 0x8B81u, &v8); if ( !v8 ) { ((void (__fastcall *)(_QWORD, __int64, unsigned int *))_glewGetShaderiv)(*a2, 35720, &v10); v7 = malloc((int)v10); _glewGetShaderSource(*a2, v10, 0, v7); free(v7); abort(); } return v8 == 1; }