Changeset 72974


Ignore:
Timestamp:
Jul 10, 2018, 6:15:40 PM (6 years ago)
Author:
hcho
Message:

ogsf: Rename bool to shade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/lib/ogsf/gsd_prim.c

    r72971 r72974  
    411411   \brief Set shaded model
    412412
    413    \param bool type non-zero for GL_SMOOTH otherwise GL_FLAT
    414  */
    415 void gsd_shademodel(int bool)
    416 {
    417     Shade = bool;
    418 
    419     if (bool) {
     413   \param shade non-zero for GL_SMOOTH otherwise GL_FLAT
     414 */
     415void gsd_shademodel(int shade)
     416{
     417    Shade = shade;
     418
     419    if (shade) {
    420420        glShadeModel(GL_SMOOTH);
    421421    }
     
    438438
    439439/*!
    440    \brief ADD
     440   \brief Draw to the front and back buffers
    441441 */
    442442void gsd_bothbuffers(void)
     
    449449
    450450/*!
    451    \brief Specify which color buffers are to be drawn
    452    into
    453 
    454    \param bool non-zero for enable otherwise disable front buffer
     451   \brief Draw to the front buffer
    455452 */
    456453void gsd_frontbuffer(void)
     
    463460
    464461/*!
    465    \brief Specify which color buffers are to be drawn
    466    into
    467 
    468    \param bool non-zero for enable otherwise disable back buffer
     462   \brief Draw to the back buffer
    469463 */
    470464void gsd_backbuffer(void)
Note: See TracChangeset for help on using the changeset viewer.