File: bogl-tcfb.h

package info (click to toggle)
bogl 0.1.18-23
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,760 kB
  • sloc: ansic: 7,872; makefile: 217; perl: 26; sh: 10
file content (40 lines) | stat: -rw-r--r-- 1,631 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* BOGL - Ben's Own Graphics Library.
   Written by Ben Pfaff <pfaffben@debian.org>.

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.
   
   This program is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
   USA. */

#ifndef bogl_tcfb_h
#define bogl_tcfb_h

#include <stddef.h>

size_t bogl_tcfb_init (int fb, int new_bpp);

void bogl_tcfb_pixel (int x, int y, int c);
void bogl_tcfb_hline (int x1, int x2, int y, int c);
void bogl_tcfb_vline (int x, int y1, int y2, int c);
void bogl_tcfb_text (int x, int y, const char *s, int n, int fg, int bg, int ul,
		      const struct bogl_font *font);
void bogl_tcfb_clear (int x1, int y1, int x2, int y2, int c);
void bogl_tcfb_move (int sx, int sy, int dx, int dy, int w, int h);
void bogl_tcfb_put (int x, int y, const struct bogl_pixmap *pixmap,
		     const int color_map[16]);
void bogl_tcfb_pointer (int visible, int x1, int y1,
			const struct bogl_pointer *pointer,
			int colors[2]);
void bogl_tcfb_set_palette (int c, int nc, const unsigned char palette[][3]);

#endif /* bogl_tcfb_h */