6 extern options_struct *options;
8 static int nb_images = 0;
13 #include "texture_map.h"
16 class Gliv:Image from G:Object {
23 public texture_map *maps;
24 public gboolean has_alpha;
25 public gboolean first_image;
26 public gfloat initial_angle;
27 public gboolean initial_h_flip;
29 public GlivImage *new(void)
31 /* This is used to detect bugs */
34 g_printerr("There are more than 4 images: %d images\n", nb_images);
36 else if (options->one_image && nb_images > 2)
37 /* We can have two images : the displayed one and the just loaded */
38 g_printerr("There are more than 2 images: %d images\n", nb_images);
44 override (G:Object) void finalize(GObject * self)
48 GlivImage *im = GLIV_IMAGE(self);
50 for (level = 0; level < im->nb_maps; level++) {
51 map = im->maps + level;
53 glDeleteTextures(map->nb_tiles, map->tex_ids);
56 glDeleteLists(map->list, map->nb_tiles);