Freeciv-3.3
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/************************************************************************/
29const char **gfx_fileextensions(void)
30{
31 /* PORTME */
32
33 /* Hack to allow stub to run */
34 static const char *ext[] = {
35 "png", /* png should be the default. */
36 /* ...etc... */
37 nullptr
38 };
39
40 return ext;
41}
42
43/************************************************************************/
48struct sprite *gui_load_gfxfile(const char *filename, bool svgflag)
49{
50 /* PORTME */
51 return nullptr;
52}
53
54/************************************************************************/
76 int x, int y, int width, int height,
77 struct sprite *mask,
79 float scale, bool smooth)
80{
81 /* PORTME */
82 return nullptr;
83}
84
85/************************************************************************/
88struct sprite *gui_create_sprite(int width, int height, struct color *pcolor)
89{
90 /* PORTME */
91 return nullptr;
92}
93
94/************************************************************************/
98{
99 /* PORTME */
100#if 0
101 *width = sprite->width;
102 *height = sprite->height;
103#endif
104}
105
106/************************************************************************/
109void gui_free_sprite(struct sprite *s)
110{
111 /* PORTME */
112}
113
114/************************************************************************/
118{
119 /* PORTME */
120 return nullptr;
121}
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:76
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:109
struct sprite * gui_load_gfxnumber(int num)
Definition sprite.c:117
void gui_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.c:97
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:75
struct sprite * gui_create_sprite(int width, int height, struct color *pcolor)
Definition sprite.c:88
struct sprite * gui_load_gfxfile(const char *filename, bool svgflag)
Definition sprite.c:48
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