26 #define FRINGE_FORE 0x000000
27 #define FRINGE_WIDTH 2
34 float Neast[] = {0.8, 0.0, 0.6};
35 float Nwest[] = {-0.8, 0.0, 0.6};
36 float Ntop[] = {0.0, 0.0, 1.0};
77 if (where[0] || where[1]) {
91 if (where[2] || where[3]) {
105 if (where[0] || where[2]) {
118 if (where[1] || where[3]) {
148 int row_shift, max_row_shift;
165 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
166 ((row + side) * (surf->
y_mod * surf->
yres));
174 while (!
GET_MAPATT(buff, offset, pt[
Z]) && row_shift < max_row_shift) {
177 offset = ((row - row_shift) * surf->
y_mod * surf->
cols) +
180 offset = ((row + row_shift) * surf->
y_mod * surf->
cols) +
186 for (col = 0; col < xcnt - 1; col++) {
189 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
190 ((row + side) * (surf->
y_mod * surf->
yres));
197 while (!
GET_MAPATT(buff, offset, pt[
Z]) && row_shift < max_row_shift) {
200 offset = ((row - row_shift) * surf->
y_mod * surf->
cols) +
203 offset = ((row + row_shift) * surf->
y_mod * surf->
cols) +
234 int row_shift, max_row_shift;
251 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
252 ((row + side) * (surf->
y_mod * surf->
yres));
259 while (!
GET_MAPATT(buff, offset, pt[
Z]) && row_shift < max_row_shift) {
262 offset = ((row - row_shift) * surf->
y_mod * surf->
cols) +
265 offset = ((row + row_shift) * surf->
y_mod * surf->
cols) +
271 for (col = 0; col < xcnt - 1; col++) {
274 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
275 ((row + side) * (surf->
y_mod * surf->
yres));
278 while (!
GET_MAPATT(buff, offset, pt[
Z]) && row_shift < max_row_shift) {
281 offset = ((row - row_shift) * surf->
y_mod * surf->
cols) +
284 offset = ((row + row_shift) * surf->
y_mod * surf->
cols) +
293 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
294 ((row + side) * (surf->
y_mod * surf->
yres));
300 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
301 ((row + side) * (surf->
y_mod * surf->
yres));
330 int col_shift, max_col_shift;
355 while (!
GET_MAPATT(buff, offset, pt[
Z]) && col_shift < max_col_shift) {
358 offset = (row * surf->
y_mod * surf->
cols) +
359 ((col - col_shift) * surf->
x_mod);
361 offset = (row * surf->
y_mod * surf->
cols) +
362 ((col + col_shift) * surf->
x_mod);
367 for (row = 0; row < ycnt - 1; row++) {
370 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
377 while (!
GET_MAPATT(buff, offset, pt[
Z]) && col_shift < max_col_shift) {
380 offset = (row * surf->
y_mod * surf->
cols) +
381 ((col - col_shift) * surf->
x_mod);
383 offset = (row * surf->
y_mod * surf->
cols) +
384 ((col + col_shift) * surf->
x_mod);
414 int col_shift, max_col_shift;
438 while (!
GET_MAPATT(buff, offset, pt[
Z]) && col_shift < max_col_shift) {
441 offset = (row * surf->
y_mod * surf->
cols) +
442 ((col - col_shift) * surf->
x_mod);
444 offset = (row * surf->
y_mod * surf->
cols) +
445 ((col + col_shift) * surf->
x_mod);
450 for (row = 0; row < ycnt - 1; row++) {
453 pt[
Y] = ((surf->
rows - 1) * surf->
yres) -
457 while (!
GET_MAPATT(buff, offset, pt[
Z]) && col_shift < max_col_shift) {
460 offset = (row * surf->
y_mod * surf->
cols) +
461 ((col - col_shift) * surf->
x_mod);
463 offset = (row * surf->
y_mod * surf->
cols) +
464 ((col + col_shift) * surf->
x_mod);
530 for (col = 0; col < xcnt - 1; col++) {
534 offset = col * surf->
x_mod;
void gsd_pushmatrix(void)
Push the current matrix stack.
void GS_set_draw(int)
Sets which buffer to draw to.
void gsd_do_scale(int)
Set current scale.
void gsd_bgnqstrip(void)
ADD.
void gsd_endqstrip(void)
ADD.
void gsd_color_func(unsigned int)
Set current color.
void gsd_translate(float, float, float)
Multiply the current matrix by a translation matrix.
void gsd_popmatrix(void)
Pop the current matrix stack.
void gsd_flush(void)
Mostly for flushing drawing commands across a network.
void gsd_zwritemask(unsigned long)
Write out z-mask.
void gsd_linewidth(short)
Set width of rasterized lines.
void gsd_endline(void)
End line.
void gsd_colormode(int)
Set color mode.
typbuff * gs_get_att_typbuff(geosurf *, int, int)
Get attribute data buffer.
void gsd_bgnline(void)
Begin line.
void GS_done_draw(void)
Draw done, swap buffers.
void gsd_vert_func(float *)
ADD.
void gsd_fringe_vert_poly(float bot, geosurf *surf, int col, int side)
Draw fringe outline in y direction.
void gsd_fringe_horiz_poly(float bot, geosurf *surf, int row, int side)
Draw fringe polygon in x direction.
void gsd_display_fringe(geosurf *surf, unsigned long clr, float elev, int where[4])
Display fridge.
void gsd_fringe_vert_line(float bot, geosurf *surf, int col, int side)
Draw fringe outline in y direction.
void gsd_fringe_horiz_line(float bot, geosurf *surf, int row, int side)
Draw fringe outline in x direction.
void gsd_fringe_horiz_line2(float bot, geosurf *surf, int row, int side)
ADD.
#define GET_MAPATT(buff, offset, att)