]> Pileus Git - grits/blobdiff - src/objects/gis-object.h
Move OpenGL code from GisOpenGL to objects
[grits] / src / objects / gis-object.h
index 6763a5fd18a4425763712b27028fa7089cc27585..3060c64332a2d55366502859a9c598d0c0b10194 100644 (file)
@@ -40,12 +40,19 @@ struct _GisObject {
        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