namespace Needle.Engine.Gltf { public static class GltfJsonPointer { /// /// Path to gltf node /// public static string AsNodeJsonPointer(this int nodeId) => "/nodes/" + nodeId; /// /// Path to mesh /// public static string AsMeshPointer(this int index) => "/meshes/" + index; /// /// Path to material /// public static string AsMaterialPointer(this int index) => "/materials/" + index; /// /// Path to texture /// public static string AsTexturePointer(this int index) => "/textures/" + index; /// /// Path to animation /// public static string AsAnimationPointer(this int index) => "/animations/" + index; /// /// Path to entry in root extension /// public static string AsExtensionPointer(this string ext, int index = -1) { var path = "/extensions/" + ext; if (index >= 0) path += "/" + index; return path; } } }