GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
OGSF library - matrix transformation (higher level functions) More...
Go to the source code of this file.
Macros | |
#define | MAX_STACK 20 |
#define | NPI M_PI |
Functions | |
void | P_scale (float x, float y, float z) |
ADD. More... | |
void | P_transform (int num_vert, float(*in)[4], float(*out)[4]) |
Transform array of vectors using current T matrix. More... | |
int | P_pushmatrix (void) |
Push current transformation matrix onto matrix stack. More... | |
int | P_popmatrix (void) |
Pop top of matrix stack, placing it into the current transformation matrix. More... | |
void | P_rot (float angle, char axis) |
Rotate matrix. More... | |
OGSF library - matrix transformation (higher level functions)
GRASS OpenGL gsurf OGSF Library
NOTE: This file should be REMOVED and any calls to the functions in this file should be replaced with appropriate OpenGL calls.
This routine should be available in GL!
Arguments are same as GL counterparts
I threw this code together in January at the beginning of this class. I was still learning about GL at the time. There are many places where the code could be improved.
(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 trans.c.
#define MAX_STACK 20 |
Definition at line 37 of file trans.c.
Referenced by P_pushmatrix().
int P_popmatrix | ( | void | ) |
Pop top of matrix stack, placing it into the current transformation matrix.
Definition at line 197 of file trans.c.
References _, and G_warning().
int P_pushmatrix | ( | void | ) |
Push current transformation matrix onto matrix stack.
Definition at line 177 of file trans.c.
References _, G_warning(), and MAX_STACK.
Referenced by gsd_update_cpnorm(), and P_scale().
void P_rot | ( | float | angle, |
char | axis | ||
) |
Rotate matrix.
angle | angle value |
axis | ('x, 'y', 'z') |
Definition at line 217 of file trans.c.
Referenced by gsd_update_cpnorm().
void P_scale | ( | float | x, |
float | y, | ||
float | z | ||
) |
void P_transform | ( | int | num_vert, |
float(*) | in[4], | ||
float(*) | out[4] | ||
) |