1 /* DooM2D: Midnight on the Firing Line
2 * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
3 * Understanding is not required. Only obedience.
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.
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.
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/>.
20 public extern int viewportHeight () pure;
21 public extern int viewportWidth () pure;
23 public extern int spriteWidth (string spfile);
24 public extern int spriteHeight (string spfile);
26 public extern void drawSpriteAt (string spfile, int x, int y);
27 public extern void drawSpriteAtNoOfs (string spfile, int x, int y);
29 public extern void drawTextRGBA (string text, int x, int y, int r, int g, int b, int a);
30 public extern void drawTextBigRGBA (string text, int x, int y, int r, int g, int b, int a);
32 public void drawText (string text, int x, int y) { drawTextRGBA(text, x, y, 255, 255, 255, 255); }
33 public void drawText (string text, int x, int y, int r, int g, int b) { drawTextRGBA(text, x, y, r, g, b, 255); }
34 public void drawText (string text, int x, int y, int r, int g, int b, int a) { drawTextRGBA(text, x, y, r, g, b, a); }
36 public void drawTextBig (string text, int x, int y) { drawTextBigRGBA(text, x, y, 255, 255, 255, 255); }
37 public void drawTextBig (string text, int x, int y, int r, int g, int b) { drawTextBigRGBA(text, x, y, r, g, b, 255); }
38 public void drawTextBig (string text, int x, int y, int r, int g, int b, int a) { drawTextBigRGBA(text, x, y, r, g, b, a); }
40 public extern int textWidth (string text);
41 public extern int textHeight (string text);
42 public extern int textWidthBig (string text);
43 public extern int textHeightBig (string text);
45 public void drawRectRGB (int x, int y, int w, int h, int r, int g, int b) { drawRectRGBA(x, y, w, h, r, g, b, 255); }
46 public extern void drawRectRGBA (int x, int y, int w, int h, int r, int g, int b, int a);