From 056e1ebed94379db41ebb2e40cc88a873cfb4411 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 8 Apr 2009 10:17:09 +0000 Subject: initial commit of netsurf framebuffer library svn path=/trunk/libnsfb/; revision=7060 --- include/nsfb.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/nsfb.h (limited to 'include/nsfb.h') diff --git a/include/nsfb.h b/include/nsfb.h new file mode 100644 index 0000000..cec4a63 --- /dev/null +++ b/include/nsfb.h @@ -0,0 +1,30 @@ +#ifndef _NSFB_H +#define _NSFB_H 1 + +#include + +/** NS Framebuffer context + */ +struct nsfb_s { + int width; /**< Visible width. */ + int height; /**< Visible height. */ + int bpp; /**< Bits per pixel. */ + + int refresh; /**< Desired refresh rate for physical displays. */ + char *output_dev; /**> Path to output device for frontends that require it. */ + + uint8_t *ptr; /**< Base of video memory. */ + int linelen; /**< length of a video line. */ + + nsfb_colour_t palette[256]; /**< palette for index modes */ + nsfb_cursor_t *cursor; + + struct nsfb_frontend_rtns_s *frontend_rtns; /**< frontend routines. */ + void *frontend_priv; + + nsfb_bbox_t clip; /**< current clipping rectangle for plotters */ + struct nsfb_plotter_fns_s *plotter_fns; /**< Plotter methods */ +}; + + +#endif -- cgit v1.2.3