Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / gallium / bltpipesurfacerastport.c
blobf48379e48d2cb6efd24ff52c0f2a034ebb5357f7
1 /*
2 Copyright 2010, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "gallium_intern.h"
7 #include <graphics/rastport.h>
8 #include <proto/layers.h>
9 #include <proto/graphics.h>
10 #include <proto/gallium.h>
11 #include <gallium/pipe/p_state.h>
12 #include <aros/debug.h>
14 /*****************************************************************************
16 NAME */
18 AROS_LH8(void, BltPipeSurfaceRastPort,
20 /* SYNOPSIS */
21 AROS_LHA(struct pipe_surface * , srcPipeSurface, A0),
22 AROS_LHA(LONG , xSrc, D0),
23 AROS_LHA(LONG , ySrc, D1),
24 AROS_LHA(struct RastPort * , destRP, A1),
25 AROS_LHA(LONG , xDest, D2),
26 AROS_LHA(LONG , yDest, D3),
27 AROS_LHA(LONG , xSize, D4),
28 AROS_LHA(LONG , ySize, D5),
30 /* LOCATION */
31 struct Library *, GalliumBase, 7, Gallium)
33 /* FUNCTION
34 Copies part of pipe surface onto rast port. Clips output by using layers of
35 rastport.
37 INPUTS
38 srcPipeSurface - Copy from this pipe surface.
39 xSrc, ySrc - This is the upper left corner of the area to copy.
40 destRP - Destination RastPort.
41 xDest, yDest - Upper left corner where to place the copy
42 xSize, ySize - The size of the area to copy
44 RESULT
46 BUGS
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 BltPipeResourceRastPort(srcPipeSurface->texture, xSrc, ySrc, destRP, xDest,
57 yDest, xSize, ySize);
59 AROS_LIBFUNC_EXIT