GRASS GIS 7 Programmer's Manual
7.2.2(2017)-exported
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
(C) 1999-2008 by the GRASS Development Team
9
10
This program is free software under the
11
GNU General Public License (>=v2).
12
Read the file COPYING that comes with GRASS
13
for details.
14
15
\author Bill Brown USACERL (December 1993)
16
\author Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)
17
*/
18
19
#include <grass/ogsf.h>
20
21
void (*
Cxl_func
) ();
22
void (*
Swap_func
) ();
23
24
static
int
Cxl = 0;
25
26
/*!
27
\brief Check for cancel
28
29
\return code
30
*/
31
int
GS_check_cancel
(
void
)
32
{
33
Cxl_func
();
34
35
return
(Cxl);
36
}
37
38
/*!
39
\brief Set cancel
40
*/
41
void
GS_set_cancel
(
int
c)
42
{
43
Cxl = c;
44
45
return
;
46
}
47
48
/*!
49
\brief Set cxl function
50
51
\param pointer to function
52
*/
53
void
GS_set_cxl_func
(
void
(*f) (
void
))
54
{
55
Cxl_func
= f;
56
57
return
;
58
}
59
60
/*!
61
\brief Set swap function
62
63
\param pointer to function
64
*/
65
void
GS_set_swap_func
(
void
(*f) (
void
))
66
{
67
Swap_func
= f;
68
69
return
;
70
}
GS_check_cancel
int GS_check_cancel(void)
Check for cancel.
Definition:
gsx.c:31
GS_set_cxl_func
void GS_set_cxl_func(void(*f)(void))
Set cxl function.
Definition:
gsx.c:53
GS_set_swap_func
void GS_set_swap_func(void(*f)(void))
Set swap function.
Definition:
gsx.c:65
Swap_func
void(* Swap_func)()
Definition:
gsx.c:22
GS_set_cancel
void GS_set_cancel(int c)
Set cancel.
Definition:
gsx.c:41
Cxl_func
void(* Cxl_func)()
Definition:
gsx.c:21
ogsf
gsx.c
Generated on Sat Sep 16 2017 14:38:01 for GRASS GIS 7 Programmer's Manual by
1.8.13