Texas Instruments TI89 Developer Guide - Page 651
A_SHADE_NS, A_SHADE_PS. Shading will not occur unless, specifies the shade pattern: A_SHADE_V
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 651 highlights
Appendix A: System Routines - Graphing 609 GrLineFlt Declaration: void GrLineFlt (BCD16 x1, BCD16 y1, BCD16 x2, BCD16 y2, GR_WIN_VARS * grPtr, SWORD pixcur[ ], BYTE funcAttr, BYTE pattern) Category(ies): Graphing Description: Draw a line on the current graph based on the associated viewing window variables as defined by grPtr. Inputs: x1, y1 - First end-point of line to draw. x2, y2 - Second end-point. grPtr - Graph window structure (gr_active, gr_other) defining the window to draw to and the viewing window variables. pixcur - An array of 2 SWORDs. funcAttr - Attribute to use to draw the line: FA_LINE, FA_DOT, FA_THICK, FA_ANIMATE, FA_PATH, FA_ABOVE, FA_BELOW, FA_SQUARE. pattern - If funcAttr is FA_ABOVE or FA_BELOW then pattern specifies the shade pattern: A_SHADE_V, A_SHADE_H, A_SHADE_NS, A_SHADE_PS. Shading will not occur unless gr_flags.gr_in_progress is set. Outputs: pixcur - The pixel values of the 2nd end-point ([0] will be -1 if no plot). Assumptions: The graph is active and not in 3D mode. Side Effects: None Availability: All versions of the TI-89 / TI-92 Plus. TI-89 / TI-92 Plus Differences: None See Also: GrClipLine (which this routine calls), GraphActivate Example: If the graph is active (see GraphActivate) the DrawFBox routine shown below will draw a box on the graph screen with opposite corners (x0, y0) and (x1, y1). void DrawFBox( BCD16 x0, BCD16 y0, BCD16 x1, BCD16 y1 ) { Access_AMS_Global_Variables; SWORD pixcur[2]; GrLineFlt( x0, y1, x0, y0, gr_active, pixcur, FA_LINE, 0 ); GrLineFlt( x0, y0, x1, y0, gr_active, pixcur, FA_LINE, 0 ); GrLineFlt( x1, y0, x1, y1, gr_active, pixcur, FA_LINE, 0 ); GrLineFlt( x1, y1, x0, y1, gr_active, pixcur, FA_LINE, 0 ); } TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/651.png)