light: add Lightmap_ClearAll util function

This commit is contained in:
Eric Wasylishen 2016-05-19 02:35:17 -06:00
parent 2c73da0856
commit 8db1f56a20
1 changed files with 12 additions and 0 deletions

View File

@ -893,6 +893,18 @@ Lightmap_ForStyle(lightmap_t *lightmaps, const int style, const lightsurf_t *lig
return lightmap;
}
/*
* Lightmap_ClearAll
*
* Sets all styles to 255, doesn't actually clear the data.
*/
void Lightmap_ClearAll(lightmap_t *lightmaps)
{
for (int i = 0; i <= MAXLIGHTMAPS; i++) {
lightmaps[i].style = 255;
}
}
/*
* Lightmap_Save
*