Add GLTF mesh file loader

This commit is contained in:
JosiahWI 2022-10-16 21:17:21 -05:00 committed by Josiah VanderZee
parent a0b7a15693
commit bde174d1a0
3 changed files with 6 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

@ -346,6 +346,7 @@ set(IRRMESHLOADER
CB3DMeshFileLoader.cpp
COBJMeshFileLoader.cpp
CXMeshFileLoader.cpp
CGLTFMeshFileLoader.cpp
)
add_library(IRRMESHOBJ OBJECT

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