Solar System - demo scence

Functions

void operations_push_model (tinyxml2::XMLElement *model, std::vector< float > *operations)
 
void operations_push_models (tinyxml2::XMLElement *models, std::vector< float > *operations)
 

Detailed Description

Function Documentation

◆ operations_push_model()

void operations_push_model ( tinyxml2::XMLElement *  model,
std::vector< float > *  operations 
)
84 {
85 unsigned int i = 0;
86 const char *string = model->Attribute("file");
87
88 operations->push_back(LOAD_MODEL);
89
90 do operations->push_back(string[i++]);
91 while (string[i]);
92
93 if (i <= 0) {
94 fprintf(stderr, "filename is empty");
95 exit(1);
96 }
97
98 //i--;
99
100 operations->insert(operations->end() - i, (float) i);
101}
static const int LOAD_MODEL
Definition: parsing.cpp:10
Definition: engine.cpp:66

References LOAD_MODEL.

Referenced by operations_push_models().

◆ operations_push_models()

void operations_push_models ( tinyxml2::XMLElement *  models,
std::vector< float > *  operations 
)
103 {
104 tinyxml2::XMLElement *model = models->FirstChildElement("model");
105 do operations_push_model(model, operations);
106 while ((model = model->NextSiblingElement("model")));
107}
void operations_push_model(tinyxml2::XMLElement *model, std::vector< float > *operations)
Definition: parsing.cpp:84

References operations_push_model().

Referenced by operations_push_groups().