瀏覽代碼

ogsf: Rename bool to shade

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72974 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 6 年之前
父節點
當前提交
ddd01c7b1d
共有 1 個文件被更改,包括 7 次插入13 次删除
  1. 7 13
      lib/ogsf/gsd_prim.c

+ 7 - 13
lib/ogsf/gsd_prim.c

@@ -410,13 +410,13 @@ void gsd_endline(void)
 /*!
    \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 @@ int gsd_getshademodel(void)
 }
 
 /*!
-   \brief ADD
+   \brief Draw to the front and back buffers
  */
 void gsd_bothbuffers(void)
 {
@@ -448,10 +448,7 @@ void gsd_bothbuffers(void)
 }
 
 /*!
-   \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 @@ void gsd_frontbuffer(void)
 }
 
 /*!
-   \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)
 {