Skip to content
modkitv0.2

scene.h

#include <modkit/scene.h>51 functions · 16 structs · 2 enums · 22 typedefs · 3 macros

Optional retained scene collection and rendering orchestration.

Functions

mk_scene_ambientfunction

uint32_t mk_scene_ambient(mk_scene_t scene)

Perform the scene ambient operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.

Returns The resulting value.

mk_scene_caster_generationfunction

uint64_t mk_scene_caster_generation(mk_scene_t scene)

Perform the scene caster generation operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.

Returns The resulting value.

mk_scene_clear_environmentfunction

mk_result mk_scene_clear_environment(mk_scene_t scene)

Clear the environment for the scene.

ParameterTypeDescription
scenemk_scene_tValue for scene.

Returns MK_SUCCESS or an error result.

mk_scene_collectfunction

mk_result mk_scene_collect(mk_scene_t scene, const mk_scene_collect_desc *desc, mk_scene_collection_t **out_collection)

Perform the scene collect operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
descconst mk_scene_collect_desc *Configuration descriptor.
out_collectionmk_scene_collection_t **Receives the collection.

Returns MK_SUCCESS or an error result.

mk_scene_collection_camerafunction

mk_result mk_scene_collection_camera(const mk_scene_collection_t *collection, mk_camera *out_camera, mk_mat4 *out_view, mk_mat4 *out_projection)

Perform the scene collection camera operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_cameramk_camera *Receives the camera.
out_viewmk_mat4 *Receives the view.
out_projectionmk_mat4 *Receives the projection.

Returns MK_SUCCESS or an error result.

mk_scene_collection_freeze_worldfunction

mk_result mk_scene_collection_freeze_world(const mk_scene_collection_t *collection)

Perform the scene collection freeze world operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.

Returns MK_SUCCESS or an error result.

mk_scene_collection_lightsfunction

const mk_light_desc * mk_scene_collection_lights(const mk_scene_collection_t *collection, uint32_t *out_count)

Perform the scene collection lights operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_countuint32_t *Receives the count.

Returns A borrowed pointer, or NULL when unavailable.

mk_scene_collection_opaquefunction

const mk_scene_packet * mk_scene_collection_opaque(const mk_scene_collection_t *collection, uint32_t *out_count)

Perform the scene collection opaque operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_countuint32_t *Receives the count.

Returns A borrowed pointer, or NULL when unavailable.

mk_scene_collection_pickfunction

bool mk_scene_collection_pick(const mk_scene_collection_t *collection, mk_ray ray, uint64_t layer_mask, mk_scene_pick_hit *out_hit)

Perform the scene collection pick operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
raymk_rayValue for ray.
layer_maskuint64_tValue for layer mask.
out_hitmk_scene_pick_hit *Receives the hit.

Returns True when the operation succeeds.

mk_scene_collection_releasefunction

void mk_scene_collection_release(mk_scene_collection_t *collection)

Release scene collection.

ParameterTypeDescription
collectionmk_scene_collection_t *Value for collection.

mk_scene_collection_render_layersfunction

uint64_t mk_scene_collection_render_layers(const mk_scene_collection_t *collection)

Effective render layers after the collect mask and camera mask are combined.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.

Returns The resulting value.

mk_scene_collection_scene_idfunction

uint64_t mk_scene_collection_scene_id(const mk_scene_collection_t *collection)

Perform the scene collection scene ID operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.

Returns The resulting value.

mk_scene_collection_shadow_camerafunction

mk_result mk_scene_collection_shadow_camera(const mk_scene_collection_t *collection, mk_camera *out_camera)

Perform the scene collection shadow camera operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_cameramk_camera *Receives the camera.

Returns MK_SUCCESS or an error result.

mk_scene_collection_shadow_candidatesfunction

const mk_scene_packet * mk_scene_collection_shadow_candidates(const mk_scene_collection_t *collection, uint32_t *out_count)

Perform the scene collection shadow candidates operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_countuint32_t *Receives the count.

