- GisPluginTest *self = g_object_new(GIS_TYPE_PLUGIN_TEST, NULL);
- self->view = view;
- self->opengl = opengl;
- return self;
-}
-
-static void gis_plugin_test_expose(GisPlugin *_self)
-{
- GisPluginTest *self = GIS_PLUGIN_TEST(_self);
- g_debug("GisPluginTest: expose");
-
- double width = GTK_WIDGET(self->opengl)->allocation.width;
- double height = GTK_WIDGET(self->opengl)->allocation.height;
-
- // St. Charles
- // lat = 38.841847
- // lon = -90.491982
- gdouble px, py, pz;
- gis_opengl_project(self->opengl,
- 38.841847, -90.491982, 0, &px, &py, &pz);
- py = height-py;
-
- //cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);
- //cairo_t *cairo = cairo_create(surface);
- //cairo_set_source_rgba(cairo, 1, 1, 1, 1);
- //cairo_arc(cairo, px, py, 4, 0, 2*G_PI);
- //cairo_fill(cairo);
- //cairo_move_to(cairo, px+4, py-8);
- //cairo_set_font_size(cairo, 10);
- //cairo_show_text(cairo, "Marker!");