2004-09-04 20:41:28 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
2005-06-23 21:22:28 +04:00
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
2004-09-04 20:41:28 +04:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_BITMAP_H_
|
|
|
|
#define _NETSURF_RISCOS_BITMAP_H_
|
|
|
|
|
2005-06-23 21:22:28 +04:00
|
|
|
#include "oslib/osspriteop.h"
|
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
struct osspriteop_area;
|
|
|
|
|
|
|
|
struct bitmap {
|
2004-10-18 01:16:00 +04:00
|
|
|
int width;
|
|
|
|
int height;
|
2005-06-23 21:22:28 +04:00
|
|
|
bool opaque;
|
|
|
|
bool modified;
|
|
|
|
bool persistent;
|
|
|
|
|
|
|
|
osspriteop_area *sprite_area; /** Uncompressed data, or NULL */
|
|
|
|
char *compressed; /** Compressed data, or NULL */
|
|
|
|
char filename[12]; /** Data filename, or '/0' */
|
|
|
|
|
|
|
|
struct bitmap *previous; /** Previous bitmap */
|
|
|
|
struct bitmap *next; /** Next bitmap */
|
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
};
|
|
|
|
|
2005-06-23 21:22:28 +04:00
|
|
|
struct bitmap *bitmap_create_file(int width, int height, char *file);
|
|
|
|
void bitmap_initialise_memory(void);
|
|
|
|
void bitmap_quit(void);
|
|
|
|
void bitmap_maintain(void);
|
|
|
|
|
|
|
|
/** Whether maintenance of the pool states is needed
|
|
|
|
*/
|
|
|
|
extern bool bitmap_maintenance;
|
|
|
|
|
|
|
|
/** Whether maintenance of the pool is high priority
|
|
|
|
*/
|
|
|
|
extern bool bitmap_maintenance_priority;
|
|
|
|
|
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
#endif
|