FuncStatsPlugin::FuncStatsPlugin(InterceptPluginCallbacks *callBacks): gliCallBacks(callBacks), functionsCountSort(false), functionsNameSort(false), numGLFunctionCalls(0), numGLCallsFirstFrame(0) { //Get callbacks for all functions gliCallBacks->RegisterGLFunction("*"); //Get calls that are even outside contexts gliCallBacks->SetContextFunctionCalls(false); //Parse the config file ConfigParser fileParser; if(fileParser.Parse(dllPath + "config.ini")) { ProcessConfigData(&fileParser); fileParser.LogUnusedTokens(); } //Parse the config string ConfigParser stringParser; if(stringParser.ParseString(gliCallBacks->GetConfigString())) { ProcessConfigData(&stringParser); stringParser.LogUnusedTokens(); } }
OpenGLCStrike::OpenGLCStrike(InterceptPluginCallbacks *callBacks): gliCallBacks(callBacks), GLV(callBacks->GetCoreGLFunctions()), inputUtils(callBacks->GetInputUtils()), firstRenderCall(true), firstUICall(true), renderDisabled(false), renderCallType(CTI_Unknown), drawCharacter(true), drawWeapon(true), drawBackground(DBM_Normal), drawUI(true), oldTexEnvMode(GL_MODULATE), characterKeyState(false), weaponKeyState(false), backgroundKeyState(false), UIKeyState(false) { //Init the clear color clearColor[0] = 1.0f; clearColor[1] = 1.0f; clearColor[2] = 1.0f; clearColor[3] = 1.0f; //Register all the callbacks gliCallBacks->RegisterGLFunction("glEnd"); gliCallBacks->RegisterGLFunction("glBegin"); //Register the user ids for the callbacks gliCallBacks->SetFunctionID("glEnd", CBI_glEnd); gliCallBacks->SetFunctionID("glBegin",CBI_glBegin); //Parse the config file ConfigParser fileParser; if(fileParser.Parse(dllPath + "config.ini")) { ProcessConfigData(&fileParser); fileParser.LogUnusedTokens(); } //Parse the config string ConfigParser stringParser; if(stringParser.ParseString(gliCallBacks->GetConfigString())) { ProcessConfigData(&stringParser); stringParser.LogUnusedTokens(); } }
ShaderEditManager::ShaderEditManager(InterceptPluginCallbacks *callBacks): gliCallBacks(callBacks), GLV(callBacks->GetCoreGLFunctions()), inputUtils(callBacks->GetInputUtils()), currContext(NULL), shaderDebugGLSL(NULL), showShaderUID(0), showShaderType(USID_Undefined), showShaderStage(0), showShaderApplied(false), breakShaderUID(0), breakShaderType(USID_Undefined), oldLogicOpEnable(0), oldLogicOpMode(0) { //LOGERR(("ShaderEdit Plugin Created")); //Init the show shader timer showShaderTimer.StartTimer(); //Register all the callbacks gliCallBacks->RegisterGLFunction("glEnd"); //Register the user ids for the callbacks gliCallBacks->SetFunctionID("glEnd",CBI_glEnd); //Parse the config file ConfigParser fileParser; if(fileParser.Parse(dllPath + "config.ini")) { ProcessConfigData(&fileParser); fileParser.LogUnusedTokens(); } //Parse the config string ConfigParser stringParser; if(stringParser.ParseString(gliCallBacks->GetConfigString())) { ProcessConfigData(&stringParser); stringParser.LogUnusedTokens(); } }