2 Copyright © 2010-2017, The AROS Development Team. All rights reserved.
7 #include <aros/debug.h>
9 #include <proto/utility.h>
10 #include <proto/intuition.h>
16 #include "gallium_intern.h"
18 #undef HiddGalliumAttrBase
19 #define HiddGalliumAttrBase GB(GalliumBase)->galliumAttrBase
21 /*****************************************************************************
25 AROS_LH1(struct pipe_screen
*, CreatePipeScreen
,
28 AROS_LHA(PipeHandle_t
, pipe
, A0
),
31 struct Library
*, GalliumBase
, 7, Gallium
)
34 Creates a gallium pipe screen.
37 pipe - a pipe handle created using CreatePipe().
40 A valid pipe screen instance or NULL if creation was not successful.
46 *****************************************************************************/
50 struct pHidd_Gallium_CreatePipeScreen cpsmsg
;
51 struct pipe_screen
*screen
= NULL
;
55 D(bug("[gallium.library] %s: creating pipe_screen...\n", __PRETTY_FUNCTION__
));
57 cpsmsg
.mID
= OOP_GetMethodID(IID_Hidd_Gallium
, moHidd_Gallium_CreatePipeScreen
);
58 screen
= (struct pipe_screen
*)OOP_DoMethod((OOP_Object
*)pipe
, (OOP_Msg
)&cpsmsg
);
62 bug("[gallium.library] no pipe specified!\n");