mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-20 13:00:18 +01:00
Add GLTF mesh file loader
This commit is contained in:
parent
a0b7a15693
commit
bde174d1a0
@ -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,
|
||||
|
||||
|
@ -346,6 +346,7 @@ set(IRRMESHLOADER
|
||||
CB3DMeshFileLoader.cpp
|
||||
COBJMeshFileLoader.cpp
|
||||
CXMeshFileLoader.cpp
|
||||
CGLTFMeshFileLoader.cpp
|
||||
)
|
||||
|
||||
add_library(IRRMESHOBJ OBJECT
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user