Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_gui_md.c File Reference
#include "nilorea/n_gui.h"
#include "nilorea/n_gui_md.h"
#include "nilorea/n_log.h"
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_ttf.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for ex_gui_md.c:

Go to the source code of this file.

Macros

#define CHECK(cond, msg)

Functions

static ALLEGRO_FONT * face (const char *name, int px)
 Load a face, trying the usual places; NULL when there is none, which the renderer is documented to survive.
int main (int argc, char **argv)

Variables

static int failures = 0
static const char * SAMPLE
 Every block kind at once, so one measure covers the lot.

Macro Definition Documentation

◆ CHECK

#define CHECK ( cond,
msg )
Value:
do { \
if (!(cond)) { \
n_log(LOG_ERR, "FAIL: %s", (msg)); \
failures++; \
} \
} while (0)
static int failures
Definition ex_atlas.c:51
#define LOG_ERR
error conditions
Definition n_log.h:100

Definition at line 51 of file ex_gui_md.c.

Function Documentation

◆ face()

ALLEGRO_FONT * face ( const char * name,
int px )
static

Load a face, trying the usual places; NULL when there is none, which the renderer is documented to survive.

Examples
ex_gui_md.c.

Definition at line 87 of file ex_gui_md.c.

Referenced by main().

Here is the caller graph for this function:

◆ main()

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 49 of file ex_gui_md.c.