Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/include/sprite_g.h Source File

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