]> Pileus Git - grits/blobdiff - src/gis-opengl.h
Add locking when modifying for viewer object lists
[grits] / src / gis-opengl.h
index 0ef682df6a243fdebe7429b8c775eedbcf6f3bba..72d7b13bdf0fe62050ad28a4bbc190e06fce401e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
  *
  * 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
@@ -38,8 +38,12 @@ struct _GisOpenGL {
        GisViewer parent_instance;
 
        /* instance members */
+       GTree      *objects;
+       GMutex     *objects_lock;
        RoamSphere *sphere;
+       GMutex     *sphere_lock;
        guint       sm_source[2];
+       guint       ue_source;
 
        /* for testing */
        gboolean    wireframe;
@@ -54,6 +58,6 @@ struct _GisOpenGLClass {
 GType gis_opengl_get_type(void);
 
 /* Methods */
-GisViewer *gis_opengl_new(GisPlugins *plugins);
+GisViewer *gis_opengl_new(GisPlugins *plugins, GisPrefs *prefs);
 
 #endif