Freeciv-3.3
Loading...
Searching...
No Matches
sprite_g.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team
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.
7
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***********************************************************************/
13#ifndef FC__SPRITE_G_H
14#define FC__SPRITE_G_H
15
16/* utility */
17#include "support.h"
18
19/* client */
21
22struct sprite; /* Opaque type, real type is gui-dep */
23struct color;
24
25GUI_FUNC_PROTO(const char **, gfx_fileextensions, void)
26
28 bool svgflag)
31 int x, int y, int width, int height,
33 float scale, bool smooth)
37 int *width, int *height)
39
40#endif /* FC__SPRITE_G_H */
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
char * incite_cost
Definition comments.c:76
void free_sprite(struct sprite *s)
Definition sprite.c:278
struct sprite * create_sprite(int width, int height, struct color *pcolor)
Definition sprite.c:84
struct sprite * load_gfxnumber(int num)
Definition sprite.c:526
struct sprite * load_gfxfile(const char *filename, bool svgflag)
Definition sprite.c:170
const char ** gfx_fileextensions(void)
Definition sprite.c:117
#define GUI_FUNC_PROTO(_type, _func,...)
struct sprite int int int width
Definition sprite_g.h:31
struct sprite int int int int struct sprite * mask
Definition sprite_g.h:32
struct sprite int int y
Definition sprite_g.h:31
struct sprite int int int int struct sprite int int float scale
Definition sprite_g.h:33
struct sprite int int int int struct sprite int mask_offset_x
Definition sprite_g.h:32
struct sprite int x
Definition sprite_g.h:31
crop_sprite
Definition sprite_g.h:30
struct sprite int int int int struct sprite int int float bool smooth get_sprite_dimensions
Definition sprite_g.h:36
struct sprite int int int int struct sprite int int mask_offset_y
Definition sprite_g.h:32
struct sprite * source
Definition sprite_g.h:30
struct sprite int int int int height
Definition sprite_g.h:31
Definition colors.h:21