2005-03-30 mallum,,, <mallum@openedhand.com>
+ * Makefile:
+ * cltr-photo-grid.c: (cltr_photo_grid_redraw),
+ (cltr_photo_grid_new):
+ * cltr-tex.c:
+ * cltr-tex.h:
+ * cltr-texture.c: (cltr_texture_new):
+ More renaming
+
+2005-03-30 mallum,,, <mallum@openedhand.com>
+
* cltr-photo-grid.c: (cltr_photo_grid_populate),
(cltr_photo_grid_redraw), (cltr_photo_grid_new):
* cltr-photo-grid.h:
.c.o:
$(CC) -g -Wall $(CFLAGS) $(INCS) -c $*.c
-OBJS=cltr.o pixbuf.o util.o fonts.o cltr-photo-grid.o cltr-tex.o
+OBJS=cltr.o pixbuf.o util.o fonts.o cltr-photo-grid.o cltr-texture.o
clutter: $(OBJS)
$(CC) -g -Wall -o $@ $(OBJS) $(LIBS)
-$(OBJS): pixbuf.h util.h fonts.h cltr.h cltr-photo-grid.h cltr-tex.h
+$(OBJS): pixbuf.h util.h fonts.h cltr.h cltr-photo-grid.h cltr-texture.h
clean:
rm -fr *.o clutter test
{
ClutterPhotoGridCell *cell = (ClutterPhotoGridCell *)cell_item->data;
Pixbuf *pixb = NULL;
- float tx, ty;
int x1, x2, y1, y2, thumb_w, thumb_h;
int ns_border, ew_border;
x2 = x1 + thumb_w;
y2 = y1 + thumb_h;
- tx = (float) pixb->width / grid->tex_w;
- ty = (float) pixb->height / grid->tex_h;
-
glPushMatrix();
/* Translate origin to rotation point ( photo center ) */
/* Below needs to go else where - some kind of texture manager/helper */
- grid->tex_w = 1024;
- grid->tex_h = 512;
-
- grid->tex_data = malloc (grid->tex_w * grid->tex_h * 4);
-
Mutex_GRID = g_mutex_new();
/* Load */
CLTR_MARK();
- img = g_malloc0(sizeof(CltrImage));
+ texture = g_malloc0(sizeof(CltrTexture));
texture->width = pixb->width;
texture->height = pixb->height;
pixbuf_ref(pixb);
- init_tiles (img);
+ init_tiles (texture);
for (x=0; x < texture->n_x_tiles; x++)
for (y=0; y < texture->n_y_tiles; y++)
}
- return img;
+ return texture;
}