Add GLTF mesh file loader

This commit is contained in:
JosiahWI 2022-10-16 21:17:21 -05:00 committed by Josiah VanderZee
parent c1c9dc41dc
commit 6b02c249c9
2 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,9 @@ enum E_ANIMATED_MESH_TYPE
//! Halflife MDL model file
EAMT_MDL_HALFLIFE,
//! Graphics Language Transmission Format 2.0 (.gltf) mesh
EAMT_GLTF2,
//! generic skinned mesh
EAMT_SKINNED,

View File

@ -18,6 +18,7 @@
#include "CXMeshFileLoader.h"
#include "COBJMeshFileLoader.h"
#include "CB3DMeshFileLoader.h"
#include "CGLTFMeshFileLoader.h"
#include "CBillboardSceneNode.h"
#include "CAnimatedMeshSceneNode.h"
#include "CCameraSceneNode.h"
@ -76,6 +77,7 @@ CSceneManager::CSceneManager(video::IVideoDriver *driver,
MeshLoaderList.push_back(new CXMeshFileLoader(this));
MeshLoaderList.push_back(new COBJMeshFileLoader(this));
MeshLoaderList.push_back(new CB3DMeshFileLoader(this));
MeshLoaderList.push_back(new CGLTFMeshFileLoader());
}
//! destructor