Static functions to help resolve Gltf json. More...
#include <GltfHelper.h>
Public Types | |
| using | Json = nlohmann::json |
Static Public Member Functions | |
| static VkFormat | GetFormat (const std::string &str, int id) |
| static uint32_t | SizeOfFormat (VkFormat format) |
| static int | GetFormatSize (int id) |
| Get Variable Type bytes. | |
| static int | GetDimensions (const std::string &str) |
| Get Variable Type dimensions. | |
| static void | SplitGltfAttribute (std::string attribute, std::string *semanticName, uint32_t *semanticIndex) |
| Split digital number in attribute. | |
| static glm::vec4 | GetVector (const Json::array_t &accessor) |
| Turn a Json::array_t to glm::vec4. | |
| static glm::mat4 | GetMatrix (const Json::array_t &accessor) |
| Turn a Json::array_t to glm::mat4. | |
| static std::string | GetElementString (const Json::object_t &root, const char *path, const std::string &pDefault) |
| Get string value in Json::object_t. | |
| static float | GetElementFloat (const Json::object_t &root, const char *path, float pDefault) |
| Get float 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 bool | GetElementBoolean (const Json::object_t &root, const char *path, bool pDefault) |
| Get bool value in Json::object_t. | |
| 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 glm::vec4 | GetElementVector (Json::object_t &root, const char *path, glm::vec4 pDefault) |
| Get vec4 value in Json::object_t. | |
Static Private Member Functions | |
| template<class type > | |
| static type | GetElement (const Json::object_t *pRoot, const char *path, type pDefault) |
| Get specific type in Json::object_t. | |
Static functions to help resolve Gltf json.
Definition at line 16 of file GltfHelper.h.