source: abuse/trunk/src/imlib/fonts.h @ 667

Last change on this file since 667 was 667, checked in by Sam Hocevar, 11 years ago

imlib: remove dead code.

  • Property svn:keywords set to Id
File size: 779 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef __FONTS_HPP_
12#define __FONTS_HPP_
13
14#include "image.h"
15#include "transimage.h"
16
17class JCFont
18{
19  int tl,th;
20  TransImage *let[256];
21public:
22  JCFont(image *letters);
23  void put_char(image *screen,  int x, int y, char ch, int color=-1);
24  void put_string(image *screen, int x, int y, char const *st, int color=-1);
25  int height() { return th; }
26  int length() { return tl; }
27  int width() { return tl; }
28  ~JCFont();
29} ;
30
31#endif
32
33
Note: See TracBrowser for help on using the repository browser.