Returns A borrowed pointer, or NULL when unavailable.

mk_scene_collection_stats_getfunction

void mk_scene_collection_stats_get(const mk_scene_collection_t *collection, mk_scene_collection_stats *out_stats)

Get state from the scene collection stats.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_statsmk_scene_collection_stats *Receives the stats.

mk_scene_collection_transparentfunction

const mk_scene_packet * mk_scene_collection_transparent(const mk_scene_collection_t *collection, uint32_t *out_count)

Perform the scene collection transparent operation.

ParameterTypeDescription
collectionconst mk_scene_collection_t *Value for collection.
out_countuint32_t *Receives the count.

Returns A borrowed pointer, or NULL when unavailable.

mk_scene_createfunction

mk_scene_t mk_scene_create(const mk_scene_desc *desc)

Create scene.

ParameterTypeDescription
descconst mk_scene_desc *Configuration descriptor.

Returns The resulting handle or value.

mk_scene_destroyfunction

mk_result mk_scene_destroy(mk_scene_t scene)

Destroy the scene.

ParameterTypeDescription
scenemk_scene_tValue for scene.

Returns MK_SUCCESS or an error result.

mk_scene_environmentfunction

bool mk_scene_environment(mk_scene_t scene, mk_scene_environment_desc *out_environment)

Perform the scene environment operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
out_environmentmk_scene_environment_desc *Receives the environment.

Returns True when the operation succeeds.

mk_scene_idfunction

uint64_t mk_scene_id(mk_scene_t scene)

Perform the scene ID operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.

Returns The resulting value.

mk_scene_node_belongs_tofunction

bool mk_scene_node_belongs_to(mk_scene_t scene, mk_scene_node_t node)

Perform the scene node belongs to operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns True when the operation succeeds.

mk_scene_node_clear_camerafunction

mk_result mk_scene_node_clear_camera(mk_scene_t scene, mk_scene_node_t node)

Clear the camera for the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns MK_SUCCESS or an error result.

mk_scene_node_clear_lightfunction

mk_result mk_scene_node_clear_light(mk_scene_t scene, mk_scene_node_t node)

Clear the light for the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns MK_SUCCESS or an error result.

mk_scene_node_clear_meshfunction

mk_result mk_scene_node_clear_mesh(mk_scene_t scene, mk_scene_node_t node)

Clear the mesh for the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns MK_SUCCESS or an error result.

mk_scene_node_clear_modelfunction

mk_result mk_scene_node_clear_model(mk_scene_t scene, mk_scene_node_t node)

Clear the model for the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns MK_SUCCESS or an error result.

mk_scene_node_clear_model_instancefunction

mk_result mk_scene_node_clear_model_instance(mk_scene_t scene, mk_scene_node_t node)

Clear the model instance for the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns MK_SUCCESS or an error result.

mk_scene_node_createfunction

mk_scene_node_t mk_scene_node_create(mk_scene_t scene, mk_scene_node_t parent)

Create scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
parentmk_scene_node_tValue for parent.

Returns The resulting handle or value.

mk_scene_node_destroyfunction

mk_result mk_scene_node_destroy(mk_scene_t scene, mk_scene_node_t node)

Destroy the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns MK_SUCCESS or an error result.

mk_scene_node_equalfunction

bool mk_scene_node_equal(mk_scene_node_t a, mk_scene_node_t b)

Perform the scene node equal operation.

ParameterTypeDescription
amk_scene_node_tValue for a.
bmk_scene_node_tValue for b.

Returns True when the operation succeeds.

mk_scene_node_is_validfunction

bool mk_scene_node_is_valid(mk_scene_node_t node)

Test whether the scene node is valid.

ParameterTypeDescription
nodemk_scene_node_tValue for node.

Returns True when the condition holds.

mk_scene_node_layersfunction

uint64_t mk_scene_node_layers(mk_scene_t scene, mk_scene_node_t node)

Perform the scene node layers operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns The resulting value.

