1 /*
2 
3 Copyright (C) 2015-2018 Night Dive Studios, LLC.
4 
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 /*
20  * $Source: n:/project/lib/src/2d/RCS/grbm.h $
21  * $Revision: 1.4 $
22  * $Author: kaboom $
23  * $Date: 1993/10/19 10:15:22 $
24  *
25  * Dispatch macros for utility functions.
26  *
27  * This file is part of the 2d library.
28  *
29  * $Log: grbm.h $
30  * Revision 1.4  1993/10/19  10:15:22  kaboom
31  * Now includes tabdat.h.
32  *
33  * Revision 1.3  1993/10/08  01:15:55  kaboom
34  * Changed quotes in #include liness to angle brackets for Watcom problem.
35  *
36  * Revision 1.2  1993/06/03  15:10:15  kaboom
37  * Now uses the grd_pixel_table to call bitmap utility functions.
38  *
39  * Revision 1.1  1993/04/29  18:35:01  kaboom
40  * Initial revision
41  */
42 
43 #ifndef __GRBM_H
44 #define __GRBM_H
45 #include "icanvas.h"
46 #include "tabdat.h"
47 
48 #define gr_calc_row(w) \
49    ((short (*)(short _w)) grd_pixel_table[CALC_ROW])(w)
50 #define gr_sub_bitmap(bm, x, y, w, h) \
51    ((grs_bitmap *(*)(grs_bitmap *_bm,short _x,short _y,short _w,short _h)) \
52    grd_pixel_table[SUB_BITMAP])(bm, x, y, w, h)
53 #endif /* !__GRBM_H */
54