ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/expand2x.h
Revision: 1.1
Committed: Fri Feb 3 07:14:21 2006 UTC (18 years, 3 months ago) by root
Content type: text/plain
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# Content
1 /*
2 * Expands a layout by 2x in each dimension.
3 * (Header file)
4 * H. S. Teoh
5 * --------------------------------------------------------------------------
6 * $Id: expand2x.h,v 1.1 2001/05/04 22:10:04 mardahl Exp $
7 */
8
9 #ifndef EXPAND2X_H
10 #define EXPAND2X_H
11
12 /* Expands a layout by 2x in each dimension.
13 * Resulting layout is actually (2*xsize-1)x(2*ysize-1). (Because of the cheesy
14 * algorithm, but hey, it works).
15 *
16 * Don't forget to free the old layout after this is called (it does not
17 * presume to do so itself).
18 */
19 char **expand2x(char **layout, int xsize, int ysize);
20
21 #endif /* EXPAND2X_H */