~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to extern/bFTGL/include/FTOutlineGlyph.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef         __FTOutlineGlyph__
 
2
#define         __FTOutlineGlyph__
 
3
 
 
4
#include <ft2build.h>
 
5
#include FT_FREETYPE_H
 
6
#include FT_GLYPH_H
 
7
 
 
8
#include "FTGL.h"
 
9
#include "FTGlyph.h"
 
10
 
 
11
class FTVectoriser;
 
12
 
 
13
 
 
14
/**
 
15
 * FTOutlineGlyph is a specialisation of FTGlyph for creating outlines.
 
16
 * 
 
17
 * @see FTGlyphContainer
 
18
 * @see FTVectoriser
 
19
 *
 
20
 */
 
21
class FTGL_EXPORT FTOutlineGlyph : public FTGlyph
 
22
{
 
23
    public:
 
24
        /**
 
25
         * Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
 
26
         *
 
27
         * @param glyph The Freetype glyph to be processed
 
28
         */
 
29
        FTOutlineGlyph( FT_GlyphSlot glyph);
 
30
 
 
31
        /**
 
32
         * Destructor
 
33
         */
 
34
        virtual ~FTOutlineGlyph();
 
35
 
 
36
        /**
 
37
         * Renders this glyph at the current pen position.
 
38
         *
 
39
         * @param pen   The current pen position.
 
40
         * @return              The advance distance for this glyph.
 
41
         */
 
42
        virtual float Render( const FTPoint& pen);
 
43
        
 
44
    private:            
 
45
        /**
 
46
         * OpenGL display list
 
47
         */
 
48
        GLuint glList;
 
49
        
 
50
};
 
51
 
 
52
 
 
53
#endif  //      __FTOutlineGlyph__
 
54