~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/ogsf/gsd_prim.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*!
2
 
   \file gsd_prim.c
 
2
   \file lib/ogsf/gsd_prim.c
3
3
 
4
4
   \brief OGSF library - primitive drawing functions (lower level functions)
5
5
 
30
30
#endif
31
31
 
32
32
#include <grass/gis.h>
33
 
#include <grass/gstypes.h>
 
33
#include <grass/ogsf.h>
34
34
#include <grass/glocale.h>
35
35
 
36
36
#define USE_GL_NORMALIZE
433
433
/*!
434
434
   \brief ADD
435
435
 */
436
 
void gsd_bothbuffer(void)
 
436
void gsd_bothbuffers(void)
437
437
{
438
438
    /* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
439
439
    glDrawBuffer(GL_FRONT_AND_BACK);
447
447
 
448
448
   \param bool non-zero for enable otherwise disable front buffer
449
449
 */
450
 
void gsd_frontbuffer(int bool)
 
450
void gsd_frontbuffer(void)
451
451
{
452
452
    /* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
453
 
    glDrawBuffer((bool) ? GL_FRONT : GL_BACK);
 
453
    glDrawBuffer(GL_FRONT);
454
454
 
455
455
    return;
456
456
}
461
461
 
462
462
   \param bool non-zero for enable otherwise disable back buffer
463
463
 */
464
 
void gsd_backbuffer(int bool)
 
464
void gsd_backbuffer(void)
465
465
{
466
466
    /* OGLXXX backbuffer: other possibilities include GL_FRONT_AND_BACK */
467
 
    glDrawBuffer((bool) ? GL_BACK : GL_FRONT);
 
467
    glDrawBuffer(GL_BACK);
468
468
    return;
469
469
}
470
470