mk_scene_node_local_matrixfunction

mk_result mk_scene_node_local_matrix(mk_scene_t scene, mk_scene_node_t node, mk_mat4 *out_matrix)

Perform the scene node local matrix operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
out_matrixmk_mat4 *Receives the matrix.

Returns MK_SUCCESS or an error result.

mk_scene_node_parentfunction

mk_scene_node_t mk_scene_node_parent(mk_scene_t scene, mk_scene_node_t node)

Perform the scene node parent operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns The resulting handle or value.

mk_scene_node_set_camerafunction

mk_result mk_scene_node_set_camera(mk_scene_t scene, mk_scene_node_t node, const mk_scene_camera_desc *camera)

Set camera on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
cameraconst mk_scene_camera_desc *Value for camera.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_enabledfunction

mk_result mk_scene_node_set_enabled(mk_scene_t scene, mk_scene_node_t node, bool enabled)

Set enabled on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
enabledboolWhether the feature is enabled.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_layersfunction

mk_result mk_scene_node_set_layers(mk_scene_t scene, mk_scene_node_t node, uint64_t layers)

Set layers on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
layersuint64_tValue for layers.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_lightfunction

mk_result mk_scene_node_set_light(mk_scene_t scene, mk_scene_node_t node, const mk_light_desc *light)

Set light on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
lightconst mk_light_desc *Value for light.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_local_matrixfunction

mk_result mk_scene_node_set_local_matrix(mk_scene_t scene, mk_scene_node_t node, const mk_mat4 *matrix)

Set local matrix on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
matrixconst mk_mat4 *Value for matrix.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_local_trsfunction

mk_result mk_scene_node_set_local_trs(mk_scene_t scene, mk_scene_node_t node, const mk_transform *transform)

Set local trs on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
transformconst mk_transform *Value for transform.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_meshfunction

mk_result mk_scene_node_set_mesh(mk_scene_t scene, mk_scene_node_t node, const mk_scene_mesh_desc *mesh)

Set mesh on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
meshconst mk_scene_mesh_desc *Value for mesh.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_modelfunction

mk_result mk_scene_node_set_model(mk_scene_t scene, mk_scene_node_t node, const mk_scene_model_desc *model)

Set model on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
modelconst mk_scene_model_desc *Value for model.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_model_instancefunction

mk_result mk_scene_node_set_model_instance(mk_scene_t scene, mk_scene_node_t node, const mk_scene_model_instance_desc *instance)

Set model instance on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
instanceconst mk_scene_model_instance_desc *Value for instance.

Returns MK_SUCCESS or an error result.

mk_scene_node_set_parentfunction

mk_result mk_scene_node_set_parent(mk_scene_t scene, mk_scene_node_t node, mk_scene_node_t parent)

Set parent on the scene node.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
parentmk_scene_node_tValue for parent.

Returns MK_SUCCESS or an error result.

mk_scene_node_world_enabledfunction

bool mk_scene_node_world_enabled(mk_scene_t scene, mk_scene_node_t node)

Effective enabled state after evaluating the node's parent hierarchy.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.

Returns True when the operation succeeds.

mk_scene_node_world_matrixfunction

mk_result mk_scene_node_world_matrix(mk_scene_t scene, mk_scene_node_t node, mk_mat4 *out_matrix)

Perform the scene node world matrix operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.
nodemk_scene_node_tValue for node.
out_matrixmk_mat4 *Receives the matrix.

Returns MK_SUCCESS or an error result.

mk_scene_renderer_createfunction

mk_scene_renderer_t mk_scene_renderer_create(void)

Create scene renderer.

Returns The resulting handle or value.

mk_scene_renderer_destroyfunction

void mk_scene_renderer_destroy(mk_scene_renderer_t renderer)

Destroy the scene renderer.

ParameterTypeDescription
renderermk_scene_renderer_tValue for renderer.

mk_scene_renderer_renderfunction

mk_result mk_scene_renderer_render(mk_scene_renderer_t renderer, mk_scene_t scene, const mk_scene_render_desc *desc, mk_scene_render_report *out_report)

