struct GsGLINE {
u_long attribute;
short x0, y0;
short x1, y1;
u_char r, g, b;
};
|
Members
attribute
|
Attribute bits as shown below. (Bits not defined below are reserved
by the system)
28-29: Semi-transparency rate
0: 0.5 x Back + 0.5 x Forward
1: 1.0 x Back + 1.0 x Forward
2: 1.0 x Back - 1.0 x Forward
3: 1.0 x Back + 0.25 x Forward
30: Semi-transparency mode
0: Semi-transparency OFF
1: Semi-transparency ON
31: Display mode
0: Enable display
1: Disable display
|
x0, y0 |
Drawing starting point position |
x1, y1 |
Drawing ending point position |
r0, g0, b0 |
Drawing colour of the starting point |
r1, g1, b1 |
Drawing colour of the ending point |
Explanation
GsLINE is a structure that represents straight lines.
Use GsSortLine() to register a GsLINE in the ordering table.
attribute is 32 bits, and sets various attributes for display as shown below:
a) Semi-transparency rate (bit 28-29)
If semi-transparency is turned on using bit 30, bits 28 and 29 are used to set the pixel blending method. Normal semi-transparency processing is performed when these bits are set to 0, pixel addition when set to 1, pixel subtraction when set to 2, and 25% addition when set to 3.
b) Semi-transparency mode (bit 30)
Turns semi-transparency ON/OFF
c) Display mode (bit 31)
Turns the display ON/OFF
See AlsoGsGLINE
|