[][src]Module bvh_anim::ffi

The ffi interface to the bvh_anim crate. You must enable the ffi feature to access this module.

Features

The ffi module defines a C-compatible interface for the bvh_anim crate, as well as the methods: Bvh::from_ffi and Bvh::into_ffi Bvh::into_ffi.

Structs

InvalidAllocator

An error type returned from bvh_AllocCallbacks::validate bvh_AllocCallbacks::validate.

bvh_AllocCallbacks

A struct which wraps all allocation functions together for convenience.

bvh_BvhFile

A struct representing a bvh file.

bvh_Channel

A channel composed of a bvh_ChannelType and an index into the bvh_BvhFile::bvh_motion_data array to which it corresponds.

bvh_Joint

A single joint in the HIERARCHY section of a bvh_BvhFile.

bvh_Offset

A type representing an OFFSET position.

Enums

bvh_ChannelType

A channel type representing a degree of freedom along which a joint may move.

Statics

BVH_ALLOCATOR_DEFAULT

The default allocator, which uses the rust allocator (which is the system allocator by default).

Functions

bvh_destroy

Destroy the bvh_BvhFile, cleaning up all memory.

bvh_duplicate

Duplicates the data of bvh_file into clone.

bvh_get_frame

Get the array of channels at frame_num from bvh_file.

bvh_parse

Parse bvh_string as a bvh file, and write the data to out_bvh.

bvh_read

Read the contents of bvh_file, and write the data to out_bvh.

bvh_to_string

Writes the bvh_file to the string out_buffer, and the length of the output string (including null terminator) to out_buffer_len.

Type Definitions

bvh_AllocFunction

Type alias for a function used to allocate memory.

bvh_FreeFunction

Type alias for a function used to free memory.