1 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil c-basic-offset: 3 -*- */
2 // vim:cindent:ts=3:sw=3:et:tw=80:sta:
3 /*************************************************************** gltext-cpr beg
4  *
5  * GLText - OpenGL TrueType Font Renderer
6  * GLText is (C) Copyright 2002 by Ben Scott
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *
23  * -----------------------------------------------------------------
24  * File:          $RCSfile: BitmapRenderer.h,v $
25  * Date modified: $Date: 2003/02/03 19:40:41 $
26  * Version:       $Revision: 1.4 $
27  * -----------------------------------------------------------------
28  *
29  ************************************************************ gltext-cpr-end */
30 #ifndef GLTEXT_BITMAPRENDERER_H
31 #define GLTEXT_BITMAPRENDERER_H
32 
33 #include "AbstractRenderer.h"
34 
35 namespace gltext
36 {
37    /**
38     * Renders fonts aliased with 1 level of the current OpenGL
39     * color. Pixels are either on or off.
40     */
41    class BitmapRenderer : public AbstractRenderer
42    {
43    public:
44       static BitmapRenderer* create(Font* font);
45       BitmapRenderer(Font* font);
46 
47    protected:
48       /**
49        * Creates a GLGlyph specialized for this type of renderer.
50        */
51       GLGlyph* makeGlyph(Glyph* glyph);
52    };
53 }
54 
55 #endif
56