Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_fluid_config.h File Reference
#include "nilorea/n_fluids.h"
+ Include dependency graph for ex_fluid_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int load_app_state (char *state_filename, int *WIDTH, int *HEIGHT, bool *fullscreen, char **bgmusic, double *drawFPS, double *logicFPS, N_FLUID *fluid, int *threaded)
 Load application state from a config file.
 

Function Documentation

◆ load_app_state()

int load_app_state ( char *  state_filename,
int *  WIDTH,
int *  HEIGHT,
bool *  fullscreen,
char **  bgmusic,
double *  drawFPS,
double *  logicFPS,
N_FLUID fluid,
int *  threaded 
)

Load application state from a config file.

Parameters
state_filenamepath to the config file
WIDTHpointer to store display width
HEIGHTpointer to store display height
fullscreenpointer to store fullscreen flag
bgmusicpointer to store background music path
drawFPSpointer to store drawing framerate
logicFPSpointer to store logic framerate
fluidpointer to a N_FLUID to populate
threadedpointer to store threaded processing flag
Returns
TRUE on success, FALSE on error

Definition at line 45 of file ex_fluid_config.c.

References __n_assert, N_FLUID::cScale, N_FLUID::density, destroy_config_file(), N_FLUID::fluid_production_percentage, get_config_section_value(), get_nb_config_file_sections(), N_FLUID::gravity, load_config_file(), LOG_ERR, LOG_INFO, n_log, N_FLUID::numIters, and N_FLUID::overRelaxation.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: