X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis-opengl.c;h=ad0b5f4a2cabb56a13745356a3c2b56c648d689a;hp=08babe50b8617e77365cf45df64e91d5a42160b5;hb=b87064909e6d20e1ee2995adae0c1ce5cb692d7e;hpb=7d7d6ae0531a85361ce0d8b997d988b653282847 diff --git a/src/gis-opengl.c b/src/gis-opengl.c index 08babe5..ad0b5f4 100644 --- a/src/gis-opengl.c +++ b/src/gis-opengl.c @@ -36,11 +36,12 @@ #include "objects/gis-marker.h" #include "objects/gis-callback.h" -#define FOV_DIST 2000.0 -#define MPPX(dist) (4*dist/FOV_DIST) - // #define ROAM_DEBUG +/* Tessellation, "finding intersecting triangles" */ +/* http://research.microsoft.com/pubs/70307/tr-2006-81.pdf */ +/* http://www.opengl.org/wiki/Alpha_Blending */ + /*********** * Helpers * ***********/ @@ -198,7 +199,7 @@ static void _draw_tiles(GisOpenGL *opengl, GisTile *tile) static void _draw_marker(GisOpenGL *opengl, GisMarker *marker) { - GisPoint *point = gis_object_center(GIS_OBJECT(marker)); + GisPoint *point = gis_object_center(marker); gdouble px, py, pz; gis_viewer_project(GIS_VIEWER(opengl), point->lat, point->lon, point->elev,