MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / EnumAAFormats

Method EnumAAFormats

CrySystem/ScriptObjectSystem.cpp:2299–2323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2297}
2298
2299int CScriptObjectSystem::EnumAAFormats(IFunctionHandler *pH)
2300{
2301 CHECK_PARAMETERS(0);
2302 m_pLog->Log("Enumerating FSAA modes...");
2303 _SmartScriptObject pAAArray(m_pScriptSystem);
2304 TArray<SAAFormat> AAFormats;
2305
2306 m_pRenderer->EnumAAFormats(AAFormats, false);
2307
2308 for (int i=0; i<AAFormats.Num(); i++)
2309 {
2310 SAAFormat *pAAForm = &AAFormats[i];
2311 _SmartScriptObject pAA(m_pScriptSystem);
2312
2313 pAA->SetValue("desc", pAAForm->szDescr);
2314 pAA->SetValue("samples", pAAForm->nSamples);
2315 pAA->SetValue("quality", pAAForm->nQuality);
2316
2317 pAAArray->PushBack( pAA );
2318 }
2319
2320 m_pRenderer->EnumAAFormats(AAFormats, true);
2321
2322 return pH->EndFunction(pAAArray);
2323}
2324
2325int CScriptObjectSystem::IsPointIndoors(IFunctionHandler *pH)
2326{

Callers

nothing calls this directly

Calls 5

NumMethod · 0.80
PushBackMethod · 0.80
EndFunctionMethod · 0.80
LogMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected