-
Notifications
You must be signed in to change notification settings - Fork 0
LibLoader
Sinan Karakaya edited this page Sep 16, 2023
·
1 revision
The parsing of the scene config files is done by the libconfig++ library.
This is an example of libloader config file
libloader :
{
# List of libraries to load
libs = (
{ blockName = "blockName"; filename = "name_of_file.so"; entryPoint = "EntryPoint"; }
)
};
A line starting with #
is a comment and will be ignored by the parser.
⛔ You do not need to change the libloader
section name.
The libraries block contains all the libraries to load.
If you want to add a new library, you need to add a new entry in the libs
list, following this format :
{ blockName = "blockName"; filename = "name_of_file.so"; entryPoint = "EntryPoint"; }
-
blockName
: Name of the block to use in the scene config file -
filename
: Name of the library file to load -
entryPoint
: Name of the entry point function to call in the library
./lib/
and must be compiled with the flag -fPIC
.
You can find all the .so in the lib/ folder in build/, if you are not sure about the name.