Perform the scene renderer render operation.

ParameterTypeDescription
renderermk_scene_renderer_tValue for renderer.
scenemk_scene_tValue for scene.
descconst mk_scene_render_desc *Configuration descriptor.
out_reportmk_scene_render_report *Receives the report.

Returns MK_SUCCESS or an error result.

mk_scene_set_ambientfunction

mk_result mk_scene_set_ambient(mk_scene_t scene, uint32_t ambient_rgba)

Set ambient on the scene.

ParameterTypeDescription
scenemk_scene_tValue for scene.
ambient_rgbauint32_tValue for ambient RGBA.

Returns MK_SUCCESS or an error result.

mk_scene_set_environmentfunction

mk_result mk_scene_set_environment(mk_scene_t scene, const mk_scene_environment_desc *environment)

Set environment on the scene.

ParameterTypeDescription
scenemk_scene_tValue for scene.
environmentconst mk_scene_environment_desc *Value for environment.

Returns MK_SUCCESS or an error result.

mk_scene_world_generationfunction

uint64_t mk_scene_world_generation(mk_scene_t scene)

Perform the scene world generation operation.

ParameterTypeDescription
scenemk_scene_tValue for scene.

Returns The resulting value.

Structs

mk_scene_camera_descstruct

Data for scene camera desc.

FieldTypeDescription
cameramk_cameraThe camera.
layer_maskuint64_tThe layer mask.

mk_scene_collect_descstruct

Data for scene collect desc.

FieldTypeDescription
cameramk_scene_node_tThe camera.
shadow_cameramk_scene_node_tThe shadow camera.
render_layer_maskuint64_tThe render layer mask.
shadow_layer_maskuint64_tThe shadow layer mask.

mk_scene_collection_statsstruct

Data for scene collection stats.

FieldTypeDescription
visiteduint32_tThe visited.
visibleuint32_tThe visible.
culleduint32_tThe culled.
unknown_boundsuint32_tThe unknown bounds.
lod_selecteduint32_tThe lod selected.
opaqueuint32_tThe opaque.
transparentuint32_tThe transparent.
shadow_candidatesuint32_tThe shadow candidates.

mk_scene_descstruct

Data for scene desc.

FieldTypeDescription
nameconst char *The name.
initial_node_capacityuint32_tThe initial node capacity.

mk_scene_environment_descstruct

Data for scene environment desc.

FieldTypeDescription
environmentmk_ibl_tThe environment.
rotationfloatThe rotation.
sky_blurfloatThe sky blur.
draw_skyboolThe draw sky.

mk_scene_lodstruct

Data for scene lod.

FieldTypeDescription
geometrymk_geometry_tThe geometry.
materialmk_material_tThe material.
max_distancefloatThe max distance.

mk_scene_mesh_descstruct

Data for scene mesh desc.

FieldTypeDescription
lodsmk_scene_lodThe lods.
lod_countuint8_tThe lod count.
cast_shadowboolThe cast shadow.
receive_shadowboolThe receive shadow.

mk_scene_model_descstruct

Data for scene model desc.

FieldTypeDescription
modelmk_model_tThe model.
cast_shadowboolThe cast shadow.
receive_shadowboolThe receive shadow.

mk_scene_model_instance_descstruct

Data for scene model instance desc.

FieldTypeDescription
instancemk_model_instance_tThe instance.
cast_shadowboolThe cast shadow.
receive_shadowboolThe receive shadow.

mk_scene_node_tstruct

Data for scene node.

FieldTypeDescription
scene_iduint64_tThe scene ID.
slotuint32_tThe slot.
generationuint32_tThe generation.

mk_scene_packetstruct

Data for scene packet.

