[GRASS-SVN] r46799 - in grass/trunk: include lib/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 27 10:39:41 EDT 2011


Author: annakrat
Date: 2011-06-27 07:39:41 -0700 (Mon, 27 Jun 2011)
New Revision: 46799

Modified:
   grass/trunk/include/nviz.h
   grass/trunk/lib/nviz/lights.c
Log:
wxNviz: Nviz_draw_model type changed to void

Modified: grass/trunk/include/nviz.h
===================================================================
--- grass/trunk/include/nviz.h	2011-06-27 12:11:43 UTC (rev 46798)
+++ grass/trunk/include/nviz.h	2011-06-27 14:39:41 UTC (rev 46799)
@@ -164,7 +164,7 @@
 int Nviz_set_light_ambient(nv_data *, int, double);
 int Nviz_init_light(nv_data *, int);
 int Nviz_new_light(nv_data *);
-int Nviz_draw_model(nv_data *);
+void Nviz_draw_model(nv_data *);
 
 /* map_obj.c */
 int Nviz_new_map_obj(int, const char *, double, nv_data *);

Modified: grass/trunk/lib/nviz/lights.c
===================================================================
--- grass/trunk/lib/nviz/lights.c	2011-06-27 12:11:43 UTC (rev 46798)
+++ grass/trunk/lib/nviz/lights.c	2011-06-27 14:39:41 UTC (rev 46799)
@@ -182,13 +182,11 @@
 
   \param data nviz data
 */
-int Nviz_draw_model(nv_data * data)
+void Nviz_draw_model(nv_data * data)
 {
     GS_set_draw(GSD_FRONT);
     GS_ready_draw();
     GS_draw_lighting_model();
     GS_done_draw();
     GS_set_draw(GSD_BACK);
-    
-    return 1;
 }



More information about the grass-commit mailing list