Book* load_book(Bookshelf* bs, std::string name, std::string path) { SceneGL* sc = new SceneGL(); Scene_list.push_back(sc); const char *filename = { "data/models/test/modi_book.obj" }; //scene[0].id = 0; index를 id로 sc->ObjectType = BOOK; sc->T = glm::translate(glm::mat4(1.0f), glm::vec3(1.0f)); sc->R = glm::mat4(1.0f); sc->build_from_aiScene((aiScene*)aiImportFile(filename, aiProcessPreset_TargetRealtime_MaxQuality)); Book* b = new Book(sc, bs); BookIndex bi = bs->insertBook(b); b->SetIndexPosition(bi); Book_list.push_back(b); return b; }