NvGLModel* NormalBlendedDecal::loadModel(const char *model_filename) { // Load model data for scene geometry int32_t length; char *modelData = NvAssetLoaderRead(model_filename, length); NvGLModel* model = new NvGLModel(); model->loadModelFromObjData(modelData); model->rescaleModel(1.0f); model->initBuffers(true, true); NvAssetLoaderFree(modelData); CHECK_GL_ERROR(); return model; }
NvGLModel* loadModelFromFile(const char *pFileName, float rescale ) { int32_t length; char *modelData = NvAssetLoaderRead(pFileName, length); NvGLModel* pModel = new NvGLModel; pModel->loadModelFromObjData(modelData); pModel->rescaleModel(rescale); pModel->initBuffers(); NvAssetLoaderFree(modelData); return pModel; }