From d0ae18fbcb094592cc9864572b138d85bf7885a6 Mon Sep 17 00:00:00 2001 From: Arthur Brainville Date: Sat, 3 Nov 2018 11:54:01 +0100 Subject: [PATCH] update example code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a9f431..aa68412 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Library and Plugin to use glTF 2.0 resources with Ogre 2.1 licencied under the t auto glTFLoader = gltfPluginAccessor::findPlugin()->getLoader(); //You can creae an Item for a scene by giving the name of the GLB file to look for in the resources -Ogre::Item* cesiumMan = glTFLoader->getItemFromResource("CesiumMan.glb, smgr); +Ogre::Item* cesiumMan = glTFLoader->getModelData("CesiumMan.glb", glTFLoaderInterface::LoadFrom::ResourceManager).makeItem(smgr); ``` ## Building the source code