| 2297 | } |
| 2298 | |
| 2299 | int 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 | |
| 2325 | int CScriptObjectSystem::IsPointIndoors(IFunctionHandler *pH) |
| 2326 | { |
nothing calls this directly
no test coverage detected