Freeciv-3.1
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#include "support.h"
18
19struct sprite; /* opaque type, real type is gui-dep */
20struct color;
21
22GUI_FUNC_PROTO(const char **, gfx_fileextensions, void)
23
24GUI_FUNC_PROTO(struct sprite *, load_gfxfile, const char *filename)
25GUI_FUNC_PROTO(struct sprite *, load_gfxnumber, int num)
27 int x, int y, int width, int height,
28 struct sprite *mask, int mask_offset_x, int mask_offset_y,
29 float scale, bool smooth)
31 struct color *pcolor)
33 int *width, int *height)
34GUI_FUNC_PROTO(void, free_sprite, struct sprite *s)
35
36#endif /* FC__SPRITE_G_H */
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color * pcolor
Definition canvas_g.h:57
static GtkWidget * source
Definition gotodlg.c:58
void get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.c:107
void free_sprite(struct sprite *s)
Definition sprite.c:278
struct sprite * load_gfxnumber(int num)
Definition sprite.c:526
struct sprite * load_gfxfile(const char *filename)
Definition sprite.c:170
struct sprite * crop_sprite(struct sprite *source, int x, int y, int width, int height, struct sprite *mask, int mask_offset_x, int mask_offset_y, float scale, bool smooth)
Definition sprite.c:52
const char ** gfx_fileextensions(void)
Definition sprite.c:117
#define GUI_FUNC_PROTO(_type, _func,...)
int width
Definition sprite_g.h:30
create_sprite
Definition sprite_g.h:30
int int height
Definition sprite_g.h:30
Definition colors.h:20