Angband
Functions | Variables
grafmode.c File Reference

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

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

Functions

static enum parser_error parse_graf_name (struct parser *p)
 
static enum parser_error parse_graf_directory (struct parser *p)
 
static enum parser_error parse_graf_size (struct parser *p)
 
static enum parser_error parse_graf_pref (struct parser *p)
 
static enum parser_error parse_graf_extra (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 (void)
 
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

◆ close_graphics_modes()

void close_graphics_modes ( void  )

References mem_free(), and NULL.

Referenced by finish_parse_grafmode().

◆ finish_parse_grafmode()

static errr finish_parse_grafmode ( struct parser p)
static

◆ get_graphics_mode()

graphics_mode* get_graphics_mode ( byte  id)

◆ init_graphics_modes()

bool init_graphics_modes ( void  )

◆ init_parse_grafmode()

static struct parser* init_parse_grafmode ( void  )
static

◆ parse_graf_directory()

static enum parser_error parse_graf_directory ( struct parser p)
static

◆ parse_graf_extra()

static enum parser_error parse_graf_extra ( struct parser p)
static

◆ parse_graf_name()

static enum parser_error parse_graf_name ( struct parser p)
static

◆ parse_graf_pref()

static enum parser_error parse_graf_pref ( struct parser p)
static

◆ parse_graf_size()

static enum parser_error parse_graf_size ( struct parser p)
static

◆ print_error()

static void print_error ( const char *  name,
struct parser p 
)
static

Variable Documentation

◆ current_graphics_mode

graphics_mode* current_graphics_mode = NULL

◆ graphics_mode_high_id

int graphics_mode_high_id

Referenced by finish_parse_grafmode().

◆ graphics_modes

graphics_mode* graphics_modes

Referenced by get_graphics_mode(), and test_prefs().