Some miscellaneous updates to main help, for new features and otherwise.
[freeciv.git] / client / gui-qt / graphics.cpp
blob9fd6cd6c82a8b698d31a67be3b5d91e513c7a678
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif
18 #include <stdlib.h>
20 // client
21 #include "tilespec.h"
23 // gui-qt
24 #include "qtg_cxxside.h"
26 #include "graphics.h"
28 static struct sprite *intro_gfx_sprite = NULL;
29 static struct sprite *radar_gfx_sprite = NULL;
31 /****************************************************************************
32 Return whether the client supports isometric view (isometric tilesets).
33 ****************************************************************************/
34 bool qtg_isometric_view_supported()
36 return true;
39 /****************************************************************************
40 Return whether the client supports "overhead" (non-isometric) view.
41 ****************************************************************************/
42 bool qtg_overhead_view_supported()
44 return true;
47 /****************************************************************************
48 Frees the introductory sprites.
49 ****************************************************************************/
50 void qtg_free_intro_radar_sprites()
52 if (intro_gfx_sprite) {
53 free_sprite(intro_gfx_sprite);
54 intro_gfx_sprite = NULL;
56 if (radar_gfx_sprite) {
57 free_sprite(radar_gfx_sprite);
58 radar_gfx_sprite = NULL;