Figure* WFObjLoader::loadGCBFile(const char *fileName) { std::vector<char>* data = GCLoadAsset(fileName); Figure *out = WFObjLoader::loadGCBData(data); if (out) { out->name = fileName; out->build(); } delete data; return out; }
Figure* Texture::makePlate() { // キャッシュにFigureが存在しないか検索 Figure *figure = cache->searchFigure(MAX_FIGURE_ID, MAX_FIGURE_SUB_ID, 0, 0); if (figure) { return figure; } Rectf rect; rect.top = 0; rect.left = 0; rect.right = 1; rect.bottom = 1; float w = (rect.right - rect.left) * this->width / dispW; float p = (rect.bottom - rect.top) / (rect.right - rect.left); figure = createPlate(w, w*p); figure->build(); // キャッシュに登録 cache->putFigure(MAX_FIGURE_ID, MAX_FIGURE_SUB_ID, 0, 0, figure); return figure; }