MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AddModel

Method AddModel

Source/Graphics/models.cpp:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202int Models::AddModel() {
203 models.push_back(ModelData());
204 int the_id = next_id++;
205 id_map[the_id] = &models.back();
206 return the_id;
207}
208
209Model& Models::GetModel(int id) {
210 return id_map[id]->model;

Callers 6

ModelFromCSGModelInfoFunction · 0.80
LoadMethod · 0.80

Calls 3

ModelDataClass · 0.85
push_backMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected