DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

BresLine(D4nfb)


BresLine -- Bresenham line structure

Synopsis

#include "miscstruct.h"

Description

Structure definition

typedef struct _BresLine {
	short	x1;
	short	y1;
	short	signdx;
	short	signdy;
	short	axis;
	short	len;
	int	e;
	int	e1;
	int	e2;
} BresLine, *BresLinePtr;

Structure members

The members are:

x1, y1
line starting points

signdx, signdy
direction flags

axis
major axis

len
length of line

e, e1, e2
decision variables

Version applicability

This structure is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

References

For more information about Bresenham lines, see Foley and Van Dam, Fundamentals of Interactive Computer Graphics.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005