mirror of
https://github.com/Interlisp/maiko.git
synced 2026-05-03 14:59:26 +00:00
Maiko sources matching state as of 020102 prior to initial patching for Mac OSX
This commit is contained in:
145
inc/pilotbbt.h
Executable file
145
inc/pilotbbt.h
Executable file
@@ -0,0 +1,145 @@
|
||||
/* $Id: pilotbbt.h,v 1.2 1999/01/03 02:06:21 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* (C) Copyright 1989-92 Venue. All Rights Reserved. */
|
||||
/* Manufactured in the United States of America. */
|
||||
/* */
|
||||
/* The contents of this file are proprietary information */
|
||||
/* belonging to Venue, and are provided to you under license. */
|
||||
/* They may not be further distributed or disclosed to third */
|
||||
/* parties without the specific permission of Venue. */
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
|
||||
|
||||
/****************************************************************
|
||||
* *
|
||||
* pilotbbt.h July 6, 1987 by Osamu Nakamura *
|
||||
* *
|
||||
****************************************************************/
|
||||
|
||||
#ifndef BYTESWAP
|
||||
/**********************************/
|
||||
/* Normal byte-order declarations */
|
||||
/**********************************/
|
||||
typedef struct pilotbbt{
|
||||
DLword pbtdestlo;
|
||||
DLword pbtdesthi;
|
||||
DLword pbtdestbit; /* destination bit address */
|
||||
short pbtdestbpl; /* destination bits per line
|
||||
* -- distance in bits to move between items */
|
||||
DLword pbtsourcelo;
|
||||
DLword pbtsourcehi;
|
||||
DLword pbtsourcebit; /* source bit address */
|
||||
short pbtsourcebpl; /* source bits per line */
|
||||
DLword pbtwidth; /* width of an item in bits */
|
||||
DLword pbtheight; /* number of items -- height in scanlines */
|
||||
unsigned pbtbackward : 1;
|
||||
unsigned pbtdisjoint : 1;
|
||||
unsigned pbtdisjointitems : 1;
|
||||
unsigned pbtusegray : 1;
|
||||
unsigned pbtsourcetype : 1;
|
||||
unsigned pbtoperation : 2;
|
||||
unsigned nil : 9;
|
||||
DLword dummy[5]; /* unused, needed to make 16-alignment */
|
||||
} PILOTBBT;
|
||||
|
||||
|
||||
typedef struct texturebbt{
|
||||
DLword pbtdestlo;
|
||||
DLword pbtdesthi;
|
||||
DLword pbtdestbit; /* destination bit address */
|
||||
short pbtdestbpl; /* destination bits per line
|
||||
* -- distance in bits to move between items */
|
||||
DLword pbtsourcelo;
|
||||
DLword pbtsourcehi;
|
||||
DLword pbtsourcebit; /* source bit address */
|
||||
unsigned dummy2 : 4;
|
||||
/* overlay on pbtsourcebpl when pbtusegray */
|
||||
unsigned pbtgrayoffset : 4;
|
||||
/* offset in gray block where bitblt should start */
|
||||
unsigned pbtgraywidthlessone : 4;
|
||||
/* width-1 of gray block in words */
|
||||
unsigned pbtgrayheightlessone : 4;
|
||||
/* height-1 of gray block */
|
||||
DLword pbtwidth; /* width of an item in bits */
|
||||
DLword pbtheight; /* number of items -- height in scanlines */
|
||||
unsigned pbtbackward : 1;
|
||||
unsigned pbtdisjoint : 1;
|
||||
unsigned pbtdisjointitems : 1;
|
||||
unsigned pbtusegray : 1;
|
||||
unsigned pbtsourcetype : 1;
|
||||
unsigned pbtoperation : 2;
|
||||
unsigned nil : 9;
|
||||
DLword dummy[5]; /* unused, needed to make 16-alignment */
|
||||
} TEXTUREBBT;
|
||||
|
||||
#else
|
||||
/****************************/
|
||||
/* Byte-swapped definitions */
|
||||
/****************************/
|
||||
|
||||
typedef struct pilotbbt
|
||||
{
|
||||
DLword pbtdesthi;
|
||||
DLword pbtdestlo;
|
||||
short pbtdestbpl; /* destination bits per line
|
||||
* -- distance in bits to move between items */
|
||||
DLword pbtdestbit; /* destination bit address */
|
||||
DLword pbtsourcehi;
|
||||
DLword pbtsourcelo;
|
||||
short pbtsourcebpl; /* source bits per line */
|
||||
DLword pbtsourcebit; /* source bit address */
|
||||
DLword pbtheight; /* number of items -- height in scanlines */
|
||||
DLword pbtwidth; /* width of an item in bits */
|
||||
DLword dummy1;
|
||||
unsigned nil : 9;
|
||||
unsigned pbtoperation : 2;
|
||||
unsigned pbtsourcetype : 1;
|
||||
unsigned pbtusegray : 1;
|
||||
unsigned pbtdisjointitems : 1;
|
||||
unsigned pbtdisjoint : 1;
|
||||
unsigned pbtbackward : 1;
|
||||
DLword dummy[4]; /* unused, needed to make 16-alignment */
|
||||
} PILOTBBT;
|
||||
|
||||
|
||||
typedef struct texturebbt
|
||||
{
|
||||
DLword pbtdesthi;
|
||||
DLword pbtdestlo;
|
||||
short pbtdestbpl; /* destination bits per line
|
||||
* -- distance in bits to move between items */
|
||||
DLword pbtdestbit; /* destination bit address */
|
||||
DLword pbtsourcehi;
|
||||
DLword pbtsourcelo;
|
||||
unsigned pbtgrayheightlessone : 4;
|
||||
/* height-1 of gray block */
|
||||
unsigned pbtgraywidthlessone : 4;
|
||||
/* width-1 of gray block in words */
|
||||
unsigned pbtgrayoffset : 4;
|
||||
/* offset in gray block where bitblt should start */
|
||||
unsigned dummy2 : 4;
|
||||
/* overlay on pbtsourcebpl when pbtusegray */
|
||||
DLword pbtsourcebit; /* source bit address */
|
||||
DLword pbtheight; /* number of items -- height in scanlines */
|
||||
DLword pbtwidth; /* width of an item in bits */
|
||||
DLword dummy1;
|
||||
unsigned nil : 9;
|
||||
unsigned pbtoperation : 2;
|
||||
unsigned pbtsourcetype : 1;
|
||||
unsigned pbtusegray : 1;
|
||||
unsigned pbtdisjointitems : 1;
|
||||
unsigned pbtdisjoint : 1;
|
||||
unsigned pbtbackward : 1;
|
||||
DLword dummy[4]; /* unused, needed to make 16-alignment */
|
||||
} TEXTUREBBT;
|
||||
|
||||
|
||||
#endif /* BYTESWAP */
|
||||
|
||||
Reference in New Issue
Block a user