a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
Include
 classes
 clib
 datatypes
 devices
  audio.h / .i
  bootblock.h / .i
  cd.h / .i
  clipboard.h / .i
  console.h / .i
  conunit.h / .i
  gameport.h / .i
  hardblocks.h / .i
  input.h / .i
  inputevent.h / .i
  keyboard.h / .i
  keymap.h / .i
  narrator.h / .i
  parallel.h / .i
  printer.h / .i
  prtbase.h / .i
  prtgfx.h / .i
  scsidisk.h / .i
  serial.h / .i
  timer.h / .i
  trackdisk.h / .i
 diskfont
 dos
 exec
 gadgets
 graphics
 hardware
 images
 intuition
 libraries
 pragma
 pragmas
 prefs
 proto
 reaction
 resources
 rexx
 utility
 workbench
GuruMeditation
Docs » Include » devices » prtgfx.h / .i
#ifndef DEVICES_PRTGFX_H
#define DEVICES_PRTGFX_H
/*
**	$VER: prtgfx.h 44.1 (19.10.1999)
**	Includes Release 45.1
**
**	graphics printer driver structure definitions
**
**	(C) Copyright 1987-2001 Amiga, Inc.
**	    All Rights Reserved
*/

#ifndef GRAPHICS_RASTPORT_H
#include <graphics/rastport.h>
#endif

/****************************************************************************/

#define	PCMYELLOW	0		/* byte index for yellow */
#define	PCMMAGENTA	1		/* byte index for magenta */
#define	PCMCYAN		2		/* byte index for cyan */
#define	PCMBLACK	3		/* byte index for black */
#define PCMBLUE		PCMYELLOW	/* byte index for blue */
#define PCMGREEN	PCMMAGENTA	/* byte index for green */
#define PCMRED		PCMCYAN		/* byte index for red */
#define PCMWHITE	PCMBLACK	/* byte index for white */

/****************************************************************************/

union colorEntry
{
	ULONG	colorLong;	/* quick access to all of YMCB */
	UBYTE	colorByte[4];	/* 1 entry for each of YMCB */
	BYTE	colorSByte[4];	/* ditto (except signed) */
};

/****************************************************************************/

struct PrtInfo /* printer info */
{
	LONG			(*pi_render)();		/* PRIVATE - DO NOT USE! */
	struct RastPort *	pi_rp;			/* PRIVATE - DO NOT USE! */
	struct RastPort *	pi_temprp;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_RowBuf;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_HamBuf;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_ColorMap;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_ColorInt;		/* color intensities for entire row */
	union colorEntry *	pi_HamInt;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_Dest1Int;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_Dest2Int;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_ScaleX;		/* array of scale values for X */
	UWORD *			pi_ScaleXAlt;		/* PRIVATE - DO NOT USE! */
	UBYTE *			pi_dmatrix;		/* pointer to dither matrix */
	UWORD *			pi_TopBuf;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_BotBuf;		/* PRIVATE - DO NOT USE! */

	UWORD			pi_RowBufSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_HamBufSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ColorMapSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_ColorIntSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_HamIntSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_Dest1IntSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_Dest2IntSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_ScaleXSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ScaleXAltSize;	/* PRIVATE - DO NOT USE! */

	UWORD			pi_PrefsFlags;		/* PRIVATE - DO NOT USE! */
	ULONG			pi_special;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_xstart;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ystart;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_width;		/* source width (in pixels) */
	UWORD			pi_height;		/* source height (in pixels) */
	ULONG			pi_pc;			/* PRIVATE - DO NOT USE! */
	ULONG			pi_pr;			/* PRIVATE - DO NOT USE! */
	UWORD			pi_ymult;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ymod;		/* PRIVATE - DO NOT USE! */
	WORD			pi_ety;			/* PRIVATE - DO NOT USE! */
	UWORD			pi_xpos;		/* offset to start printing picture */
	UWORD			pi_threshold;		/* threshold value (from prefs) */
	UWORD			pi_tempwidth;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_flags;		/* PRIVATE - DO NOT USE! */

	/* V44 additions */
	UWORD *			pi_ReduceBuf;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ReduceBufSize;	/* PRIVATE - DO NOT USE! */
	struct Hook *		pi_SourceHook;		/* PRIVATE - DO NOT USE! */
	ULONG *			pi_InvertHookBuf;	/* RESERVED - DO NOT USE! */
};

#endif	/* DEVICES_PRTGFX_H */

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Rebels

SCX
FC
RSI
RBS

Comments:

$VER: d0.se 1.14 Copyright © 2011-2021 Tobias Geijersson support at d0 dot se