Supported Browsers Home   
GA_stipple Previous   
GA_videoFuncs Next   
Type Definitions Up   

GA_trap

Declaration

typedef struct {
    N_uint32    y;
    N_uint32    count;
    N_fix32     x1;
    N_fix32     x2;
    N_fix32     slope1;
    N_fix32     slope2;
    } GA_trap

Prototype In

snap/graphics.h

Description

Parameter block for the 2D DrawTrap function. This structure is used to pass in the information about a trapezoid to be rendered by the hardware to the driver DrawTrap function.

Members

y

Starting Y coordinate

count

Number of scanlines to draw

x1

Starting X1 coordinate in 16.16 fixed point

x2

Starting X2 coordinate in 16.16 fixed point

slope1

First edge slope in 16.16 fixed point format

slope2

Second edge slope in 16.16 fixed point format

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com