mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Additional 3d support
This commit is contained in:
parent
70680fdf39
commit
f26df6c86b
32 changed files with 2370 additions and 165 deletions
43
BeefySysLib/gfx/glTF.h
Normal file
43
BeefySysLib/gfx/glTF.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
#pragma once
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "util/Quaternion.h"
|
||||
#include "util/Vector.h"
|
||||
#include "util/Array.h"
|
||||
#include "FileStream.h"
|
||||
#include <vector>
|
||||
|
||||
NS_BF_BEGIN;
|
||||
|
||||
class ModelDef;
|
||||
class ModelMaterialDef;
|
||||
|
||||
class GLTFReader
|
||||
{
|
||||
public:
|
||||
class StaticMaterial
|
||||
{
|
||||
public:
|
||||
ModelMaterialDef* mMaterialDef;
|
||||
String mMaterialSlotName;
|
||||
};
|
||||
|
||||
public:
|
||||
String mBasePathName;
|
||||
String mRootDir;
|
||||
ModelDef* mModelDef;
|
||||
Array<StaticMaterial> mStaticMaterials;
|
||||
|
||||
public:
|
||||
GLTFReader(ModelDef* modelDef);
|
||||
~GLTFReader();
|
||||
|
||||
bool ParseMaterialDef(ModelMaterialDef* materialDef, const StringImpl& matText);
|
||||
ModelMaterialDef* LoadMaterial(const StringImpl& path);
|
||||
bool LoadModelProps(const StringImpl& relPath);
|
||||
bool ReadFile(const StringImpl& filePath, const StringImpl& rootDir);
|
||||
};
|
||||
|
||||
NS_BF_END;
|
Loading…
Add table
Add a link
Reference in a new issue