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. More...
 

Typedefs

typedef struct _graphics_mode graphics_mode
 Specifications for graphics modes. More...
 

Functions

bool init_graphics_modes ()
 
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

◆ GRAPHICS_NONE

#define GRAPHICS_NONE   0

Typedef Documentation

◆ graphics_mode

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

◆ close_graphics_modes()

void close_graphics_modes ( void  )

References mem_free(), and NULL.

Referenced by finish_parse_grafmode().

◆ get_graphics_mode()

graphics_mode* get_graphics_mode ( byte  id)

◆ init_graphics_modes()

bool init_graphics_modes ( )

Variable Documentation

◆ current_graphics_mode

graphics_mode* current_graphics_mode

◆ 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().