bmap_zbuffer(BMAP*)
Generates a render target z buffer
from the given bitmap
. This allows rendering into bitmaps that are bigger than the frame buffer of the application.
Parameters:
BMAP* -
Bitmap
that determines the size of the z buffer.
Speed:
Medium
Edition:
A7.08 C
P
Remarks:
- The LPDIRECT3DSURFACE9 pointer to the created z buffer is available through the render_zbuffer variable.
- The created z buffer is shared by all render targets, so give a bitmap that is as big as the largest render target.
- When this function is called again, the render target z buffer is automatically adapted to the new bitmap size.
Example:
bmap_zbuffer(bmap_createblack(1024,768,32));
See also:
view.bmap, d3d_antialias, render_zbuffer
► latest
version online