inochi2d.cffi

Inochi2D C FFI

Members

Aliases

in_blend_mode_t
alias in_blend_mode_t = uint

Blending modes

in_drawstate_t
alias in_drawstate_t = uint

DrawState flags

in_mask_mode_t
alias in_mask_mode_t = uint

Masking modes

quark_t
alias quark_t = uint

A quark.

Enums

IN_BLEND_MODE_NORMAL
anonymousenum IN_BLEND_MODE_NORMAL
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
IN_DRAW_STATE_NORMAL
anonymousenum IN_DRAW_STATE_NORMAL
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
IN_MASK_MODE_MASK
anonymousenum IN_MASK_MODE_MASK
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

in_as_animated_part
in_animated_part_t* in_as_animated_part(in_node_t* self)

Casts the given node to a animated part.

in_as_bone
in_bone_t* in_as_bone(in_node_t* self)

Casts the given node to a bone.

in_as_bone_modifier
in_bone_modifier_t* in_as_bone_modifier(in_node_t* self)

Casts the given node to a bone modifier.

in_as_composite
in_composite_t* in_as_composite(in_node_t* self)

Casts the given node to a composite.

in_as_deformer
in_deformer_t* in_as_deformer(in_node_t* self)

Casts the given node to a deformer.

in_as_mask
in_mask_t* in_as_mask(in_node_t* self)

Casts the given node to a mask.

in_as_part
in_part_t* in_as_part(in_node_t* self)

Casts the given node to a part.

in_as_solo
in_solo_t* in_as_solo(in_node_t* self)

Casts the given node to a solo.

in_as_visual
in_visual_t* in_as_visual(in_node_t* self)

Casts the given node to a visual.

in_composite_get_blend_mode
in_blend_mode_t in_composite_get_blend_mode(in_composite_t* self)

Gets the blending mode of the given composite.

in_composite_get_opacity
float in_composite_get_opacity(in_composite_t* self)

Gets the opacity of the given composite.

in_composite_set_blend_mode
void in_composite_set_blend_mode(in_composite_t* self, in_blend_mode_t value)

Sets the blending mode of the given composite.

in_composite_set_opacity
void in_composite_set_opacity(in_composite_t* self, float value)

Sets the opacity of the given composite.

in_drawlist_get_allocations
in_drawalloc_t* in_drawlist_get_allocations(in_drawlist_t* obj, uint count)

Gets all of the allocated meshes of the drawlist.

in_drawlist_get_commands
in_drawcmd_t* in_drawlist_get_commands(in_drawlist_t* obj, uint count)

Gets all of the commands stored in the draw list for iteration.

in_drawlist_get_index_data
void* in_drawlist_get_index_data(in_drawlist_t* obj, uint bytes)

Gets all of the index data stored in the draw list.

in_drawlist_get_use_base_vertex
bool in_drawlist_get_use_base_vertex(in_drawlist_t* obj)

Gets whether the draw list uses base vertex offsets.

in_drawlist_get_vertex_data
in_vtxdata_t* in_drawlist_get_vertex_data(in_drawlist_t* obj, uint bytes)

Gets all of the vertex data stored in the draw list.

in_drawlist_set_use_base_vertex
void in_drawlist_set_use_base_vertex(in_drawlist_t* obj, bool value)

Sets whether the draw list uses base vertex offsets.

in_node_get_children
in_node_t** in_node_get_children(in_node_t* self, uint* count)

Gets the child nodes of the given node.

in_node_get_enabled
bool in_node_get_enabled(in_node_t* self)

Gets whether the node is enabled.

in_node_get_guid
const(in_guid_t)* in_node_get_guid(in_node_t* self)

Gets the GUID of a node.

in_node_get_lock_to_root
bool in_node_get_lock_to_root(in_node_t* self)

Gets whether the node's transform is locked to the root node.

in_node_get_name
const(char)* in_node_get_name(in_node_t* self)

Gets the name of the node.

