1vga_hlinelistblt(3)           Svgalib User Manual          vga_hlinelistblt(3)
2
3
4

NAME

6       vga_hlinelistblt - draw horizontal scan lines
7

SYNOPSIS

9       #include <vga.h>
10
11       void  vga_hlinelistblt(int  ymin,  int  n,  int  *xmin, int *xmax , int
12       pitch, int c);
13
14

DESCRIPTION

16       *xmin and *xmax are pointers to arrays of n integers.  There are n hor‐
17       izontal  lines  drawn,  for i in 0 .. (n - 1) a horizontal line will be
18       drawn from pixel (xmin[i], ymin + i) to (xmax[i], ymin + i) using color
19       c.   Pixel  (0,0)  is considered to be at the absolute beginning of the
20       SVGA memory.  (as if vga_setdisplaystart(0) was called)
21
22       This is an old style function to access  the  accelerator  of  an  SVGA
23       card.  Before calling it you should check for availability of the func‐
24       tion in the mode you use with vga_getmodeinfo(3).
25
26       For new applications you might be better of trying to use  vga_accel(3)
27       instead.
28
29       The  old vga_bitblt(3), vga_blitwait(3), vga_fillblt(3), vga_hlinelist‐
30       blt(3), and vga_imageblt(3) interface was originally designed  for  the
31       Cirrus  chipsets.  Then  Mach32  added  support too but has problems to
32       resemble the unintuitive Cirrus interface. Then these  new  ideas  were
33       reinjected  and vga_accel(3) was designed. Now Cirrus and Chips & Tech‐
34       nologies chipset give limited vga_accel(3) support but no  longer  this
35       old style support.  Mach32 is left to use the unintuitive Cirrus inter‐
36       face. At some future point the functions might be added for Mach32  too
37       (which  should  be  rather  simple), so new applications should use the
38       newer and probably more efficient interface.
39
40       It would be fatal if the accelerator would be used while the console is
41       switched  away.   You  should  use vga_lockvc(3) and vga_unlockvc(3) to
42       avoid this, although good implementations of the accelerator  functions
43       (like Mach32) will already ensure that.
44
45       The testaccel(6) demo utilizes the old style accelerator functions.
46
47

SEE ALSO

49       svgalib(7),  vgagl(7),  libvga.config(5),  testaccel(6),  vga_accel(3),
50       vga_bitblt(3),   vga_blitwait(3),   vga_fillblt(3),    vga_imageblt(3),
51       vga_getmodeinfo(3),        vga_setdisplaystart(3),       vga_lockvc(3),
52       vga_unlockvc(3)
53
54

AUTHOR

56       This manual page was edited  by  Michael  Weller  <eowmob@exp-math.uni-
57       essen.de>.  The  exact  source of the referenced function as well as of
58       the original documentation is unknown.
59
60       It is very likely that both are at least to some extent are due to Harm
61       Hanemaayer <H.Hanemaayer@inter.nl.net>.
62
63       Occasionally  this  might be wrong. I hereby asked to be excused by the
64       original author and will happily accept any additions or corrections to
65       this first version of the svgalib manual.
66
67
68
69Svgalib (>= 1.2.11)              27 July 1997              vga_hlinelistblt(3)
Impressum