target_map
Render target for panels and texts. If this parameter is set to a bitmap, the
object renders into the bitmap instead of on the screen.
Type:
BMAP* (or file name in definition)
Remarks:
- In the panel definition, a previously defined BMAP, or the file
name
of
an
image
file
can
be given. A mere BMAP* pointer can not be used within a definition.
- The
panel or text position determines the render
position within the target_map.
Edition:
A7.06C LC
Example:
PANEL* compass_pan =
{
bmap = "compass.pcx"; // compass_map as panel background
flags = SHOW;
digits(2,2,3,*,1,aircraft.pan);
}
...
compass_pan.target_map = bmap_for_entity(cockpit_sprite,0);
...
See also:
PANEL, TEXT, BMAP, layer, pos, size
► latest
version online