Skip to content

Latest commit

 

History

History
62 lines (52 loc) · 921 Bytes

File metadata and controls

62 lines (52 loc) · 921 Bytes
#ifndef	GRAPHICS_GFX_H
#define	GRAPHICS_GFX_H
/*
**	$Filename: graphics/gfx.h $
**	$Release: 2.04 Includes, V37.4 $
**	$Revision: 37.0 $
**	$Date: 91/01/07 $
**
**	general include file for application programs
**
**	(C) Copyright 1985-1999 Amiga, Inc.
**	    All Rights Reserved
*/

#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

#define BITSET	0x8000
#define BITCLR	0

#define AGNUS
#ifdef AGNUS
#define TOBB(a)      ((long)(a))
#else
#define TOBB(a)      ((long)(a)>>1)  /* convert Chip adr to Bread Board Adr */
#endif

struct Rectangle
{
WORD   MinX,MinY;
WORD   MaxX,MaxY;
};

struct Rect32
{
LONG    MinX,MinY;
LONG    MaxX,MaxY;
};

typedef struct tPoint
{
WORD x,y;
} Point;

typedef UBYTE *PLANEPTR;

struct BitMap
{
UWORD   BytesPerRow;
UWORD   Rows;
UBYTE   Flags;
UBYTE   Depth;
UWORD   pad;
PLANEPTR Planes[8];
};

#define RASSIZE(w,h)	((h)*( ((w)+15)>>3&0xFFFE))

#endif	/* GRAPHICS_GFX_H */