rogueviz::objmodels:: availability checking

This commit is contained in:
Zeno Rogue
2021-04-07 18:13:45 +02:00
parent 6a2553ced9
commit cf1cd09f81
2 changed files with 13 additions and 2 deletions
+7
View File
@@ -14,6 +14,13 @@ char peek(fhstream& fs) {
return g;
}
bool model::available() {
if(av_checked) return is_available;
av_checked = true;
is_available = false;
return false;
}
void model::load_obj(model_type& objects) {
fhstream fs(path+fname, "rt");