home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / writepixels.z / writepixels
Encoding:
Text File  |  2002-10-03  |  2.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss((((3333GGGG))))                                                wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss - paints a row of pixels on the screen
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss((((nnnn,,,, ccccoooolllloooorrrrssss))))
  13.      sssshhhhoooorrrrtttt nnnn;;;;
  14.      CCCCoooolllloooorrrriiiinnnnddddeeeexxxx ccccoooolllloooorrrrssss[[[[]]]];;;;
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _n        expects the number of pixels you want to paint.
  18.  
  19.      _c_o_l_o_r_s   expects an array of color indices.  The system reads _n elements
  20.               from this array and writes a pixel of the appropriate color for
  21.               each.
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss paints a row of pixels on the screen in color map mode.  The
  25.      starting location is the current character position.  The system updates
  26.      the current character position to one pixel to the right of the last
  27.      painted pixel.  The system paints pixels from left to right, and clips to
  28.      the current screenmask.
  29.  
  30.      wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss does not automatically wrap from one line to the next.  The
  31.      current character position becomes undefined if the new position is
  32.      outside the viewport.
  33.  
  34.      The system must be in color map mode for wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss to function
  35.      correctly.
  36.  
  37. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  38.      lrectwrite
  39.  
  40. NNNNOOOOTTTTEEEESSSS
  41.      wwwwrrrriiiitttteeeeppppiiiixxxxeeeellllssss should not be used in new development.  Rather, pixels should
  42.      be written using the high-performance llllrrrreeeeccccttttwwwwrrrriiiitttteeee command.
  43.  
  44.      This routine is available only in immediate mode.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.