Esempio n. 1
0
ModelNode *Md2Importer::getModelNode() {
    // retrieves the main md2 frame
    Md2Frame *mainMd2Frame = this->getMainMd2Frame();

    // creates a new model node
    ModelNode *modelNode = new ModelNode();

    // sets the model node position
    modelNode->setPosition(0.0, 0.0, 0.0);

    // sets the mesh list in the model node
    modelNode->setMeshList(&mainMd2Frame->meshList);

    // returns the model node
    return modelNode;
}