Freeciv-3.2
Loading...
Searching...
No Matches
sprite.c
Go to the documentation of this file.
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.
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
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18#include <stdlib.h>
19
20/* gui main header */
21#include "gui_stub.h"
22
23#include "sprite.h"
24
25/************************************************************************/
30const char **gfx_fileextensions(void)
31{
32 /* PORTME */
33
34 /* hack to allow stub to run */
35 static const char *ext[] = {
36 "png", /* png should be the default. */
37 /* ...etc... */
38 NULL
39 };
40
41 return ext;
42}
43
44/************************************************************************/
49struct sprite *gui_load_gfxfile(const char *filename, bool svgflag)
50{
51 /* PORTME */
52 return NULL;
53}
54
55/************************************************************************/
77 int x, int y, int width, int height,
78 struct sprite *mask,
80 float scale, bool smooth)
81{
82 /* PORTME */
83 return NULL;
84}
85
86/************************************************************************/
89struct sprite *gui_create_sprite(int width, int height, struct color *pcolor)
90{
91 /* PORTME */
92 return NULL;
93}
94
95/************************************************************************/
99{
100 /* PORTME */
101#if 0
102 *width = sprite->width;
103 *height = sprite->height;
104#endif
105}
106
107/************************************************************************/
110void gui_free_sprite(struct sprite *s)
111{
112 /* PORTME */
113}
114
115/************************************************************************/
119{
120 /* PORTME */
121 return NULL;
122}
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
char * incite_cost
Definition comments.c:75
static GtkWidget * source
Definition gotodlg.c:58
const char ** gfx_fileextensions(void)
Definition sprite.c:117
void gui_free_sprite(struct sprite *s)
Definition sprite.c:110
struct sprite * gui_load_gfxnumber(int num)
Definition sprite.c:118
void gui_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.c:98
struct sprite * gui_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:76
struct sprite * gui_create_sprite(int width, int height, struct color *pcolor)
Definition sprite.c:89
struct sprite * gui_load_gfxfile(const char *filename, bool svgflag)
Definition sprite.c:49
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
struct sprite int int int int struct sprite int int mask_offset_y
Definition sprite_g.h:32
Definition colors.h:21