X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis-opengl.h;h=72d7b13bdf0fe62050ad28a4bbc190e06fce401e;hp=49562d160596ebbc202748d71fb5ea9c3464fd9f;hb=5e97f4c0721a5481afbb2d005538e896ac8baf5a;hpb=733833b754f20c98976bca621d87d090621abff3 diff --git a/src/gis-opengl.h b/src/gis-opengl.h index 49562d1..72d7b13 100644 --- a/src/gis-opengl.h +++ b/src/gis-opengl.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andy Spencer + * Copyright (C) 2009-2010 Andy Spencer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,8 +18,6 @@ #ifndef __GIS_OPENGL_H__ #define __GIS_OPENGL_H__ -#include -#include #include /* Type macros */ @@ -33,27 +31,26 @@ typedef struct _GisOpenGL GisOpenGL; typedef struct _GisOpenGLClass GisOpenGLClass; -#include "gis-view.h" -#include "gis-world.h" -#include "gis-plugin.h" +#include "gis-viewer.h" #include "roam.h" struct _GisOpenGL { - GtkDrawingArea parent_instance; + GisViewer parent_instance; /* instance members */ - GisWorld *world; - GisView *view; - GisPlugins *plugins; + GTree *objects; + GMutex *objects_lock; RoamSphere *sphere; - guint sm_source; + GMutex *sphere_lock; + guint sm_source[2]; + guint ue_source; /* for testing */ gboolean wireframe; }; struct _GisOpenGLClass { - GtkDrawingAreaClass parent_class; + GisViewerClass parent_class; /* class members */ }; @@ -61,15 +58,6 @@ struct _GisOpenGLClass { GType gis_opengl_get_type(void); /* Methods */ -GisOpenGL *gis_opengl_new(GisWorld *world, GisView *view, GisPlugins *plugins); - -void gis_opengl_center_position(GisOpenGL *opengl, - gdouble lat, gdouble lon, gdouble elev); - -void gis_opengl_redraw(GisOpenGL *opengl); - -void gis_opengl_begin(GisOpenGL *opengl); -void gis_opengl_end(GisOpenGL *opengl); -void gis_opengl_flush(GisOpenGL *opengl); +GisViewer *gis_opengl_new(GisPlugins *plugins, GisPrefs *prefs); #endif