[GRASS-SVN] r72974 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 10 18:15:40 PDT 2018


Author: hcho
Date: 2018-07-10 18:15:40 -0700 (Tue, 10 Jul 2018)
New Revision: 72974

Modified:
   grass/trunk/lib/ogsf/gsd_prim.c
Log:
ogsf: Rename bool to shade

Modified: grass/trunk/lib/ogsf/gsd_prim.c
===================================================================
--- grass/trunk/lib/ogsf/gsd_prim.c	2018-07-10 18:27:54 UTC (rev 72973)
+++ grass/trunk/lib/ogsf/gsd_prim.c	2018-07-11 01:15:40 UTC (rev 72974)
@@ -410,13 +410,13 @@
 /*!
    \brief Set shaded model
 
-   \param bool type non-zero for GL_SMOOTH otherwise GL_FLAT
+   \param shade non-zero for GL_SMOOTH otherwise GL_FLAT
  */
-void gsd_shademodel(int bool)
+void gsd_shademodel(int shade)
 {
-    Shade = bool;
+    Shade = shade;
 
-    if (bool) {
+    if (shade) {
 	glShadeModel(GL_SMOOTH);
     }
     else {
@@ -437,7 +437,7 @@
 }
 
 /*!
-   \brief ADD
+   \brief Draw to the front and back buffers
  */
 void gsd_bothbuffers(void)
 {
@@ -448,10 +448,7 @@
 }
 
 /*!
-   \brief Specify which color buffers are to be drawn
-   into
-
-   \param bool non-zero for enable otherwise disable front buffer
+   \brief Draw to the front buffer
  */
 void gsd_frontbuffer(void)
 {
@@ -462,10 +459,7 @@
 }
 
 /*!
-   \brief Specify which color buffers are to be drawn
-   into
-
-   \param bool non-zero for enable otherwise disable back buffer
+   \brief Draw to the back buffer
  */
 void gsd_backbuffer(void)
 {



More information about the grass-commit mailing list