FieldTypeDescription
nodemk_scene_node_tThe node.
geometrymk_geometry_tThe geometry.
materialmk_material_tThe material.
dynamic_verticesmk_dvbuf_tThe dynamic vertices.
transformmk_mat4The transform.
world_boundsmk_aabbThe world bounds.
layer_maskuint64_tThe layer mask.
camera_depthfloatThe camera depth.
selected_loduint8_tThe selected lod.
has_world_boundsboolThe has world bounds.
cast_shadowboolThe cast shadow.
receive_shadowboolThe receive shadow.

mk_scene_pbr_variant_usagestruct

Data for scene PBR variant usage.

FieldTypeDescription
variant_iduint32_tThe variant ID.
extension_maskuint32_tThe extension mask.
familyuint32_tThe family.
sampler_countuint32_tThe sampler count.
draw_countuint32_tThe draw count.

mk_scene_pick_hitstruct

Data for scene pick hit.

FieldTypeDescription
nodemk_scene_node_tThe node.
distancefloatThe distance.
positionmk_vec3The position.
world_boundsmk_aabbThe world bounds.
selected_loduint8_tThe selected lod.

mk_scene_post_descstruct

Optional scene post settings.

NULL on mk_scene_render_desc uses renderer defaults.

FieldTypeDescription
tonemap_operatorintThe tonemap operator.
exposurefloatThe exposure.
bloommk_bloom_paramsThe bloom.
bloom_intensityfloatThe bloom intensity.
color_lutmk_texture_tThe color lut.
vignettefloatThe vignette.

mk_scene_render_descstruct

Data for scene render desc.

FieldTypeDescription
cameramk_scene_node_tThe camera.
shadow_cameramk_scene_node_tThe shadow camera.
targetmk_render_target_tThe target.
viewport_xuint16_tThe viewport x.
viewport_yuint16_tThe viewport y.
viewport_widthuint16_tThe viewport width.
viewport_heightuint16_tThe viewport height.
clear_flagsuint16_tThe clear flags.
clear_coloruint32_tThe clear color.
clear_depthfloatThe clear depth.
clear_stenciluint8_tThe clear stencil.
render_layer_maskuint64_tThe render layer mask.
shadow_layer_maskuint64_tThe shadow layer mask.
enable_maskuint64_tThe enable mask.
disable_maskuint64_tThe disable mask.
output_color_spacemk_color_space_tThe output color space.
postconst mk_scene_post_desc *The post.
opaque_hookmk_scene_render_hookThe opaque hook.
transparent_hookmk_scene_render_hookThe transparent hook.
hook_user_datavoid *The hook user data.

mk_scene_render_reportstruct

Data for scene render report.

FieldTypeDescription
resultmk_resultThe result.
requested_featuresuint64_tThe requested features.
active_featuresuint64_tThe active features.
disabled_featuresuint64_tThe disabled features.
unsupported_featuresuint64_tThe unsupported features.
output_conversionmk_scene_output_conversion_tThe output conversion.
collectionmk_scene_collection_statsThe collection.
submitteduint32_tThe submitted.
rejecteduint32_tThe rejected.
batchingmk_batch_statsThe batching.
lightingmk_lighting_statsThe lighting.
shadowsmk_shadow_statsThe shadows.
pbr_variantsmk_scene_pbr_variant_usageThe PBR variants.
pbr_variant_countuint8_tThe PBR variant count.
pbr_downgrade_maskuint32_tThe PBR downgrade mask.

Enums

mk_scene_output_conversion_tenum

Values for scene output conversion.

ValueDescription
MK_SCENE_OUTPUT_LINEARSelects linear.
MK_SCENE_OUTPUT_HARDWARE_SRGBSelects hardware srgb.
MK_SCENE_OUTPUT_SOFTWARE_SRGBSelects software srgb.

mk_scene_renderer_featureenum

Values for scene renderer feature.

