Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_allegro_4.c File Reference
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_allegro_4.h"
#include <getopt.h>
Include dependency graph for ex_allegro_4.c:

Go to the source code of this file.

Functions

static void close_cb (void)
static void draw_scene (BITMAP *buf, BITMAP *spr, double t)
static int expect (BITMAP *bmp, int x, int y, int r, int g, int b, const char *what)
int main (int argc, char **argv)
static BITMAP * make_sprite (void)
void process_args (int argc, char **argv)
void usage (void)

Variables

static volatile int close_asked = 0
static int screenshot_mode = 0

Function Documentation

◆ close_cb()

void close_cb ( void )
static
Examples
ex_allegro_4.c.

Definition at line 43 of file ex_allegro_4.c.

References close_asked.

Referenced by main().

Here is the caller graph for this function:

◆ draw_scene()

◆ expect()

int expect ( BITMAP * bmp,
int x,
int y,
int r,
int g,
int b,
const char * what )
static
Examples
ex_allegro_4.c, ex_icc.c, and ex_query.c.

Definition at line 103 of file ex_allegro_4.c.

References getb(), getg(), getpixel(), getr(), LOG_ERR, and n_log.

Referenced by main(), and main().

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

◆ main()

◆ make_sprite()

BITMAP * make_sprite ( void )
static
Examples
ex_allegro_4.c.

Definition at line 91 of file ex_allegro_4.c.

References bitmap_mask_color(), circle(), circlefill(), clear_to_color(), create_bitmap(), makecol(), rectfill(), and triangle().

Referenced by main().

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

◆ process_args()

void process_args ( int argc,
char ** argv )
Examples
ex_allegro_4.c, ex_common.c, ex_cookies.c, ex_diff.c, ex_digest.c, ex_disk_cache.c, ex_dns.c, ex_file.c, ex_git.c, ex_gui_bench.c, ex_gui_button_keys.c, ex_gui_checkbox_label.c, ex_gui_checkbox_release.c, ex_gui_color_picker.c, ex_gui_colorwheel.c, ex_gui_combobox_items.c, ex_gui_curve.c, ex_gui_custom.c, ex_gui_custom_mouse.c, ex_gui_datagrid.c, ex_gui_detach.c, ex_gui_display_fallback.c, ex_gui_dropmenu.c, ex_gui_global_scroll.c, ex_gui_grid.c, ex_gui_hexview.c, ex_gui_hover.c, ex_gui_kvtable.c, ex_gui_label_fits.c, ex_gui_label_lines.c, ex_gui_multiwin.c, ex_gui_placeholder.c, ex_gui_popup.c, ex_gui_progressbar.c, ex_gui_reentrant.c, ex_gui_round.c, ex_gui_sectionlist.c, ex_gui_splitpane.c, ex_gui_syntaxview.c, ex_gui_text_shorten.c, ex_gui_textarea_selection.c, ex_gui_tooltip.c, ex_gui_tree_lazy.c, ex_gui_window_rect.c, ex_gui_zorder.c, ex_hex.c, ex_html.c, ex_http2.c, ex_http2_server.c, ex_http_cookie.c, ex_http_form.c, ex_http_mime.c, ex_http_response.c, ex_http_router.c, ex_http_server.c, ex_json.c, ex_network.c, ex_network_alpn.c, ex_network_sni.c, ex_network_ssl.c, ex_network_ssl_hardened.c, ex_network_ssl_nonblock.c, ex_network_tls_defaults.c, ex_pretty.c, ex_pth.c, ex_random.c, ex_sha256.c, ex_stack.c, ex_threads.c, ex_time_formats.c, ex_trees.c, ex_url.c, ex_x509.c, and ex_zip.c.

Definition at line 55 of file ex_allegro_4.c.

References getoptret, LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, LOG_NULL, screenshot_mode, set_log_level(), and usage().

Referenced by main(), and main().

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

◆ usage()

void usage ( void )

Definition at line 47 of file ex_allegro_4.c.

Variable Documentation

◆ close_asked

volatile int close_asked = 0
static
Examples
ex_allegro_4.c.

Definition at line 41 of file ex_allegro_4.c.

Referenced by close_cb(), and main().

◆ screenshot_mode

int screenshot_mode = 0
static
Examples
ex_allegro_4.c.

Definition at line 40 of file ex_allegro_4.c.

Referenced by main(), and process_args().