~diresu/blender/blender-command-port

« back to all changes in this revision

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

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __FTGLExtrdFont__
 
2
#define __FTGLExtrdFont__
 
3
 
 
4
#include "FTFont.h"
 
5
#include "FTGL.h"
 
6
 
 
7
class FTGlyph;
 
8
 
 
9
/**
 
10
 * FTGLExtrdFont is a specialisation of the FTFont class for handling
 
11
 * extruded Polygon fonts
 
12
 *
 
13
 * @see         FTFont
 
14
 * @see         FTGLPolygonFont
 
15
 */
 
16
class FTGL_EXPORT FTGLExtrdFont : public FTFont
 
17
{
 
18
    public:
 
19
        /**
 
20
         * Open and read a font file. Sets Error flag.
 
21
         *
 
22
         * @param fontname  font file name.
 
23
         */
 
24
        FTGLExtrdFont( const char* fontname);
 
25
 
 
26
        /**
 
27
         * Open and read a font from a buffer in memory. Sets Error flag.
 
28
         *
 
29
         * @param pBufferBytes  the in-memory buffer
 
30
         * @param bufferSizeInBytes  the length of the buffer in bytes
 
31
         */
 
32
        FTGLExtrdFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes);
 
33
 
 
34
        /**
 
35
         * Destructor
 
36
         */
 
37
        ~FTGLExtrdFont();
 
38
                
 
39
        void Depth( float d) { depth = d;}
 
40
                
 
41
    private:
 
42
        /**
 
43
         * Construct a FTPolyGlyph.
 
44
         *
 
45
         * @param glyphIndex The glyph index NOT the char code.
 
46
         * @return      An FTExtrdGlyph or <code>null</code> on failure.
 
47
         */
 
48
        inline virtual FTGlyph* MakeGlyph( unsigned int glyphIndex);
 
49
                
 
50
        float depth;
 
51
};
 
52
 
 
53
 
 
54
#endif  //      __FTGLExtrdFont__
 
55