![]() |
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"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 28 of file ex_fluid.c.
| #define MAX_SAMPLE_DATA 10 |
audio MAX_SAMPLE_DATA for bgmusic
Definition at line 52 of file ex_fluid.c.
Referenced by main().
| #define RESERVED_SAMPLES 16 |
audio RESERVED_SAMPLES for bgmusic
Definition at line 50 of file ex_fluid.c.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 78 of file ex_fluid.c.
References __attribute__(), _nstr, _str, bgmusic, N_FLUID::cScale, N_FLUID::density, display, DONE, drawFPS, drawing_chrono, N_FLUID::fluid_production_percentage, fluid_sim, font, fps_timer, Free, free_nstr, fullscreen, get_nb_cpu_cores(), get_usec(), getoptret, N_FLUID::gravity, h(), HEIGHT, key, KEY_DOWN, KEY_ESC, KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_LEFT, KEY_M, KEY_RIGHT, KEY_SPACE, KEY_UP, KEY_W, load_app_state(), LOG_DEBUG, LOG_ERR, log_file, LOG_INFO, log_level, LOG_NOTICE, logic_chrono, logic_timer, logicFPS, Malloc, MAX_SAMPLE_DATA, mouse_button(), 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::overRelaxation, RESERVED_SAMPLES, set_log_file(), set_log_level(), start_HiTimer(), thread_pool, and WIDTH.
| char* bgmusic = NULL |
Definition at line 74 of file ex_fluid.c.
Referenced by load_app_state(), and main().
| ALLEGRO_DISPLAY* display = NULL |
Definition at line 54 of file ex_fluid.c.
Referenced by _apply_cursor(), _n_gui_tree_emit(), _native_monitor_info(), _ngui_clip_get(), _ngui_clip_set(), _textarea_copy_to_clipboard(), _textarea_pos_from_mouse(), main(), main(), n_gui_detect_dpi_scale(), n_gui_set_display(), and n_gui_window_from_display().
| int DONE = 0 |
Definition at line 58 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 62 of file ex_fluid.c.
Referenced by load_app_state(), and main().
| N_TIME drawing_chrono |
| N_FLUID* fluid_sim = NULL |
| ALLEGRO_TIMER* fps_timer = NULL |
Definition at line 65 of file ex_fluid.c.
| bool fullscreen = 0 |
Definition at line 73 of file ex_fluid.c.
Referenced by load_app_state(), and main().
| int getoptret = 0 |
Definition at line 59 of file ex_fluid.c.
Referenced by main(), main(), process_args(), process_args(), process_args(), process_args(), process_args(), and process_args().
| int HEIGHT = 600 |
Definition at line 72 of file ex_fluid.c.
| int log_level = 3 |
Definition at line 60 of file ex_fluid.c.
| N_TIME logic_chrono |
| ALLEGRO_TIMER* logic_timer = NULL |
Definition at line 66 of file ex_fluid.c.
Referenced by main().
| double logicFPS = 120.0 |
Definition at line 63 of file ex_fluid.c.
Referenced by load_app_state(), and main().
| THREAD_POOL* thread_pool = NULL |
Definition at line 76 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(), set_thread_pool_discard(), start_threaded_pool(), wait_for_synced_threaded_pool(), and wait_for_threaded_pool().
| int WIDTH = 800 |
Definition at line 71 of file ex_fluid.c.