Class ModelData¶
Note
Construct via the Class AniraWeb factory in most cases:
aniraWeb.ModelData(...) rather than new ModelData(...). The
factory threads the WASM instance through for you.
- class ModelData(wasmInstance, bufferOrPath, backend)¶
TypeScript wrapper for anira::ModelData Thread-safe C API wrapper
- Extends:
BaseWrapper
- Arguments:
wasmInstance (AniraWasmInstance)
bufferOrPath (string | ArrayBuffer)
backend (number)
- destroy()¶
Free the underlying C++ object. See Lifecycle and Cleanup for when to call this.
- equals(other)¶
- Arguments:
other (PossiblePointer<ModelData>)
- Returns:
boolean
- getBackend()¶
Mirrors the
anira::ModelData::m_backendfield.- Returns:
number
- getDataPtr()¶
Mirrors the
anira::ModelData::m_datafield.- Returns:
number
- getSize()¶
Mirrors the
anira::ModelData::m_sizefield.- Returns:
number
- isBinary()¶
Mirrors the
anira::ModelData::m_is_binaryfield.- Returns:
boolean
- notEquals(other)¶
- Arguments:
other (PossiblePointer<ModelData>)
- Returns:
boolean