aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/include/game_select.h
blob: 8de54d70a3cb3e48da43c60b5955918e8b369782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _SCI_GAME_SELECT_H
#define _SCI_GAME_SELECT_H

#include "sci/include/list.h"

typedef struct game {
	char *name;
	char dir[MAXPATHLEN];
	int conf_nr;
} game_t;

typedef struct games_list {
	LIST_ENTRY(games_list) entries;

	game_t game;
} games_list_t;

typedef LIST_HEAD(games_list_head, games_list) games_list_head_t;

int game_select_gfxop_init_default(gfx_state_t *state, gfx_options_t *options, void *misc_info);

int game_select_gfxop_init(gfx_state_t *state, int xfact, int yfact, gfx_color_mode_t bpp, gfx_options_t *options, void *misc_info);

int
game_select_display(gfx_driver_t *gfx_driver, game_t* game_list, int game_count, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small);

void game_select_scan_info(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small, char *name, int total);


#if 0
/* this can be used to generate code that creates a particular font at runtime */
/* this is meant to be used as a development tool */
void save_font(int id, gfx_bitmap_font_t* font)
#endif

#endif /* _SCI_GAME_SELECT_H */