[GRASS-SVN] r32034 - in grass/trunk: include lib/ogsf
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 6 16:45:30 EDT 2008
Author: martinl
Date: 2008-07-06 16:45:30 -0400 (Sun, 06 Jul 2008)
New Revision: 32034
Modified:
grass/trunk/include/ogsf_proto.h
grass/trunk/lib/ogsf/GV2.c
grass/trunk/lib/ogsf/ogsflib.dox
Log:
ogsflib: GV_alldraw_fastvect() added
Modified: grass/trunk/include/ogsf_proto.h
===================================================================
--- grass/trunk/include/ogsf_proto.h 2008-07-06 20:43:24 UTC (rev 32033)
+++ grass/trunk/include/ogsf_proto.h 2008-07-06 20:45:30 UTC (rev 32034)
@@ -243,6 +243,7 @@
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);
Modified: grass/trunk/lib/ogsf/GV2.c
===================================================================
--- grass/trunk/lib/ogsf/GV2.c 2008-07-06 20:43:24 UTC (rev 32033)
+++ grass/trunk/lib/ogsf/GV2.c 2008-07-06 20:45:30 UTC (rev 32034)
@@ -439,7 +439,7 @@
}
/*!
- \brief Draw all vector sets
+ \brief Draw all loaded vector sets
*/
void GV_alldraw_vect(void)
{
@@ -453,8 +453,10 @@
}
/*!
- \brief Draw vector sets
+ \brief Draw vector set (fast mode)
+ \todo Seems to be broken, nothing is drawn
+
\param vid vector set id
*/
void GV_draw_fastvect(int vid)
@@ -479,6 +481,20 @@
}
/*!
+ \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
Modified: grass/trunk/lib/ogsf/ogsflib.dox
===================================================================
--- grass/trunk/lib/ogsf/ogsflib.dox 2008-07-06 20:43:24 UTC (rev 32033)
+++ grass/trunk/lib/ogsf/ogsflib.dox 2008-07-06 20:45:30 UTC (rev 32034)
@@ -410,6 +410,8 @@
GV_alldraw_vect()
+GV_alldraw_fastvect()
+
GV_delete_vector()
GV_draw_fastvect()
More information about the grass-commit
mailing list