in_node_get_parent
in_node_t* in_node_get_parent(in_node_t* self)

Gets the parent node of the given node.

in_node_get_properties
const(quark_t)* in_node_get_properties(in_node_t* self, uint count)

Gets all the property keys for the given node.

in_node_get_property
float in_node_get_property(in_node_t* self, quark_t key)

Gets the value of the given property.

in_node_get_property_default
float in_node_get_property_default(in_node_t* self, quark_t key)

Gets the default value of the given property.

in_node_get_puppet
in_puppet_t* in_node_get_puppet(in_node_t* self)

Gets the puppet that the node belongs to.

in_node_get_tree_depth
uint in_node_get_tree_depth(in_node_t* self)

Gets the depth of the node in the node tree.

in_node_get_type
const(char)* in_node_get_type(in_node_t* self)

Gets the type of the node.

in_node_has_property
bool in_node_has_property(in_node_t* self, quark_t key)

Gets whether the node has the given property.

in_node_new
in_node_t* in_node_new(in_node_t* parent)

Creates a new basic node, optionally parented to the given node.

in_node_part_get_mesh_effects
in_mesh_effect_t** in_node_part_get_mesh_effects(in_part_t* self, uint count)

Gets the mesh effects attached to a node.

in_node_reset_properties
void in_node_reset_properties(in_node_t* self)

Resets the values of all properties in the node.

in_node_reset_property
void in_node_reset_property(in_node_t* self, quark_t key)

Resets the value of the given property.

in_node_set_enabled
void in_node_set_enabled(in_node_t* self, bool value)

Sets whether the node is enabled.

in_node_set_lock_to_root
void in_node_set_lock_to_root(in_node_t* self, bool value)

Sets whether the node's transform is locked to the root node.

in_node_set_parent
void in_node_set_parent(in_node_t* self, in_node_t* parent)

Sets the parent of the given node.

in_node_set_property
void in_node_set_property(in_node_t* self, quark_t key, float value)

Sets the value of the given property.

in_parameter_get_active
bool in_parameter_get_active(in_parameter_t* obj)

Gets whether the parameter is active.

in_parameter_get_dimensions
uint in_parameter_get_dimensions(in_parameter_t* obj)

Gets how many dimensions the parameter has.

in_parameter_get_lower_bounds
const(float)* in_parameter_get_lower_bounds(in_parameter_t* obj)

Gets the parameter's lower bounds.

in_parameter_get_name
const(char)* in_parameter_get_name(in_parameter_t* obj)

Gets the name of the parameter.

in_parameter_get_upper_bounds
const(float)* in_parameter_get_upper_bounds(in_parameter_t* obj)

Gets the parameter's upper bounds.

in_parameter_get_value
float* in_parameter_get_value(in_parameter_t* obj)

Gets the parameter's current value.

in_parameter_set_value
void in_parameter_set_value(in_parameter_t* obj, float* values)

Sets the parameter's current value.

in_part_add_effect
void in_part_add_effect(in_part_t* self, in_mesh_effect_t* effect)

Adds a mesh effect to the part.

in_part_get_blend_mode
in_blend_mode_t in_part_get_blend_mode(in_part_t* self)

Gets the blending mode of the given part.

in_part_get_emission
float in_part_get_emission(in_part_t* self)

Gets the emission strength of the given part.

in_part_get_mesh
in_mesh_t* in_part_get_mesh(in_part_t* self)

Gets the mesh of a part.

in_part_get_opacity
float in_part_get_opacity(in_part_t* self)

Gets the opacity of the given part.

in_part_remove_effect
void in_part_remove_effect(in_part_t* self, in_mesh_effect_t* effect)

Removes a given mesh effect from the part.

in_part_set_blend_mode
void in_part_set_blend_mode(in_part_t* self, in_blend_mode_t value)

Sets the blending mode of the given part.

in_part_set_emission
void in_part_set_emission(in_part_t* self, float value)

