]> Pileus Git - grits/blobdiff - src/objects/gis-object.h
Move OpenGL code from GisOpenGL to objects
[grits] / src / objects / gis-object.h
index 1777fce1fb27713af276971c95f929876a2ef593..3060c64332a2d55366502859a9c598d0c0b10194 100644 (file)
@@ -36,15 +36,23 @@ typedef struct _GisObjectClass GisObjectClass;
 struct _GisObject {
        GObject  parent_instance;
        GisPoint center;
+       gboolean hidden;
        gdouble  lod;
 };
 
+#include "gis-opengl.h"
 struct _GisObjectClass {
        GObjectClass parent_class;
+
+       /* Move some of these to GObject? */
+       void (*draw) (GisObject *object, GisOpenGL *opengl);
 };
 
 GType gis_object_get_type(void);
 
+/* Implemented by sub-classes */
+void gis_object_draw(GisObject *object, GisOpenGL *opengl);
+
 /**
  * gis_object_center:
  * @object: The #GisObject to get the center of