Changeset 10
- Timestamp:
- 11/18/07 20:30:18 (6 years ago)
- Location:
- branches/pdfcube-0.0.3
- Files:
-
- 3 modified
- 3 copied
-
. (copied) (copied from tags/pdfcube-0.0.2)
-
ChangeLog (modified) (1 diff)
-
Makefile (modified) (5 diffs)
-
debian (copied) (copied from trunk/pdfcube/debian)
-
pdfcube.1.txt (copied) (copied from trunk/pdfcube/pdfcube.1.txt)
-
src/pdfcube.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pdfcube-0.0.3/ChangeLog
r4 r10 1 2007-01-29 Mirko Maischberger <mirko.maischberger@gmail.com> 2 * pdfcube.1.txt: added the manpage provided by Alexander Wirt, 3 with few modifications. 4 5 2006-12-24 Mirko Maischberger <mirko.maischberger@gmail.com> 6 * configure.ac, src/Makefile.am: Removed unneeded glut and libtool 7 dependencies 8 Reported by: Frank Boheme 9 1 10 2006-12-19 Mirko Maischberger <mirko.maischberger@gmail.com> 2 11 * debian/: Package debianization. 12 * src/llcube.cc: draft of low level cube code. 13 14 2006-12-19 Mirko Maischberger <mirko.maischberger@gmail.com> 3 15 * Autotools, release 0.0.2 4 16 5 6 17 2006-12-16 Mirko Maischberger <mirko.maischberger@gmail.com> 7 8 18 * Release 0.0.1 9 19 10 20 2006-12-09 Mirko Maischberger <mirko.maischberger@gmail.com> 11 12 21 * Initial import 13 -
branches/pdfcube-0.0.3/Makefile
r4 r10 70 70 distuninstallcheck_listfiles = find . -type f -print 71 71 distcleancheck_listfiles = find . -type f -print 72 ACLOCAL = ${SHELL} /home/mirko/oss/pdfcube/ trunk/pdfcube/missing --run aclocal-1.972 ACLOCAL = ${SHELL} /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/missing --run aclocal-1.9 73 73 AMDEP_FALSE = # 74 74 AMDEP_TRUE = 75 AMTAR = ${SHELL} /home/mirko/oss/pdfcube/ trunk/pdfcube/missing --run tar75 AMTAR = ${SHELL} /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/missing --run tar 76 76 AR = ar 77 AUTOCONF = ${SHELL} /home/mirko/oss/pdfcube/ trunk/pdfcube/missing --run autoconf78 AUTOHEADER = ${SHELL} /home/mirko/oss/pdfcube/ trunk/pdfcube/missing --run autoheader79 AUTOMAKE = ${SHELL} /home/mirko/oss/pdfcube/ trunk/pdfcube/missing --run automake-1.977 AUTOCONF = ${SHELL} /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/missing --run autoconf 78 AUTOHEADER = ${SHELL} /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/missing --run autoheader 79 AUTOMAKE = ${SHELL} /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/missing --run automake-1.9 80 80 AWK = gawk 81 81 CC = gcc … … 110 110 LN_S = ln -s 111 111 LTLIBOBJS = 112 MAKEINFO = ${SHELL} /home/mirko/oss/pdfcube/ trunk/pdfcube/missing --run makeinfo112 MAKEINFO = ${SHELL} /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/missing --run makeinfo 113 113 OBJEXT = o 114 114 PACKAGE = pdfcube … … 151 151 glib_LIBS = -lglib-2.0 152 152 gtk_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 153 gtk_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lX fixes -lpango-1.0 -lcairo -lX11-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0153 gtk_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 154 154 gtkglext_CFLAGS = -I/usr/local/include/gtkglext-1.0 -I/usr/local/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 155 gtkglext_LIBS = -Wl,--export-dynamic -L/usr/local/lib -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lX fixes -lpango-1.0 -lcairo -lX11-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0155 gtkglext_LIBS = -Wl,--export-dynamic -L/usr/local/lib -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 156 156 host = i686-pc-linux-gnu 157 157 host_alias = … … 162 162 includedir = ${prefix}/include 163 163 infodir = ${datarootdir}/info 164 install_sh = /home/mirko/oss/pdfcube/ trunk/pdfcube/install-sh164 install_sh = /home/mirko/oss/pdfcube/branches/pdfcube-0.0.3/install-sh 165 165 libdir = ${exec_prefix}/lib 166 166 libexecdir = ${exec_prefix}/libexec … … 173 173 poppler_CFLAGS = -I/usr/include/poppler 174 174 poppler_LIBS = -lpoppler 175 poppler_glib_CFLAGS = -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/ include/glib-2.0 -I/usr/lib/glib-2.0/include176 poppler_glib_LIBS = -lpoppler-glib -l poppler -lgdk_pixbuf-2.0 -lm-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0175 poppler_glib_CFLAGS = -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 176 poppler_glib_LIBS = -lpoppler-glib -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 177 177 prefix = /usr/local 178 178 program_transform_name = s,x,x, -
branches/pdfcube-0.0.3/src/pdfcube.cc
r3 r10 72 72 static bool *page_transition; 73 73 74 // TODO: customize background color on command line 75 static float bgcolor[] = {0.4, 0.0, 0.0}; 76 static GdkPixbuf* cube_top = NULL; 77 74 78 ////////////////////////////////////////////////////////////////////////// 75 79 // Forward declarations … … 150 154 initialize(GtkWidget *widget) 151 155 { 152 glClearColor ( 0.4, 0.0, 0.0, 0.0);156 glClearColor (bgcolor[0], bgcolor[1], bgcolor[2], 0.0); 153 157 154 158 // glEnable(GL_NORMALIZE); … … 729 733 render_page(GdkPixbuf* pm, int i, gint iWidth, gint iHeight) 730 734 { 731 PopplerPage *page ;735 PopplerPage *page = NULL; 732 736 page = poppler_document_get_page(doc, i); 737 assert(page); 733 738 double w, h; 734 739 poppler_page_get_size(page, &w, &h); … … 1410 1415 glconfig = gdk_gl_config_new_by_mode ((GdkGLConfigMode) 1411 1416 ( 1412 GDK_GL_MODE_RGBA |1417 GDK_GL_MODE_RGBA | 1413 1418 GDK_GL_MODE_ALPHA | 1414 1419 GDK_GL_MODE_DEPTH | … … 1496 1501 cerr << "Errore nel nome del file" << endl; 1497 1502 } 1503 1504 GError* g = NULL; 1498 1505 PopplerDocument* document = 1499 poppler_document_new_from_file(filename_uri, NULL, NULL); 1506 poppler_document_new_from_file(filename_uri, NULL, &g); 1507 1508 if(g && g->code) 1509 { 1510 perror(g->message); 1511 exit(2); 1512 } 1500 1513 1501 1514 if(document == NULL)

