![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include "nilorea/n_common.h"#include "nilorea/n_log.h"#include "nilorea/n_allegro_4.h"#include <getopt.h>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 |
|
static |
Definition at line 43 of file ex_allegro_4.c.
References close_asked.
Referenced by main().
Definition at line 112 of file ex_allegro_4.c.
References addr, bmp_unwrite_line(), bmp_write32, bmp_write_line(), circle(), clear_to_color(), DRAW_MODE_SOLID, DRAW_MODE_TRANS, draw_sprite(), draw_sprite_h_flip(), draw_sprite_v_flip(), draw_trans_sprite(), drawing_mode(), ellipsefill(), font, ftofix, itofix, line(), makeacol(), makecol(), pivot_sprite(), putpixel(), rect(), rectfill(), rotate_sprite(), SCREEN_H, SCREEN_W, set_alpha_blender(), set_trans_blender(), stretch_sprite(), textout_right_ex(), textprintf_centre_ex(), textprintf_ex(), and BITMAP::w.
Referenced by main().
|
static |
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().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 154 of file ex_allegro_4.c.
References allegro_error, allegro_exit(), allegro_gl_flip(), allegro_init(), bitmap_mask_color(), blit(), clear_to_color(), close_asked, close_cb(), create_bitmap(), destroy_bitmap(), DRAW_MODE_SOLID, DRAW_MODE_TRANS, draw_scene(), drawing_mode(), expect(), fixtoi, ftofix, getb(), getg(), getpixel(), getr(), GFX_OPENGL_WINDOWED, BITMAP::h, install_keyboard(), install_mouse(), install_timer(), itofix, key, KEY_ESC, LOG_ERR, LOG_NOTICE, make_sprite(), makeacol(), makecol(), n_log, process_args(), rectfill(), rest(), save_bitmap(), screen, SCREEN_H, SCREEN_W, screenshot_mode, set_alpha_blender(), set_close_button_callback(), set_color_depth(), set_gfx_mode(), set_window_title(), and BITMAP::w.
|
static |
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().
| void process_args | ( | int | argc, |
| char ** | argv ) |
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().
| void usage | ( | void | ) |
Definition at line 47 of file ex_allegro_4.c.
|
static |
Definition at line 41 of file ex_allegro_4.c.
Referenced by close_cb(), and main().
|
static |
Definition at line 40 of file ex_allegro_4.c.
Referenced by main(), and process_args().