Freeciv21
Develop your civilization from humble roots to a global empire
sprite_g.h
Go to the documentation of this file.
1
/***********************************************************************
2
_ ._ Copyright (c) 1996-2021 Freeciv21 and Freeciv contributors.
3
\ | This file is part of Freeciv21. Freeciv21 is free software: you
4
\_| can redistribute it and/or modify it under the terms of the
5
.' '. GNU General Public License as published by the Free
6
:O O: Software Foundation, either version 3 of the License,
7
'/ \' or (at your option) any later version. You should have
8
:X: received a copy of the GNU General Public License along with
9
:X: Freeciv21. If not, see https://www.gnu.org/licenses/.
10
***********************************************************************/
11
#pragma once
12
13
#include "
support.h
"
14
15
class
QColor;
16
class
QPixmap;
17
18
QPixmap *
load_gfxfile
(
const
char
*filename);
19
QPixmap *
crop_sprite
(
const
QPixmap *source,
int
x,
int
y,
int
width,
20
int
height,
const
QPixmap *mask,
int
mask_offset_x,
21
int
mask_offset_y);
crop_sprite
QPixmap * crop_sprite(const QPixmap *source, int x, int y, int width, int height, const QPixmap *mask, int mask_offset_x, int mask_offset_y)
Create a new sprite by cropping and taking only the given portion of the image.
Definition:
sprite.cpp:59
load_gfxfile
QPixmap * load_gfxfile(const char *filename)
Load the given graphics file into a sprite.
Definition:
sprite.cpp:25
support.h
client
include
sprite_g.h
Generated by
1.9.1