Sets the emission strength of the given part.

in_part_set_opacity
void in_part_set_opacity(in_part_t* self, float value)

Sets the opacity of the given part.

in_puppet_draw
void in_puppet_draw(in_puppet_t* obj, float delta)

Draws a puppet.

in_puppet_free
void in_puppet_free(in_puppet_t* obj)

Frees a puppet from memory.

in_puppet_get_author
const(char)* in_puppet_get_author(in_puppet_t* obj)

Gets the author of a puppet.

in_puppet_get_drawlist
in_drawlist_t* in_puppet_get_drawlist(in_puppet_t* obj)

Gets the puppet's draw list.

in_puppet_get_gravity
float in_puppet_get_gravity(in_puppet_t* obj)

Gets the gravity constant for the puppet.

in_puppet_get_name
const(char)* in_puppet_get_name(in_puppet_t* obj)

Gets the name of a puppet.

in_puppet_get_parameters
in_parameter_t** in_puppet_get_parameters(in_puppet_t* obj, uint count)

Gets the parameters of the puppet.

in_puppet_get_physics_enabled
bool in_puppet_get_physics_enabled(in_puppet_t* obj)

Gets whether to calculate physics for the puppet.

in_puppet_get_pixels_per_meter
float in_puppet_get_pixels_per_meter(in_puppet_t* obj)

Gets the pixel-to-meter unit mapping for the physics system.

in_puppet_get_root_node
in_node_t* in_puppet_get_root_node(in_puppet_t* self)

Gets the root node of the puppet.

in_puppet_get_texture_cache
in_texture_cache_t* in_puppet_get_texture_cache(in_puppet_t* obj)

Gets the texture cache belonging to the puppet.

in_puppet_load
in_puppet_t* in_puppet_load(const(char)* file, io_sink_t* sink)

Loads a puppet into memory.

in_puppet_load_from_memory
in_puppet_t* in_puppet_load_from_memory(const(ubyte)* data, uint length, io_sink_t* sink)

Loads a puppet into memory.

in_puppet_reset_drivers
void in_puppet_reset_drivers(in_puppet_t* obj)

Resets the physics state for the puppet.

in_puppet_set_gravity
void in_puppet_set_gravity(in_puppet_t* obj, float value)

Sets the gravity constant for the puppet.

in_puppet_set_physics_enabled
void in_puppet_set_physics_enabled(in_puppet_t* obj, bool value)

Sets whether to calculate physics for the puppet.

in_puppet_set_pixels_per_meter
void in_puppet_set_pixels_per_meter(in_puppet_t* obj, float value)

Sets the pixel-to-meter unit mapping for the physics system.

in_puppet_update
void in_puppet_update(in_puppet_t* obj, float delta)

Updates a puppet.

in_release
void* in_release(void* obj)

Releases a reference to a Inochi2D Object.

in_resource_get_id
void* in_resource_get_id(in_resource_t* obj)

Gets the renderer ID of the resource.

in_resource_get_length
uint in_resource_get_length(in_resource_t* obj)

Gets the length of the resource in bytes.

in_resource_set_id
void in_resource_set_id(in_resource_t* obj, void* value)

Sets the renderer ID of the resource.

in_retain
void* in_retain(void* obj)

Retains a reference to a Inochi2D Object.

in_texture_cache_get_size
uint in_texture_cache_get_size(in_texture_cache_t* obj)

Gets the size (amount of textures) of the texture cache.

in_texture_cache_get_texture
in_texture_t* in_texture_cache_get_texture(in_texture_cache_t* obj, uint slot)

Gets a texture from the cache.

in_texture_cache_get_textures
in_texture_t** in_texture_cache_get_textures(in_texture_cache_t* obj, uint count)

Gets a texture from the cache.

in_texture_cache_prune
void in_texture_cache_prune(in_texture_cache_t* obj)

Prunes the texture cache of unreferenced textures.

