GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
gsx.c
Go to the documentation of this file.
1/*!
2 \file lib/ogsf/gsx.c
3
4 \brief OGSF library - loading and manipulating surfaces
5
6 GRASS OpenGL gsurf OGSF Library
7
8 SPDX-FileCopyrightText: 1999-2008 GRASS Development Team
9 SPDX-License-Identifier: GPL-2.0-or-later
10
11 \author Bill Brown USACERL (December 1993)
12 \author Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)
13 */
14
15#include <grass/ogsf.h>
16
18
19static int Cxl = 0;
20
21/*!
22 \brief Check for cancel
23
24 \return code
25 */
27{
28 Cxl_func();
29
30 return (Cxl);
31}
32
33/*!
34 \brief Set cancel
35 */
36void GS_set_cancel(int c)
37{
38 Cxl = c;
39
40 return;
41}
42
43/*!
44 \brief Set cxl function
45
46 \param f pointer to function
47 */
48void GS_set_cxl_func(void (*f)(void))
49{
50 Cxl_func = f;
51
52 return;
53}
void(* Cxl_func)(void)
Definition gsx.c:17
void GS_set_cxl_func(void(*f)(void))
Set cxl function.
Definition gsx.c:48
int GS_check_cancel(void)
Check for cancel.
Definition gsx.c:26
void GS_set_cancel(int c)
Set cancel.
Definition gsx.c:36
OGSF header file (structures)