Loading...
Searching...
No Matches
gsx.c
Go to the documentation of this file.
/*!
\file lib/ogsf/gsx.c
\brief OGSF library - loading and manipulating surfaces
GRASS OpenGL gsurf OGSF Library
(C) 1999-2008 by the GRASS Development Team
This program is free software under the
GNU General Public License (>=v2).
Read the file COPYING that comes with GRASS
for details.
\author Bill Brown USACERL (December 1993)
\author Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)
*/
#include <grass/ogsf.h>
void (*Cxl_func)(void);
static int Cxl = 0;
/*!
\brief Check for cancel
\return code
*/
int GS_check_cancel(void)
{
Cxl_func();
return (Cxl);
}
/*!
\brief Set cancel
*/
void GS_set_cancel(int c)
{
Cxl = c;
return;
}
/*!
\brief Set cxl function
\param f pointer to function
*/
void GS_set_cxl_func(void (*f)(void))
{
Cxl_func = f;
return;
}
Cxl_func
void(* Cxl_func)(void)
Definition gsx.c:21
GS_set_cxl_func
void GS_set_cxl_func(void(*f)(void))
Set cxl function.
Definition gsx.c:52
GS_check_cancel
int GS_check_cancel(void)
Check for cancel.
Definition gsx.c:30
GS_set_cancel
void GS_set_cancel(int c)
Set cancel.
Definition gsx.c:40