ValueDescription
MK_SCENE_FEATURE_DIRECT_LIGHTSSelects direct lights.
MK_SCENE_FEATURE_SHADOWSSelects shadows.
MK_SCENE_FEATURE_CLUSTERSSelects clusters.
MK_SCENE_FEATURE_IBLSelects ibl.
MK_SCENE_FEATURE_TRANSMISSIONSelects transmission.
MK_SCENE_FEATURE_BLOOMSelects bloom.
MK_SCENE_FEATURE_TONE_MAPPINGSelects tone mapping.
MK_SCENE_FEATURE_FXAASelects fxaa.
MK_SCENE_FEATURE_SKYSelects sky.
MK_SCENE_FEATURE_AUTO_BATCHSelects auto batch.
MK_SCENE_FEATURE_COLOR_GRADINGSelects color grading.
MK_SCENE_FEATURE_VIGNETTESelects vignette.

Typedefs

mk_scene_camera_desctypedef

typedef struct mk_scene_camera_desc mk_scene_camera_desc

Data for scene camera desc.

mk_scene_collect_desctypedef

typedef struct mk_scene_collect_desc mk_scene_collect_desc

Data for scene collect desc.

mk_scene_collection_statstypedef

typedef struct mk_scene_collection_stats mk_scene_collection_stats

Data for scene collection stats.

mk_scene_collection_ttypedef

typedef struct mk_scene_collection mk_scene_collection_t

Type used for scene collection.

mk_scene_desctypedef

typedef struct mk_scene_desc mk_scene_desc

Data for scene desc.

mk_scene_environment_desctypedef

typedef struct mk_scene_environment_desc mk_scene_environment_desc

Data for scene environment desc.

mk_scene_lodtypedef

typedef struct mk_scene_lod mk_scene_lod

Data for scene lod.

mk_scene_mesh_desctypedef

typedef struct mk_scene_mesh_desc mk_scene_mesh_desc

Data for scene mesh desc.

mk_scene_model_desctypedef

typedef struct mk_scene_model_desc mk_scene_model_desc

Data for scene model desc.

mk_scene_model_instance_desctypedef

typedef struct mk_scene_model_instance_desc mk_scene_model_instance_desc

Data for scene model instance desc.

mk_scene_node_ttypedef

typedef struct mk_scene_node_t mk_scene_node_t

Data for scene node.

mk_scene_output_conversion_ttypedef

typedef enum mk_scene_output_conversion_t mk_scene_output_conversion_t

Values for scene output conversion.

mk_scene_packettypedef

typedef struct mk_scene_packet mk_scene_packet

Data for scene packet.

mk_scene_pbr_variant_usagetypedef

typedef struct mk_scene_pbr_variant_usage mk_scene_pbr_variant_usage

Data for scene PBR variant usage.

mk_scene_pick_hittypedef

typedef struct mk_scene_pick_hit mk_scene_pick_hit

Data for scene pick hit.

mk_scene_post_desctypedef

typedef struct mk_scene_post_desc mk_scene_post_desc

Optional scene post settings.

NULL on mk_scene_render_desc uses renderer defaults.

mk_scene_render_desctypedef

typedef struct mk_scene_render_desc mk_scene_render_desc

Data for scene render desc.

mk_scene_render_hooktypedef

typedef mk_result(*) mk_scene_render_hook(const mk_scene_collection_t *collection, void *user_data)

Type used for scene render hook.

mk_scene_render_reporttypedef

typedef struct mk_scene_render_report mk_scene_render_report

Data for scene render report.

mk_scene_renderer_featuretypedef

typedef enum mk_scene_renderer_feature mk_scene_renderer_feature

Values for scene renderer feature.

mk_scene_renderer_ttypedef

typedef struct mk_scene_renderer* mk_scene_renderer_t

Type used for scene renderer.

mk_scene_ttypedef

typedef struct mk_scene* mk_scene_t

Type used for scene.

Macros

MK_SCENE_MAX_LODSdefine

MK_SCENE_MAX_LODS

Maximum supported scene lods.

MK_SCENE_NODE_INVALIDdefine

MK_SCENE_NODE_INVALID

Invalid sentinel for scene node.

MK_SCENE_REPORT_MAX_PBR_VARIANTSdefine

MK_SCENE_REPORT_MAX_PBR_VARIANTS

Maximum supported scene report PBR variants.