writepixels(3G) — Silicon Graphics
NAME
writepixels − paints a row of pixels on the screen
SPECIFICATION
C
writepixels(n, colors)
short n;
Colorindex colors[];
FORTRAN
subroutine writep(n, colors)
integer*4 n
integer*2 colors(n)
Pascal
procedure writepixels(n: Short; var colors:
Colorindex);
DESCRIPTION
writepixels paints a row of pixels on the screen; n specifies the number of pixels to paint and color is an array of color indices. The starting location is the current character position. The system updates the current character position to the pixel that follows the last painted pixel. The current character position becomes undefined if the updated pixel position is greater than XMAXSCREEN.
The system paints pixels from left to right, and clips to the current screenmask.
writepixels does not automatically wrap from one line to the next. It can be used in single buffer and double buffer modes.
Use writeRGB in RGB mode.
SEE ALSO
color, readpixels, scrmask, writeRGB Programming Guide, Section 3.9, Writing and Reading Pixels
NOTE
This routine is available only in immediate mode.
Version 3.6 — December 20, 1987