Docs » Autodocs » graphics.library » AllocRaster
AllocRaster -- Allocate space for a bitplane.
planeptr = AllocRaster( width, height ) d0 d0 d1 PLANEPTR AllocRaster(ULONG,ULONG);
This function calls the memory allocation routines to allocate memory space for a bitplane "width" bits wide and "height" bits high.
width - number of columns in bitplane height - number of rows in bitplane
planeptr - pointer to first word in bitplane, or NULL if it was not possible to allocate the desired amount of memory.
In order to assure proper alignment of display memory, the AllocBitMap() function should be used instead of AllocRaster when you wish to allocate display memory (rasters which are attached to a ViewPort or Screen).
FreeRaster(), <graphics/gfx.h>
|