Browse Source

ogsflib: GV_alldraw_fastvect() added

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32034 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 years ago
parent
commit
57a8a496f7
3 changed files with 21 additions and 2 deletions
  1. 1 0
      include/ogsf_proto.h
  2. 18 2
      lib/ogsf/GV2.c
  3. 2 0
      lib/ogsf/ogsflib.dox

+ 1 - 0
include/ogsf_proto.h

@@ -243,6 +243,7 @@ int GV_unselect_surf(int, int);
 int GV_surf_is_selected(int, int);
 void GV_draw_vect(int);
 void GV_alldraw_vect(void);
+void GV_alldraw_fastvect(void);
 void GV_draw_fastvect(int);
 int GV_Set_ClientData(int, void *);
 void *GV_Get_ClientData(int);

+ 18 - 2
lib/ogsf/GV2.c

@@ -439,7 +439,7 @@ void GV_draw_vect(int vid)
 }
 
 /*!
-  \brief Draw all vector sets
+  \brief Draw all loaded vector sets
 */
 void GV_alldraw_vect(void)
 {
@@ -453,7 +453,9 @@ void GV_alldraw_vect(void)
 }
 
 /*!
-  \brief Draw vector sets
+  \brief Draw vector set (fast mode)
+
+  \todo Seems to be broken, nothing is drawn
 
   \param vid vector set id
 */
@@ -479,6 +481,20 @@ void GV_draw_fastvect(int vid)
 }
 
 /*!
+  \brief Draw all loaded vector sets (fast mode)
+*/
+void GV_alldraw_fastvect(void)
+{
+    int id;
+
+    for (id = 0; id < Next_vect; id++) {
+	GV_draw_fastvect(Vect_ID[id]);
+    }
+    
+    return;
+}
+
+/*!
   \brief Set client data
 
   \param id vector set id

+ 2 - 0
lib/ogsf/ogsflib.dox

@@ -410,6 +410,8 @@ sets.
 
 GV_alldraw_vect()
 
+GV_alldraw_fastvect()
+
 GV_delete_vector()
 
 GV_draw_fastvect()