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

« back to all changes in this revision

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