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

ChangeVPBitMap

Change display memory address for multi-buffered animation

Declaration

Source position: agraphics.pas line 2131

procedure ChangeVPBitMap(

  Vp: PViewPort;

  Bm: PBitMap;

  Db: PDBufInfo

);

Arguments

Vp

  

A pointer to a viewport

Bm

  

This BitMap structure must be of the same layout as the one attached to the viewport (same depth, alignment, and BytesPerRow).

Db

  

A pointer to a DBufInfo.

Description

Changes the area of display memory which will be displayed in a viewport. This can be used to implement double (or triple) buffering, a method of achieving smooth animation.

This will set the vp^.RasInfo^.BitMap field to the bm pointer which is passed.

When using the synchronization features, you must carefully insure that all messages have been replied to before calling FreeDBufInfo or calling ChangeVPBitMap with the same DBufInfo.

See also

AllocDBufInfo

  

Allocate structure for multi-buffered animation

AllocBitMap

  

Allocate a bitmap and attach bitplanes to it.


Documentation generated on: 2021-07-30