Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_gui_display_fallback.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <allegro5/allegro_primitives.h>
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_gui.h"
Include dependency graph for ex_gui_display_fallback.c:

Go to the source code of this file.

Macros

#define ALLEGRO_UNSTABLE   1

Functions

static void draw_into (N_GUI_CTX *gui, int w, int h)
 draw one pass of the context into a memory bitmap of the given size
static void expect_true (const char *what, int ok)
 record one check
int main (int argc, char **argv)
static int process_args (int argc, char **argv)
 parse -V LOG_LEVEL

Variables

static int failures = 0
static int log_level = 3

Macro Definition Documentation

◆ ALLEGRO_UNSTABLE

#define ALLEGRO_UNSTABLE   1

Definition at line 17 of file ex_gui_display_fallback.c.

Function Documentation

◆ draw_into()

void draw_into ( N_GUI_CTX * gui,
int w,
int h )
static

draw one pass of the context into a memory bitmap of the given size

Examples
ex_gui_display_fallback.c.

Definition at line 58 of file ex_gui_display_fallback.c.

References expect_true(), gui, and n_gui_draw().

Referenced by main().

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

◆ expect_true()

void expect_true ( const char * what,
int ok )
static

record one check

Definition at line 34 of file ex_gui_display_fallback.c.

References failures, LOG_ERR, LOG_INFO, and n_log.

◆ main()

◆ process_args()

int process_args ( int argc,
char ** argv )
static

parse -V LOG_LEVEL

Definition at line 44 of file ex_gui_display_fallback.c.

References log_level.

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 31 of file ex_gui_display_fallback.c.

◆ log_level

int log_level = 3
static

Definition at line 30 of file ex_gui_display_fallback.c.