Debian Codegraph @

grtext/grtextlib.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
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 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/grtext/grtextlib.h $
21 * $Revision: 2 $
22 * $Date: 4/27/98 3:46p $
23 * $Author: Samir $
24 *
25 *
26 *
27 * $Log: /DescentIII/Main/grtext/grtextlib.h $
28 *
29 * 2 4/27/98 3:46p Samir
30 * scaling fonts.
31 *
32 * 1 12/29/97 3:24p Samir
33 * Initial revision
34 *
35 * $NoKeywords: $
36 */
37
38 #ifndef GRTEXTLIB_H
39 #define GRTEXTLIB_Hcxx . . $ `grtext/grtextlib.h:39:9`!
40
41 #include <cstdint>
42
43 #include "grtext.h"cxx . . $ `<file>/grtext/grtext.h`/
44
45 struct tCharBltcxx . . $ tCharBlt# {
46 uint16_tcxx . . $ uint16_t# chcxx . . $ tCharBlt#ch.;
47 uint16_tcxx . . $ uint16_t# clippedcxx . . $ tCharBlt#clipped.; // if =1, use sx,sy,sw,sh
48 int xcxx . . $ tCharBlt#x., ycxx . . $ tCharBlt#y.;
49 float dswcxx . . $ tCharBlt#dsw., dshcxx . . $ tCharBlt#dsh.; // scale vertical and horiz.
50 int sxcxx . . $ tCharBlt#sx., sycxx . . $ tCharBlt#sy.; // source rectangle within character in pixels.
51 int swcxx . . $ tCharBlt#sw., shcxx . . $ tCharBlt#sh.;
52 };
53
54 // render a character
55 int grfont_BltCharcxx . . $ grfont_BltChar(3fbed1af05ab96ff).(int font, tCharBltcxx . . $ tCharBlt# *cbi);
56
57 #endif