in_texture_flip_vertically
void in_texture_flip_vertically(in_texture_t* obj)

Flips the texture's data vertically. Some engines read in a different direction from Inochi2D.

in_texture_from_resource
in_texture_t* in_texture_from_resource(in_resource_t* obj)

Creates a texture from a resource.

in_texture_get_channels
uint in_texture_get_channels(in_texture_t* obj)

Gets the channels of the texture.

in_texture_get_height
uint in_texture_get_height(in_texture_t* obj)

Gets the height of the texture in pixels.

in_texture_get_pixels
void* in_texture_get_pixels(in_texture_t* obj)

Gets the pixels of the texture.

in_texture_get_width
uint in_texture_get_width(in_texture_t* obj)

Gets the width of the texture in pixels.

in_texture_pad
void in_texture_pad(in_texture_t* obj, uint thickness)

Pads the texture with a border.

in_texture_premultiply
void in_texture_premultiply(in_texture_t* obj)

Premultiplies the alpha channel of the texture.

in_texture_unpremultiply
void in_texture_unpremultiply(in_texture_t* obj)

Un-premultiplies the alpha channel of the texture.

in_visual_get_is_delegated
bool in_visual_get_is_delegated(in_visual_t* self)

Gets whether the renderer should delegate rendering logic to the visual node.

in_visual_get_is_masking
bool in_visual_get_is_masking(in_visual_t* self)

Gets whether the node can be used as a source of masking operations.

in_visual_get_zsort
int in_visual_get_zsort(in_visual_t* self)

Gets the z-sorting value of the given visual.

in_visual_get_zsort_render
int in_visual_get_zsort_render(in_visual_t* self)

Gets the render-time z-sorting value for the given visual.

in_visual_set_zsort
void in_visual_set_zsort(in_visual_t* self, int value)

Sets the z-sorting value of the given visual.

quarkof
quark_t quarkof(const(char)* key)

Gets the quark associated with the given key string.

Structs

in_animated_part_t
struct in_animated_part_t

Opaque handle for a animated part node.

in_bone_modifier_t
struct in_bone_modifier_t

Opaque handle for a bone modifier node.

in_bone_t
struct in_bone_t

Opaque handle for a bone node.

in_composite_t
struct in_composite_t

Opaque handle for a compsite node.

in_deformer_t
struct in_deformer_t

Opaque handle for a deformer node.

in_drawalloc_t
struct in_drawalloc_t

A drawlist mesh allocation

in_drawcmd_t
struct in_drawcmd_t

A drawing command from the Inochi2D draw list

in_drawlist_t
struct in_drawlist_t

Opaque handle for a drawlist.

in_guid_t
struct in_guid_t

A GUID.

in_mask_t
struct in_mask_t

Opaque handle for a mask node.

in_mesh_effect_t
struct in_mesh_effect_t

Opaque handle for a mesh effect.

in_mesh_t
struct in_mesh_t

Opaque handle for a mesh.

in_node_t
struct in_node_t

Opaque handle for a node.

in_parameter_t
struct in_parameter_t

Opaque handle to a parameter.

in_part_t
struct in_part_t

Opaque handle for a part node.

in_puppet_t
struct in_puppet_t

Opaque handle to a puppet.

in_resource_t
struct in_resource_t

Opaque handle for a resource that can be transferred between CPU and GPU.

in_solo_t
struct in_solo_t

Opaque handle for a solo node.

in_texture_cache_t
struct in_texture_cache_t

Opaque handle for a texture cache.

in_texture_t
struct in_texture_t

Opaque handle for a texture.

in_vec2_t
struct in_vec2_t

2D Vector

in_visual_t
struct in_visual_t

Opaque handle for a visual node.

in_vtx_t
struct in_vtx_t

Vertex position vector.

in_vtxdata_t
struct in_vtxdata_t

A single vertex in the renderer.

io_sink_t
struct io_sink_t

IO sink functions

Meta

Authors

Luna Nielsen