vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

draw.c (883B)


      1 #include "u.h"
      2 #include "lib.h"
      3 #include "draw.h"
      4 #include "memdraw.h"
      5 
      6 Memimage*
      7 allocmemimage(Rectangle r, uint32 chan)
      8 {
      9 	return _allocmemimage(r, chan);
     10 }
     11 
     12 void
     13 freememimage(Memimage *i)
     14 {
     15 	_freememimage(i);
     16 }
     17 
     18 void
     19 memfillcolor(Memimage *i, uint32 val)
     20 {
     21 	_memfillcolor(i, val);
     22 }
     23 
     24 
     25 int
     26 cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
     27 {
     28 	return _cloadmemimage(i, r, data, ndata);
     29 }
     30 
     31 void
     32 memimagedraw(Memimage *dst, Rectangle r, Memimage *src, Point sp, Memimage *mask, Point mp, int op)
     33 {
     34 	_memimagedraw(_memimagedrawsetup(dst, r, src, sp, mask, mp, op));
     35 }
     36 
     37 uint32
     38 pixelbits(Memimage *m, Point p)
     39 {
     40 	return _pixelbits(m, p);
     41 }
     42 
     43 int
     44 loadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
     45 {
     46 	return _loadmemimage(i, r, data, ndata);
     47 }
     48 
     49 int
     50 unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
     51 {
     52 	return _unloadmemimage(i, r, data, ndata);
     53 }
     54