![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include <locale.h>#include "nilorea/n_common.h"#include "nilorea/n_log.h"#include "nilorea/n_list.h"#include "nilorea/n_str.h"#include "nilorea/n_time.h"#include "nilorea/n_fluids.h"#include <allegro5/allegro.h>#include <allegro5/allegro_ttf.h>#include "allegro5/allegro_audio.h"#include "allegro5/allegro_acodec.h"#include <allegro5/allegro_font.h>#include <allegro5/allegro_image.h>#include <allegro5/allegro_primitives.h>#include "ex_fluid_config.h"
Include dependency graph for ex_fluid.c:Go to the source code of this file.
Macros | |
| #define | ALLEGRO_UNSTABLE 1 |
| #define | MAX_SAMPLE_DATA 10 |
| audio MAX_SAMPLE_DATA for bgmusic | |
| #define | RESERVED_SAMPLES 16 |
| audio RESERVED_SAMPLES for bgmusic | |
Functions | |
| int | main (int argc, char *argv[]) |
Variables | |
| char * | bgmusic = NULL |
| ALLEGRO_DISPLAY * | display = NULL |
| int | DONE = 0 |
| double | drawFPS = 60.0 |
| N_TIME | drawing_chrono |
| N_FLUID * | fluid_sim = NULL |
| ALLEGRO_TIMER * | fps_timer = NULL |
| bool | fullscreen = 0 |
| int | getoptret = 0 |
| int | HEIGHT = 600 |
| int | log_level = 3 |
| N_TIME | logic_chrono |
| ALLEGRO_TIMER * | logic_timer = NULL |
| double | logicFPS = 120.0 |
| THREAD_POOL * | thread_pool = NULL |
| int | WIDTH = 800 |
| #define ALLEGRO_UNSTABLE 1 |
Definition at line 27 of file ex_fluid.c.
| #define MAX_SAMPLE_DATA 10 |
| #define RESERVED_SAMPLES 16 |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 79 of file ex_fluid.c.
References __attribute__(), _nstr, _str, bgmusic, N_FLUID::cScale, N_FLUID::density, display, DONE, drawFPS, drawing_chrono, N_FLUID::dt, N_FLUID::fluid_production_percentage, fluid_sim, fps_timer, Free, free_nstr, fullscreen, get_nb_cpu_cores(), get_usec(), getoptret, N_FLUID::gravity, HEIGHT, key, load_app_state(), LOG_DEBUG, LOG_ERR, log_file, LOG_INFO, log_level, LOG_NOTICE, logic_chrono, logic_timer, logicFPS, N_FLUID::m, Malloc, MAX_SAMPLE_DATA, n_abort(), n_fluid_draw(), n_fluid_resetObstacles(), n_fluid_setObstacle(), n_fluid_simulate(), n_fluid_simulate_threaded(), n_log, new_n_fluid(), new_thread_pool(), nstrprintf, N_FLUID::numIters, N_FLUID::numX, N_FLUID::numY, N_FLUID::overRelaxation, RESERVED_SAMPLES, N_FLUID::s, set_log_file(), set_log_level(), N_FLUID::showPaint, N_FLUID::showPressure, N_FLUID::showSmoke, start_HiTimer(), thread_pool, N_FLUID::u, and WIDTH.
Here is the call graph for this function:| char* bgmusic = NULL |
Definition at line 75 of file ex_fluid.c.
Referenced by main().
| ALLEGRO_DISPLAY* display = NULL |
Definition at line 53 of file ex_fluid.c.
Referenced by _textarea_copy_to_clipboard(), _textarea_pos_from_mouse(), main(), main(), n_gui_detect_dpi_scale(), n_gui_set_display(), and n_gui_tree_rebuild().
| int DONE = 0 |
Definition at line 59 of file ex_fluid.c.
Referenced by destroy_threaded_pool(), main(), main(), manage_client(), netw_recv_func(), and netw_send_func().
| double drawFPS = 60.0 |
Definition at line 63 of file ex_fluid.c.
Referenced by main().
| N_TIME drawing_chrono |
| N_FLUID* fluid_sim = NULL |
| ALLEGRO_TIMER* fps_timer = NULL |
Definition at line 66 of file ex_fluid.c.
Referenced by main().
| bool fullscreen = 0 |
Definition at line 74 of file ex_fluid.c.
Referenced by main().
| int getoptret = 0 |
Definition at line 60 of file ex_fluid.c.
Referenced by main(), main(), process_args(), process_args(), and process_args().
| int HEIGHT = 600 |
Definition at line 73 of file ex_fluid.c.
| int log_level = 3 |
Definition at line 61 of file ex_fluid.c.
Referenced by _n_log(), main(), main(), process_args(), process_args(), process_args(), and set_log_level().
| N_TIME logic_chrono |
| ALLEGRO_TIMER* logic_timer = NULL |
Definition at line 67 of file ex_fluid.c.
Referenced by main().
| double logicFPS = 120.0 |
Definition at line 64 of file ex_fluid.c.
Referenced by main().
| THREAD_POOL* thread_pool = NULL |
Definition at line 77 of file ex_fluid.c.
Referenced by add_threaded_process(), main(), main(), n_fluid_simulate_threaded(), n_vigenere_cypher(), new_thread_pool(), refresh_thread_pool(), start_threaded_pool(), wait_for_synced_threaded_pool(), and wait_for_threaded_pool().
| int WIDTH = 800 |
Definition at line 72 of file ex_fluid.c.