Freeciv-3.3: /fast/freeciv/nightly/main/client/include/sprite_g.h Source File

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 */
20#include "gui_proto_constructor.h"
21
22struct sprite; /* Opaque type, real type is gui-dep */
23struct color;
24
25 GUI_FUNC_PROTO(const char **, gfx_fileextensions, void)
26
27 GUI_FUNC_PROTO(struct sprite *, load_gfxfile, const char *filename,
28 bool svgflag)
29 GUI_FUNC_PROTO(struct sprite *, load_gfxnumber, int num)
30 GUI_FUNC_PROTO(struct sprite *, crop_sprite, struct sprite *source,
31 int x, int y, int width, int height,
32 struct sprite *mask, int mask_offset_x, int mask_offset_y,
33 float scale, bool smooth)
34 GUI_FUNC_PROTO(struct sprite *, create_sprite, int width, int height,
35 struct color *pcolor)
36 GUI_FUNC_PROTO(void, get_sprite_dimensions, struct sprite *sprite,
37 int *width, int *height)
38 GUI_FUNC_PROTO(void, free_sprite, struct sprite *s)
39
40#endif /* FC__SPRITE_G_H */
pcolor
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
incite_cost
char * incite_cost
Definition comments.c:74
free_sprite
void free_sprite(struct sprite *s)
Definition sprite.c:278
create_sprite
struct sprite * create_sprite(int width, int height, struct color *pcolor)
Definition sprite.c:84
load_gfxnumber
struct sprite * load_gfxnumber(int num)
Definition sprite.c:526
load_gfxfile
struct sprite * load_gfxfile(const char *filename, bool svgflag)
Definition sprite.c:170
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
struct sprite int int int width
Definition sprite_g.h:31
mask
struct sprite int int int int struct sprite * mask
Definition sprite_g.h:32
y
struct sprite int int y
Definition sprite_g.h:31
scale
struct sprite int int int int struct sprite int int float scale
Definition sprite_g.h:33
mask_offset_x
struct sprite int int int int struct sprite int mask_offset_x
Definition sprite_g.h:32
x
struct sprite int x
Definition sprite_g.h:31
crop_sprite
crop_sprite
Definition sprite_g.h:30
get_sprite_dimensions
struct sprite int int int int struct sprite int int float bool smooth get_sprite_dimensions
Definition sprite_g.h:36
mask_offset_y
struct sprite int int int int struct sprite int int mask_offset_y
Definition sprite_g.h:32
source
struct sprite * source
Definition sprite_g.h:30
height
struct sprite int int int int height
Definition sprite_g.h:31
color
Definition colors.h:21
sprite
Definition sprite.h:22
support.h