Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Scene Loader

Functions for loading nodes and scenes from files. More...

Functions

struct Nodeload_node (FILE *file, struct Camera **c, struct Script *scripts, struct Node *editor)
 Loads a node from a file.
 
struct Nodeload_scene (const char *path, struct Camera **c, struct Script *scripts)
 Loads a scene from a file.
 

Detailed Description

Functions for loading nodes and scenes from files.

Function Documentation

◆ load_node()

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.

Parameters
fileThe file to read the node from.
cA pointer to the camera to be updated.
scriptsAn array of scripts to be updated.
editorA pointer to the editor node.
Returns
A pointer to the loaded node.

◆ load_scene()

struct Node * load_scene ( const char *  path,
struct Camera **  c,
struct Script scripts 
)

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.

Parameters
pathThe path to the file to read the scene from.
cA pointer to the camera to be updated.
scriptsAn array of scripts to be updated.
Returns
A pointer to the loaded scene.