2008-08-02 18:31:32 +04:00
|
|
|
/*
|
2009-07-09 22:52:55 +04:00
|
|
|
* Copyright 2008, 2009 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
2008-08-02 18:31:32 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf 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; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AMIGA_PLOTTERS_H
|
|
|
|
#define AMIGA_PLOTTERS_H
|
|
|
|
#include "desktop/plotters.h"
|
2009-07-09 22:52:55 +04:00
|
|
|
#include <proto/layers.h>
|
|
|
|
#include <proto/graphics.h>
|
|
|
|
|
2015-02-02 21:28:21 +03:00
|
|
|
struct IBox;
|
|
|
|
|
2009-07-09 22:52:55 +04:00
|
|
|
struct gui_globals
|
|
|
|
{
|
|
|
|
struct BitMap *bm;
|
2011-03-05 17:36:55 +03:00
|
|
|
struct RastPort *rp;
|
2009-07-09 22:52:55 +04:00
|
|
|
struct Layer_Info *layerinfo;
|
|
|
|
APTR areabuf;
|
|
|
|
APTR tmprasbuf;
|
|
|
|
struct Rectangle rect;
|
2015-02-02 21:28:21 +03:00
|
|
|
struct MinList *shared_pens;
|
2016-01-25 03:01:55 +03:00
|
|
|
bool palette_mapped;
|
2016-03-22 21:45:20 +03:00
|
|
|
ULONG apen;
|
|
|
|
ULONG open;
|
2016-03-24 02:18:05 +03:00
|
|
|
LONG apen_num;
|
|
|
|
LONG open_num;
|
2015-04-25 15:13:30 +03:00
|
|
|
int width; /* size of bm and */
|
|
|
|
int height; /* associated memory */
|
2009-07-09 22:52:55 +04:00
|
|
|
};
|
2008-08-02 18:31:32 +04:00
|
|
|
|
|
|
|
extern const struct plotter_table amiplot;
|
|
|
|
|
2016-01-25 03:01:55 +03:00
|
|
|
void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height, bool force32bit);
|
2009-07-09 22:52:55 +04:00
|
|
|
void ami_free_layers(struct gui_globals *gg);
|
2009-08-23 19:59:41 +04:00
|
|
|
void ami_clearclipreg(struct gui_globals *gg);
|
2015-02-02 21:10:43 +03:00
|
|
|
void ami_plot_clear_bbox(struct RastPort *rp, struct IBox *bbox);
|
2012-08-05 14:28:48 +04:00
|
|
|
void ami_plot_release_pens(struct MinList *shared_pens);
|
2012-08-08 00:03:42 +04:00
|
|
|
bool ami_plot_screen_is_palettemapped(void);
|
2009-07-09 22:52:55 +04:00
|
|
|
|
|
|
|
struct gui_globals *glob;
|
2008-08-02 18:31:32 +04:00
|
|
|
#endif
|