summaryrefslogtreecommitdiff
path: root/include/nsfb.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-11-21 08:44:10 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-11-21 08:44:10 +0000
commit2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2 (patch)
tree3528ebeb39ee0aadaf7faf0259b583b26172ed5c /include/nsfb.h
parent81ad700162a2fa639a69c1c6e3969ed8f7b3f63b (diff)
downloadlibnsfb-2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2.tar.gz
libnsfb-2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2.tar.bz2
Improve API to allow for RAM surfaces instead of direct blitting
Improve and update tests Fix RAM surface Fix VNC surface svn path=/trunk/libnsfb/; revision=13158
Diffstat (limited to 'include/nsfb.h')
-rw-r--r--include/nsfb.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/include/nsfb.h b/include/nsfb.h
index 7b28fcb..9b1619c 100644
--- a/include/nsfb.h
+++ b/include/nsfb.h
@@ -1,3 +1,13 @@
+/*
+ * Copyright 2009 Vincent Sanders <vince@simtec.co.uk>
+ *
+ * This file is part of libnsfb, http://www.netsurf-browser.org/
+ * Licenced under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * This is the internal interface for the libnsfb graphics library.
+ */
+
#ifndef _NSFB_H
#define _NSFB_H 1
@@ -9,10 +19,13 @@
struct nsfb_s {
int width; /**< Visible width. */
int height; /**< Visible height. */
- int bpp; /**< Bits per pixel. */
+
+ int bpp;
+
+ enum nsfb_format_e format; /**< Framebuffer format */
int refresh; /**< Desired refresh rate for physical displays. */
- char *output_dev; /**> Path to output device for frontends that require it. */
+ char *output_dev; /**> Path to output device for surfaces that require it. */
uint8_t *ptr; /**< Base of video memory. */
int linelen; /**< length of a video line. */
@@ -20,8 +33,8 @@ struct nsfb_s {
nsfb_colour_t palette[256]; /**< palette for index modes */
nsfb_cursor_t *cursor; /**< cursor */
- struct nsfb_frontend_rtns_s *frontend_rtns; /**< frontend routines. */
- void *frontend_priv; /**< frontend opaque data. */
+ struct nsfb_surface_rtns_s *surface_rtns; /**< surface routines. */
+ void *surface_priv; /**< surface opaque data. */
nsfb_bbox_t clip; /**< current clipping rectangle for plotters */
struct nsfb_plotter_fns_s *plotter_fns; /**< Plotter methods */
@@ -29,3 +42,10 @@ struct nsfb_s {
#endif
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * End:
+ */