Enabling GI
To enable the usage of GI for a given RED window:
// win is a pointer to a RED window.
bool gi_enabled = true;
RED::IOptions* iopt = win->As< RED::IOptions >();
RC_TEST( iopt->SetOptionValue( RED::OPTIONS_RAY_GI, gi_enabled, iresmgr->GetState() ) );