Structs§
- Audio
Clip Info - Struct for providing information about an audio clip.
- Gltf
Flags - Material
Desc - Mesh
Gltf - Mesh
Gltf Named - Mesh
Gltf Resource - Mesh
Properties - Mesh properties
- MeshRaw
Deprecated - Mesh
RawBits bytemuck-generated type for internal purposes only.- Mesh
RawWith Material Deprecated - Mesh
RawWith Material AndName - Mesh
RawWith Material AndName Bits bytemuck-generated type for internal purposes only.- Mesh
RawWith Material Bits bytemuck-generated type for internal purposes only.- Mesh
RawWith Name - Mesh
RawWith Name Bits bytemuck-generated type for internal purposes only.- Mesh
Simplified - Mesh
Simplified Flags - Mesh
Stream Layout - Mesh
Stream Layout Bits bytemuck-generated type for internal purposes only.- Mesh
Style Flags - Mesh
Visibility Flags - Message
- Message
Range AndReceiver - Player
IdSet - Player
IdSet Flags - RawAudio
Module Data - RawRender
Module Data - Ray
- Ray, a line through space with a starting point and a direction.
- SdfSkin
Info - Value
Enums§
- Component
Type - Create
Data Type - Type used to describe a data object created using either
world__create_dataor by the host. - Entity
Template - Mesh
Component Format - Mesh component format for a stream
- Mesh
Primitive Topology - Mesh primitive topology
- Mesh
Stream Semantic - Mesh semantic to describe what a stream contains
- Retrieve
Data Type - Type describing what data to retrieve with
world__retrieve_data - World
Data Type
Constants§
Statics§
- API
- FFI API
Functions§
- add_
component - Add a component and reset it to default values if it already exists.
- clone_
entities - Clones ‘entity_src’ from memory location to ‘entity_dst’, ‘entity_src’ and ‘entity_dst’ length should match unless ‘entity_src’ length is a divisor of ‘entity_dst’ length where the src entities are duplicated entity_dst_len / entity_src_len times.
- copy_
component - create_
data - Create a data blob from this input data.
- create_
entity - create_
mesh_ from_ streams Deprecated - create_
named_ mesh_ from_ streams Deprecated - destroy_
data - Releases the ref count of a data object and destroys it if ref count reaches 0.
- destroy_
entity - destroy_
mesh Deprecated - get_
components - Returns the component types associated with a specific entity.
- get_
entity_ value_ checked - get_
mesh_ material_ count - get_
mesh_ material_ desc - get_
mesh_ material_ name - TODO: Replace in future version that returns
Stringparameter directly - get_
mesh_ morph_ target_ count - get_
mesh_ morph_ target_ name - Get the name of a morph target.
The
nameparameter should have a size of at leastget_mesh_morph_target_name_len(handle, idx)TODO: Replace in future version that returnsStringparameter directly - get_
mesh_ morph_ target_ name_ len - TODO: Replace in future version that returns
Stringparameter directly - get_
mesh_ properties - get_
message_ counts message_struct_sizeis the size of the module struct to sanity check size and have a fallback for older modules if possible.entitiesis a list of entities for which to count messages.out_countsshould be the same size asentitiesand will after this call contain the amount of messages in the outbox of each entity.out_totalwill contain the sum of allout_countswhich is the number of messages you need to allocate space for if callingretrieve_messageswith the same list of entities.- has_
component - has_
message Deprecated - Returns > 0 if there’s a message to be read
- is_
valid_ data - Asks the host if the data referenced by
datais valid. - is_
valid_ entity - is_
valid_ mesh - pop_
message Deprecated - push_
message Deprecated - ray_
cast - remove_
component - retain_
data - Increases the ref count of a data object.
- retrieve_
data - A max_len of 0 should still give you out_len in that argument so that you can use this to allocate data and call it again with the right amount.
- retrieve_
messages message_struct_sizeis the size of the module struct to sanity check size and haveentitiesis a list of entities for which to retrieve messages.out_msgswill contain the messages of the outbox of each entity inentitiesafter a call to this function. Useget_message_countsto retrieve the total number of msgs to allocate the right amount of space.- send_
messages message_struct_sizeis the size of the module struct to sanity check size and have a fallback for older modules if possible.range_and_receievercontains a destination entity and a range of messages to be grabbed frommessagesand put into the inbox of the destination entity.messagesis a slice of messagesrange_and_receiverpoints into.- set_
entity_ value_ checked - set_
mesh_ offset - world__
add_ ⚠component - Add a component and reset it to default values if it already exists.
- world__
clone_ ⚠entities - Clones ‘entity_src’ from memory location to ‘entity_dst’, ‘entity_src’ and ‘entity_dst’ length should match unless ‘entity_src’ length is a divisor of ‘entity_dst’ length where the src entities are duplicated entity_dst_len / entity_src_len times.
- world__
copy_ ⚠component - world__
create_ ⚠data - Create a data blob from this input data.
- world__
create_ ⚠entity - world__
create_ ⚠mesh_ from_ streams Deprecated - world__
create_ ⚠named_ mesh_ from_ streams Deprecated - world__
destroy_ ⚠data - Releases the ref count of a data object and destroys it if ref count reaches 0.
- world__
destroy_ ⚠entity - world__
destroy_ ⚠mesh Deprecated - world__
get_ ⚠components - Returns the component types associated with a specific entity.
- world__
get_ ⚠entity_ value_ checked - world__
get_ ⚠mesh_ material_ count - world__
get_ ⚠mesh_ material_ desc - world__
get_ ⚠mesh_ material_ name - TODO: Replace in future version that returns
Stringparameter directly - world__
get_ ⚠mesh_ morph_ target_ count - world__
get_ ⚠mesh_ morph_ target_ name - Get the name of a morph target.
The
nameparameter should have a size of at leastget_mesh_morph_target_name_len(handle, idx)TODO: Replace in future version that returnsStringparameter directly - world__
get_ ⚠mesh_ morph_ target_ name_ len - TODO: Replace in future version that returns
Stringparameter directly - world__
get_ ⚠mesh_ properties - world__
get_ ⚠message_ counts message_struct_sizeis the size of the module struct to sanity check size and have a fallback for older modules if possible.entitiesis a list of entities for which to count messages.out_countsshould be the same size asentitiesand will after this call contain the amount of messages in the outbox of each entity.out_totalwill contain the sum of allout_countswhich is the number of messages you need to allocate space for if callingretrieve_messageswith the same list of entities.- world__
has_ ⚠component - world__
has_ ⚠message Deprecated - Returns > 0 if there’s a message to be read
- world__
is_ ⚠valid_ data - Asks the host if the data referenced by
datais valid. - world__
is_ ⚠valid_ entity - world__
is_ ⚠valid_ mesh - world__
pop_ ⚠message Deprecated - world__
push_ ⚠message Deprecated - world__
ray_ ⚠cast - world__
remove_ ⚠component - world__
retain_ ⚠data - Increases the ref count of a data object.
- world__
retrieve_ ⚠data - A max_len of 0 should still give you out_len in that argument so that you can use this to allocate data and call it again with the right amount.
- world__
retrieve_ ⚠messages message_struct_sizeis the size of the module struct to sanity check size and haveentitiesis a list of entities for which to retrieve messages.out_msgswill contain the messages of the outbox of each entity inentitiesafter a call to this function. Useget_message_countsto retrieve the total number of msgs to allocate the right amount of space.- world__
send_ ⚠messages message_struct_sizeis the size of the module struct to sanity check size and have a fallback for older modules if possible.range_and_receievercontains a destination entity and a range of messages to be grabbed frommessagesand put into the inbox of the destination entity.messagesis a slice of messagesrange_and_receiverpoints into.- world__
set_ ⚠entity_ value_ checked - world__
set_ ⚠mesh_ offset
Type Aliases§
- Data
Handle - Entity
Handle - Mesh
Handle - Resource
Handle Repr - A raw handle to a unique resource