Functions for loading nodes and scenes from files. More...
Functions | |
struct Node * | load_node (FILE *file, struct Camera **c, struct Script *scripts, struct Node *editor) |
Loads a node from a file. | |
struct Node * | load_scene (const char *path, struct Camera **c, struct Script *scripts) |
Loads a scene from a file. | |
Functions for loading nodes and scenes from files.
struct Node * load_node | ( | FILE * | file, |
struct Camera ** | c, | ||
struct Script * | scripts, | ||
struct Node * | editor | ||
) |
Loads a node from a file.
This function reads a node from the given file and initializes it. It also updates the provided camera and scripts as necessary.
file | The file to read the node from. |
c | A pointer to the camera to be updated. |
scripts | An array of scripts to be updated. |
editor | A pointer to the editor node. |
Loads a scene from a file.
This function reads a scene from the specified file path and initializes it. It also updates the provided camera and scripts as necessary.
path | The path to the file to read the scene from. |
c | A pointer to the camera to be updated. |
scripts | An array of scripts to be updated. |