amino  1.0-beta2
Lightweight Robot Utility Library
scene_plugin.h File Reference

Dynamically load compiled scene graphs. More...

Go to the source code of this file.

Typedefs

typedef struct aa_rx_sg *(* aa_rx_dl_sg_fun) (struct aa_rx_sg *sg, const char *root)
 Type signature of compiled scene graph functions.
 
typedef struct aa_rx_mesh *(* aa_rx_dl_mesh_fun) (void)
 Type signature of compiled mesh functions.
 

Functions

AA_API struct aa_rx_mesh * aa_rx_dl_mesh (const char *filename, const char *name)
 Dynamically load a compiled mesh.
 
AA_API struct aa_rx_sgaa_rx_dl_sg (const char *filename, const char *name, struct aa_rx_sg *scenegraph)
 Dynamically load a compiled scene graph. More...
 
AA_API struct aa_rx_sgaa_rx_dl_sg_at (const char *filename, const char *name, struct aa_rx_sg *scenegraph, const char *root)
 Dynamically load a compiled scene graph under a root frame. More...
 

Detailed Description

Dynamically load compiled scene graphs.

See also
Scene Graph Compiler

Definition in file scene_plugin.h.

Function Documentation

◆ aa_rx_dl_sg()

AA_API struct aa_rx_sg* aa_rx_dl_sg ( const char *  filename,
const char *  name,
struct aa_rx_sg scenegraph 
)

Dynamically load a compiled scene graph.

This function dynamically loads the scene graph plugin (via dlopen()), looks up the symbol for the scene graph load function (via dlsym()), and calls the function to load the scene graph.

Parameters
filenameThe name of the shared object, passed directly as the first parameter to dlopen().
nameThe name of the scene graph, as specified in the prior call to the scene graph compiler. Used to construct the symbol argument for dlsym().
scenegraphAn initial scenegraph to which the loaded scenegraph will be added, or NULL.
See also
aa_rx_dl_sg_at

◆ aa_rx_dl_sg_at()

AA_API struct aa_rx_sg* aa_rx_dl_sg_at ( const char *  filename,
const char *  name,
struct aa_rx_sg scenegraph,
const char *  root 
)

Dynamically load a compiled scene graph under a root frame.

This function dynamically loads the scene graph plugin (via dlopen()), looks up the symbol for the scene graph load function (via dlsym()), and calls the function to load the scene graph.

Parameters
filenameThe name of the shared object, passed directly as the first parameter to dlopen().
nameThe name of the scene graph, as specified in the prior call to the scene graph compiler. Used to construct the symbol argument for dlsym().
scenegraphAn initial scenegraph to which the loaded scenegraph will be added, or NULL.
rootThe root frame under which the new scenegraph is loaded.
See also
aa_rx_dl_sg