-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : add initial gltf loader implementations
- Loading branch information
Showing
20 changed files
with
510 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Author : snowapril | ||
|
||
#ifndef VOX_FLOW_MATERIAL_HPP | ||
#define VOX_FLOW_MATERIAL_HPP | ||
|
||
namespace VoxFlow | ||
{ | ||
class Material | ||
{ | ||
public: | ||
}; | ||
} // namespace VoxFlow | ||
|
||
#endif // VOX_FLOW_MATERIAL_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Author : snowapril | ||
|
||
#ifndef VOX_FLOW_PRIMITIVE_BUFFER_POOL_HPP | ||
#define VOX_FLOW_PRIMITIVE_BUFFER_POOL_HPP | ||
|
||
namespace VoxFlow | ||
{ | ||
class PrimitiveBufferPool | ||
{ | ||
public: | ||
}; | ||
} // namespace VoxFlow | ||
|
||
#endif // VOX_FLOW_PRIMITIVE_BUFFER_POOL_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Author : snowapril | ||
|
||
#ifndef VOX_FLOW_SCENE_OBJECT_HPP | ||
#define VOX_FLOW_SCENE_OBJECT_HPP | ||
|
||
namespace VoxFlow | ||
{ | ||
class SceneObject | ||
{ | ||
public: | ||
}; | ||
} // namespace VoxFlow | ||
|
||
#endif // VOX_FLOW_SCENE_OBJECT_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Author : snowapril | ||
|
||
#ifndef VOX_FLOW_SCENE_OBJECT_LOADER_HPP | ||
#define VOX_FLOW_SCENE_OBJECT_LOADER_HPP | ||
|
||
#include <volk/volk.h> | ||
#include <memory> | ||
#include <string> | ||
|
||
namespace VoxFlow | ||
{ | ||
class SceneObject; | ||
class ResourceUploadContext; | ||
|
||
class SceneObjectLoader | ||
{ | ||
public: | ||
SceneObjectLoader(); | ||
~SceneObjectLoader(); | ||
|
||
public: | ||
std::shared_ptr<SceneObject> loadSceneObjectObj(const std::string& objPath, ResourceUploadContext* uploadContext); | ||
}; | ||
} // namespace VoxFlow | ||
|
||
#endif // VOX_FLOW_SCENE_OBJECT_LOADER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Author : snowapril | ||
|
||
#ifndef VOXEL_FLOW_MATH_UTILS_HPP | ||
#define VOXEL_FLOW_MATH_UTILS_HPP | ||
|
||
#define GLM_FORCE_RADIANS | ||
#define GLM_FORCE_DEPTH_ZERO_TO_ONE | ||
#define GLM_ENABLE_EXPERIMENTAL | ||
#include <glm/glm.hpp> | ||
#include <glm/gtc/matrix_inverse.hpp> | ||
#include <glm/gtc/matrix_transform.hpp> | ||
#include <glm/gtc/type_ptr.hpp> | ||
|
||
namespace VoxFlow | ||
{ | ||
|
||
} | ||
|
||
#endif // VOXEL_FLOW_MATH_UTILS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Author : snowapril | ||
|
||
#include <VoxFlow/Core/Scene/Material.hpp> | ||
|
||
namespace VoxFlow | ||
{ | ||
} // namespace VoxFlow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Author : snowapril | ||
|
||
#include <VoxFlow/Core/Scene/PrimitiveBufferPool.hpp> | ||
|
||
namespace VoxFlow | ||
{ | ||
} // namespace VoxFlow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Author : snowapril | ||
|
||
#include <VoxFlow/Core/Scene/SceneObject.hpp> | ||
|
||
namespace VoxFlow | ||
{ | ||
} // namespace VoxFlow |
Oops, something went wrong.