Angband
Functions | Variables
grafmode.c File Reference

Load a list of possible graphics modes. More...

#include "angband.h"
#include "grafmode.h"
#include "init.h"
#include "parser.h"

Functions

static enum parser_error parse_graf_n (struct parser *p)
static enum parser_error parse_graf_i (struct parser *p)
static enum parser_error parse_graf_p (struct parser *p)
static enum parser_error parse_graf_x (struct parser *p)
static struct parserinit_parse_grafmode (void)
static errr finish_parse_grafmode (struct parser *p)
static void print_error (const char *name, struct parser *p)
bool init_graphics_modes (const char *filename)
void close_graphics_modes (void)
graphics_modeget_graphics_mode (byte id)

Variables

graphics_modegraphics_modes
graphics_modecurrent_graphics_mode = NULL
int graphics_mode_high_id

Detailed Description

Load a list of possible graphics modes.

Copyright (c) 2011 Brett Reid

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband license": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

void close_graphics_modes ( void  )

References mem_free().

Referenced by finish_parse_grafmode().

static errr finish_parse_grafmode ( struct parser p)
static
graphics_mode* get_graphics_mode ( byte  id)
bool init_graphics_modes ( const char *  filename)
static struct parser* init_parse_grafmode ( void  )
staticread
static enum parser_error parse_graf_i ( struct parser p)
static
static enum parser_error parse_graf_n ( struct parser p)
static
static enum parser_error parse_graf_p ( struct parser p)
static
static enum parser_error parse_graf_x ( struct parser p)
static
static void print_error ( const char *  name,
struct parser p 
)
static

Variable Documentation

graphics_mode* current_graphics_mode = NULL
int graphics_mode_high_id

Referenced by finish_parse_grafmode().

graphics_mode* graphics_modes

Referenced by get_graphics_mode(), and test_prefs().