… | |
… | |
1396 | CODE: |
1396 | CODE: |
1397 | { |
1397 | { |
1398 | if (dx > 0) |
1398 | if (dx > 0) |
1399 | map_blank (self, self->x, self->y, dx, self->h); |
1399 | map_blank (self, self->x, self->y, dx, self->h); |
1400 | else if (dx < 0) |
1400 | else if (dx < 0) |
1401 | map_blank (self, self->x + self->w + dx + 1, self->y, -dx, self->h); |
1401 | map_blank (self, self->x + self->w + dx, self->y, -dx, self->h); |
1402 | |
1402 | |
1403 | if (dy > 0) |
1403 | if (dy > 0) |
1404 | map_blank (self, self->x, self->y, self->w, dy); |
1404 | map_blank (self, self->x, self->y, self->w, dy); |
1405 | else if (dy < 0) |
1405 | else if (dy < 0) |
1406 | map_blank (self, self->x, self->y + self->h + dy + 1, self->w, -dy); |
1406 | map_blank (self, self->x, self->y + self->h + dy, self->w, -dy); |
1407 | |
1407 | |
1408 | self->ox += dx; self->x += dx; |
1408 | self->ox += dx; self->x += dx; |
1409 | self->oy += dy; self->y += dy; |
1409 | self->oy += dy; self->y += dy; |
1410 | |
1410 | |
1411 | while (self->y < 0) |
1411 | while (self->y < 0) |
… | |
… | |
2387 | RETVAL |
2387 | RETVAL |
2388 | |
2388 | |
2389 | void glDeleteTexture (int name) |
2389 | void glDeleteTexture (int name) |
2390 | CODE: |
2390 | CODE: |
2391 | { |
2391 | { |
|
|
2392 | /* make a half-assed attempt at returning the memory used by the texture */ |
|
|
2393 | /* textures are frequently being reused by cfplus anyway */ |
2392 | glBindTexture (GL_TEXTURE_2D, name); |
2394 | glBindTexture (GL_TEXTURE_2D, name); |
2393 | glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA, 0, 0, 0, GL_ALPHA, GL_UNSIGNED_BYTE, 0); |
2395 | glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA, 0, 0, 0, GL_ALPHA, GL_UNSIGNED_BYTE, 0); |
2394 | av_push (texture_av, (SV *)name); |
2396 | av_push (texture_av, (SV *)name); |
2395 | /*glDeleteTextures (1, &name_);*/ |
2397 | /*glDeleteTextures (1, &name_);*/ |
2396 | } |
2398 | } |