summaryrefslogtreecommitdiff
path: root/amiga/plotters.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-07-09 18:52:55 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-07-09 18:52:55 +0000
commit801ef751afd7b5adb7ef41335192638c8443c6f6 (patch)
tree4eb137509fa5ecb8e7bb9b56f5422b307af6ba74 /amiga/plotters.h
parent9e5f6510ecba7ec9b83807a38f24b5d455d1bdba (diff)
downloadnetsurf-801ef751afd7b5adb7ef41335192638c8443c6f6.tar.gz
netsurf-801ef751afd7b5adb7ef41335192638c8443c6f6.tar.bz2
Move all the layers code into plotters.c and refactor to use gui_globals structure
Purge option_direct_render svn path=/trunk/netsurf/; revision=8425
Diffstat (limited to 'amiga/plotters.h')
-rwxr-xr-xamiga/plotters.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/amiga/plotters.h b/amiga/plotters.h
index ce8154f75..486823115 100755
--- a/amiga/plotters.h
+++ b/amiga/plotters.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk>
+ * Copyright 2008, 2009 Chris Young <chris@unsatisfactorysoftware.co.uk>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
@@ -19,6 +19,25 @@
#ifndef AMIGA_PLOTTERS_H
#define AMIGA_PLOTTERS_H
#include "desktop/plotters.h"
+#include <proto/layers.h>
+#include <proto/graphics.h>
+#ifdef NS_AMIGA_CAIRO
+#include <cairo/cairo.h>
+#endif
+
+struct gui_globals
+{
+ struct BitMap *bm;
+ struct RastPort rp;
+ struct Layer_Info *layerinfo;
+ APTR areabuf;
+ APTR tmprasbuf;
+ struct Rectangle rect;
+#ifdef NS_AMIGA_CAIRO
+ cairo_surface_t *surface;
+ cairo_t *cr;
+#endif
+};
extern const struct plotter_table amiplot;
@@ -41,4 +60,9 @@ bool ami_group_end(void);
bool ami_flush(void);
bool ami_path(const float *p, unsigned int n, colour fill, float width,
colour c, const float transform[6]);
+
+void ami_init_layers(struct gui_globals *gg);
+void ami_free_layers(struct gui_globals *gg);
+
+struct gui_globals *glob;
#endif