Angband
Data Structures | Macros | Typedefs | Functions | Variables
grafmode.h File Reference

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

#include "h-basic.h"

Go to the source code of this file.

Data Structures

struct  _graphics_mode
 Specifications for graphics modes. More...

Macros

#define GRAPHICS_NONE   0
 Default graphic modes.

Typedefs

typedef struct _graphics_mode graphics_mode
 Specifications for graphics modes.

Functions

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
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 licence": 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.

Macro Definition Documentation

#define GRAPHICS_NONE   0

Typedef Documentation

typedef struct _graphics_mode graphics_mode

Specifications for graphics modes.

grafID: ID of tile set should be >0 and unique for anything new. alphablend: Bool whether or not the tileset needs alpha blending. overdrawRow: Row in the file where tiles in that row or lower draw the tile above as well. overdrawMax: Row in the file where tiles in that row or above draw the tile above as well. cell_width: Width of an individual tile in pixels. cell_height: Height of an individual tile in pixels. pref: Value of ANGBAND_GRAF variable. file: Name of PNG file (if any). menuname: Name of the tileset in menu.

Function Documentation

void close_graphics_modes ( void  )

References mem_free().

Referenced by finish_parse_grafmode().

graphics_mode* get_graphics_mode ( byte  id)
bool init_graphics_modes ( const char *  filename)

Variable Documentation

graphics_mode* current_graphics_mode
int graphics_mode_high_id

Referenced by finish_parse_grafmode().

graphics_mode* graphics_modes

Referenced by get_graphics_mode(), and test_prefs().