Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-stub/sprite.c Source File

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/************************************************************************/
30 const 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/************************************************************************/
49 struct sprite *gui_load_gfxfile(const char *filename, bool svgflag)
50{
51 /* PORTME */
52 return NULL;
53}
54
55/************************************************************************/
76 struct sprite *gui_crop_sprite(struct sprite *source,
77 int x, int y, int width, int height,
78 struct sprite *mask,
79 int mask_offset_x, int mask_offset_y,
80 float scale, bool smooth)
81{
82 /* PORTME */
83 return NULL;
84}
85
86/************************************************************************/
89 struct sprite *gui_create_sprite(int width, int height, struct color *pcolor)
90{
91 /* PORTME */
92 return NULL;
93}
94
95/************************************************************************/
98 void gui_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
99{
100 /* PORTME */
101#if 0
102 *width = sprite->width;
103 *height = sprite->height;
104#endif
105}
106
107/************************************************************************/
110 void gui_free_sprite(struct sprite *s)
111{
112 /* PORTME */
113}
114
115/************************************************************************/
118 struct sprite *gui_load_gfxnumber(int num)
119{
120 /* PORTME */
121 return NULL;
122}
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
pcolor
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
incite_cost
char * incite_cost
Definition comments.c:74
source
static GtkWidget * source
Definition gotodlg.c:58
gfx_fileextensions
const char ** gfx_fileextensions(void)
Definition sprite.c:117
gui_free_sprite
void gui_free_sprite(struct sprite *s)
Definition sprite.c:110
gui_load_gfxnumber
struct sprite * gui_load_gfxnumber(int num)
Definition sprite.c:118
gui_get_sprite_dimensions
void gui_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.c:98
gui_crop_sprite
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
gui_create_sprite
struct sprite * gui_create_sprite(int width, int height, struct color *pcolor)
Definition sprite.c:89
gui_load_gfxfile
struct sprite * gui_load_gfxfile(const char *filename, bool svgflag)
Definition sprite.c:49
sprite.h
gui_stub.h
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
mask_offset_y
struct sprite int int int int struct sprite int int mask_offset_y
Definition sprite_g.h:32
color
Definition colors.h:21
sprite
Definition sprite.h:22