Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-stub/sprite.c Source File

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/************************************************************************/
29 const 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/************************************************************************/
48 struct sprite *gui_load_gfxfile(const char *filename, bool svgflag)
49{
50 /* PORTME */
51 return nullptr;
52}
53
54/************************************************************************/
75 struct sprite *gui_crop_sprite(struct sprite *source,
76 int x, int y, int width, int height,
77 struct sprite *mask,
78 int mask_offset_x, int mask_offset_y,
79 float scale, bool smooth)
80{
81 /* PORTME */
82 return nullptr;
83}
84
85/************************************************************************/
88 struct sprite *gui_create_sprite(int width, int height, struct color *pcolor)
89{
90 /* PORTME */
91 return nullptr;
92}
93
94/************************************************************************/
97 void gui_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
98{
99 /* PORTME */
100#if 0
101 *width = sprite->width;
102 *height = sprite->height;
103#endif
104}
105
106/************************************************************************/
109 void gui_free_sprite(struct sprite *s)
110{
111 /* PORTME */
112}
113
114/************************************************************************/
117 struct sprite *gui_load_gfxnumber(int num)
118{
119 /* PORTME */
120 return nullptr;
121}
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:109
gui_load_gfxnumber
struct sprite * gui_load_gfxnumber(int num)
Definition sprite.c:117
gui_get_sprite_dimensions
void gui_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.c:97
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:75
gui_create_sprite
struct sprite * gui_create_sprite(int width, int height, struct color *pcolor)
Definition sprite.c:88
gui_load_gfxfile
struct sprite * gui_load_gfxfile(const char *filename, bool svgflag)
Definition sprite.c:48
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