bmap

Defines a render target for the view. The view and all assigned view entities then render into the bitmap rather than on the screen. This way views can be rendered on entities, on panels, into environment maps, or a view rendering chain can be defined for complex pre- and postprocessing effects, such as shadow mapping.

Type:

BMAP* or A7.10 char*

Remarks:

Edition:

 C 

Examples (lite-C):

VIEW* viewDepth = 
{
bmap = "#256x256x14"; // create a 256x256 floating point render target
flags = SHOW | SHADOW | NOSHADOW;
material = mtlDepth;
} ... VIEW* remote_camera = { layer = 1; } ... remote_camera.bmap = bmap_for_entity(monitorsprite,0); // render view on monitorsprite set(remote_camera,SHOW); // render this view

See also:

VIEW, BMAP, stage, PROCESS_SCREEN / PROCESS_TARGET, bmap_for_entity, bmap_to_format, bmap_rendertarget, bmap_zbuffer

► latest version online