comparison blittest.c @ 363:7d611ebac3e5

Remove unused function.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Oct 2012 22:17:04 +0300
parents daeb5d4f6bad
children
comparison
equal deleted inserted replaced
362:d6c184800384 363:7d611ebac3e5
145 *dp++ = yc + (xc ^ q) + (yc & q); 145 *dp++ = yc + (xc ^ q) + (yc & q);
146 146
147 pix += screen->pitch; 147 pix += screen->pitch;
148 } 148 }
149 } 149 }
150
151 void DM_Perlin(SDL_Surface *screen, float f)
152 {
153 Uint8 *pix = screen->pixels;
154 int xc, yc;
155
156 for (yc = 0; yc < screen->h; yc++)
157 {
158 Uint8 *dp = pix;
159
160 for (xc = 0; xc < screen->w; xc++)
161 {
162 *dp++ = 128 + dmPerlinNoise2D(xc, yc, 0.01, 0.1, 3) / 34.0;
163 }
164
165 pix += screen->pitch;
166 }
167 }
168
169 150
170 #define QWIDTH 256 151 #define QWIDTH 256
171 #define QHEIGHT 160 152 #define QHEIGHT 160
172 153
173 typedef Uint8 DMBlockMap[QHEIGHT][QWIDTH]; 154 typedef Uint8 DMBlockMap[QHEIGHT][QWIDTH];