amino
1.0-beta2
Lightweight Robot Utility Library
|
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_sg * | aa_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_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. More... | |
Dynamically load compiled scene graphs.
Definition in file scene_plugin.h.
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.
filename | The name of the shared object, passed directly as the first parameter to dlopen(). |
name | The name of the scene graph, as specified in the prior call to the scene graph compiler. Used to construct the symbol argument for dlsym(). |
scenegraph | An initial scenegraph to which the loaded scenegraph will be added, or NULL. |
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.
filename | The name of the shared object, passed directly as the first parameter to dlopen(). |
name | The name of the scene graph, as specified in the prior call to the scene graph compiler. Used to construct the symbol argument for dlsym(). |
scenegraph | An initial scenegraph to which the loaded scenegraph will be added, or NULL. |
root | The root frame under which the new scenegraph is loaded. |