fg_transfer() (legacy function)

Win32 DirectX Fastgraph/Light

Prototype

void fg_transfer (int minx, int maxx, int miny, int maxy, int newx, int newy, int source, int dest);

Sub fg_transfer (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long, ByVal newx As Long, ByVal newy As Long, ByVal source As Long, ByVal dest As Long)

procedure fg_transfer (minx, maxx, miny, maxy, newx, newy, source, dest : integer);

Description

The fg_transfer() legacy function copies a rectangular region from one virtual buffer to another, or to a non-overlapping position within the same virtual buffer. It is equivalent to fg_vbcopy().

Parameters

minx is the x coordinate of the source region's left edge.

maxx is the x coordinate of the source region's right edge. It must be greater than or equal to the value of minx.

miny is the y coordinate of the source region's top edge.

maxy is the y coordinate of the source region's bottom edge. It must be greater than or equal to the value of miny.

newx is the x coordinate of the destination region's left edge.

newy is the y coordinate of the destination region's bottom edge.

source is the handle for the virtual buffer containing the source region.

dest is the handle for the virtual buffer containing the destination region.

Return value

none

Restrictions

The source and destination virtual buffers must be the same color depth.

If source and dest reference the same virtual buffer, the source and destination regions must not overlap.

When using DirectX, the source and destination virtual buffers must not be locked.

Replaced by

fg_vbcopy()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.