bmap_zbuffer(BMAP*)
Generates a render target z buffer in the size of the given bmap. This allows rendering into bitmaps that are bigger than the frame buffer of the application.
Parameters:
BMAP* - Bitmap pointer that gives the size of the z buffer, or NULL for using the current frame buffer size.
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 with a different size, the render target z buffer is automatically adapted to the new size.
Example:
bmap_zbuffer(bmap_createblack(1024,768,32));
See also:
view.bmap, d3d_antialias, render_zbuffer
► latest
version online