NetSurf
rtg.h
Go to the documentation of this file.
1/*
2 * Copyright 2015 Chris Young <chris@unsatisfactorysoftware.co.uk>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/** \file
20 * Abstract RTG functions for newer/older/non-P96 systems
21 */
22
23#ifndef AMIGA_RTG_H
24#define AMIGA_RTG_H 1
25#include <proto/graphics.h>
26#include <proto/Picasso96API.h>
27
28/* Wrappers for Alloc/FreeBitMap */
29struct BitMap *ami_rtg_allocbitmap(ULONG width, ULONG height, ULONG depth,
30 ULONG flags, struct BitMap *friend, RGBFTYPE format);
31void ami_rtg_freebitmap(struct BitMap *bm);
32
33/* WritePixelArray wrapper. This isn't entirely (at all) equivalent to p96WPA */
34void ami_rtg_writepixelarray(UBYTE *pixdata, struct BitMap *bm,
35 ULONG width, ULONG height, ULONG bpr, ULONG format);
36#endif
37
int width
Definition: gui.c:160
int height
Definition: gui.c:161
void ami_rtg_writepixelarray(UBYTE *pixdata, struct BitMap *bm, ULONG width, ULONG height, ULONG bpr, ULONG format)
Definition: rtg.c:44
void ami_rtg_freebitmap(struct BitMap *bm)
Definition: rtg.c:35
struct BitMap * ami_rtg_allocbitmap(ULONG width, ULONG height, ULONG depth, ULONG flags, struct BitMap *friend, RGBFTYPE format)
Definition: rtg.c:25