Advanced Strategic Command
loadpcx.h
Go to the documentation of this file.
1 
7 /*
8  This file is part of Advanced Strategic Command; http://www.asc-hq.de
9  Copyright (C) 1994-2010 Martin Bickel and Marc Schellenberger
10 
11  This program is free software; you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) any later version.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; see the file COPYING. If not, write to the
23  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
24  Boston, MA 02111-1307 USA
25 */
26 
27 #ifndef loadpcx_h
28 #define loadpcx_h
29 
30 #include "basestrm.h"
31 #include "basegfx.h"
32 #include "ascstring.h"
33 
34 // extern Uint8 loadpcxxy ( const ASCString& name, bool setpal, int xpos, int ypos, int* xsize = NULL, int* ysize = NULL );
35 // extern Uint8 loadpcxxy( pnstream stream, int x, int y, bool setpalette = false, int* xsize = NULL, int* ysize = NULL );
36 extern void writepcx ( const ASCString& name, int x1, int y1, int x2, int y2, dacpalette256 pal );
37 extern void writepcx ( const ASCString& name, const Surface& s );
38 extern void writepcx ( const ASCString& name, const Surface& s, const SDLmm::SRect& rect );
39 // extern int pcxGetColorDepth ( const ASCString& name, int* width = NULL, int* height= NULL );
40 
41 #endif
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
void writepcx(const ASCString &name, int x1, int y1, int x2, int y2, dacpalette256 pal)
Definition: loadpcxc.cpp:277
The interface for the various streams that ASC offers, like file and memory streams.
dacpalette256 pal
Definition: palette.cpp:33
basegfx.h is the interface for the legacy graphic routines (of which some are platform dependent)...
Uint8 dacpalette256[256][3]
Definition: palette.h:76