Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

InitRastPort

Initialize raster port structure

Declaration

Source position: agraphics.pas line 2326

procedure InitRastPort(

  Rp: PRastPort

);

Arguments

Rp

  

A pointer to a RastPort structure.

Description

Initialize a RastPort structure to standard values.

The struct Rastport describes a control structure for a write-able raster. The RastPort structure describes how a complete single playfield display will be written into. A RastPort structure is referenced whenever any drawing or filling operations are to be performed on a section of memory.

The section of memory which is being used in this way may or may not be presently a part of the current actual onscreen display memory. The name of the actual memory section which is linked to the RastPort is referred to here as a "raster" or as a bitmap.

Note:

Calling the routine InitRastPort only establishes various defaults. It does not establish where, in memory, the rasters are located. To do graphics with this RastPort the user must set up the BitMap pointer in the RastPort.

all entries in RastPort get zeroed out, with the following exceptions:


Documentation generated on: 2021-07-30