Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / graphics / allocraster.c
blob47113ea50fd41d42308a9b051fc3c073e707de3e
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <exec/memory.h>
9 #include <proto/exec.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <graphics/gfx.h>
16 #include <proto/graphics.h>
18 AROS_LH2(PLANEPTR, AllocRaster,
20 /* SYNOPSIS */
21 AROS_LHA(UWORD , width, D0),
22 AROS_LHA(UWORD , height, D1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 82, Graphics)
27 /* FUNCTION
28 Allocates memory for a single bitplane with the specified size in
29 pixels.
31 INPUTS
32 width, height - The size of the resulting bitplane in pixels.
34 RESULT
35 A pointer to the single bitplane.
37 NOTES
38 You should not use this function to create BitMaps. Call
39 AllocBitMap() instead.
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 AllocBitMap(), FreeRaster(), FreeBitMap()
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 return AllocMem (RASSIZE(width,height),MEMF_CHIP);
57 AROS_LIBFUNC_EXIT
58 } /* AllocRaster */