Struct fields: units and defaults¶
Every field of every public struct, with the unit it is given in and its default. The default is what the header names, which is what the struct's *_defaults call sets (the library is run to check that they agree). A struct with no *_defaults call is zeroed by hand: where its header names another default, the cell gives both, "1 (0 in a zeroed struct)", and the C reference says what zero means for it. Where a 0 stands for a value the library works out, the cell says which, as the header does ("0: the file's own, else 30"). A value of "set" is a pointer the defaults fill in.
sona_error_info¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
codesona_result |
sona_result value; default 0 |
messageconst char * |
text (UTF-8), NULL: none; default NULL |
fixconst char * |
text (UTF-8), NULL: none; default NULL |
sona_allocator¶
Declared in sona.h; taken by sona_lipsync_create; held in sona_config and sona_players_config.
| Field and type | Unit and default |
|---|---|
allocvoid *(*alloc)(void *user, size_t size, size_t align) |
a function (NULL: none); default NULL |
freevoid (*free)(void *user, void *ptr, size_t size) |
a function (NULL: none); default NULL |
uservoid * |
pointer; default NULL |
sona_budget¶
Declared in sona.h; held in sona_config.
| Field and type | Unit and default |
|---|---|
totalsize_t |
bytes; default 0: no overall cap |
assetssize_t |
bytes; default 256 MiB (0 in a zeroed struct) |
clipssize_t |
bytes; default 32 MiB (0 in a zeroed struct) |
facessize_t |
bytes; default 64 MiB (0 in a zeroed struct) |
source_cachesize_t |
bytes; default 64 MiB (0 in a zeroed struct) |
gpu_idlesize_t |
bytes; default 64 MiB (0 in a zeroed struct) |
sona_jobs¶
Declared in sona.h; held in sona_config.
| Field and type | Unit and default |
|---|---|
uservoid * |
pointer; default NULL |
workersuint32_t |
count; default 0 |
runvoid (*run)(void *user, void (*fn)(void *arg), void *arg) |
a function (NULL: none); default NULL |
sona_http_request¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
methodconst char * |
text (UTF-8), NULL: none; default NULL |
urlconst char * |
text (UTF-8), NULL: none; default NULL |
headersconst char *const * |
text (UTF-8), NULL: none; default NULL |
bodyconst void * |
pointer; default NULL |
body_lensize_t |
bytes; default 0 |
timeout_msuint32_t |
ms; default 0 |
sona_http¶
Declared in sona.h; taken by sona_http_platform.
| Field and type | Unit and default |
|---|---|
uservoid * |
pointer; default NULL |
sendvoid (*send)(void *user, const sona_http_request *rq, sona_http_reply *reply) |
a function (NULL: none); default NULL |
sona_source¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
uservoid * |
pointer; default NULL |
readvoid (*read)(void *user, sona_read_kind kind, const char *name, sona_request *re |
a function (NULL: none); default NULL |
cancelvoid (*cancel)(void *user, sona_request *req) |
a function (NULL: none); default NULL |
destroyvoid (*destroy)(void *user) |
a function (NULL: none); default NULL |
sona_source_desc¶
Declared in sona.h; held in sona_config.
| Field and type | Unit and default |
|---|---|
kindsona_source_kind |
sona_source_kind value; default 0 |
locationconst char * |
text (UTF-8), NULL: none; default NULL |
customconst sona_source * |
pointer to sona_source; default NULL |
sona_config¶
Declared in sona.h; taken by sona_config_defaults, sona_open.
| Field and type | Unit and default |
|---|---|
abiuint32_t |
version number; default 1 |
app_idconst char * |
text (UTF-8), NULL: none; default NULL |
licenceconst void * |
pointer; default NULL |
licence_lensize_t |
bytes; default 0 |
sources[SONA_MAX_SOURCES]sona_source_desc |
a sona_source_desc (see its fields); default see its members |
source_countuint32_t |
count; default 0 |
httpconst sona_http * |
pointer to sona_http; default NULL |
allocatorsona_allocator |
a sona_allocator (see its fields); default see its members |
budgetsona_budget |
a sona_budget (see its fields); default see its members |
worker_threadsint32_t |
count; default -1 |
jobssona_jobs |
a sona_jobs (see its fields); default see its members |
seeduint32_t |
index or id; default 0: from the clock |
max_avatarsuint32_t |
count; default 256 |
build_budget_msfloat |
ms; default 6 |
face_sizeuint32_t |
px; default 0: auto (512 up to 4 avatars, 256 up to 32, else 128) |
flagsuint32_t |
bit flags; default 0 |
logvoid (*log)(void *user, int level, const char *msg) |
a function (NULL: none); default NULL |
log_uservoid * |
pointer; default NULL |
check_hostconst char * |
text (UTF-8), NULL: none; default NULL |
sona_abi_info¶
Declared in sona.h; taken by sona_abi_query.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
abiuint32_t |
version number; default 0 |
oldest_abiuint32_t |
version number; default 0 |
majoruint32_t |
version number; default 0 |
minoruint32_t |
version number; default 0 |
patchuint32_t |
version number; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_event¶
Declared in sona.h; taken by sona_poll_event.
| Field and type | Unit and default |
|---|---|
typesona_event_type |
sona_event_type value; default 0 |
avatarsona_avatar * |
pointer to sona_avatar; default NULL |
codesona_result |
sona_result value; default 0 |
messageconst char * |
text (UTF-8), NULL: none; default NULL |
fixconst char * |
text (UTF-8), NULL: none; default NULL |
sona_placement¶
Declared in sona.h; taken by sona_avatar_move; held in sona_add_options and sona_interaction_plan.
| Field and type | Unit and default |
|---|---|
position[3]float |
m (world units); default 0, 0, 0 |
turn_degfloat |
degrees; default 0 |
scalefloat |
factor (unitless); default 1 (0 in a zeroed struct) |
sona_add_options¶
Declared in sona.h; taken by sona_add_defaults, sona_avatar_add, sona_avatar_add_base64, sona_avatar_add_state, sona_avatar_add_waiting, sona_xsdk_add_player.
| Field and type | Unit and default |
|---|---|
placesona_placement |
a sona_placement (see its fields); default see its members |
clipconst char * |
text (UTF-8), NULL: none; default NULL |
loopint |
flag (0 or 1); default 1 |
speedfloat |
factor (1: as made); default 1 |
start_atfloat |
s; default 0 |
visibleint |
flag (0 or 1); default 1 |
priorityint32_t |
order (higher first); default 0 |
sona_play_options¶
Declared in sona.h; taken by sona_avatar_play, sona_avatar_crossfade, sona_avatar_queue, sona_avatar_play_stock.
| Field and type | Unit and default |
|---|---|
loopint |
flag (0 or 1); default 1 (0 in a zeroed struct) |
speedfloat |
factor (1: as made); default 1 (0 in a zeroed struct) |
fromfloat |
s; default 0 |
sona_capsule¶
Declared in sona.h; taken by sona_avatar_capsule.
| Field and type | Unit and default |
|---|---|
a[3]float |
m (world units); default 0, 0, 0 |
b[3]float |
m (world units); default 0, 0, 0 |
radiusfloat |
m (world units); default 0 |
sona_clip_event¶
Declared in sona.h; taken by sona_avatar_clip_events.
| Field and type | Unit and default |
|---|---|
kinduint32_t |
one of the values named in the header; default 0 |
markuint32_t |
index or id; default 0 |
clipint32_t |
index or id (-1: none); default 0 |
timefloat |
s; default 0 |
sona_layer_options¶
Declared in sona.h; taken by sona_layer_defaults, sona_avatar_layer_play, sona_avatar_layer_blend, sona_avatar_layer_machine.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
modeuint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 0 |
loopint32_t |
flag (0 or 1); default 1 |
weightfloat |
factor (unitless); default 1 |
fade_secondsfloat |
s; default 0.2 |
speedfloat |
factor (1: as made); default 1 |
fromfloat |
s; default 0 |
additive_reffloat |
s; default 0 |
reserveduint32_t |
reserved, zero; default 0 |
maskconst float * |
pointer; default NULL |
sona_layer_info¶
Declared in sona.h; taken by sona_avatar_layer_info.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
kinduint32_t |
one of the SONA_ values named; default 0 |
modeuint32_t |
count; default 0 |
stateint32_t |
one of the values named in the header; default 0 |
clipint32_t |
count; default 0 |
weightfloat |
factor (unitless); default 0 |
timefloat |
s; default 0 |
normalizedfloat |
factor (unitless); default 0 |
readyint32_t |
flag (0 or 1); default 0 |
fadingint32_t |
flag (0 or 1); default 0 |
sona_layer_event¶
Declared in sona.h; taken by sona_avatar_layer_events.
| Field and type | Unit and default |
|---|---|
kinduint32_t |
one of the values named in the header; default 0 |
layeruint32_t |
index or id; default 0 |
stateint32_t |
one of the values named in the header; default 0 |
from_stateint32_t |
one of the values named in the header; default 0 |
timefloat |
s; default 0 |
sona_blend_sample¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
clipconst char * |
text (UTF-8), NULL: none; default NULL |
xfloat |
the blend space's own axis units (the parameter the host drives); default 0 |
yfloat |
the blend space's own axis units (the parameter the host drives); default 0 |
speedfloat |
factor (1: as made); default 0: the same as 1 |
sona_blend_space_desc¶
Declared in sona.h; taken by sona_blend_space_defaults, sona_blend_space_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
dimsuint32_t |
count (1 or 2); default 1 |
param_xconst char * |
text (UTF-8), NULL: none; default NULL |
param_yconst char * |
text (UTF-8), NULL: none; default NULL |
samplesconst sona_blend_sample * |
pointer to sona_blend_sample; default NULL |
sample_countuint32_t |
count; default 0 |
flagsuint32_t |
bit flags; default 0 |
smooth_secondsfloat |
s; default 0.1 |
reserveduint32_t |
reserved, zero; default 0 |
sona_state_desc¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
nameconst char * |
text (UTF-8), NULL: none; default NULL |
clipconst char * |
text (UTF-8), NULL: none; default NULL |
blendsona_blend_space * |
pointer to sona_blend_space; default NULL |
loopint32_t |
flag (0 or 1); default 0 |
speedfloat |
factor (1: as made); default 0: the same as 1 |
sona_condition¶
Declared in sona.h; held in sona_transition_desc.
| Field and type | Unit and default |
|---|---|
paramconst char * |
text (UTF-8), NULL: none; default NULL |
opuint32_t |
one of the values named in the header; default 0 |
valuefloat |
the parameter's own units; default 0 |
sona_transition_desc¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
fromconst char * |
text (UTF-8), NULL: none; default NULL |
toconst char * |
text (UTF-8), NULL: none; default NULL |
fade_secondsfloat |
s; default 0 |
exit_timefloat |
s; default 0 |
condition_countuint32_t |
count; default 0 |
reserveduint32_t |
reserved, zero; default 0 |
conditions[SONA_CONDITION_MAX]sona_condition |
a sona_condition (see its fields); default see its members |
sona_state_machine_desc¶
Declared in sona.h; taken by sona_state_machine_defaults, sona_state_machine_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 40 |
state_countuint32_t |
count; default 0 |
statesconst sona_state_desc * |
pointer to sona_state_desc; default NULL |
transitionsconst sona_transition_desc * |
pointer to sona_transition_desc; default NULL |
transition_countuint32_t |
count; default 0 |
reserveduint32_t |
reserved, zero; default 0 |
initialconst char * |
text (UTF-8), NULL: none; default NULL |
sona_clip_info¶
Declared in sona.h; taken by sona_clip_get.
| Field and type | Unit and default |
|---|---|
keyconst char * |
text (UTF-8), NULL: none; default NULL |
idconst char * |
text (UTF-8), NULL: none; default NULL |
secondsfloat |
s; default 0 |
propint |
count; default 0 |
captionconst char * |
text (UTF-8), NULL: none; default NULL |
sona_view¶
Declared in sona.h; taken by sona_view_defaults, sona_update, sona_draw, sona_snapshot, sona_item_preview_view, sona_item_preview_draw, sona_camera_preset, sona_camera_fit_crowd, sona_camera_orbit, sona_view_matrices, sona_draw_lit, sona_snapshot_lit, sona_screen_view_camera, sona_view_ray, sona_pick_screen, sona_pick_gpu, sona_pick_gpu_ids, sona_editor_view, sona_xsdk_view, sona_xsdk_frame, sona_xsdk_snapshot.
| Field and type | Unit and default |
|---|---|
eye[3]double |
m (world units); default 0, 0.894, -3.75 |
target[3]double |
m (world units); default 0, 0.894, 0 |
fov_degdouble |
degrees; default 28.65 |
near_zdouble |
m (world units); default 0.05 |
far_zdouble |
m (world units); default 200 |
widthuint32_t |
px; default 1280 |
heightuint32_t |
px; default 720 |
sona_frame_stats¶
Declared in sona.h; taken by sona_update.
| Field and type | Unit and default |
|---|---|
msfloat |
ms; default 0 |
cpu_msfloat |
ms; default 0 |
drawnuint32_t |
count; default 0 |
culleduint32_t |
count; default 0 |
draw_callsuint32_t |
count; default 0 |
builtuint32_t |
count; default 0 |
sona_scene_stats¶
Declared in sona.h; taken by sona_stats.
| Field and type | Unit and default |
|---|---|
fpsfloat |
frames per second; default 0 |
ms_per_framefloat |
ms; default 0 |
p95_msfloat |
ms; default 0 |
cpu_ms_per_framefloat |
ms; default 0 |
avatarsuint32_t |
count; default 0 |
readyuint32_t |
flag (0 or 1); default 0 |
queueduint32_t |
count; default 0 |
drawnuint32_t |
count; default 0 |
draw_callsuint32_t |
count; default 0 |
geometriesuint32_t |
count; default 0 |
texturesuint32_t |
count; default 0 |
gpu_mbfloat |
MB; default 0 |
cpu_mbfloat |
MB; default 0 |
build_ms_avgfloat |
ms; default 0 |
build_ms_maxfloat |
ms; default 0 |
long_framesuint32_t |
count; default 0 |
sona_lod_options¶
Declared in sona.h; taken by sona_lod_defaults, sona_lod_set, sona_lod_get.
| Field and type | Unit and default |
|---|---|
full_pxfloat |
px; default 120 |
quarter_pxfloat |
px; default 40 |
sprite_pxfloat |
px; default 48 |
fade_secondsfloat |
s; default 0.25 |
sprite_anglesuint32_t |
count; default 8 |
sprite_heightuint32_t |
px; default 64 |
max_looksuint32_t |
count; default 16384 |
bake_msfloat |
ms; default 4 |
sona_lod_stats¶
Declared in sona.h; taken by sona_lod_stats_get.
| Field and type | Unit and default |
|---|---|
fulluint32_t |
count; default 0 |
sampleduint32_t |
count; default 0 |
quarteruint32_t |
count; default 0 |
spriteuint32_t |
count; default 0 |
fadinguint32_t |
flag (0 or 1); default 0 |
looksuint32_t |
count; default 0 |
bakesuint32_t |
count; default 0 |
bake_msfloat |
ms; default 0 |
sona_texture¶
Declared in sona.h; held in sona_shading.
| Field and type | Unit and default |
|---|---|
keyuint32_t |
index or id; default 0 |
versionuint32_t |
version number; default 0 |
formatsona_tex_format |
sona_tex_format value; default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
dataconst void * |
pointer; default NULL |
bytessize_t |
bytes; default 0 |
sona_material¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
shader_iduint32_t |
index or id; default 0 |
flagsuint32_t |
bit flags; default 0 |
params[40]float |
shader constants (unitless; 10 float4); default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
transparencyfloat |
factor (unitless); default 0 |
color_texint32_t |
index or id (-1: neutral white); default 0 |
intensity_texint32_t |
factor (unitless); default 0 |
decal_texint32_t |
index or id (-1: none); default 0 |
color_addruint8_t |
address mode bits (bit 0: U wraps, bit 1: V wraps); default 0 |
intensity_addruint8_t |
address mode bits (bit 0: U wraps, bit 1: V wraps); default 0 |
decal_addruint8_t |
address mode bits (bit 0: U wraps, bit 1: V wraps); default 0 |
paduint8_t |
reserved, zero; default 0 |
sona_mesh¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
item[SONA_ID_CHARS]char |
text (UTF-8); default empty |
maskuint32_t |
bit flags; default 0 |
batchuint32_t |
count; default 0 |
materialuint32_t |
index or id; default 0 |
passsona_pass |
sona_pass value; default 0 |
paletteint32_t |
index or id; default 0 |
vertex_countuint32_t |
count; default 0 |
index_countuint32_t |
count; default 0 |
verticesconst void * |
pointer; default NULL |
indicesconst uint16_t * |
pointer; default NULL |
keyuint32_t |
index or id; default 0 |
sona_prop_palette¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
item[SONA_ID_CHARS]char |
text (UTF-8); default empty |
playingint |
flag (0 or 1); default 0 |
paletteconst float * |
pointer; default NULL |
sona_pose_data¶
Declared in sona.h; taken by sona_pose.
| Field and type | Unit and default |
|---|---|
build_versionuint32_t |
version number; default 0 |
world[16]float |
4x4 matrix, row-vector; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
paletteconst float * |
pointer; default NULL |
view_jointsconst float * |
pointer; default NULL |
mesh_countuint32_t |
count; default 0 |
meshesconst sona_mesh * |
pointer to sona_mesh; default NULL |
material_countuint32_t |
count; default 0 |
materialsconst sona_material * |
pointer to sona_material; default NULL |
texture_countuint32_t |
count; default 0 |
texturesconst sona_texture * |
pointer to sona_texture; default NULL |
prop_countuint32_t |
count; default 0 |
propsconst sona_prop_palette * |
pointer to sona_prop_palette; default NULL |
expression[5]uint8_t |
expression index per face part; default 0, 0, 0, 0, 0 |
sona_shading¶
Declared in sona.h; taken by sona_shading_get.
| Field and type | Unit and default |
|---|---|
irradiancesona_texture |
a sona_texture (see its fields); default see its members |
irradiance_gainfloat |
radians; default 0 |
ao_gainfloat |
factor (unitless); default 0 |
bloom_gainfloat |
factor (unitless); default 0 |
shadow_rows[12]float |
light lookup rows (unitless, 3x4); default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
rim[4]float |
rim colour and power (unitless); default 0, 0, 0, 0 |
sona_device_desc¶
Declared in sona.h; taken by sona_renderer_create, sona_renderer_reset.
| Field and type | Unit and default |
|---|---|
backendsona_backend |
sona_backend value; default 0 |
uunion |
see its members; default see its members |
frames_in_flightuint32_t |
count; default 0: the same as 2 |
sona_target¶
Declared in sona.h; taken by sona_draw, sona_item_preview_draw, sona_draw_lit, sona_screen_view_draw, sona_editor_draw, sona_editor_draw_avatar.
| Field and type | Unit and default |
|---|---|
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
uunion |
see its members; default see its members |
sona_draw_options¶
Declared in sona.h; taken by sona_draw, sona_snapshot, sona_item_preview_draw, sona_item_preview_snapshot, sona_draw_lit, sona_snapshot_lit, sona_screen_view_draw, sona_screen_view_snapshot, sona_editor_draw, sona_editor_draw_avatar; held in sona_render_options.
| Field and type | Unit and default |
|---|---|
clear[4]float |
colour, 0 to 1 per channel; default 0, 0, 0, 0 |
flagsuint32_t |
bit flags; default 0 |
credit_cornersona_corner |
sona_corner value; default 0 |
sona_preview_options¶
Declared in sona.h; taken by sona_preview_defaults, sona_item_preview_add.
| Field and type | Unit and default |
|---|---|
genderuint32_t |
one of the values named in the header; default 0: the body the item was made for (male when either) |
slotuint32_t |
index or id; default 0: from the item |
flagsuint32_t |
bit flags; default 0 |
skinuint32_t |
colour, 0xAARRGGBB; default 0x00000000 |
colours[3]uint32_t |
colour, 0xAARRGGBB; default 0x00000000, 0x00000000, 0x00000000 |
priorityint32_t |
order (higher first); default 0 |
timefloat |
s; default -1 |
marginfloat |
factor (unitless); default 1.36 |
sona_quality¶
Declared in sona.h; taken by sona_quality_defaults, sona_renderer_set_quality, sona_renderer_quality.
| Field and type | Unit and default |
|---|---|
msaauint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 3 |
sona_tier_options¶
Declared in sona.h; taken by sona_tier_defaults, sona_tier_apply.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
tieruint32_t |
one of the SONA_ values named; default 0 |
target_fpsfloat |
frames per second; default 60 |
avatarsuint32_t |
count; default 20 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_picture¶
Declared in sona.h; taken by sona_pixel_art, sona_pixel_palette, sona_sticker, sona_sheet_page.
| Field and type | Unit and default |
|---|---|
rgbauint8_t * |
pointer; default NULL |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
sona_pixel_options¶
Declared in sona.h; taken by sona_pixel_defaults, sona_pixel_art.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 40 |
heightuint32_t |
px; default 32 |
coloursuint32_t |
count; default 16 |
flagsuint32_t |
bit flags; default 1 |
outlineuint32_t |
colour, 0xAARRGGBB; default 0x00000000 |
alpha_cutfloat |
factor (unitless); default 0.5 |
paletteconst uint32_t * |
pointer; default NULL |
palette_countuint32_t |
count; default 0 |
reserveduint32_t |
reserved, zero; default 0 |
sona_sticker_options¶
Declared in sona.h; taken by sona_sticker_defaults, sona_sticker.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 56 |
pixelsuint32_t |
px; default 512 |
clipconst char * |
text (UTF-8), NULL: none; default NULL |
timefloat |
s; default -1 |
turn_degfloat |
degrees; default 0 |
framinguint32_t |
one of the SONA_ values named; default 0 |
outline_pxfloat |
px; default 10 |
outlineuint32_t |
colour, 0xAARRGGBB; default 0xFFFFFFFF |
shadow_pxfloat |
px; default 0 |
shadowuint32_t |
colour, 0xAARRGGBB; default 0x59000000 |
paddinguint32_t |
reserved, zero; default 8 |
flagsuint32_t |
bit flags; default 0 |
draw_flagsuint32_t |
bit flags; default 0 |
sona_sheet_options¶
Declared in sona.h; taken by sona_sheet_defaults, sona_sheet_render.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 80 |
framesuint32_t |
count; default 8 |
clipconst char * |
text (UTF-8), NULL: none; default NULL |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
fromfloat |
s; default 0 |
tofloat |
s; default 0 |
directionsuint32_t |
count; default 8 |
first_degfloat |
degrees; default 0 |
pitch_degfloat |
degrees; default 0 |
fov_degfloat |
degrees; default 0: orthographic |
px_per_metrefloat |
m (world units); default 64 |
paddinguint32_t |
reserved, zero; default 2 |
max_pageuint32_t |
count; default 4096 |
flagsuint32_t |
bit flags; default 0 |
draw_flagsuint32_t |
bit flags; default 2 |
reserveduint32_t |
reserved, zero; default 0 |
pixelconst sona_pixel_options * |
pointer to sona_pixel_options; default NULL |
sona_sheet_frame¶
Declared in sona.h; taken by sona_sheet_frame_get.
| Field and type | Unit and default |
|---|---|
pageuint32_t |
index or id; default 0 |
xuint32_t |
px; default 0 |
yuint32_t |
px; default 0 |
wuint32_t |
px; default 0 |
huint32_t |
px; default 0 |
trim_xuint32_t |
px; default 0 |
trim_yuint32_t |
px; default 0 |
cell_wuint32_t |
px; default 0 |
cell_huint32_t |
px; default 0 |
pivot_xfloat |
px; default 0 |
pivot_yfloat |
px; default 0 |
directionuint32_t |
one of the values named in the header; default 0 |
frameuint32_t |
index or id; default 0 |
facing_degfloat |
degrees; default 0 |
timefloat |
s; default 0 |
duration_msuint32_t |
s; default 0 |
aliasuint32_t |
index or id; default 0 |
sona_guid¶
Declared in sona.h; taken by sona_slot_of, sona_guid_parse, sona_guid_format, sona_manifest_wear, sona_catalogue_find_guid, sona_custom_item_add, sona_custom_item_remove, sona_custom_item_find, sona_guid_is_custom, sona_guid_pair, sona_custom_item_new_id, sona_avatar_missing_items, sona_make_variant, sona_outfit_clash, sona_outfit_conflicts, sona_outfit_set_of, sona_filter_item, sona_filter_tag_set, sona_filter_item_tags, sona_filter_allows, sona_filter_check, sona_prop_pet; held in sona_asset_ref and sona_face_record.
| Field and type | Unit and default |
|---|---|
b[16]uint8_t |
bytes; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
sona_asset_ref¶
Declared in sona.h; held in sona_manifest.
| Field and type | Unit and default |
|---|---|
idsona_guid |
a sona_guid (see its fields); default see its members |
maskuint16_t |
bytes; default 0 |
paduint16_t |
reserved, zero; default 0 |
colours[3]uint32_t |
colour, 0xAARRGGBB; default 0x00000000, 0x00000000, 0x00000000 |
sona_face_record¶
Declared in sona.h; held in sona_manifest.
| Field and type | Unit and default |
|---|---|
idsona_guid |
a sona_guid (see its fields); default see its members |
words[4]uint32_t |
raw words of the manifest; default 0, 0, 0, 0 |
sona_manifest¶
Declared in sona.h; taken by sona_manifest_parse, sona_manifest_write, sona_manifest_wear, sona_manifest_unwear, sona_manifest_undress_all, sona_manifest_set_colour, sona_manifest_set_gender, sona_manifest_set_shape, sona_manifest_ready_for_xbox, sona_filter_manifest.
| Field and type | Unit and default |
|---|---|
versionuint32_t |
version number; default 0 |
weightfloat |
body shape factor (unitless); default 0 |
heightfloat |
body shape factor (unitless); default 0 |
chinsona_guid |
a sona_guid (see its fields); default see its members |
nosesona_guid |
a sona_guid (see its fields); default see its members |
earssona_guid |
a sona_guid (see its fields); default see its members |
face[6]sona_face_record |
a sona_face_record (see its fields); default see its members |
colours[9]uint32_t |
colour, 0xAARRGGBB; default 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 |
figure_asona_asset_ref |
a sona_asset_ref (see its fields); default see its members |
figure_bsona_asset_ref |
a sona_asset_ref (see its fields); default see its members |
worn[13]sona_asset_ref |
a sona_asset_ref (see its fields); default see its members |
required[4]sona_asset_ref |
a sona_asset_ref (see its fields); default see its members |
blob5[5]uint8_t |
bytes; default 0, 0, 0, 0, 0 |
pad_xuid[3]uint8_t |
reserved, zero; default 0, 0, 0 |
xuiduint64_t |
index or id; default 0 |
padding[91]uint8_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
genderuint32_t |
one of the values named in the header; default 0 |
validint |
flag (0 or 1); default 0 |
sona_credit¶
Declared in sona.h; taken by sona_credit_get.
| Field and type | Unit and default |
|---|---|
textconst char * |
text (UTF-8), NULL: none; default NULL |
urlconst char * |
text (UTF-8), NULL: none; default NULL |
rgbaconst uint8_t * |
pointer; default NULL |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
sona_item_info¶
Declared in sona.h; taken by sona_catalogue_get.
| Field and type | Unit and default |
|---|---|
guidsona_guid |
a sona_guid (see its fields); default see its members |
id[SONA_ID_CHARS]char |
text (UTF-8); default empty |
kinduint8_t |
one of the SONA_ values named; default 0 |
genderuint8_t |
one of the values named in the header; default 0 |
sectionuint8_t |
sona_section value; default 0 |
maskuint32_t |
bit flags; default 0 |
flagsuint32_t |
bit flags; default 0 |
routesona_route |
sona_route value; default 0 |
colour_setuint32_t |
one of the SONA_ values named; default 0 |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
gameconst char * |
text (UTF-8), NULL: none; default NULL |
typeconst char * |
text (UTF-8), NULL: none; default NULL |
familyconst char * |
text (UTF-8), NULL: none; default NULL |
descriptionconst char * |
text (UTF-8), NULL: none; default NULL |
subcategoryuint16_t |
one of the values named in the header; default 0 |
colour_choicesuint8_t |
count; default 0 |
texture_typeuint8_t |
one of the values named in the header; default 0 |
shape_typeuint8_t |
one of the values named in the header; default 0 |
pad[3]uint8_t |
reserved, zero; default 0, 0, 0 |
sona_catalogue_query¶
Declared in sona.h; taken by sona_catalogue_search, sona_filter_search.
| Field and type | Unit and default |
|---|---|
textconst char * |
text (UTF-8), NULL: none; default NULL |
gameconst char * |
text (UTF-8), NULL: none; default NULL |
slotsuint32_t |
bit flags; default 0: any |
sectionuint32_t |
one of the values named in the header; default 0: any |
genderuint32_t |
one of the values named in the header; default 0: any |
requireuint32_t |
one of the SONA_ values named; default 0 |
excludeuint32_t |
one of the SONA_ values named; default 0 |
offsetuint32_t |
m (world units); default 0 |
sona_custom_item_info¶
Declared in sona.h; taken by sona_custom_item_check, sona_custom_item_get, sona_custom_item_find.
| Field and type | Unit and default |
|---|---|
idsona_guid |
a sona_guid (see its fields); default see its members |
maskuint32_t |
index or id; default 0 |
bodyuint32_t |
count; default 0 |
versionuint32_t |
version number; default 0 |
flagsuint32_t |
bit flags; default 0 |
template_idsona_guid |
a sona_guid (see its fields); default see its members |
sha256[32]uint8_t |
bytes; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
template_sha256[32]uint8_t |
bytes; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
surface_countuint32_t |
count; default 0 |
texture_countuint32_t |
count; default 0 |
colourway_countuint32_t |
count; default 0 |
bytesuint32_t |
bytes; default 0 |
name[196]char |
text (UTF-8); default empty |
creator[196]char |
text (UTF-8); default empty |
reserved[16]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
sona_paint_image¶
Declared in sona.h; held in sona_paint_surface.
| Field and type | Unit and default |
|---|---|
rgbaconst uint8_t * |
pointer; default NULL |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
sona_paint_surface¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
colorsona_paint_image |
a sona_paint_image (see its fields); default see its members |
regionssona_paint_image |
a sona_paint_image (see its fields); default see its members |
decalsona_paint_image |
a sona_paint_image (see its fields); default see its members |
sona_paint_spec¶
Declared in sona.h; taken by sona_custom_item_pack.
| Field and type | Unit and default |
|---|---|
idsona_guid |
a sona_guid (see its fields); default see its members |
template_idsona_guid |
a sona_guid (see its fields); default see its members |
versionuint32_t |
version number; default 0: the same as 1 |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
descriptionconst char * * |
text (UTF-8), NULL: none; default NULL |
creatorconst char * * |
text (UTF-8), NULL: none; default NULL |
createdconst char * * |
text (UTF-8), NULL: none; default NULL |
licenceconst char * * |
text (UTF-8), NULL: none; default NULL |
surfacesconst sona_paint_surface * |
pointer to sona_paint_surface; default NULL |
surface_countuint32_t |
count; default 0 |
colourway_countuint32_t |
count; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_mesh_item_spec¶
Declared in sona.h; taken by sona_mesh_item_spec_defaults, sona_custom_item_pack_mesh.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 136 |
flagsuint32_t |
bit flags; default 0 |
idsona_guid |
a sona_guid (see its fields); default see its members |
template_idsona_guid |
a sona_guid (see its fields); default see its members |
versionuint32_t |
version number; default 0: the same as 1 |
reserved0uint32_t |
reserved, zero; default 0 |
glbconst void * |
pointer; default NULL |
glb_lensize_t |
bytes; default 0 |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
descriptionconst char * * |
text (UTF-8), NULL: none; default NULL |
creatorconst char * * |
text (UTF-8), NULL: none; default NULL |
createdconst char * * |
text (UTF-8), NULL: none; default NULL |
licenceconst char * * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_lipsync_options¶
Declared in sona.h; taken by sona_lipsync_defaults, sona_lipsync_create, sona_lipsync_phonemes, sona_lipsync_text.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 64 |
sample_rateuint32_t |
Hz; default 48000 |
channelsuint32_t |
count; default 1 |
formatuint32_t |
one of the SONA_ values named; default 0 |
hold_secondsfloat |
s; default 0.07 |
attack_secondsfloat |
s; default 0.02 |
release_secondsfloat |
s; default 0.07 |
gate_dbfloat |
dB; default -55 |
lead_secondsfloat |
s; default 0.04 |
flagsuint32_t |
bit flags; default 0 |
reserved[6]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0 |
sona_lipsync_frame¶
Declared in sona.h; taken by sona_lipsync_read, sona_lipsync_current, sona_mouth_keys_sample.
| Field and type | Unit and default |
|---|---|
timedouble |
s; default 0 |
mouthuint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 0 |
openfloat |
factor (unitless); default 0 |
level_dbfloat |
dB; default 0 |
weights[8]float |
factor (unitless); default 0, 0, 0, 0, 0, 0, 0, 0 |
f1float |
Hz; default 0 |
f2float |
Hz; default 0 |
reserved[2]uint32_t |
reserved, zero; default 0, 0 |
sona_phoneme¶
Declared in sona.h; taken by sona_lipsync_hint, sona_lipsync_phonemes.
| Field and type | Unit and default |
|---|---|
symbolconst char * |
text (UTF-8), NULL: none; default NULL |
startfloat |
s; default 0 |
endfloat |
s; default 0 |
sona_mouth_key¶
Declared in sona.h; taken by sona_lipsync_phonemes, sona_lipsync_text, sona_mouth_keys_sample.
| Field and type | Unit and default |
|---|---|
timefloat |
s; default 0 |
mouthuint32_t |
one of the values named in the header; default 0 |
openfloat |
factor (unitless); default 0 |
flagsuint32_t |
bit flags; default 0 |
sona_voice_mouth¶
Declared in sona.h; taken by sona_voice_mouth_init, sona_voice_mouth_step, sona_avatar_voice, sona_voice_mouths.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
seeduint32_t |
index or id; default 0 |
word[4]uint32_t |
internal state, do not touch; default 0, 0, 0, 0 |
value[8]float |
internal state, do not touch; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_headless_options¶
Declared in sona.h; taken by sona_headless_defaults, sona_headless_devices, sona_headless_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 64 |
deviceuint32_t |
sona_device_kind value; default 0 |
backendsona_backend |
sona_backend value; default 0: Vulkan, then GL (EGL, Linux), then D3D11 (Windows) or Metal (Apple) |
adapterint32_t |
index or id; default -1 |
flagsuint32_t |
bit flags; default 0 |
batch_in_flightuint32_t |
count; default 8 |
wait_secondsfloat |
s; default 60 |
reserved[9]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0, 0 |
sona_headless_info¶
Declared in sona.h; taken by sona_headless_devices, sona_headless_info_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
backendsona_backend |
sona_backend value; default 0 |
softwareuint32_t |
flag (0 or 1); default 0 |
typeuint32_t |
count; default 0 |
vendor_iduint32_t |
index or id; default 0 |
device_iduint32_t |
index or id; default 0 |
name[256]char |
text (UTF-8); default empty |
driver[128]char |
text (UTF-8); default empty |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_render_options¶
Declared in sona.h; taken by sona_render_defaults, sona_headless_render, sona_headless_render_manifest, sona_headless_batch, sona_headless_sequence, sona_headless_record.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 104 |
widthuint32_t |
px; default 256 |
heightuint32_t |
px; default 256 |
presetsona_preset |
sona_preset value; default 0 |
yaw_degfloat |
degrees; default 0 |
pitch_degfloat |
degrees; default 0 |
zoomfloat |
factor (unitless); default 1 |
turn_degfloat |
degrees; default 0 |
timefloat |
s; default 0 |
drawsona_draw_options |
a sona_draw_options (see its fields); default see its members |
flagsuint32_t |
bit flags; default 0 |
clipconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_sequence_options¶
Declared in sona.h; taken by sona_sequence_defaults, sona_headless_sequence, sona_headless_record.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 52 |
framesuint32_t |
count; default 0: the clip's length at fps |
fpsfloat |
frames per second; default 30 |
turn_degfloat |
degrees; default 0 |
flagsuint32_t |
bit flags; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_video_options¶
Declared in sona.h; taken by sona_video_defaults, sona_video_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 80 |
formatsona_video_format |
sona_video_format value; default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
fpsfloat |
frames per second; default 30 |
loopsuint32_t |
count (0: forever); default 0 |
qualityuint32_t |
factor (unitless); default 0: 18 for H.264, 30 for VP9 and AV1 |
backgrounduint32_t |
colour, 0xAARRGGBB; default 0xFF000000 |
flagsuint32_t |
bit flags; default 0 |
coloursuint32_t |
count; default 0: the same as 256 |
ffmpegconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_vrm_face¶
Declared in sona.h; taken by sona_vrm_face_default.
| Field and type | Unit and default |
|---|---|
expressionuint32_t |
one of the values named in the header; default 0 |
parts[5]uint8_t |
expression index per face part; default 0, 0, 0, 0, 0 |
pad[3]uint8_t |
reserved, zero; default 0, 0, 0 |
sona_export_options¶
Declared in sona.h; taken by sona_export_defaults, sona_export_avatar.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 160 |
formatuint32_t |
one of the SONA_ values named; default 1 |
flagsuint32_t |
bit flags; default 0 |
bone_namesuint32_t |
sona_skeleton_kind value; default 0 |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
versionconst char * |
text (UTF-8), NULL: none; default NULL |
authorsconst char * |
text (UTF-8), NULL: none; default NULL |
copyrightconst char * |
text (UTF-8), NULL: none; default NULL |
contactconst char * * |
text (UTF-8), NULL: none; default NULL |
referencesconst char * |
text (UTF-8), NULL: none; default NULL |
third_party_licencesconst char * |
text (UTF-8), NULL: none; default NULL |
licence_urlconst char * |
text (UTF-8), NULL: none; default NULL |
other_licence_urlconst char * |
text (UTF-8), NULL: none; default NULL |
avatar_permissionuint32_t |
one of the SONA_ values named; default 0 |
commercial_usageuint32_t |
one of the SONA_ values named; default 0 |
modificationuint32_t |
one of the SONA_ values named; default 0 |
allowuint32_t |
one of the SONA_ values named; default 0: nothing allowed, credit required |
thumbnail_pngconst void * |
pointer; default NULL |
thumbnail_lensize_t |
bytes; default 0 |
facesconst sona_vrm_face * |
pointer to sona_vrm_face; default NULL |
face_countuint32_t |
count; default 0 |
reserved[7]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0 |
sona_export_report¶
Declared in sona.h; taken by sona_export_avatar.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
meshesuint32_t |
count; default 0 |
primitivesuint32_t |
count; default 0 |
verticesuint32_t |
count; default 0 |
trianglesuint32_t |
count; default 0 |
degenerateuint32_t |
count; default 0 |
texturesuint32_t |
count; default 0 |
expressionsuint32_t |
count; default 0 |
atlas_cellsuint32_t |
count; default 0 |
bakeduint32_t |
count; default 0 |
bake_errorfloat |
colour levels, 0 to 255; default 0 |
msfloat |
ms; default 0 |
sona_print_options¶
Declared in sona.h; taken by sona_print_defaults, sona_print_avatars, sona_print_triangles.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 64 |
flagsuint32_t |
bit flags; default 0 |
height_mmfloat |
mm; default 120 |
mm_per_metrefloat |
mm per metre (1:12 is 83.33); default 0: from height_mm |
min_wall_mmfloat |
mm; default 1.2 |
voxel_mmfloat |
mm; default 0: min_wall_mm / 2.5, grown to fit max_voxels |
close_mmfloat |
mm; default 0.6 |
base_height_mmfloat |
mm; default 3 |
base_margin_mmfloat |
mm; default 4 |
base_colouruint32_t |
colour, 0xAARRGGBB; default 0xFF3C3C3C |
max_voxelsuint32_t |
count; default 24000000 |
reserved[5]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0 |
sona_print_mesh¶
Declared in sona.h; taken by sona_print_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
vertex_countuint32_t |
count; default 0 |
triangle_countuint32_t |
count; default 0 |
shellsuint32_t |
count; default 0 |
volume_mm3float |
mm³; default 0 |
area_mm2float |
mm²; default 0 |
positionsconst float * |
pointer; default NULL |
coloursconst uint32_t * |
pointer; default NULL |
indicesconst uint32_t * |
pointer; default NULL |
lo[3]float |
mm; default 0, 0, 0 |
hi[3]float |
mm; default 0, 0, 0 |
mm_per_metrefloat |
mm per metre; default 0 |
min_wall_mmfloat |
mm; default 0 |
voxel_mmfloat |
mm; default 0 |
reserved[3]uint32_t |
reserved, zero; default 0, 0, 0 |
sona_print_report¶
Declared in sona.h; taken by sona_print_check.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
verticesuint32_t |
count; default 0 |
trianglesuint32_t |
count; default 0 |
edgesuint32_t |
count; default 0 |
boundary_edgesuint32_t |
count; default 0 |
nonmanifold_edgesuint32_t |
count; default 0 |
flipped_edgesuint32_t |
count; default 0 |
nonmanifold_verticesuint32_t |
count; default 0 |
degenerateuint32_t |
count; default 0 |
self_intersectionsuint32_t |
count; default 0 |
shellsuint32_t |
count; default 0 |
eulerint32_t |
count; default 0 |
volume_mm3double |
mm³; default 0 |
area_mm2double |
mm²; default 0 |
lo[3]float |
mm; default 0, 0, 0 |
hi[3]float |
mm; default 0, 0, 0 |
okuint32_t |
flag (0 or 1); default 0 |
reserved[5]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0 |
sona_stock_clip¶
Declared in sona.h; taken by sona_stock_clip_at, sona_stock_clip_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
iduint32_t |
one of the SONA_ values named; default 0 |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
familyconst char * |
text (UTF-8), NULL: none; default NULL |
asset_idconst char * |
text (UTF-8), NULL: none; default NULL |
captionconst char * |
text (UTF-8), NULL: none; default NULL |
tagsuint32_t |
one of the SONA_ values named; default 0 |
bodyuint32_t |
one of the values named in the header; default 0 |
framesuint32_t |
count; default 0 |
fpsfloat |
frames per second; default 0 |
secondsfloat |
s; default 0 |
same_asuint32_t |
one of the SONA_ values named; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_idle_options¶
Declared in sona.h; taken by sona_idle_defaults, sona_avatar_idle, sona_avatar_idle_get, sona_idle_sample.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 32 |
partsuint32_t |
one of the SONA_ values named; default 15 |
seeduint32_t |
index or id; default 0: from the ctx seed and the avatar id |
amountfloat |
factor (unitless); default 1 |
face_pxfloat |
px; default 240 |
reserved[3]uint32_t |
reserved, zero; default 0, 0, 0 |
sona_idle_state¶
Declared in sona.h; taken by sona_avatar_idle_state, sona_idle_sample.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
blinkfloat |
factor (unitless); default 0 |
gaze[2]float |
degrees; default 0, 0 |
shiftfloat |
factor (unitless); default 0 |
breathfloat |
factor (unitless); default 0 |
reserved[2]uint32_t |
reserved, zero; default 0, 0 |
sona_ik_target¶
Declared in sona.h; taken by sona_ik_target_defaults, sona_avatar_ik_target.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 92 |
flagsuint32_t |
bit flags; default 0 |
position[3]float |
m (world units); default 0, 0, 0 |
rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 1 |
pole[3]float |
m (world units); default 0, 0, 0 |
jointint32_t |
one of the SONA_ values named; default -1 |
weightfloat |
factor (unitless); default 1 |
fade_secondsfloat |
s; default 0.2 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_feet¶
Declared in sona.h; taken by sona_ik_feet_defaults, sona_avatar_ik_feet.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 88 |
grounduint32_t |
one of the SONA_ values named; default 1 |
plane[4]float |
plane: normal (unitless) and distance in m; default 0, 1, 0, 0 |
querysona_ik_ground_fn |
a function (NULL: none); default NULL |
uservoid * |
pointer; default NULL |
weightfloat |
factor (unitless); default 1 |
max_hips_offsetfloat |
count; default 0.45 |
max_tilt_degfloat |
degrees; default 35 |
smoothingfloat |
factor (unitless); default 0.1 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_look¶
Declared in sona.h; taken by sona_ik_look_defaults, sona_avatar_ik_look.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 80 |
flagsuint32_t |
bit flags; default 3 |
target[3]float |
m (world units); default 0, 0, 0 |
weightfloat |
factor (unitless); default 1 |
max_yaw_degfloat |
degrees; default 70 |
max_up_degfloat |
degrees; default 35 |
max_down_degfloat |
degrees; default 45 |
smoothingfloat |
factor (unitless); default 0.15 |
max_speed_degfloat |
degrees per second; default 360 |
eye_threshold_degfloat |
degrees; default 10 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_limits¶
Declared in sona.h; taken by sona_ik_limits_defaults, sona_avatar_ik_limits.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 72 |
flagsuint32_t |
bit flags; default 0 |
elbow_max_degfloat |
degrees; default 145 |
knee_max_degfloat |
degrees; default 150 |
wrist_swing_degfloat |
degrees; default 75 |
wrist_twist_degfloat |
degrees; default 80 |
ankle_swing_degfloat |
degrees; default 45 |
ankle_twist_degfloat |
degrees; default 30 |
soft_reachfloat |
factor (unitless); default 0.97 |
body_marginfloat |
m (world units); default 0.02 |
hip_forward_degfloat |
degrees; default 120 |
hip_back_degfloat |
degrees; default 25 |
hip_out_degfloat |
degrees; default 45 |
hip_in_degfloat |
degrees; default 25 |
shoulder_back_degfloat |
degrees; default 45 |
shoulder_across_degfloat |
degrees; default 50 |
reserved[2]uint32_t |
reserved, zero; default 0, 0 |
sona_ik_status¶
Declared in sona.h; taken by sona_avatar_ik_status.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
activeuint32_t |
one of the SONA_ values named; default 0 |
error[4]float |
m (world units); default 0, 0, 0, 0 |
hit[4]uint32_t |
one of the SONA_ values named; default 0, 0, 0, 0 |
hips_offsetfloat |
m (world units); default 0 |
look_yaw_degfloat |
degrees; default 0 |
look_pitch_degfloat |
degrees; default 0 |
eyes[2]uint8_t |
expression index per eye (255: the clip's); default 0, 0 |
pad[2]uint8_t |
reserved, zero; default 0, 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_foot_lock¶
Declared in sona.h; taken by sona_ik_foot_lock_defaults, sona_avatar_ik_foot_lock.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 52 |
flagsuint32_t |
bit flags; default 0 |
weightfloat |
factor (unitless); default 1 |
max_slidefloat |
count; default 0.25 |
release_secondsfloat |
s; default 0.15 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_spine¶
Declared in sona.h; taken by sona_ik_spine_defaults, sona_avatar_ik_spine.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 56 |
flagsuint32_t |
bit flags; default 0 |
weightfloat |
factor (unitless); default 1 |
max_bend_degfloat |
degrees; default 35 |
max_twist_degfloat |
degrees; default 40 |
hips_sharefloat |
factor (unitless); default 0.2 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_fingers¶
Declared in sona.h; taken by sona_ik_fingers_defaults, sona_avatar_ik_fingers.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 72 |
flagsuint32_t |
bit flags; default 0 |
curl[5]float |
index or id; default 0, 0, 0, 0, 0 |
spreadfloat |
factor (unitless, -1 to 1); default 0 |
weightfloat |
factor (unitless); default 1 |
fade_secondsfloat |
s; default 0.15 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ik_eyes¶
Declared in sona.h; taken by sona_ik_eyes_defaults, sona_avatar_ik_eyes.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 52 |
flagsuint32_t |
bit flags; default 0 |
max_speed_degfloat |
degrees per second; default 400 |
smoothingfloat |
factor (unitless); default 0.05 |
lead_secondsfloat |
s; default 0.08 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_bone_map¶
Declared in sona.h.
| Field and type | Unit and default |
|---|---|
sourceconst char * |
text (UTF-8), NULL: none; default NULL |
jointconst char * |
text (UTF-8), NULL: none; default NULL |
sona_import_options¶
Declared in sona.h; taken by sona_import_defaults, sona_anim_file_load, sona_anim_file_open, sona_clip_import.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 96 |
formatuint32_t |
bytes; default 0 |
keyconst char * |
text (UTF-8), NULL: none; default NULL |
takeconst char * |
text (UTF-8), NULL: none; default NULL |
take_indexuint32_t |
index or id; default 0 |
flagsuint32_t |
bit flags; default 0 |
mapconst sona_bone_map * |
pointer to sona_bone_map; default NULL |
map_countuint32_t |
count; default 0 |
fpsfloat |
frames per second; default 0: the file's own, else 30 |
startfloat |
s; default 0 |
endfloat |
s; default 0 |
root_scalefloat |
factor (unitless); default 0: avatar legs / source legs |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_import_info¶
Declared in sona.h; taken by sona_clip_import, sona_clip_imported_get, sona_clip_imported_find.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
formatuint32_t |
count; default 0 |
naminguint32_t |
count; default 0 |
bonesuint32_t |
count; default 0 |
takesuint32_t |
count; default 0 |
mappeduint32_t |
count; default 0 |
framesuint32_t |
count; default 0 |
fpsfloat |
frames per second; default 0 |
secondsfloat |
s; default 0 |
root_scalefloat |
factor (unitless); default 0 |
idsona_guid |
a sona_guid (see its fields); default see its members |
key[64]char |
text (UTF-8); default empty |
take[64]char |
text (UTF-8); default empty |
joint_bone[SONA_JOINT_COUNT]int16_t |
index or id (-1: none); default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
reserved[16]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
sona_players_config¶
Declared in sona.h; taken by sona_players_defaults, sona_players_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 136 |
max_playersuint32_t |
count; default 0: the same as 2048 |
refresh_suint32_t |
s; default 0: 600, the lookup's own cache time |
per_houruint32_t |
count (requests an hour); default 0: 60, the lookup's limit per address |
in_flightuint32_t |
count; default 0: 4, at most 16 |
timeout_msuint32_t |
ms; default 0: the same as 15000 |
hostconst char * |
text (UTF-8), NULL: none; default NULL |
clientconst char * |
text (UTF-8), NULL: none; default NULL |
httpconst sona_http * |
pointer to sona_http; default NULL |
cache_dirconst char * |
text (UTF-8), NULL: none; default NULL |
placeholderconst uint8_t * |
pointer; default NULL |
clockdouble (*clock)(void *user) |
a function (NULL: none); default NULL |
clock_uservoid * |
pointer; default NULL |
allocatorsona_allocator |
a sona_allocator (see its fields); default see its members |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_player_look¶
Declared in sona.h; taken by sona_players_look.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
statesona_player_state |
sona_player_state value; default 0 |
errorsona_result |
sona_result value; default 0 |
placeholderuint32_t |
flag (0 or 1); default 0 |
fetched_atdouble |
s; default 0: never |
checked_atdouble |
s; default 0: never |
next_checkdouble |
s; default 0: none planned (not watched, or final) |
manifest[SONA_MANIFEST_BYTES]uint8_t |
bytes; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
version[33]char |
text (UTF-8); default empty |
name[95]char |
text (UTF-8); default empty |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_player_event¶
Declared in sona.h; taken by sona_players_poll.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
typesona_player_event_type |
sona_player_event_type value; default 0 |
codesona_result |
sona_result value; default 0 |
reserveduint32_t |
reserved, zero; default 0 |
id[SONA_PLAYER_ID_CHARS]char |
text (UTF-8); default empty |
sona_players_stats¶
Declared in sona.h; taken by sona_players_stats_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
playersuint32_t |
count; default 0 |
watcheduint32_t |
count; default 0 |
in_flightuint32_t |
count; default 0 |
dueuint32_t |
count; default 0 |
requestsuint32_t |
count; default 0 |
changeduint32_t |
flag (0 or 1); default 0 |
sameuint32_t |
count; default 0 |
not_modifieduint32_t |
count; default 0 |
goneuint32_t |
count; default 0 |
faileduint32_t |
count; default 0 |
from_diskuint32_t |
count; default 0 |
disk_writesuint32_t |
count; default 0 |
limiteduint32_t |
count; default 0 |
paused_untildouble |
s; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_random_options¶
Declared in sona.h; taken by sona_random_defaults, sona_make_random.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 144 |
bodyuint32_t |
one of the values named in the header; default 0: the seed picks (or the base's body) |
styleuint32_t |
one of the SONA_ values named; default 0 |
paletteuint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 0 |
requireuint32_t |
one of the SONA_ values named; default 0 |
excludeuint32_t |
one of the SONA_ values named; default 0 |
skip_sectionsuint32_t |
bit flags; default 0 |
skin_countuint32_t |
count; default 0 |
hair_countuint32_t |
count; default 0 |
eyes_countuint32_t |
count; default 0 |
paduint32_t |
reserved, zero; default 0 |
gameconst char * |
text (UTF-8), NULL: none; default NULL |
textconst char * |
text (UTF-8), NULL: none; default NULL |
baseconst uint8_t * |
pointer; default NULL |
skinconst uint32_t * |
pointer; default NULL |
hairconst uint32_t * * |
pointer; default NULL |
eyesconst uint32_t * * |
pointer; default NULL |
availableint (*available)(void *user, const sona_guid *item) |
a function (NULL: none); default NULL |
available_uservoid * |
pointer; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_random_report¶
Declared in sona.h; taken by sona_make_random.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
bodyuint32_t |
one of the values named in the header; default 0 |
seeduint32_t |
count; default 0 |
setint32_t |
index or id (-1: none); default 0 |
picked[SONA_SECTION_COUNT]int32_t |
count; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
candidates[SONA_SECTION_COUNT]uint32_t |
count; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_like_options¶
Declared in sona.h; taken by sona_like_defaults, sona_make_dress_like.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 64 |
partsuint32_t |
one of the SONA_ values named; default 3 |
matchuint32_t |
one of the SONA_ values named; default 1 |
flagsuint32_t |
bit flags; default 0 |
availableint (*available)(void *user, const sona_guid *item) |
a function (NULL: none); default NULL |
available_uservoid * |
pointer; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_like_item¶
Declared in sona.h; held in sona_like_report.
| Field and type | Unit and default |
|---|---|
fromsona_guid |
a sona_guid (see its fields); default see its members |
tosona_guid |
a sona_guid (see its fields); default see its members |
outcomeuint32_t |
one of the values named in the header; default 0 |
sectionuint32_t |
one of the values named in the header; default 0 |
sona_like_report¶
Declared in sona.h; taken by sona_make_dress_like.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
countuint32_t |
count; default 0 |
keptuint32_t |
count; default 0 |
variantsuint32_t |
count; default 0 |
similaruint32_t |
count; default 0 |
substitutesuint32_t |
count; default 0 |
droppeduint32_t |
count; default 0 |
covereduint32_t |
count; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
items[24]sona_like_item |
a sona_like_item (see its fields); default see its members |
sona_outfit_set¶
Declared in sona.h; taken by sona_outfit_set_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
titleuint32_t |
bytes; default 0 |
gameconst char * |
text (UTF-8), NULL: none; default NULL |
nameconst char * |
text (UTF-8), NULL: none; default NULL |
countuint32_t |
count; default 0 |
bodiesuint32_t |
one of the values named in the header; default 0 |
sectionsuint32_t |
bit flags; default 0 |
slotsuint32_t |
bit flags; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_outfit_issue¶
Declared in sona.h; taken by sona_outfit_check.
| Field and type | Unit and default |
|---|---|
kinduint32_t |
one of the SONA_ values named; default 0 |
severityuint32_t |
one of the SONA_ values named; default 0 |
slotsuint32_t |
bit flags; default 0 |
fielduint32_t |
one of the SONA_ values named; default 0 |
itemsona_guid |
a sona_guid (see its fields); default see its members |
othersona_guid |
a sona_guid (see its fields); default see its members |
sona_outfit_report¶
Declared in sona.h; taken by sona_outfit_check, sona_outfit_fix.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
issuesuint32_t |
count; default 0 |
errorsuint32_t |
count; default 0 |
warningsuint32_t |
count; default 0 |
bodyuint32_t |
one of the values named in the header; default 0 |
slotsuint32_t |
count; default 0 |
setint32_t |
index or id (-1: none); default 0 |
set_itemsuint32_t |
count; default 0 |
validuint32_t |
flag (0 or 1); default 0 |
reserved[7]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0 |
sona_filter_verdict¶
Declared in sona.h; taken by sona_filter_check.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
alloweduint32_t |
flag (0 or 1); default 0 |
reasonuint32_t |
one of the SONA_ values named; default 0 |
tagint32_t |
index or id (-1: none); default 0 |
indexint32_t |
index or id; default 0 |
sectionuint32_t |
one of the values named in the header; default 0 |
sourceuint32_t |
one of the SONA_ values named; default 0 |
paduint32_t |
reserved, zero; default 0 |
tagsuint64_t |
bit flags; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_filter_change¶
Declared in sona.h; held in sona_filter_report.
| Field and type | Unit and default |
|---|---|
fromsona_guid |
a sona_guid (see its fields); default see its members |
tosona_guid |
a sona_guid (see its fields); default see its members |
actionuint32_t |
one of the SONA_ values named; default 0 |
reasonuint32_t |
one of the SONA_ values named; default 0 |
tagint32_t |
index or id (-1: none); default 0 |
sectionuint32_t |
one of the values named in the header; default 0 |
sona_filter_report¶
Declared in sona.h; taken by sona_filter_manifest, sona_filter_manifest_bytes, sona_avatar_filter_report.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
countuint32_t |
count; default 0 |
replaceduint32_t |
count; default 0 |
hiddenuint32_t |
flag (0 or 1); default 0 |
cacheuint32_t |
count; default 0 |
paduint32_t |
reserved, zero; default 0 |
change[SONA_FILTER_CHANGES]sona_filter_change |
a sona_filter_change (see its fields); default see its members |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_state_info¶
Declared in sona.h; taken by sona_state_info_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
versionuint32_t |
version number; default 0 |
has_lookuint32_t |
count; default 0 |
partsuint32_t |
one of the SONA_ values named; default 0 |
clockdouble |
s; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_state_status¶
Declared in sona.h; taken by sona_avatar_state_status.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
modeuint32_t |
one of the SONA_ values named; default 0 |
pendinguint32_t |
flag (0 or 1); default 0 |
missinguint32_t |
one of the SONA_ values named; default 0 |
applieduint32_t |
count; default 0 |
reserved[5]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0 |
sona_net_options¶
Declared in sona.h; taken by sona_net_defaults, sona_net_sender_create, sona_net_receiver_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
tick_hzuint32_t |
Hz; default 30 |
historyuint32_t |
ticks; default 64 |
full_afteruint32_t |
ticks; default 30 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_net_look¶
Declared in sona.h; taken by sona_net_receiver_look.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
versionuint32_t |
version number; default 0 |
kinduint32_t |
one of the SONA_ values named; default 0 |
manifest[SONA_MANIFEST_BYTES]uint8_t |
bytes; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
id[64]char |
text (UTF-8); default empty |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_net_stats¶
Declared in sona.h; taken by sona_net_sender_stats, sona_net_receiver_stats.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
packetsuint32_t |
count; default 0 |
bytesuint32_t |
bytes; default 0 |
fulluint32_t |
count; default 0 |
newestuint32_t |
count; default 0 |
oldestuint32_t |
count; default 0 |
last_bytesuint32_t |
bytes; default 0 |
ackeduint32_t |
count; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_record_options¶
Declared in sona.h; taken by sona_record_defaults, sona_recorder_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
tick_hzuint32_t |
Hz; default 30 |
keyframe_ticksuint32_t |
ticks; default 30 |
keep_secondsfloat |
s; default 0: everything |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_replay_info¶
Declared in sona.h; taken by sona_replay_info_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
tracksuint32_t |
count; default 0 |
tick_hzuint32_t |
count; default 0 |
first_tickuint32_t |
count; default 0 |
last_tickuint32_t |
count; default 0 |
framesuint32_t |
count; default 0 |
secondsfloat |
s; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_light¶
Declared in sona.h; held in sona_lighting.
| Field and type | Unit and default |
|---|---|
direction[3]float |
direction (unitless vector); default 0, 0, 0 |
color[3]float |
colour, 0 to 1 per channel; default 0, 0, 0 |
intensityfloat |
factor (unitless); default 0 |
sona_lighting¶
Declared in sona.h; taken by sona_lighting_defaults, sona_renderer_set_lighting, sona_renderer_lighting, sona_draw_lit, sona_snapshot_lit.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 228 |
flagsuint32_t |
bit flags; default 0 |
keysona_light |
a sona_light (see its fields); default see its members |
fillsona_light |
a sona_light (see its fields); default see its members |
ambient[3]float |
colour, linear, 0 to 1 per channel; default 0, 0, 0 |
environmentfloat |
factor (unitless); default 1 |
specularfloat |
factor (unitless); default 1 |
rimfloat |
factor (unitless); default 1 |
shadowuint32_t |
one of the SONA_ values named; default 1 |
shadow_sizeuint32_t |
texels; default 2048 |
shadow_strengthfloat |
factor (unitless); default 1 |
shadow_ambientfloat |
factor (unitless); default 0.5 |
shadow_biasfloat |
factor (unitless); default 0.03 |
shadow_center[3]float |
m (world units); default 0, 0, 0 |
shadow_radiusfloat |
m (world units); default 10 |
shadow_matrix[16]float |
4x4 matrix, row-vector; default 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 |
ground_yfloat |
m (world units); default 0 |
ground_opacityfloat |
factor (unitless); default 0.6 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_environment¶
Declared in sona.h; taken by sona_environment_defaults, sona_renderer_set_environment, sona_environment_irradiance.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 152 |
kinduint32_t |
one of the SONA_ values named; default 0 |
sh[27]float |
colour, 0 to 1 per channel; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
cube_sizeuint32_t |
texels; default 0 |
cubeconst float * |
pointer; default NULL |
skin_redfloat |
factor (unitless); default 1.2 |
reserved[5]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0 |
sona_host_shadow¶
Declared in sona.h; taken by sona_renderer_set_host_shadow.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
flagsuint32_t |
bit flags; default 0 |
matrix[16]float |
4x4 matrix, row-vector; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
biasfloat |
factor (unitless); default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
reserveduint32_t |
reserved, zero; default 0 |
uunion |
see its members; default see its members |
sona_shadow_map¶
Declared in sona.h; taken by sona_renderer_shadow_map.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
formatuint32_t |
one of the values named in the header; default 0 |
matrix[16]float |
4x4 matrix, row-vector; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
texel_metresfloat |
m (world units); default 0 |
reserveduint32_t |
reserved, zero; default 0 |
frameuint64_t |
index or id; default 0 |
uunion |
see its members; default see its members |
sona_style¶
Declared in sona.h; taken by sona_style_defaults, sona_avatar_set_style, sona_avatar_style, sona_renderer_set_style, sona_renderer_style.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
kinduint32_t |
sona_style_kind value; default 0 |
flagsuint32_t |
bit flags; default 0 |
bandsuint32_t |
count; default 3 |
shadefloat |
factor (unitless); default 0.55 |
highlightfloat |
factor (unitless); default 0.35 |
outline_pxfloat |
px; default 2 |
outlineuint32_t |
colour, 0xAARRGGBB; default 0xFF141414 |
colouruint32_t |
colour, 0xAARRGGBB; default 0xFF1E2430 |
reserved[3]uint32_t |
reserved, zero; default 0, 0, 0 |
sona_placeholder_options¶
Declared in sona.h; taken by sona_placeholder_defaults, sona_placeholder_set, sona_placeholder_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 84 |
flagsuint32_t |
bit flags; default 0 |
delay_secondsfloat |
s; default 0 |
appear_secondsfloat |
s; default 0.2 |
reveal_secondsfloat |
s; default 0.4 |
failed_secondsfloat |
s; default 2 |
tint[3]float |
colour, 0 to 1 per channel; default 0.16, 0.19, 0.25 |
failed_tint[3]float |
colour, 0 to 1 per channel; default 0.25, 0.15, 0.15 |
glowfloat |
factor (unitless); default 0.5 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_placeholder_info¶
Declared in sona.h; taken by sona_avatar_placeholder_info.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
phaseuint32_t |
sona_placeholder_phase value; default 0 |
opacityfloat |
factor (unitless); default 0 |
heightfloat |
m (world units); default 0 |
genderuint32_t |
count; default 0 |
clipuint32_t |
flag (0 or 1); default 0 |
secondsfloat |
s; default 0 |
spriteuint32_t |
flag (0 or 1); default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_placeholder_stats¶
Declared in sona.h; taken by sona_placeholder_stats_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
shownuint32_t |
count; default 0 |
waitinguint32_t |
count; default 0 |
loadinguint32_t |
count; default 0 |
revealinguint32_t |
count; default 0 |
faileduint32_t |
count; default 0 |
spritesuint32_t |
count; default 0 |
poseduint32_t |
count; default 0 |
pose_msfloat |
ms; default 0 |
drawsuint32_t |
count; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_overlay¶
Declared in sona.h; taken by sona_renderer_overlay, sona_renderer_underlay.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
strideuint32_t |
px; default 0: width * 4 |
rgbaconst uint8_t * |
pointer; default NULL |
revisionuint32_t |
revision number; default 0: always uploads |
dirty[4]uint32_t |
flag (0 or 1); default 0, 0, 0, 0 |
rect[4]float |
px; default 0, 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_screen_event¶
Declared in sona.h; taken by sona_screen_input.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
typeuint32_t |
one of the SONA_ values named; default 0 |
actionuint32_t |
sona_screen_action value; default 0 |
fromuint32_t |
one of the SONA_ values named; default 0 |
xfloat |
layout units (a 1280 x 720 screen); default 0 |
yfloat |
layout units (a 1280 x 720 screen); default 0 |
pointeruint32_t |
index or id; default 0 |
reserved[5]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0 |
sona_screen_theme¶
Declared in sona.h; taken by sona_screen_theme_defaults, sona_screen_set_theme.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 96 |
flagsuint32_t |
bit flags; default 0 |
backgrounduint32_t |
colour, 0xAARRGGBB; default 0xFF3A4850 |
paneluint32_t |
colour, 0xAARRGGBB; default 0xFF4B5962 |
panel_raiseduint32_t |
colour, 0xAARRGGBB; default 0xFF3E4A52 |
textuint32_t |
colour, 0xAARRGGBB; default 0xFFF2F4F5 |
text_dimuint32_t |
colour, 0xAARRGGBB; default 0xFFB4BEC4 |
accentuint32_t |
colour, 0xAARRGGBB; default 0xFF6AA91C |
accent_textuint32_t |
colour, 0xAARRGGBB; default 0xFFFFFFFF |
focusuint32_t |
colour, 0xAARRGGBB; default 0xFFABEF2E |
warninguint32_t |
colour, 0xAARRGGBB; default 0xFFFF8A7A |
scalefloat |
factor (unitless); default 1 |
cornerfloat |
layout units (a 1280 x 720 screen); default 8 |
fontconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_screen_node¶
Declared in sona.h; taken by sona_screen_nodes.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
iduint32_t |
index or id; default 0 |
parentint32_t |
index or id; default 0 |
roleuint32_t |
one of the SONA_ values named; default 0 |
stateuint32_t |
one of the SONA_ values named; default 0 |
xfloat |
px; default 0 |
yfloat |
px; default 0 |
wfloat |
px; default 0 |
hfloat |
px; default 0 |
text_sizefloat |
px; default 0 |
valuefloat |
factor (unitless); default 0 |
textconst char * |
text (UTF-8), NULL: none; default NULL |
labelconst char * |
text (UTF-8), NULL: none; default NULL |
detailconst char * |
text (UTF-8), NULL: none; default NULL |
colouruint32_t |
colour, 0xAARRGGBB; default 0x00000000 |
viewint32_t |
index or id (-1: none); default 0 |
actionuint32_t |
sona_screen_action value; default 0 |
indexuint32_t |
index or id; default 0 |
countuint32_t |
count; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_quick_options¶
Declared in sona.h; taken by sona_quick_defaults, sona_quick_open, sona_quick_look.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 96 |
seeduint32_t |
index or id; default 1 |
looksuint32_t |
count; default 8 |
bodyuint32_t |
one of the values named in the header; default 0 |
flagsuint32_t |
bit flags; default 0 |
catalogueconst sona_catalogue * |
pointer to sona_catalogue; default NULL |
filtersona_item_filter_fn |
a function (NULL: none); default NULL |
filter_uservoid * |
pointer; default NULL |
themeconst sona_screen_theme * |
pointer to sona_screen_theme; default NULL |
titleconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_wardrobe_options¶
Declared in sona.h; taken by sona_wardrobe_defaults, sona_wardrobe_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 128 |
flagsuint32_t |
bit flags; default 1 |
manifestconst uint8_t * |
pointer; default NULL |
catalogueconst sona_catalogue * |
pointer to sona_catalogue; default NULL |
ownedconst sona_guid * |
pointer to sona_guid; default NULL |
owned_countuint32_t |
count; default 0 |
outfitsconst uint8_t * |
pointer; default NULL |
outfit_countuint32_t |
count; default 0 |
outfit_namesconst char *const * |
text (UTF-8), NULL: none; default NULL |
filtersona_item_filter_fn |
a function (NULL: none); default NULL |
filter_uservoid * |
pointer; default NULL |
themeconst sona_screen_theme * |
pointer to sona_screen_theme; default NULL |
titleconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_screen_stats¶
Declared in sona.h; taken by sona_screen_stats_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
pressesuint32_t |
count; default 0 |
tapsuint32_t |
count; default 0 |
changesuint32_t |
count; default 0 |
shufflesuint32_t |
count; default 0 |
focus_movesuint32_t |
count; default 0 |
secondsfloat |
s; default 0 |
action_presses[SONA_ACT_COUNT]uint32_t |
count; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_pick_options¶
Declared in sona.h; taken by sona_pick_defaults, sona_pick_ray, sona_pick_screen, sona_pick_ray_all, sona_avatar_pick, sona_pick_gpu, sona_pick_gpu_ids.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 56 |
flagsuint32_t |
bit flags; default 0 |
max_distancefloat |
m (world units); default 0: no limit |
ignore_countuint32_t |
count; default 0 |
ignoresona_avatar *const * |
pointer; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_pick_hit¶
Declared in sona.h; taken by sona_pick_ray, sona_pick_screen, sona_pick_ray_all, sona_avatar_pick, sona_pick_gpu.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
sourceuint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 0 |
avatar_iduint32_t |
index or id; default 0 |
avatarsona_avatar * |
pointer to sona_avatar; default NULL |
partuint32_t |
one of the SONA_ values named; default 0 |
sectionuint32_t |
one of the values named in the header; default 0 |
maskuint32_t |
bit flags; default 0 |
item[SONA_ID_CHARS]char |
text (UTF-8); default empty |
meshint32_t |
index or id; default 0 |
propint32_t |
index or id; default 0 |
triangleuint32_t |
index or id; default 0 |
jointint32_t |
index or id; default 0 |
regionuint32_t |
sona_body_region value; default 0 |
loduint32_t |
one of the SONA_ values named; default 0 |
distancefloat |
m (world units); default 0 |
point[3]float |
m (world units); default 0, 0, 0 |
normal[3]float |
direction (unit vector); default 0, 0, 0 |
bary[2]float |
s; default 0, 0 |
uv[2]float |
texture coordinates, 0 to 1; default 0, 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_prop_part¶
Declared in sona.h; taken by sona_prop_part_defaults, sona_prop_mesh_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 120 |
flagsuint32_t |
bit flags; default 0 |
vertex_countuint32_t |
count; default 0 |
index_countuint32_t |
count; default 0 |
positionsconst float * |
pointer; default NULL |
normalsconst float * |
pointer; default NULL |
uvsconst float * |
pointer; default NULL |
coloursconst uint8_t * |
pointer; default NULL |
indicesconst uint32_t * |
pointer; default NULL |
colouruint32_t |
colour, 0xAARRGGBB; default 0xFFFFFFFF |
texture_widthuint32_t |
texels; default 0 |
texture_heightuint32_t |
texels; default 0 |
textureconst uint8_t * |
pointer; default NULL |
transparencyfloat |
factor (unitless); default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_prop_load_options¶
Declared in sona.h; taken by sona_prop_load_defaults, sona_prop_mesh_load, sona_prop_mesh_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
flagsuint32_t |
bit flags; default 0 |
scalefloat |
factor (unitless); default 1 |
sceneint32_t |
index or id; default -1 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_prop_mesh_info¶
Declared in sona.h; taken by sona_prop_mesh_info_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
kinduint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 0 |
partsuint32_t |
count; default 0 |
verticesuint32_t |
count; default 0 |
trianglesuint32_t |
count; default 0 |
texturesuint32_t |
count; default 0 |
jointsuint32_t |
count; default 0 |
handint32_t |
one of the SONA_ values named; default 0 |
jointint32_t |
one of the SONA_ values named; default 0 |
lo[3]float |
m (world units); default 0, 0, 0 |
hi[3]float |
m (world units); default 0, 0, 0 |
secondsfloat |
s; default 0 |
item[SONA_ID_CHARS]char |
text (UTF-8); default empty |
pad[3]uint8_t |
reserved, zero; default 0, 0, 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_prop_data¶
Declared in sona.h; taken by sona_prop_mesh_data.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
mesh_countuint32_t |
count; default 0 |
meshesconst sona_mesh * |
pointer to sona_mesh; default NULL |
material_countuint32_t |
count; default 0 |
materialsconst sona_material * |
pointer to sona_material; default NULL |
texture_countuint32_t |
count; default 0 |
texturesconst sona_texture * |
pointer to sona_texture; default NULL |
jointsuint32_t |
count; default 0 |
sona_prop_attach¶
Declared in sona.h; taken by sona_prop_attach_defaults, sona_avatar_prop_attach, sona_avatar_prop_set, sona_avatar_prop_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 140 |
flagsuint32_t |
bit flags; default 0 |
jointint32_t |
one of the SONA_ values named; default -2 |
position[3]float |
m (world units); default 0, 0, 0 |
rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 1 |
scalefloat |
factor (unitless); default 1 |
handint32_t |
one of the SONA_ values named; default -1 |
hand_flagsuint32_t |
bit flags; default 0 |
hand_position[3]float |
m (world units); default 0, 0, 0 |
hand_rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 1 |
hand_pole[3]float |
m (world units); default 0, 0, 0 |
hand_weightfloat |
factor (unitless); default 1 |
fade_secondsfloat |
s; default 0.2 |
speedfloat |
factor (1: as made); default 1 |
start_atfloat |
s; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_prop_frame¶
Declared in sona.h; taken by sona_avatar_prop_frame.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
flagsuint32_t |
bit flags; default 0 |
jointint32_t |
one of the SONA_ values named; default 0 |
timefloat |
s; default 0 |
world[16]float |
4x4 matrix, row-vector; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
avatar[16]float |
4x4 matrix, row-vector; default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
hand_errorfloat |
s; default 0 |
jointsuint32_t |
count; default 0 |
paletteconst float * |
pointer; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ragdoll_options¶
Declared in sona.h; taken by sona_ragdoll_defaults, sona_avatar_ragdoll.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 56 |
flagsuint32_t |
bit flags; default 0 |
total_massfloat |
kg; default 0: from the avatar's height and weight (a body mass index of 22, from 17 at the thinnest to 32 at the heaviest), times the placement's scale cubed |
coveragefloat |
factor (unitless); default 0.9 |
limitsconst sona_ik_limits * |
pointer to sona_ik_limits; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ragdoll_body¶
Declared in sona.h; taken by sona_avatar_ragdoll.
| Field and type | Unit and default |
|---|---|
jointint32_t |
index or id; default 0 |
parentint32_t |
index or id; default 0 |
shapeuint32_t |
one of the SONA_ values named; default 0 |
no_collideuint32_t |
bit flags; default 0 |
position[3]float |
m (world units); default 0, 0, 0 |
rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
shape_position[3]float |
m (world units); default 0, 0, 0 |
shape_rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
radiusfloat |
m (world units); default 0 |
half_heightfloat |
m (world units); default 0: a sphere |
half_extents[3]float |
m (world units); default 0, 0, 0 |
massfloat |
kg; default 0 |
joint_typeuint32_t |
one of the SONA_ values named; default 0 |
pivot[3]float |
m (world units); default 0, 0, 0 |
frame_parent[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
frame_child[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
twist_minfloat |
radians; default 0 |
twist_maxfloat |
radians; default 0 |
swing_y_minfloat |
radians; default 0 |
swing_y_maxfloat |
radians; default 0 |
swing_z_minfloat |
radians; default 0 |
swing_z_maxfloat |
radians; default 0 |
cone_frame[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
cone_yfloat |
radians; default 0 |
cone_zfloat |
radians; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_ragdoll_state¶
Declared in sona.h; taken by sona_avatar_ragdoll_state, sona_avatar_ragdoll_drive.
| Field and type | Unit and default |
|---|---|
position[3]float |
m (world units); default 0, 0, 0 |
rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
velocity[3]float |
m per second; default 0, 0, 0 |
angular_velocity[3]float |
radians per second; default 0, 0, 0 |
sona_ragdoll_info¶
Declared in sona.h; taken by sona_avatar_ragdoll_info.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
modeuint32_t |
one of the SONA_ values named; default 0 |
weightfloat |
factor (unitless); default 0 |
blend_leftfloat |
factor (unitless); default 0 |
face_upint32_t |
flag (0 or 1); default 0: on its front |
hips[3]float |
m (world units); default 0, 0, 0 |
lowestfloat |
m (world units); default 0 |
getup_position[3]float |
m (world units); default 0, 0, 0 |
getup_turn_degfloat |
degrees; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_ragdoll_motor¶
Declared in sona.h; taken by sona_avatar_ragdoll_motors.
| Field and type | Unit and default |
|---|---|
rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
joint_rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
angular_velocity[3]float |
radians per second; default 0, 0, 0 |
world_position[3]float |
m (world units); default 0, 0, 0 |
world_rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
velocity[3]float |
per second; default 0, 0, 0 |
world_angular_velocity[3]float |
per second; default 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_sway¶
Declared in sona.h; taken by sona_sway_defaults, sona_avatar_sway.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 60 |
partsuint32_t |
one of the SONA_ values named; default 7 |
qualityuint32_t |
one of the SONA_ values named; default 1 |
stiffnessfloat |
factor (unitless); default 0.5 |
dampingfloat |
factor (unitless); default 0.5 |
wind_scalefloat |
factor (unitless); default 1 |
min_pixelsfloat |
px; default 48 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_sway_world¶
Declared in sona.h; taken by sona_sway_world_defaults, sona_sway_world_set.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 68 |
gravity[3]float |
m per second; default 0, -9.81, 0 |
wind[3]float |
m per second; default 0, 0, 0 |
gustfloat |
factor (unitless); default 0.35 |
gust_secondsfloat |
s; default 1.5 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_sway_info¶
Declared in sona.h; taken by sona_avatar_sway_info.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
partsuint32_t |
one of the SONA_ values named; default 0 |
meshesuint32_t |
count; default 0 |
chainsuint32_t |
count; default 0 |
nodesuint32_t |
count; default 0 |
verticesuint32_t |
count; default 0 |
stepsuint32_t |
count; default 0 |
restinguint32_t |
flag (0 or 1); default 0 |
max_offsetfloat |
count; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_seat¶
Declared in sona.h; taken by sona_seat_defaults; held in sona_interaction_desc.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 68 |
kinduint32_t |
one of the SONA_ values named; default 1 |
position[3]float |
m (world units); default 0, 0, 0 |
turn_degfloat |
degrees; default 0 |
heightfloat |
m (world units); default 0.45 |
depthfloat |
m (world units); default 0.45 |
widthfloat |
m (world units); default 0.5 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_interaction_desc¶
Declared in sona.h; taken by sona_interaction_defaults, sona_interaction_layout, sona_interaction_start.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 160 |
kinduint32_t |
one of the SONA_ values named; default 0 |
asona_avatar * |
pointer to sona_avatar; default NULL |
bsona_avatar * * |
pointer; default NULL |
position[3]float |
m (world units); default 0, 0, 0 |
turn_degfloat |
degrees; default 0 |
flagsuint32_t |
bit flags; default 0 |
start_secondsfloat |
s; default 0.8 |
hold_secondsfloat |
s; default 0 |
end_secondsfloat |
s; default 0.6 |
seatsona_seat |
a sona_seat (see its fields); default see its members |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_interaction_plan¶
Declared in sona.h; taken by sona_interaction_layout.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
contactsuint32_t |
count; default 0 |
place[2]sona_placement |
a sona_placement (see its fields); default see its members |
contact[2][3]float |
m (world units); default 0, 0, 0, 0, 0, 0 |
spacingfloat |
m (world units); default 0 |
clearancefloat |
m (world units); default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_interaction_status¶
Declared in sona.h; taken by sona_interaction_status_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
kinduint32_t |
one of the SONA_ values named; default 0 |
phaseuint32_t |
one of the SONA_ values named; default 0 |
phase_secondsfloat |
s; default 0 |
progressfloat |
factor (unitless); default 0 |
touchinguint32_t |
flag (0 or 1); default 0 |
contact_errorfloat |
m (world units); default 0 |
clearancefloat |
m (world units); default 0 |
contact[2][3]float |
m (world units); default 0, 0, 0, 0, 0, 0 |
ik_hit[2]uint32_t |
bit flags; default 0, 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_interaction_event¶
Declared in sona.h; taken by sona_interaction_events.
| Field and type | Unit and default |
|---|---|
kinduint32_t |
one of the values named in the header; default 0 |
phaseuint32_t |
one of the values named in the header; default 0 |
timefloat |
s; default 0 |
valuefloat |
the event's own units; default 0 |
sona_emote¶
Declared in sona.h; taken by sona_emote_from_text, sona_avatar_emote.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
countuint32_t |
count; default 0: nothing matched |
clips[SONA_EMOTE_CLIPS]uint32_t |
one of the SONA_ values named; default 0, 0, 0, 0 |
weights[SONA_EMOTE_CLIPS]float |
factor (unitless); default 0, 0, 0, 0 |
speedfloat |
factor (1: as made); default 0 |
confidencefloat |
factor (unitless); default 0 |
expression[5]uint8_t |
expression index per face part (255: the clip's); default 0, 0, 0, 0, 0 |
pad[3]uint8_t |
reserved, zero; default 0, 0, 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_award_def¶
Declared in sona.h; taken by sona_award_def_defaults, sona_award_define.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 88 |
flagsuint32_t |
bit flags; default 0 |
keyconst char * |
text (UTF-8), NULL: none; default NULL |
titleconst char * |
text (UTF-8), NULL: none; default NULL |
descriptionconst char * * |
text (UTF-8), NULL: none; default NULL |
itemsona_guid |
a sona_guid (see its fields); default see its members |
developer_keyconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_body_options¶
Declared in sona_body.h; taken by sona_body_defaults, sona_body_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 60 |
flagsuint32_t |
bit flags; default 0 |
min_cutofffloat |
count; default 1.5 |
betafloat |
factor (unitless); default 0.8 |
min_visibilityfloat |
count; default 0.5 |
lost_secondsfloat |
s; default 0.5 |
return_secondsfloat |
s; default 0.4 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_body_input¶
Declared in sona_body.h; taken by sona_body_input_defaults, sona_body_feed.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 64 |
flagsuint32_t |
bit flags; default 0 |
timedouble |
s; default 0 |
layoutuint32_t |
one of the SONA_ values named; default 0 |
countuint32_t |
count; default 33 |
pointsconst float * |
pointer; default NULL |
visibilityconst float * |
pointer; default NULL |
imageconst float * |
pointer; default NULL |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_editor_options¶
Declared in sona_editor.h; taken by sona_editor_defaults, sona_editor_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 136 |
modeuint32_t |
one of the SONA_ values named; default 0 |
widthuint32_t |
px; default 1280 |
heightuint32_t |
px; default 720 |
flagsuint32_t |
bit flags; default 0 |
startconst uint8_t * |
pointer; default NULL |
catalogueconst sona_catalogue * |
pointer to sona_catalogue; default NULL |
seeduint64_t |
index or id; default 1 |
titleconst char * |
text (UTF-8), NULL: none; default NULL |
filtersona_editor_filter_fn |
a function (NULL: none); default NULL |
filter_uservoid * |
pointer; default NULL |
looksona_editor_look_fn |
a function (NULL: none); default NULL |
look_uservoid * |
pointer; default NULL |
soundsona_editor_sound_fn |
a function (NULL: none); default NULL |
sound_uservoid * |
pointer; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_editor_theme¶
Declared in sona_editor.h; taken by sona_editor_theme_defaults, sona_editor_open, sona_editor_set_theme.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 104 |
backgrounduint32_t |
colour, 0xAARRGGBB; default 0xFF3A4850 |
paneluint32_t |
colour, 0xAARRGGBB; default 0xFF4B5962 |
raiseduint32_t |
colour, 0xAARRGGBB; default 0xFF3E4A52 |
textuint32_t |
colour, 0xAARRGGBB; default 0xFFF2F4F5 |
text_dimuint32_t |
colour, 0xAARRGGBB; default 0xFFB4BEC4 |
accentuint32_t |
colour, 0xAARRGGBB; default 0xFF6AA91C |
accent_textuint32_t |
colour, 0xAARRGGBB; default 0xFFFFFFFF |
focusuint32_t |
colour, 0xAARRGGBB; default 0xFFABEF2E |
shadeuint32_t |
colour, 0xAARRGGBB; default 0xA0000000 |
corner_radiusfloat |
layout units (a 1280 x 720 screen); default 8 |
scalefloat |
factor (unitless); default 0: the shorter side / 720, at least 0.5 |
font_pxfloat |
px; default 14 |
fontconst void * |
pointer; default NULL |
font_lensize_t |
bytes; default 0 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_editor_input¶
Declared in sona_editor.h; taken by sona_editor_feed.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
kinduint32_t |
one of the SONA_ values named; default 0 |
codeuint32_t |
one of the values named in the header; default 0 |
downint32_t |
flag (0 or 1); default 0 |
modsuint32_t |
bit flags; default 0 |
pointeruint32_t |
index or id; default 0 |
xfloat |
px; default 0 |
yfloat |
px; default 0 |
valuefloat |
the control's own units (an axis: -1 to 1); default 0 |
sona_editor_control¶
Declared in sona_editor.h; taken by sona_editor_control_get, sona_editor_focus_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
iduint32_t |
index or id; default 0 |
roleuint32_t |
one of the SONA_ values named; default 0 |
flagsuint32_t |
bit flags; default 0 |
rect[4]float |
px; default 0, 0, 0, 0 |
valuefloat |
the control's own units (between min and max); default 0 |
minfloat |
the control's own units; default 0 |
maxfloat |
the control's own units; default 0 |
indexuint32_t |
index or id; default 0 |
countuint32_t |
count; default 0 |
label[96]char |
text (UTF-8); default empty |
value_text[64]char |
text (UTF-8); default empty |
hint[96]char |
text (UTF-8); default empty |
sona_editor_vertex¶
Declared in sona_editor.h.
| Field and type | Unit and default |
|---|---|
xfloat |
px; default 0 |
yfloat |
px; default 0 |
ufloat |
factor (unitless); default 0 |
vfloat |
factor (unitless); default 0 |
rgba[4]uint8_t |
colour, 0 to 255 per channel; default 0, 0, 0, 0 |
sona_editor_command¶
Declared in sona_editor.h.
| Field and type | Unit and default |
|---|---|
textureuint32_t |
one of the SONA_ values named; default 0 |
first_indexuint32_t |
index or id; default 0 |
index_countuint32_t |
count; default 0 |
paduint32_t |
reserved, zero; default 0 |
clip[4]float |
px; default 0, 0, 0, 0 |
sona_editor_draw_data¶
Declared in sona_editor.h; taken by sona_editor_draw_data_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
revisionuint32_t |
revision number; default 0 |
verticesconst sona_editor_vertex * |
pointer to sona_editor_vertex; default NULL |
vertex_countuint32_t |
count; default 0 |
indicesconst uint32_t * |
pointer; default NULL |
index_countuint32_t |
count; default 0 |
commandsconst sona_editor_command * |
pointer to sona_editor_command; default NULL |
command_countuint32_t |
count; default 0 |
avatar_rect[4]float |
px (x, y, w, h); default 0, 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_editor_texture¶
Declared in sona_editor.h; taken by sona_editor_texture_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
iduint32_t |
index or id; default 0 |
widthuint32_t |
px; default 0 |
heightuint32_t |
px; default 0 |
revisionuint32_t |
revision number; default 0 |
dirty[4]uint32_t |
flag (0 or 1); default 0, 0, 0, 0 |
dirty_sinceuint32_t |
revision number; default 0 |
rgbaconst uint8_t * |
pointer; default NULL |
sona_npc_options¶
Declared in sona_npc.h; taken by sona_npc_defaults, sona_npc_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 80 |
flagsuint32_t |
bit flags; default 0 |
speaksona_npc_speak_fn |
a function (NULL: none); default NULL |
speak_uservoid * |
pointer; default NULL |
linesona_npc_line_fn |
a function (NULL: none); default NULL |
line_uservoid * |
pointer; default NULL |
look_secondsfloat |
s; default 2 |
idle_emote_secondsfloat |
s; default 8 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_npc_state¶
Declared in sona_npc.h; taken by sona_npc_state_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
stateuint32_t |
one of the SONA_ values named; default 0 |
lineuint32_t |
index or id (0: none); default 0 |
queueduint32_t |
count; default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_track_options¶
Declared in sona_track.h; taken by sona_track_defaults, sona_track_create, sona_track_set_options.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 92 |
flagsuint32_t |
bit flags; default 0 |
face_min_cutofffloat |
Hz; default 3 |
face_betafloat |
factor (unitless); default 2 |
head_min_cutofffloat |
Hz; default 1.2 |
head_betafloat |
radians; default 0.6 |
head_gainfloat |
factor (unitless); default 1 |
head_limit_deg[3]float |
degrees; default 40, 65, 35 |
neck_sharefloat |
factor (unitless); default 0.35 |
sensitivityfloat |
factor (unitless); default 0 |
lost_secondsfloat |
s; default 0.5 |
return_secondsfloat |
s; default 0.4 |
sleep_secondsfloat |
s; default 1.5 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_track_face_input¶
Declared in sona_track.h; taken by sona_track_face_input_defaults, sona_track_face_feed.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 64 |
flagsuint32_t |
bit flags; default 0 |
timedouble |
s; default 0 |
layoutuint32_t |
one of the SONA_ values named; default 0 |
countuint32_t |
count; default 52 |
weightsconst float * |
pointer; default NULL |
head_rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 1 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_track_face_state¶
Declared in sona_track.h; taken by sona_track_face_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
trackinguint32_t |
flag (0 or 1); default 0 |
timedouble |
s; default 0 |
weightfloat |
factor (unitless); default 0 |
expression[5]uint8_t |
expression index per face part (255: the clip's); default 0, 0, 0, 0, 0 |
mooduint8_t |
sona_track_mood value; default 0 |
pad[2]uint8_t |
reserved, zero; default 0, 0 |
head[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
weights[SONA_TRACK_BLENDSHAPES]float |
factor (unitless); default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_track_calibration¶
Declared in sona_track.h; taken by sona_track_calibrate_end, sona_track_calibration_set, sona_track_calibration_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
framesuint32_t |
count; default 0: no calibration |
neutral[SONA_TRACK_BLENDSHAPES]float |
factor (unitless, 0 to 1 per blendshape); default 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
head[4]float |
quaternion (x, y, z, w), camera space; default 0, 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_xr_pose¶
Declared in sona_xr.h; taken by sona_xr_openxr_to_world; held in sona_xr_input.
| Field and type | Unit and default |
|---|---|
position[3]float |
m (world units); default 0, 0, 0 |
rotation[4]float |
quaternion (x, y, z, w); default 0, 0, 0, 0 |
sona_xr_options¶
Declared in sona_xr.h; taken by sona_xr_defaults, sona_xr_create.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 48 |
flagsuint32_t |
bit flags; default 0 |
user_heightfloat |
m (world units); default 0: from sona_xr_calibrate |
step_distancefloat |
m (world units); default 0.25 |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
sona_xr_input¶
Declared in sona_xr.h; taken by sona_xr_input_defaults, sona_xr_feed.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 120 |
flagsuint32_t |
bit flags; default 0 |
timedouble |
s; default 0 |
headsona_xr_pose |
a sona_xr_pose (see its fields); default see its members |
left_handsona_xr_pose |
a sona_xr_pose (see its fields); default see its members |
right_handsona_xr_pose |
a sona_xr_pose (see its fields); default see its members |
floor_yfloat |
m (world units); default 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_xr_status¶
Declared in sona_xr.h; taken by sona_xr_status_get.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 0 |
trackeduint32_t |
one of the SONA_ values named; default 0 |
user_heightfloat |
m (world units); default 0 |
scalefloat |
factor (unitless); default 0 |
turn_degfloat |
degrees; default 0 |
position[3]float |
m (world units); default 0, 0, 0 |
crouchfloat |
m (world units); default 0 |
stepsuint32_t |
count; default 0 |
eye[3]float |
m (world units); default 0, 0, 0 |
reserved[4]uint32_t |
reserved, zero; default 0, 0, 0, 0 |
sona_xsdk_config¶
Declared in sona_xsdk.h; taken by sona_xsdk_defaults, sona_xsdk_open.
| Field and type | Unit and default |
|---|---|
sizeuint32_t |
bytes (sizeof the struct); default 84 |
folderconst char * |
text (UTF-8), NULL: none; default game:/ |
tvint |
flag (0 or 1); default 1 |
max_avatarsuint32_t |
count; default 64 |
memory_mbuint32_t |
MB; default 160 |
workersuint32_t |
count; default 5 |
clear[4]float |
colour, 0 to 1 per channel; default 0.1, 0.2, 0.34, 1 |
log_levelint |
one of the SONA_ values named; default 1 |
gateconst char * |
text (UTF-8), NULL: none; default NULL |
check_hostconst char * |
text (UTF-8), NULL: none; default NULL |
reserved[8]uint32_t |
reserved, zero; default 0, 0, 0, 0, 0, 0, 0, 0 |
This page as Markdown · All the docs as one file (llms-full.txt)