bmap
Panel background image. The size of this bitmap determines the size of
the panel if no size parameters
are given within the panel definition.
Type:
BMAP* (or file name in definition)
Remarks:
- In the panel definition, either global predefined BMAP, or the file
name
of
an
image
file
can
be given. In the latter case a BMAP with the same name as the file,
but the '.' character replaced by '_' is created (if it doesn't already exist).
!! A mere BMAP* pointer can not be used in a panel definition, but can be assigned to the panel at runtime.
- The
size of the image must not exceed the texture limit of the 3D hardware
(often 2048x2048 pixels).
-
If a panel has no bmap, it gets a monochrome
background color through its blue, green, red parameters
when its
LIGHT flag
is set.
Otherwise it is transparent.
- The bmap parameter can be changed during gameplay. If
the new bitmap has a different size, the size_x / size_y parameters
must be changed accordingly.
Example:
BMAP* compass_map = "compass.pcx";
PANEL* aircraft_pan =
{
bmap = compass_map; // compass_map as panel background
flags = SHOW;
}
PANEL* splashscreen = { bmap = "splash.pcx"; } // creates a bmap splash_pcx
See also:
PANEL, layer, pos, size,
target_map ► latest
version online