Add blit color conversion, use GP_Coord and GP_Size in blits
[gfxprim.git] / include / core / GP_Blit.h
blobfc2c6a796c12372a0789e597ef3f45c4cf85b8db
1 /*****************************************************************************
2 * This file is part of gfxprim library. *
3 * *
4 * Gfxprim is free software; you can redistribute it and/or *
5 * modify it under the terms of the GNU Lesser General Public *
6 * License as published by the Free Software Foundation; either *
7 * version 2.1 of the License, or (at your option) any later version. *
8 * *
9 * Gfxprim is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12 * Lesser General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU Lesser General Public *
15 * License along with gfxprim; if not, write to the Free Software *
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
17 * Boston, MA 02110-1301 USA *
18 * *
19 * Copyright (C) 2011 Tomas Gavenciak <gavento@ucw.cz> *
20 * *
21 *****************************************************************************/
23 #ifndef CORE_GP_BLIT_H
24 #define CORE_GP_BLIT_H
26 /* Generated header */
27 #include "GP_Blit.gen.h"
29 void GP_Blit(const GP_Context *c1, int x1, int y1, int w, int h,
30 GP_Context *c2, int x2, int y2);
33 * Very naive blit, no optimalizations whatsoever - keep it that way.
34 * Used as a reference for testing and such. Aaand ultimate fallback.
35 * GP_CHECKS for clipping and size (for testing)
37 void GP_Blit_Naive(const GP_Context *c1, GP_Coord x1, GP_Coord y1, GP_Size w, GP_Size h,
38 GP_Context *c2, GP_Coord x2, GP_Coord y2);
40 /*
41 * Similar in purpose to GP_Blit_Naive, but operates on raw coordinates.
42 * Does no range checking.
45 void GP_Blit_Naive_Raw(const GP_Context *c1, int x1, int y1, int w, int h,
46 GP_Context *c2, int x2, int y2);
48 #endif // CORE_GP_BLIT_H