SpiecsEngine
 
Loading...
Searching...
No Matches
GltfSamplers.h
Go to the documentation of this file.
1/**
2* @file GltfSamplers.h.
3* @brief The GltfSamplers Class Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include "Core/Core.h"
9#include "GltfObject.h"
10
11namespace Spices {
12
13 /**
14 * @brief Wrapper of Gltf Json Samplers.
15 */
16 class GltfSamplers : public GltfObject
17 {
18 public:
19
20 /**
21 * @brief Samplers Item data.
22 */
23 struct Item
24 {
25 int magFilter; /* @brief */
26 int minFilter; /* @brief */
27 int wrapS; /* @brief */
28 int wrapT; /* @brief */
29 };
30
31 public:
32
33 /**
34 * @brief Constructor Function.
35 * @param[in] data Specific Json element.
36 */
37 explicit GltfSamplers(const Json& data)
39 {
41
42 m_SamplersData.resize(data.size());
43
44 for (int i = 0; i < data.size(); i++)
45 {
46 Item& item = m_SamplersData[i];
47 const Json& json = data[i];
48
49 item.magFilter = GltfHelper::GetElementInt(json, "magFilter", -1);
50 item.minFilter = GltfHelper::GetElementInt(json, "minFilter", -1);
51 item.wrapS = GltfHelper::GetElementInt(json, "wrapS", -1);
52 item.wrapT = GltfHelper::GetElementInt(json, "wrapT", -1);
53 }
54 }
55
56 /**
57 * @brief Destructor Function.
58 */
59 virtual ~GltfSamplers() override = default;
60
61 private:
62
63 /**
64 * @brief Data of Gltf Json Samplers.
65 */
67
68 /**
69 * @brief Allow GltfLoader and GltfCollection access all data this class.
70 */
71 friend class GltfLoader;
72 friend class GltfCollection;
73 };
74}
#define SPICES_PROFILE_ZONE
virtual ~BindLessTextureManager()=default
Destructor Function.
static void UnRegistry(const std::string &name)
UnRegistry a texture from bind less texture descriptor set array index.
BindLessTextureManager()=default
Constructor Function.
static uint32_t Registry(const std::string &name)
Registry a texture to bind less texture descriptor set array index.
static std::unordered_map< uint32_t, std::string > m_TextureInfoMap
Hashmap of array index and "".
static std::mutex m_Mutex
Mutex of this BindLessTextureManager.
static std::unordered_map< std::string, uint32_t > m_TextureIDMap
Hashmap of texture path and array index.
This Class Helps registry a texture to bind less texture descriptor set.
virtual void OnEvent(Event &e) override
The interface inherited from NativeScriptComponent, which is called on the global event function poin...
glm::vec3 GetForwardDirection() const
Get Camera Forward(z) Direction.
glm::vec3 m_FocalPoint
The focus point. Init with 0.
uint32_t m_ViewportWidth
The Viewport size.
glm::vec3 GetUpDirection() const
Get Camera Up(y) Direction.
CameraController()=default
Constructor Function.
std::shared_ptr< Camera > m_Camera
The camera smart pointer get from owner's camera component.
bool OnKeyPressed(KeyPressedEvent &e)
Event OnKeyPressed. We do nothing here.
virtual void OnDeSerialize() override
The interface inherited from Component, which is used for deserialize this class.
bool OnMouseScroll(MouseScrolledEvent &e)
Event OnMouseScroll. Scale the camera.
void MousePan(const glm::vec2 &delta)
Calculate Camera Drag.
void MouseZoom(const float &delta)
Calculate Camera Zoom.
void UpdateView() const
Setting camera transform component position. We already set rotation in MouseRotate().
std::pair< float, float > PanSpeed() const
Calculate Camera Drag speed.
virtual void OnSerialize() override
The interface inherited from Component, which is used for serialize this class.
glm::vec2 m_InitialMousePosition
The mouse position. Init with 0.
glm::quat GetOrientation() const
Get Camera quaternion rotation.
virtual ~CameraController() override=default
Destructor Function.
void MouseRotate(const glm::vec2 &delta) const
Calculate Camera Rotate.
virtual void OnConstruction() override
The interface inherited from NativeScriptComponent, which is called on this attached to an entity....
bool OnSlateResized(SlateResizeEvent &e)
Event OnWindowResized. Reset Camera aspect ratio.
float ZoomSpeed() const
Calculate Camera Zoom speed.
float m_Distance
The camera spring arm. Init with 10.
glm::vec3 GetRightDirection() const
Get Camera Right(x) Direction.
TransformComponent * m_CameraTranComp
The camera transform component pointer get from owner's transform component.
glm::vec3 CalculatePosition() const
Calculate camera transform component position using the class member parameters.
virtual void OnTick(TimeStep &ts) override
The interface inherited from NativeScriptComponent, which is called every engine loop frame....
float RotationSpeed() const
Calculate Camera Rotate speed.
float m_ZoomLevel
Zoom Level, for orthographic type camera.
CameraController Class. This class inherit from NativeScriptComponent. It receives Mouse Event and Ke...
Camera Class. This class just encapsulate Projection Matrix.
Definition Camera.h:59
static std::string GetClassString(ClassType t)
Get Class Name as string.
Class Static Function Library.
virtual void OnPreActivate() override
This interface define the specific world behave before on activated.
virtual void OnDeactivate() override
This interface defines the specific world behave after on activated.
virtual void OnActivate(TimeStep &ts) override
This interface define the specific world behave on activated.
EditorWorld Class. This class defines the specific behave of EditorWorld.
Definition EditorWorld.h:18
T & AddComponent(Args &&... args)
Template Function. Used for add specific component to entity.
Definition Entity.h:53
T & GetComponent() const
Get Component owned by this entity.
Definition Entity.h:75
void RemoveComponent() const
Remove Component owned from this entity.
Definition Entity.h:85
Entity()=default
Constructor Function.
void AddToRoot()
Add a entity to this world root.
Definition Entity.h:101
World * m_World
A specific world Pointer.
Definition Entity.h:171
const UUID GetUUID()
Get UUID form UUIDComponent.
Definition Entity.h:121
Entity(entt::entity handle, World *world)
Constructor Function. Init class variable. Usually call it.
Definition Entity.h:35
void RemoveFromRoot()
Remove a entity from this world root.
Definition Entity.h:93
operator bool() const
Empty Operation.
Definition Entity.h:127
virtual ~Entity()=default
Destructor Function.
bool HasComponent() const
If Component is owned by this entity or not.
Definition Entity.h:112
operator uint32_t() const
Empty Operation.
Definition Entity.h:133
Entity Class. This class defines the specific behaves of Entity.
Definition Entity.h:20
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
static bool FileLibrary_Size(const FileHandle *handle, uint64_t *out_size)
Calculate The file size.
static bool FileLibrary_Read(const FileHandle *handle, uint64_t data_size, void *out_data, uint64_t *out_bytes_read)
Read Specific size of data form the current file handle pointer, and move pointer the same size.
static bool FileLibrary_Write_Line(const FileHandle *handle, const char *text)
Write one line data to the file handle pointer.
static bool FileLibrary_Write(const FileHandle *handle, uint64_t data_size, const void *data, uint64_t *out_bytes_written)
Write given data to the file handle pointer.
static bool FileLibrary_Open(const char *path, FileModes mode, bool binary, FileHandle *out_handle)
Open the file using given string.
static void FileLibrary_Close(FileHandle *handle)
Close the file by the file handle.
static bool FileLibrary_Delete(const char *filePath)
Delete a file from disk.
static bool FileLibrary_CopyFile(std::string srcFilePath, std::string dstFilePath)
Copy a file to dst path.
static bool FileLibrary_Read_Line(const FileHandle *handle, uint64_t max_length, char *line_buf, uint64_t *out_line_length)
Read one line from the current file handle pointer, and move pointer the same size.
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.
static std::string FileLibrary_SaveInExplore(const char *filter, HWND hwnd)
Select a file to save in explore.
static std::string FileLibrary_OpenInExplore(const char *filter, HWND hwnd)
Select a file to open in explore.
static bool FileLibrary_Read_all_bytes(const FileHandle *handle, char *out_bytes, uint64_t *out_bytes_read)
Read all data form the current file handle pointer.
File Static Function Library.
Definition FileLibrary.h:49
virtual ~GltfAccessors() override=default
Destructor Function.
GltfAccessors(const Json &data)
Constructor Function.
std::vector< Item > m_AccessorsData
Data of Gltf Json Accessors.
Wrapper of Gltf Json Accessors.
GltfAnimations(const Json &data)
Constructor Function.
virtual ~GltfAnimations() override=default
Destructor Function.
Wrapper of Gltf Json Animations.
GltfAsset(const Json &data)
Constructor Function.
Definition GltfAsset.h:36
virtual ~GltfAsset() override=default
Destructor Function.
Item m_AssetData
Data of Gltf Json Asset.
Definition GltfAsset.h:56
Wrapper of Gltf Json Asset.
Definition GltfAsset.h:17
virtual ~GltfBufferViews() override=default
Destructor Function.
std::vector< Item > m_BufferViewsData
Data of Gltf Json BufferViews.
GltfBufferViews(const Json &data)
Constructor Function.
Wrapper of Gltf Json BufferViews.
std::filesystem::path m_Path
gltf file directory path.
Definition GltfBuffers.h:88
std::vector< Item > m_BuffersData
Data of Gltf Json Buffers.
Definition GltfBuffers.h:93
virtual ~GltfBuffers() override=default
Destructor Function.
GltfBuffers(const Json &data, const std::filesystem::path &path)
Constructor Function.
Definition GltfBuffers.h:37
Wrapper of Gltf Json Buffers.
Definition GltfBuffers.h:17
virtual ~GltfCameras() override=default
Destructor Function.
std::vector< Item > m_CamerasData
Data of Gltf Json Cameras.
Definition GltfCameras.h:66
GltfCameras(const Json &data)
Constructor Function.
Definition GltfCameras.h:37
Wrapper of Gltf Json Cameras.
Definition GltfCameras.h:17
std::unique_ptr< GltfBufferViews > m_BufferViews
std::unique_ptr< GltfScene > m_Scene
std::unique_ptr< GltfTextures > m_Textures
std::unique_ptr< GltfMaterials > m_Materials
std::unique_ptr< GltfBuffers > m_Buffers
std::unique_ptr< GltfSamplers > m_Samplers
Entity CreateEntityRecursive(World *world, const std::string &tag, uint32_t node, const glm::mat4 &model, std::shared_ptr< LoadingState > loadingState)
Create Entity recursive from gltf file nodes.
std::unique_ptr< GltfAnimations > m_Animations
std::unique_ptr< GltfCameras > m_Cameras
std::unique_ptr< GltfAccessors > m_Accessors
std::unique_ptr< GltfImages > m_Images
std::unique_ptr< GltfNodes > m_Nodes
GltfCollection(const std::string &path)
Constructor Function.
std::unique_ptr< GltfSkins > m_Skins
std::unique_ptr< GltfAsset > m_Asset
void CreateEntity(World *world, const std::string &tag, Transform transform={})
Create Entity instance from gltf file.
std::unique_ptr< GltfScenes > m_Scenes
std::unique_ptr< GltfLights > m_Lights
virtual ~GltfCollection()=default
Destructor Function.
std::unique_ptr< GltfMeshes > m_Meshes
Wrapper of Gltf file data.
static glm::mat4 GetMatrix(const Json::array_t &accessor)
Turn a Json::array_t to glm::mat4.
static Json::array_t GetElementJsonArray(const Json::object_t &root, const char *path, Json::array_t pDefault)
Get array value in Json::object_t.
static int GetElementInt(const Json::object_t &root, const char *path, int pDefault)
Get int value in Json::object_t.
static glm::vec4 GetElementVector(Json::object_t &root, const char *path, glm::vec4 pDefault)
Get vec4 value in Json::object_t.
static std::string GetElementString(const Json::object_t &root, const char *path, const std::string &pDefault)
Get string value in Json::object_t.
static bool GetElementBoolean(const Json::object_t &root, const char *path, bool pDefault)
Get bool value in Json::object_t.
static int GetDimensions(const std::string &str)
Get Variable Type dimensions.
static uint32_t SizeOfFormat(VkFormat format)
static float GetElementFloat(const Json::object_t &root, const char *path, float pDefault)
Get float value in Json::object_t.
static void SplitGltfAttribute(std::string attribute, std::string *semanticName, uint32_t *semanticIndex)
Split digital number in attribute.
static int GetFormatSize(int id)
Get Variable Type bytes.
static type GetElement(const Json::object_t *pRoot, const char *path, type pDefault)
Get specific type in Json::object_t.
Definition GltfHelper.h:130
static VkFormat GetFormat(const std::string &str, int id)
static glm::vec4 GetVector(const Json::array_t &accessor)
Turn a Json::array_t to glm::vec4.
Static functions to help resolve Gltf json.
Definition GltfHelper.h:17
GltfImages(const Json &data, const std::filesystem::path &path)
Constructor Function.
Definition GltfImages.h:39
std::vector< Item > m_ImagesData
Data of Gltf Json Cameras.
Definition GltfImages.h:84
std::filesystem::path m_Path
gltf file directory path.
Definition GltfImages.h:79
virtual ~GltfImages() override=default
Destructor Function.
Wrapper of Gltf Json Images.
Definition GltfImages.h:21
std::vector< Item > m_LightsData
Data of Gltf Json Lights.
Definition GltfLights.h:77
GltfLights(const Json &data)
Constructor Function.
Definition GltfLights.h:42
virtual ~GltfLights() override=default
Destructor Function.
Wrapper of Gltf Json Lights.
Definition GltfLights.h:18
Loader of load gltf file or items.
Definition GltfLoader.h:23
GltfMaterials(const Json &data)
Constructor Function.
std::vector< Item > m_MaterialsData
Data of Gltf Json Materials.
virtual ~GltfMaterials() override=default
Destructor Function.
Wrapper of Gltf Json Materials.
GltfMeshes(const Json &data)
Constructor Function.
Definition GltfMeshes.h:50
std::vector< Item > m_MeshesData
Data of Gltf Json Meshes.
Definition GltfMeshes.h:106
size_t GetNMeshes()
Get MeshesData Size.
Definition GltfMeshes.h:99
virtual ~GltfMeshes() override=default
Destructor Function.
Wrapper of Gltf Json Meshes.
Definition GltfMeshes.h:17
GltfNodes(const Json &data)
Constructor Function.
Definition GltfNodes.h:44
virtual ~GltfNodes() override=default
Destructor Function.
std::vector< Item > m_NodesData
Data of Gltf Json Nodes.
Definition GltfNodes.h:96
Wrapper of Gltf Json Nodes.
Definition GltfNodes.h:19
GltfObject(const Json &data)
Constructor Function.
Definition GltfObject.h:33
Json m_Data
Specific Json element.
Definition GltfObject.h:45
virtual ~GltfObject()=default
Destructor Function.
Wrapper of Gltf Json element.
Definition GltfObject.h:19
GltfPack Class. This class defines gltf type meshPack.
Definition GltfPack.h:19
virtual ~GltfSamplers() override=default
Destructor Function.
std::vector< Item > m_SamplersData
Data of Gltf Json Samplers.
GltfSamplers(const Json &data)
Constructor Function.
Wrapper of Gltf Json Samplers.
This Class is inherited from KeyEvent Class.
Definition KeyEvent.h:57
void MouseZoom(float delta)
bool OnKeyPressed(KeyPressedEvent &e)
glm::vec3 GetForwardDirection() const
glm::vec3 GetRightDirection() const
virtual void OnEvent(Event &e) override
This interface defines the behaves on specific component event happened.
virtual void OnTick(TimeStep &ts) override
This interface defines the behaves on specific component tick every frame.
virtual void OnSerialize() override
This interface defines how to serialize.
virtual void OnDeSerialize() override
This interface defines how to deserialize.
std::pair< float, float > PanSpeed() const
virtual ~MeshController() override=default
void MouseRotate(const glm::vec2 &delta) const
glm::vec3 CalculatePosition() const
virtual void OnConstruction() override
This interface defines the behaves on specific component added.
glm::quat GetOrientation() const
void MousePan(const glm::vec2 &delta)
glm::vec3 GetUpDirection() const
This Class is inherited from Event Class.
Definition MouseEvent.h:86
NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent....
virtual void OnSystemShutDown() override
This interface defines the behave on specific system shutdown. Called when system poped from SystemMa...
virtual void OnSystemInitialize() override
This interface defines the behave on specific system initialized. Called when system Pushed to System...
ResourceSystem(const std::string &systemName)
Constructor Function. Init class variable. Usually call it.
virtual void OnSystemUpdate(TimeStep &ts) override
This interface defines the behave on specific system updated every frame.
static std::vector< std::string > m_ResourceSearchFolder
Registry Resource Search Folder.
virtual ~ResourceSystem() override=default
Destructor Function.
static const std::vector< std::string > & GetSearchFolder()
Get Resource Search Folder.
static void RegistryResourceFolder(const std::string &folder)
Registry Resource Search Folder.
virtual void OnEvent(Event &event) override
This interface defines the behave on global event function pointer is called.
ResourceSystem Class. Handles resource load/unload event.
This Class is inherited from Event Class. Called by Viewport Resize.
Definition SlateEvent.h:18
static std::string WCharToChar(const wchar_t *wc)
Transform wide char to char.
static std::wstring CharToWChar(const char *c)
Transform char to wide char.
static bool StringsEqual(const char *str0, const char *str1)
Determine if the strings given are equal. Platform Specific.
static std::vector< std::string > SplitString(const std::string &input, char delimiter)
Split a string to a string vector container use a char.
String Static Function Library.
void OnEvent(Event &event)
The root event function pointer.
SystemManager()
Constructor Function.
static void Run(TimeStep &ts)
Update all system that pushed to this manager.
static SystemManager & Get()
Get Static SystemManager.
static std::unique_ptr< SystemManager > m_SystemManager
Static SystemManager variable.
SystemManager & PushSystem(Args &&... args)
Push a system to this manager.
SystemManager(const SystemManager &)=delete
Copy Constructor Function.
virtual ~SystemManager()
Destructor Function.
SystemManager & PopSystem(const std::string &systemName)
Push a system to this manager.
static scl::linked_unordered_map< std::string, std::shared_ptr< System > > m_Identities
Static System Map.
SystemManager & operator=(const SystemManager &)=delete
Copy Assignment Operation.
SystemManager Class. This class defines the behave of SystemManager.
virtual ~System()=default
Destructor Function.
System & operator=(const System &)=delete
Copy Assignment Operation.
virtual void OnSystemShutDown()
This interface defines the behave on specific system shutdown. Called when system poped from SystemMa...
std::string m_SystemName
Specific system name.
virtual void OnSystemUpdate(TimeStep &ts)
This interface defines the behave on specific system updated every frame.
System(const std::string &systemName)
Constructor Function. Init class variable. Usually call it.
System(const System &)=delete
Copy Constructor Function.
virtual void OnEvent(Event &event)
This interface defines the behave on global event function pointer is called.
virtual void OnSystemInitialize()
This interface defines the behave on specific system initialized. Called when system Pushed to System...
System Class. This class defines the basic behaves of System. When we create an new System,...
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22
TransformComponent Class. This class defines the specific behaves of TransformComponent.
UUIDComponent Class. This class defines the specific behaves of UUIDComponent.
This class helps to generate a uuid for one resource.
Definition UUID.h:16
This Class is a Wrapper of VulkanBuffer.
Builder & SetPoolFlags(VkDescriptorPoolCreateFlags flags)
Add a type identify to VkDescriptorPool.
Builder & AddPoolSize(VkDescriptorType descriptorType, uint32_t count)
Add a size of specific descriptor type.
Builder()=default
Constructor Function.
std::shared_ptr< VulkanDescriptorPool > Build(VulkanState &vulkanState) const
Build a shared pointer of VulkanDescriptorPool.
std::vector< VkDescriptorPoolSize > m_PoolSizes
The vector of specific descriptor type's max count.
virtual ~Builder()=default
Destructor Function.
uint32_t m_MaxSets
The max descriptor set nums that this pool can assign.
VkDescriptorPoolCreateFlags m_PoolFlags
The specific VkDescriptorPool type identify.
VulkanDescriptorPool::Builder Class. This class is defines how to build a VulkanDescriptorPool.
VkDescriptorPool & GetPool()
Get the VkDescriptorPool this class wrapped.
VkDescriptorPool m_DescriptorPool
The VkDescriptorPool this class wrapped.
VulkanDescriptorPool(VulkanState &vulkanState, uint32_t maxSets, VkDescriptorPoolCreateFlags poolFlags, const std::vector< VkDescriptorPoolSize > &poolSizes)
Constructor Function.
virtual ~VulkanDescriptorPool() override
Destructor Function.
void ResetPool() const
Reset this pool.
VulkanDescriptorPool Class. This class is the wrapper of VkDescriptorPool.
void BuildDescriptorSetLayout(const std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > &bindings, const std::string &caption="")
Build a VkDescriptorSetLayout with bindings.
virtual ~VulkanDescriptorSetLayout() override
Destructor Function.
VulkanDescriptorSetLayout(VulkanState &vulkanState)
Constructor Function.
void BuildBindLessTextureDescriptorSetLayout(const std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > &bindings, const std::string &caption="")
Build a bindLess texture VkDescriptorSetLayout with bindings.
VkDescriptorSetLayout m_Layout
The VkDescriptorSetLayout this class handled.
VkDescriptorSetLayout & Get()
Get a VkDescriptorSetLayout.
This Class is a Wrapper of VkDescriptorSetLayout. Usually used as a member variable in VulkanDescript...
void BuildBindLessTextureDescriptorSet(const std::string &creatorName)
Build this bind less.
void UpdateBindLessTextureDescriptorSet(ImageInfo &imageInfo) const
Update this bind less descriptor set.
VkDescriptorSet & Get()
Get a VkDescriptorSet.
virtual ~VulkanDescriptorSet() override
Destructor Function.
void UpdateDescriptorSet(ImageInfo &imageInfo, BufferInfo &bufferInfo, const VkAccelerationStructureKHR &accel=VK_NULL_HANDLE) const
Update this descriptor set.
VulkanDescriptorSet(VulkanState &vulkanState, std::shared_ptr< VulkanDescriptorPool > pool)
Constructor Function.
VulkanDescriptorSetLayout m_Layout
The VulkanDescriptorSetLayout this descriptor set in use.
std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > m_Bindings
The bindings this descriptor set in use.
void AddBinding(uint32_t binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, uint32_t count=1)
Add a binding to this descriptor set.
void UpdateDescriptorSet(uint32_t binding, const VkAccelerationStructureKHR &accel) const
Update this descriptor set.
std::shared_ptr< VulkanDescriptorPool > m_Pool
The VulkanDescriptorPool this descriptor set in use.
VkDescriptorSetLayout & GetRowSetLayout()
Get a VkDescriptorSetLayout.
void UpdateDescriptorSet(BufferInfo &bufferInfo) const
Update this descriptor set.
void UpdateDescriptorSet(uint32_t binding, std::shared_ptr< VulkanBuffer > buffer) const
Update this descriptor set.
VkDescriptorSet m_DescriptorSet
The VkDescriptorSet this class handled.
void BuildDescriptorSet(const std::string &creatorName)
Build this.
This Class is a wrapper of VkDescriptorSet.
VulkanObject(VulkanState &vulkanState)
Constructor Function. Init member variables.
VulkanObject Class. This class defines the basic behaves of VulkanObject. When we create an new Vulka...
virtual void OnDeactivate() override
This interface defines the specific world behave after on activated.
virtual void OnActivate(TimeStep &ts) override
This interface define the specific world behave on activated.
virtual void OnPreActivate() override
This interface define the specific world behave before on activated.
void RemoveFromRoot(Entity &entity)
Remove a entity from this world root.
Definition World.cpp:58
void AddToRoot(Entity &entity)
Add a entity to this world root.
Definition World.cpp:67
World Class. This class defines the basic behaves of World. When we create an new world,...
Definition World.h:41
The container combines hashmap and list together. Used in the case that we want iter a hashmap in ord...
FileModes
file mode
Definition FileLibrary.h:32
@ FILE_MODE_READ
model : read
Definition FileLibrary.h:37
@ FILE_MODE_WRITE
model : write
Definition FileLibrary.h:42
void * handle
FILE* handle. Need cast while use.
Definition FileLibrary.h:21
bool is_valid
Is this handle Valid.
Definition FileLibrary.h:26
This Struct is FILE* handle pointer Wrapper.
Definition FileLibrary.h:15
Accessors Item data.
std::string generator
Definition GltfAsset.h:25
Asset Item data.
Definition GltfAsset.h:24
BufferViews Item data.
std::unique_ptr< std::vector< char > > buffer
Definition GltfBuffers.h:27
Buffers Item data.
Definition GltfBuffers.h:24
Cameras Item data.
Definition GltfCameras.h:24
Images Item data.
Definition GltfImages.h:28
Lights Item data.
Definition GltfLights.h:25
std::optional< int > occlusionTexture
std::optional< int > normalTexture
std::optional< int > emissiveTexture
std::optional< int > baseColorTexture
std::optional< int > metallicRoughnessTexture
Materials Item data.
std::vector< Primitive > primitives
Definition GltfMeshes.h:41
Meshes Item data.
Definition GltfMeshes.h:39
Primitive Item data.
Definition GltfMeshes.h:24
std::vector< uint32_t > children
Definition GltfNodes.h:28
Nodes Item data.
Definition GltfNodes.h:26
Samplers Item data.
Wrapper of 3D Transform.
Definition Transform.h:16
This struct contains all Vulkan object in used global.
Definition VulkanUtils.h:74