Esc

Gltf_Error

structextensionsince 0.36.1Source
  • macOS: Gltf_Error works on macOS
  • Linux: Gltf_Error works on Linux
  • Windows: Gltf_Error works on Windows
  • Wasm: Gltf_Error works on Wasm

Declaration

Gltf_Error :: struct {
    kind: Gltf_Error_Kind;    message: string;// byte offset in the input, when known    offset: s64;// JSON pointer to the offending value, such as /accessors/3    path: string;}

The outcome of a glTF operation; kind is .NONE on success. Release it with gltf_error_free.

Example↗
_, error := gltf_load("glTF");
assert(error.kind == .CONTAINER);
gltf_error_free(*error);
assert(error.message.count == 0);

See also