New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / lategfxinit.c
blob63ddc963c7146a34654b655d018fb547c669d5c0
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Private graphics function for initializing graphics.hidd
6 Lang: english
7 */
8 #include "graphics_intern.h"
9 #include <exec/memory.h>
10 #include <graphics/rastport.h>
11 #include <proto/exec.h>
12 #include <oop/oop.h>
14 /*****************************************************************************
16 NAME */
17 #include <graphics/rastport.h>
18 #include <proto/graphics.h>
20 AROS_LH1(BOOL , LateGfxInit,
22 /* SYNOPSIS */
23 AROS_LHA(APTR, data, A0),
25 /* LOCATION */
26 struct GfxBase *, GfxBase, 181, Graphics)
28 /* FUNCTION
29 This function permits late initalization
30 of gfx (After dos but *before* graphics is used, ie.
31 before the first view/screen has been set up).
32 Can be used to load gfx hidds from disk and initializing it.
33 The function only passes the data through to the
34 driver.
36 INPUTS
37 data - Data passed on to graphics driver.
39 RESULT
40 success - If TRUE initialization went OK.
42 NOTES
43 This function is private and AROS specific.
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 INTERNALS
53 HISTORY
54 29-10-95 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
60 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
62 GfxBase->gb_LayersBase = (ULONG *)OpenLibrary("layers.library", 0);
64 /* We don't have a clue what 'data' parameter contains, but
65 the graphics driver does.
68 return GfxBase->gb_LayersBase && driver_LateGfxInit(data, GfxBase);
70 return FALSE;
72 AROS_LIBFUNC_EXIT
73 } /* LateGfxInit */