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()

◆ 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().