Added missing files.
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Wed, 22 Jan 2014 20:03:53 +0000 (21:03 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Wed, 22 Jan 2014 20:03:53 +0000 (21:03 +0100)
Makefile.am
src/graphics/family.h [new file with mode: 0644]
src/graphics/individual.c [new file with mode: 0644]
src/graphics/individual.h [new file with mode: 0644]
src/viewport/drawing_area.c

index eec6ff54486e7516d4cde5b8ec89716a72efad3b..a1b977a2fccb3e422a188e683e781a807add00cb 100644 (file)
@@ -40,6 +40,7 @@ bin_familia_SOURCES = \
        src/storage/family.c \
        src/storage/positions.c \
        src/math/positions.c \
+       src/graphics/individual.c \
        src/gedcom/familia_gedcom.c \
        src/memory_stack.c \
        src/gui.c \
diff --git a/src/graphics/family.h b/src/graphics/family.h
new file mode 100644 (file)
index 0000000..f084657
--- /dev/null
@@ -0,0 +1,24 @@
+/****************************************************************************
+ *  Familia Lignum - Genealogical program                                   *
+ *  Copyright (C) 2011-2012 Rafał Długołęcki <rafal@dlugolecki.net.pl>      *
+ *                                                                          *
+ *  This program is free software; you can redistribute it and/or modify    *
+ *  it under the terms of the GNU General Public License as published by    *
+ *  the Free Software Foundation; version 2 of the License.                 *
+ *                                                                          *
+ *  This program is distributed in the hope that it will be useful,         *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
+ *  GNU General Public License for more details.                            *
+ *                                                                          *
+ *  You should have received a copy of the GNU General Public License along *
+ *  with this program; if not, write to the Free Software Foundation, Inc., *
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.             *
+ *                                                                          *
+ ****************************************************************************/
+
+#ifndef _FAMILIA_GRAPHICS_FAMILY_H
+#define _FAMILIA_GRAPHICS_FAMILY_H
+
+
+#endif /* _FAMILIA_GRAPHICS_FAMILY_H */
diff --git a/src/graphics/individual.c b/src/graphics/individual.c
new file mode 100644 (file)
index 0000000..0d837ab
--- /dev/null
@@ -0,0 +1,40 @@
+/****************************************************************************
+ *  Familia Lignum - Genealogical program                                   *
+ *  Copyright (C) 2011-2012 Rafał Długołęcki <rafal@dlugolecki.net.pl>      *
+ *                                                                          *
+ *  This program is free software; you can redistribute it and/or modify    *
+ *  it under the terms of the GNU General Public License as published by    *
+ *  the Free Software Foundation; version 2 of the License.                 *
+ *                                                                          *
+ *  This program is distributed in the hope that it will be useful,         *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
+ *  GNU General Public License for more details.                            *
+ *                                                                          *
+ *  You should have received a copy of the GNU General Public License along *
+ *  with this program; if not, write to the Free Software Foundation, Inc., *
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.             *
+ *                                                                          *
+ ****************************************************************************/
+
+#ifndef _FAMILIA_GRAPHICS_INDIVIDUAL_H
+#define _FAMILIA_GRAPHICS_INDIVIDUAL_H
+
+#include <GL/gl.h>
+#include <GL/glu.h>
+
+#include "individual.h"
+
+void graphics_render_individual() {
+       GLUquadric* quad = NULL;
+       quad = gluNewQuadric();
+       gluQuadricDrawStyle(quad, GLU_LINE);
+
+       if (quad) {
+               gluSphere(quad, 1, 10, 10);
+               gluDeleteQuadric(quad);
+               quad = NULL;
+       }
+}
+
+#endif /* _FAMILIA_GRAPHICS_INDIVIDUAL_H */
diff --git a/src/graphics/individual.h b/src/graphics/individual.h
new file mode 100644 (file)
index 0000000..0061474
--- /dev/null
@@ -0,0 +1,25 @@
+/****************************************************************************
+ *  Familia Lignum - Genealogical program                                   *
+ *  Copyright (C) 2011-2012 Rafał Długołęcki <rafal@dlugolecki.net.pl>      *
+ *                                                                          *
+ *  This program is free software; you can redistribute it and/or modify    *
+ *  it under the terms of the GNU General Public License as published by    *
+ *  the Free Software Foundation; version 2 of the License.                 *
+ *                                                                          *
+ *  This program is distributed in the hope that it will be useful,         *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
+ *  GNU General Public License for more details.                            *
+ *                                                                          *
+ *  You should have received a copy of the GNU General Public License along *
+ *  with this program; if not, write to the Free Software Foundation, Inc., *
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.             *
+ *                                                                          *
+ ****************************************************************************/
+
+#ifndef _FAMILIA_GRAPHICS_INDIVIDUAL_H
+#define _FAMILIA_GRAPHICS_INDIVIDUAL_H
+
+void graphics_render_individual();
+
+#endif /* _FAMILIA_GRAPHICS_INDIVIDUAL_H */
index 9a89fad7763fbc70cf4c6e0ca4d3de0406221739..9cb96b0136136f54b517875ee4bec9b9fe04d872 100644 (file)
@@ -48,11 +48,6 @@ gboolean drawing_area_configure_event (GtkWidget *widget,
        GLfloat w;
        /* OpenGL widget height */
        GLfloat h;
-
-       /* Current page width */
-       GLfloat width = 0;
-       /* Current page height */
-       GLfloat height = 0;
        /* Aspect ratio */
        GLfloat aspect = 0;