]> Pileus Git - grits/blobdiff - src/grits-opengl.c
Start work on lle2ned for finding coords of cursor
[grits] / src / grits-opengl.c
index a2dce843fd2049a1460aa341580ebf2479533393..dacca98fbadd6ed5e591853791aca0b725723ecb 100644 (file)
@@ -275,9 +275,9 @@ static gboolean on_motion_notify(GritsOpenGL *opengl, GdkEventMotion *event, gpo
 
 
        /* Test unproject */
-       //gdouble lat, lon, elev;
-       //grits_viewer_unproject(GRITS_VIEWER(opengl),
-       //              gl_x, gl_y, -1, &lat, &lon, &elev);
+       gdouble lat, lon, elev;
+       grits_viewer_unproject(GRITS_VIEWER(opengl),
+                       gl_x, gl_y, -1, &lat, &lon, &elev);
 
        /* Cleanup */
        glMatrixMode(GL_PROJECTION); glPopMatrix();
@@ -549,11 +549,11 @@ static void grits_opengl_unproject(GritsViewer *_opengl,
                opengl->sphere->view->view,
                &x, &y, &z);
        xyz2lle(x, y, z, lat, lon, elev);
-       //g_message("GritsOpenGL: unproject - "
-       //              "%4.0lf,%4.0lf,(%5.3lf) -> "
-       //              "%8.0lf,%8.0lf,%8.0lf -> "
-       //              "%6.2lf,%7.2lf,%4.0lf",
-       //      px, py, pz, x, y, z, *lat, *lon, *elev);
+       g_message("GritsOpenGL: unproject - "
+                       "%4.0lf,%4.0lf,(%5.3lf) -> "
+                       "%8.0lf,%8.0lf,%8.0lf -> "
+                       "%6.2lf,%7.2lf,%4.0lf",
+               px, py, pz, x, y, z, *lat, *lon, *elev);
 }
 
 static void grits_opengl_set_height_func(GritsViewer *_opengl, GritsBounds *bounds,