|
GRASS 8 Programmer's Manual
8.5.0dev(2025)-9d806b45d8
|
OGSF library - manipulating surfaces (lower level functions) More...

Go to the source code of this file.
Functions | |
| void | gsd_def_cplane (int num, float *pt, float *norm) |
| Define cplace. More... | |
| void | gsd_update_cplanes (void) |
| Update cplaces. More... | |
| void | gsd_cplane_on (int num) |
| ADD. More... | |
| void | gsd_cplane_off (int num) |
| Turn off clip plane. More... | |
| void | gsd_get_cplanes_state (int *onstate) |
| Get cplane state. More... | |
| int | gsd_get_cplanes (Point4 *planes) |
| Get cplaces. More... | |
| void | gsd_update_cpnorm (int num) |
| ADD. More... | |
| void | gsd_cplane_setrot (int num, float rx, float ry, float rz) |
| ADD. More... | |
| void | gsd_cplane_settrans (int num, float tx, float ty, float tz) |
| ADD. More... | |
| void | gsd_draw_cplane_fence (geosurf *surf1, geosurf *surf2, int cpnum) |
| ADD. More... | |
| void | gsd_draw_cplane (int num) |
| Draw cplane. More... | |
OGSF library - manipulating surfaces (lower level functions)
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.
Definition in file gsd_cplane.c.
| void gsd_cplane_off | ( | int | num | ) |
Turn off clip plane.
| num | cplane id |
Definition at line 126 of file gsd_cplane.c.
References gsd_set_clipplane().
Referenced by GS_draw_lighting_model(), and GS_unset_cplane().
| void gsd_cplane_on | ( | int | num | ) |
| void gsd_cplane_setrot | ( | int | num, |
| float | rx, | ||
| float | ry, | ||
| float | rz | ||
| ) |
ADD.
| num | |
| rx,ry,rz |
Definition at line 211 of file gsd_cplane.c.
Referenced by GS_set_cplane_rot().
| void gsd_cplane_settrans | ( | int | num, |
| float | tx, | ||
| float | ty, | ||
| float | tz | ||
| ) |
ADD.
| num | |
| tx,ty,tz |
Definition at line 229 of file gsd_cplane.c.
Referenced by GS_set_cplane_trans().
| void gsd_def_cplane | ( | int | num, |
| float * | pt, | ||
| float * | norm | ||
| ) |
| void gsd_draw_cplane | ( | int | num | ) |
Draw cplane.
| num |
Definition at line 296 of file gsd_cplane.c.
References MAX_CPLANES.
Referenced by GS_draw_cplane().
ADD.
| surf1 | first surface (geosurf) |
| surf2 | second surface (geosurf) [unused] |
| cpnum |
Definition at line 247 of file gsd_cplane.c.
Referenced by GS_draw_cplane(), and GS_draw_cplane_fence().
| int gsd_get_cplanes | ( | Point4 * | planes | ) |
Get cplaces.
Planes MUST be big enough to hold MAX_CPLANES Point4s
| planes | surface coordinates, normal pointing away from visible side |
Definition at line 162 of file gsd_cplane.c.
References MAX_CPLANES.
Referenced by gs_setlos_enterdata().
| void gsd_get_cplanes_state | ( | int * | onstate | ) |
Get cplane state.
onstate MUST be big enough to hold MAX_CPLANES ints
| onstate |
Definition at line 142 of file gsd_cplane.c.
References MAX_CPLANES.
Referenced by GS_alldraw_cplane_fences(), and GS_draw_lighting_model().
| void gsd_update_cplanes | ( | void | ) |
Update cplaces.
Called when viewing matrix changes
Definition at line 86 of file gsd_cplane.c.
References MAX_CPLANES.
Referenced by gsd_set_view().
| void gsd_update_cpnorm | ( | int | num | ) |